joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444809
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x4947a0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4448a1
push 0x47dfbc
push 4
push eax
call fcn.0046231a
push eax
call fcn.00438e20
add esp, 0x10
push ebx
push edi
call fcn.0046057d
mov edi, dword [eax]
call fcn.0046057d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0045e845
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0046057d
cmp dword [eax], ebx
je 0x4448b8
call fcn.0046057d
push dword [eax]
call fcn.0043bd02
pop ecx
jmp 0x4448bf
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x444855
jmp 0x444931
call fcn.0046057d
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x44492d
cmp dword [ebp - 0x3c], esi
jae 0x44492d
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0045fbe0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x44491f
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44491f
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x44491f
push ebx
push ebx
push esi
jmp 0x444925
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x44492f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0045e1a6
add ebp, 0xe0
leave
ret

Function at 0x4450d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x445119
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x445108
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045290b
cmp dword [ebp + 0xc], edi
je 0x445119
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.004528c5
pop edi
pop esi
pop ebp
ret 8

Function at 0x445279
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4452af
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4452ae
push dword [edi + 0xc]
call esi
push eax
call fcn.0045290b
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret
Function at 0x446853
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x446899
call fcn.00446343
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x446899
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4468dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4468c5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4468c5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4468d9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44d874
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x7c8]
sub esp, 0x848
mov eax, dword [0x4947a0]
xor eax, ebp
mov dword [ebp + 0x7c4], eax
mov eax, dword [ebp + 0x7d8]
mov ecx, dword [ebp + 0x7d0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x7dc]
push ebx
mov ebx, dword [ebp + 0x7d4]
mov dword [ebp - 0x80], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x70], ecx
cmp ebx, eax
je 0x44d95e
cmp ecx, eax
je 0x44d95e
mov esi, dword [ebp + 0x7e0]
and esi, 0x2e000000
test dword [ebp + 0x7e0], 0x90000000
mov dword [ebp - 0x6c], 0x824
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
je 0x44d90e
cmp dword [ebx + 0x30], eax
je 0x44d90e
test dword [ebp + 0x7e0], 0x2000000
je 0x44d907
mov dword [ebp - 0x78], 1
jmp 0x44d90e
mov dword [ebp - 0x74], SysReAllocStringLen
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push ecx
call edi
test eax, eax
jne 0x44d97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44d95e
push dword [ebp - 0x6c]
call fcn.0043968c
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x44d95e
push esi
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x68], 1
call edi
test eax, eax
jne 0x44d97f
push dword [ebp - 0x7c]
call fcn.004396bc
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x7c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e1a6
add ebp, 0x7c8
leave
ret 0x14
lea edi, [ebp - 0x60]
jmp 0x44d982
mov edi, dword [ebp - 0x7c]
push ebx
push dword [ebp - 0x74]
xor esi, esi
push esi
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x78], esi
je 0x44d9c0
push 0x2100000
push esi
push esi
push dword [ebx + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x44d9b4
cmp dword [ebp - 0x68], esi
je 0x44d95e
push edi
jmp 0x44d958
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebx + 0x30], eax
cmp dword [ebp - 0x68], esi
je 0x44d9cc
push edi
call fcn.004396bc
pop ecx
mov eax, dword [ebp - 0x70]
cmp eax, esi
jne 0x44d9de
mov ecx, dword [ebp - 0x64]
mov dword [ecx], 0x1000
jmp 0x44d960
mov cx, word [ebx + 0x18]
mov edx, dword [ebp - 0x80]
mov word [edx], cx
mov ebx, dword [ebx + 0xc]
dec ebx
mov ecx, dword [ebp - 0x64]
je 0x44da45
dec ebx
je 0x44da3a
dec ebx
je 0x44da2f
dec ebx
je 0x44da24
dec ebx
je 0x44da19
dec ebx
je 0x44da0e
dec ebx
jne 0x44d9d6
mov dword [ecx], 0x1002
jmp 0x44d960
mov dword [ecx], 0x1006
jmp 0x44d960
mov dword [ecx], 0x1001
jmp 0x44d960
mov dword [ecx], 0x100b
jmp 0x44d960
mov dword [ecx], 3
jmp 0x44d960
mov dword [ecx], 2
jmp 0x44d960
mov dword [ecx], 1
jmp 0x44d960
Function at 0x44e072
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44e09b
call fcn.00446343
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x44e0be
push eax
push dword [esi + 4]
call fcn.0044dffd
push esi
push eax
mov ecx, 0x4b0328
call fcn.0044dcb3
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44e37a
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x44e42c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44e42c
mov ecx, dword [esi + 0x30]
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x44e3c4
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x44e3bd
push 0
push dword [esi + 0x1c]
call fcn.0044dffd
cmp dword [ebp + 0xc], edi
je 0x44e402
jmp 0x44e3b3
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
cmp edx, dword [esi + 0x28]
jb 0x44e3e9
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x44e3b3
and dword [esi + 0x2c], 0
mov eax, dword [esi + 0x28]
cmp edi, eax
jb 0x44e408
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x44e3b3
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + edi]
cmp edx, eax
ja 0x44e401
push edi
push dword [ebp + 8]
sub eax, ecx
push eax
mov eax, dword [esi + 0x30]
add eax, ecx
push eax
call fcn.00438df0
add esp, 0x10
add dword [esi + 0x2c], edi
jmp 0x44e401
push 6
jmp 0x44e3b5

Function at 0x44e99a
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4757ec
call fcn.00460040
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044e95c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00439110
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x44ea00
push eax
push dword [esi + 8]
call fcn.0044dffd
push dword [esi + 0xc]
mov ecx, 0x4b0328
push eax
call fcn.0044dcb3
mov eax, esi
call fcn.00460118
ret 0x18
Function at 0x44fbc8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4947a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
jne 0x44fbed
call fcn.00442e0b
test esi, esi
je 0x44fbe8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xff
mov edi, eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0045fbe0
mov eax, pe_nt_image_headers32
add esp, 0xc
cmp edi, eax
ja 0x44fc45
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x44fc45
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x44fc4d
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e1a6
leave
ret 8
Function at 0x452b6d
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
push 0
push esi
mov edi, ecx
call fcn.0045fbe0
push 0xffffffffffffffff
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push 0x104
push eax
call fcn.0043a0c1
mov eax, dword [edi + 4]
add esp, 0x1c
cmp eax, dword [0x47e0f0]
je 0x452cc2
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x452bca
xor eax, eax
jmp 0x452cc5
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x452bc3
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], eax
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], 0
jne 0x452bf6
mov byte [esi + 0x20], 0
jmp 0x452c0a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and cl, al
mov byte [esi + 0x20], cl
lea eax, [ebp - 0x10]
push eax
call fcn.00443d0a
test eax, eax
je 0x452c31
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00443e27
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x452c38
and dword [esi], 0
and dword [esi + 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00443d0a
test eax, eax
je 0x452c60
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00443e27
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x452c6a
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00443d0a
test eax, eax
je 0x452c92
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.00443e27
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x452c9c
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x452cae
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x452cc2
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x45e1a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4947a0]
jne 0x45e1b0
repz ret
jmp fcn.004650bc

Function at 0x46f9ef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004668df
and dword [ebp - 4], 0
cmp dword [0x4b10f0], 0
mov ebx, eax
jne 0x46faa0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46fb51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4818e0
push edi
call esi
test eax, eax
je 0x46fb51
push eax
call fcn.0046686d
mov dword [esp], 0x4818d0
push edi
mov dword [0x4b10f0], eax
call esi
push eax
call fcn.0046686d
mov dword [esp], 0x4818bc
push edi
mov dword [0x4b10f4], eax
call esi
push eax
call fcn.0046686d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b10f8], eax
call esi
push eax
call fcn.0046686d
pop ecx
mov dword [0x4b1100], eax
test eax, eax
je 0x46faa0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046686d
pop ecx
mov dword [0x4b10fc], eax
mov eax, dword [0x4b10fc]
cmp eax, ebx
je 0x46faf8
cmp dword [0x4b1100], ebx
je 0x46faf8
push eax
call fcn.004668e8
push dword [0x4b1100]
mov esi, eax
call fcn.004668e8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46faf8
test edi, edi
je 0x46faf8
call esi
test eax, eax
je 0x46faef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46faef
test byte [ebp - 0xc], 1
jne 0x46faf8
or dword [ebp + 0x10], 0x200000
jmp 0x46fb31
mov eax, dword [0x4b10f4]
cmp eax, ebx
je 0x46fb31
push eax
call fcn.004668e8
pop ecx
test eax, eax
je 0x46fb31
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46fb31
mov eax, dword [0x4b10f8]
cmp eax, ebx
je 0x46fb31
push eax
call fcn.004668e8
pop ecx
test eax, eax
je 0x46fb31
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b10f0]
call fcn.004668e8
pop ecx
test eax, eax
je 0x46fb51
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46fb53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402adc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045f8
test esi, esi
jne 0x402b12
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004046e8
jmp 0x402b30
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f0
mov edi, eax
test esi, esi
je 0x402b30
cmp dword [ebx], 0
je 0x402b30
dec esi
jmp 0x402b19
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403658
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b000c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036d0
xor eax, eax
push ebp
push 0x4036c9
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 0x40370c
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 0x4036d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b000c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b000c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b404c], 0
je 0x404439
cmp word [0x4b4220], 0xd7b2
jne 0x404401
cmp dword [0x4b4228], 0
jbe 0x404401
mov eax, 0x4b421c
call dword [0x4b4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b0054
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 0x404460
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b001c], 0
jne 0x404455
push 0
push 0x4b0074
push 0x4b0054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045ac
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.004027f8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404574
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40bbfc
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 0x40bc35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046e8
jmp 0x40bc3e
mov eax, ebx
mov edx, esi
call fcn.0040464c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc48
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 0x40bc69
mov al, byte [esp]
jmp 0x40bc6b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c2f0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c168
mov eax, dword [0x4b3ac4]
cmp byte [eax], 0
je 0x40c358
mov eax, dword [0x4b37f0]
call fcn.00402e98
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409360
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40c3a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c38e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b3788]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b4718]
call fcn.00405ee4
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 0x40d1b0
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 0x40d214
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.00404860
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f00
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d21b
lea eax, [ebp - 0xc]
call fcn.004045f8
ret

Function at 0x420140
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.0041ffe0
dec esi
jne 0x420162
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42128c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b4a28
cmp dword [edi], 0
jne 0x421308
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b4a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b0514
mov ecx, 2
call fcn.004029b0
mov edx, 0x421264
lea eax, [esi + 5]
call fcn.00421284
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421284
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4212dd
mov dword [0x4b4a24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4228bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4228c2
ret

Function at 0x424f5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x424fad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424f94
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424f84
jmp 0x424fad
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x424f95
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438cec
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a98
xor eax, eax
push ebp
push 0x438e1a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x438ded
xor eax, eax
push ebp
push 0x438de6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048b0
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x438dbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x438daa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048b0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa8
mov edx, ebx
pop ecx
call fcn.004029b0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438db1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4b36fc]
mov dl, 1
mov eax, dword [0x407cb8]
call fcn.0040c46c
call fcn.00403fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438e21
lea eax, [ebp - 4]
call fcn.004045f8
ret