joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408331
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 0xc8]
push dword [esi + 0xb8]
call fcn.0040873c
mov ecx, esi
call fcn.0040762b
test eax, eax
je 0x408430
push 0x28
lea ebx, [esi + 0x88]
pop edi
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x64]
mov ebp, dword [esi + 0xc8]
add esp, 0xc
mov dword [ebx], edi
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x60]
cmp eax, ebp
jbe 0x408387
mov eax, ebp
push esi
push 1
push ebx
mov dword [esi + 0xa0], eax
push dword [esi + 0x80]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4083e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4083b6
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.00408cfc
test eax, eax
jne 0x408434
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x118]
jne 0x408424
mov eax, dword [esi + 0x114]
test eax, eax
je 0x4083f3
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x4083f3
mov ecx, esi
call fcn.00408d48
test eax, eax
jne 0x408434
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x408438
add dword [esi + 0xc4], edi
push edi
push dword [esi + 0x9c]
mov ecx, esi
sub ebp, edi
call fcn.004077ee
test eax, eax
je 0x408469
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x18]
jmp 0x40837e
push 0x40f93c
mov ecx, esi
call fcn.00408273
push 3
jmp 0x408476
push 6
jmp 0x408476
mov ecx, esi
call fcn.0040788d
test eax, eax
je 0x408469
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x40845a
cmp eax, dword [esi + 0xc4]
je 0x40845a
push 3
jmp 0x40846b
push 0
push 2
mov ecx, esi
call fcn.00407cd8
xor eax, eax
jmp 0x408477
push 4
push 3
mov ecx, esi
call fcn.00407cd8
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x408c19
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
je 0x408c2e
xor eax, eax
jmp 0x408c87
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [esi + 0x14]
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
push 0x408af7
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
jle 0x408c2a
cmp dword [esi + 0xc], ebx
mov dword [esi + 4], eax
je 0x408c6c
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x10]
mov dword [ebp - 8], eax
call edi
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c8c
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x408cc6
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408cb5
push dword [esi + 0x14]
jmp 0x408cc9
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 4], 0
pop esi
ret
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
Function at 0xa37b80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa37bbf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa50131
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a4fdae

Function at 0xa567d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a5664b
Function at 0x4011d0
Capabilities:
Query environment variable

Disassembly:
mov edx, dword [esp + 4]
mov eax, 0x416154
sub esp, 0x300
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011e1
push ebx
push ebp
mov ebp, dword [esp + 0x310]
mov eax, 0x41ae68
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011fd
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0x108]
push 0xff
push eax
push str.USERNAME
call ebx
test eax, eax
jne 0x40122e
pop ebp
pop ebx
add esp, 0x300
ret
push esi
push edi
mov edi, str.DEFAULT
lea esi, [esp + 0x110]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x40124e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0xff
jne 0x40128d
lea ecx, [esp + 0x20c]
push ecx
push str.DAYSLEFT
call ebx
lea edx, [esp + 0x208]
push edx
call fcn.00409fd9
mov ecx, dword [esp + 0x318]
add esp, 4
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x300
ret
lea edx, [esp + 0xc]
push edx
push str.USERKEY
call ebx
test eax, eax
jmp 0x4012ac
mov edx, dword [esp + 0x30c]
lea ecx, [esp + 0x108]
lea eax, [esp + 0x108]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012c3
mov edx, ebp
lea ecx, [esp + 8]
lea eax, [esp + 8]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012d9
pop ebp
mov dword [0x41e524], 0
mov eax, 1
pop ebx
add esp, 0x300
ret
Function at 0x405b90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x423ee0]
sub esp, 0xd4
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x405bc3
mov eax, dword [esp + 0xdc]
push ebx
push str.BatteryMon_
push 0x416d18
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
add esp, 0xd4
ret
mov ecx, dword [0x423ed4]
push ebp
push esi
push edi
push 0x7f00
push ebx
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], 0x4029d0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 0x20]
mov dword [esp + 0x38], eax
push edx
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], str.mini
call dword [sym.imp.USER32.dll_RegisterClassA]
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x48]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405c59
cmp dword [esp + 0x58], 2
jne 0x405c59
mov ebp, 0x80000
cmp byte [0x4223cd], 1
jne 0x405c65
or ebp, 8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x4224d4]
mov eax, dword [esp + 0x18]
cmp edx, eax
jl 0x405c8a
lea edx, [eax - 0x77]
jmp 0x405c94
mov eax, dword [esp + 0x10]
cmp edx, eax
jge 0x405c9a
mov edx, eax
mov dword [0x4224d4], edx
mov ecx, dword [0x4224d8]
mov eax, dword [esp + 0x1c]
mov esi, dword [0x423ee0]
cmp ecx, eax
jl 0x405cba
mov ecx, dword [esi + 4]
lea ecx, [ecx + ecx*8]
add ecx, ecx
sub eax, ecx
jmp 0x405cc2
mov eax, dword [esp + 0x14]
cmp ecx, eax
jge 0x405cca
mov ecx, eax
mov dword [0x4224d8], ecx
mov eax, dword [0x423ed4]
push ebx
push eax
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [esp + 0xf4]
lea eax, [eax + eax*8]
push ebx
add eax, eax
push eax
push 0x77
push ecx
push edx
push closesocket
push 0x41606c
push str.mini
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
push str.User32.DLL
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405d31
push str.SetLayeredWindowAttributes
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405d31
mov cl, byte [0x4224d2]
push 3
push ecx
push 0xffffff
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 5
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
Function at 0x409330
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x53c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
call fcn.00409580
cmp eax, 1
jge 0x40935d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x53c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push 0
lea esi, [esp + edi + 0x150]
push eax
push 1
push esi
push ecx
call ebp
mov al, byte [esi]
cmp al, 0xd
mov eax, dword [esp + 0x20]
je 0x4093ab
xor esi, esi
cmp eax, esi
je 0x4093ad
inc edi
cmp edi, 0x400
jl 0x409375
mov ebp, dword [esp + 0x10]
jmp 0x4093af
xor esi, esi
mov ebp, edi
cmp eax, esi
jne 0x4093c0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x53c
ret
cmp byte [0x4224f8], 1
jne 0x409468
lea edx, [esp + 0x4c]
push 0x100
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x4c]
push 0x5c
push eax
call fcn.0040a730
add esp, 8
cmp eax, esi
je 0x4093f4
mov byte [eax], 0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x417e0c]
repne scasb al, byte es:[edi]
mov ecx, dword [str._serialLog.txt]
mov eax, dword [0x417e10]
dec edi
push 0x417e04
mov dword [edi], ecx
mov cx, word [0x417e14]
mov dword [edi + 4], edx
mov dl, byte [0x417e16]
mov dword [edi + 8], eax
lea eax, [esp + 0x50]
push eax
mov word [edi + 0xc], cx
mov byte [edi + 0xe], dl
call fcn.0040a0b1
mov edi, eax
add esp, 8
cmp edi, esi
je 0x409468
xor ecx, ecx
push edi
mov cl, byte [esp + esi + 0x150]
push ecx
call fcn.0040adf0
add esp, 8
inc esi
cmp esi, ebp
jbe 0x409445
push edi
call fcn.00409fe4
add esp, 4
xor esi, esi
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14c]
push edx
push str._32s
push eax
call fcn.0040adbc
push 6
lea ecx, [esp + 0x3c]
push str.State:
push ecx
call fcn.0040a800
add esp, 0x18
test eax, eax
jne 0x4094dd
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x15c]
push str.State:__x__Term:__x___x__x
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
call fcn.0040adbc
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x53c
ret
push 2
lea ecx, [esp + 0x30]
push 0x417dd4
push ecx
call fcn.0040a800
add esp, 0xc
test eax, eax
jne 0x409548
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x164]
push str.t:__hd:_hd_BV:__hd_CV:__hd_C:__hd_T:__hd
push edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call fcn.0040adbc
movsx eax, word [esp + 0x30]
add esp, 0x20
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x53c
ret
Function at 0x409ce0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, edi
mov dword [ebp - 0x24], eax
jne 0x409d2f
lea eax, [ebp - 0x14]
push 0x414948
push eax
mov dword [ebp - 0x14], 0x418264
call fcn.0040a63e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
jne 0x409d52
lea ecx, [ebp - 0x18]
push 0x414948
push ecx
mov dword [ebp - 0x18], 0x418230
call fcn.0040a63e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 0x3c
jle 0x409d8e
lea edx, [ebp - 0x1c]
push 0x414948
push edx
mov dword [ebp - 0x1c], 0x418188
call fcn.0040a63e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0x10
push 0x41817c
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x409de0
ret
push eax
call fcn.0040a169
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov esi, edi
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x409da4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40a
jne 0x409dd5
mov eax, edi
cmp byte [eax], 0x20
jne 0x409dca
inc eax
jmp 0x409dc2
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x409de3
push edi
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x409de3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x409df0
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je 0x409dfd
push edi
call fcn.0040a100
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41a600
cmp edx, dword [eax]
je 0x4104c3
add eax, 8
inc ecx
cmp eax, 0x41a690
jl 0x4104b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41a600]
jne 0x4105f1
mov eax, dword [0x4240a4]
cmp eax, 1
je 0x4105cb
test eax, eax
jne 0x4104f4
cmp dword [0x4182c4], 1
je 0x4105cb
cmp edx, 0xfc
je 0x4105f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41052b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411bf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ed80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41056e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ed80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414838
push edi
call fcn.0040a880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411bf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411c00
lea eax, [ebp - 0xa0]
push 0x414818
push eax
call fcn.00411c00
push dword [esi + 0x41a604]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411c00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004128ef
add esp, 0x2c
pop edi
jmp 0x4105f1
lea eax, [ebp + 8]
lea esi, [esi + 0x41a604]
push 0
push eax
push dword [esi]
call fcn.0040ed80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402bc8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4bd008], 0x8088405
inc edx
mov dword [ebx + 0x4bd008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403020
Capabilities:
Query or enumerate registry value

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

Function at 0x403d7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c0048], 0
je 0x403ddd
cmp word [0x4c021c], 0xd7b2
jne 0x403da5
cmp dword [0x4c0224], 0
jbe 0x403da5
mov eax, 0x4c0218
call dword [0x4c0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bd070
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 0x403e04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd034], 0
jne 0x403df9
push 0
push 0x4bd068
push 0x4bd070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405aac
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 0x405b12
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.00404168
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402be4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405afc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b19
lea eax, [ebp - 0x10]
call fcn.00403ef8
ret

Function at 0x40b4cc
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 0x40b505
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fe8
jmp 0x40b50e
mov eax, ebx
mov edx, esi
call fcn.00403f4c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bbc0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba38
mov eax, dword [0x4bf0b0]
cmp byte [eax], 0
je 0x40bc3c
mov eax, dword [0x4bee84]
call fcn.004029f8
call fcn.00402844
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.004087ac
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 0x40bc84
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc72
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bee24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c0664]
call fcn.00404fc0
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 0x40c4fc
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 0x40c5d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f90
lea eax, [ebp - 8]
call fcn.00404408
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004043b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5bc
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5b5
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.004043b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c59f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c59f
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 0x40c5bc
mov eax, dword [ebp - 0x10]
call fcn.004026fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5d9
lea eax, [ebp - 8]
call fcn.00403ef8
ret

Function at 0x40cae4
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 0x40cb48
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.00404168
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408248
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb4f
lea eax, [ebp - 0xc]
call fcn.00403ef8
ret

Function at 0x41afcc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c0884
cmp dword [edi], 0
jne 0x41b048
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c0880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4bd470
mov ecx, 2
call fcn.004028d8
mov edx, 0x41afa4
lea eax, [esi + 5]
call fcn.0041afc4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041afc4
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 0x41b01d
mov dword [0x4c0880], 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 0x41c62c
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 0x41c632
ret
Function at 0x41ed18
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 0x41ed69
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ed50
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ed40
jmp 0x41ed69
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 0x41ed51
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427a00
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.004043a8
xor eax, eax
push ebp
push 0x427b2e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x427b01
xor eax, eax
push ebp
push 0x427afa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004041b8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x427acf
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 0x427abe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004041b8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004043b8
mov edx, ebx
pop ecx
call fcn.004028d8
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 0x427ac5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4bedb4]
mov dl, 1
mov eax, dword [0x406f4c]
call fcn.0040bd68
call fcn.00403934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427b35
lea eax, [ebp - 4]
call fcn.00403ef8
ret