joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b890
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4220c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x4242e8
call fcn.00408ac0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.1836
call fcn.004050e0
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x424134]
call fcn.00405710
mov dword [ebp - 4], 0
movzx eax, byte [0x424138]
test eax, eax
je 0x402360
call dword [0x42411c]
jmp 0x402373
push 0
call dword [0x424114]
push 0xb4
call dword [0x424120]
mov ecx, dword [0x424140]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4023af
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4242cc
call fcn.00404750
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x4242b0
call fcn.00404750
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4023e6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4023c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004047d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], 0
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x28], 0x4e
mov byte [ebp - 0x25], 0x53
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x23], 0x49
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x15], 0x29
mov byte [ebp - 0x1d], 0x28
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x24], 0x5f
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x27], 0x53
mov byte [ebp - 0x26], 0x49
mov byte [ebp - 0x22], 0x6e
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1a], 0x7a
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x16], 0x61
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00408760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bf94
mov esp, ebp
pop ebp
ret

Function at 0x4054d0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00404750
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp + 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.00404750
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
jne 0x40553d
mov byte [ebp - 5], 0
lea ecx, [ebp + 8]
call fcn.00404820
mov al, byte [ebp - 5]
jmp 0x405553
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x1c], 1
mov byte [ebp - 6], 1
lea ecx, [ebp + 8]
call fcn.00404820
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret 0x24
Function at 0x406350
Capabilities:
Check http status code
Contain obfuscated stackstrings
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 1], 0
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0x11], 0x67
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xa], 0
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x14], 0x67
mov byte [ebp - 0x13], 0x6f
push 1
push 0
call fcn.00405880
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x14]
push eax
call fcn.004050e0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
call fcn.004054d0
mov ecx, dword [ebp - 0x48]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x406468
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004058b0
mov dword [ebp - 0x50], eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
push 0x41defc
push 0x41df08
mov ecx, dword [ebp - 0x50]
call fcn.00404750
push eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
call fcn.00404820
cmp dword [ebp - 0x18], 0
je 0x40645e
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x24], 0xc8
jne 0x40645e
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x48]
call fcn.00405560
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040bf94
mov esp, ebp
pop ebp
ret
Function at 0x406800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.00404750
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406855
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea ecx, [ebp + 0x28]
call fcn.00404750
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0xc]
call fcn.00404820
lea ecx, [ebp + 0x28]
call fcn.00404820
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x406880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b588
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4220c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004047d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.00404750
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4069fa
lea ecx, [ebp - 0x50]
call fcn.00406b20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00406c30
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
push edx
push 0
push 0
push 0
lea ecx, [ebp + 0x2c]
call fcn.00404750
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4069ee
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00406c10
lea edx, [ebp - 0x38]
push edx
push 0
lea ecx, [ebp - 0x50]
call fcn.00406c50
push eax
push 0
push 0
lea ecx, [ebp + 0x2c]
call fcn.00404750
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4069ee
lea ecx, [ebp - 0x50]
call fcn.00406c30
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jle 0x4069ee
push 1
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x50]
call fcn.00406be0
mov ecx, eax
call fcn.00406c80
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406bb0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x70]
call fcn.00407880
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403710
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00404820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00406b90
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404790
mov ecx, dword [ebp - 0x8c]
or ecx, 1
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00404820
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404820
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404820
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bf94
mov esp, ebp
pop ebp
ret 0x40

Function at 0x4089a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [0x42419b], 1
mov byte [0x4242a8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x408ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4242ac], eax
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x40966a
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409630
cmp dword [ebp - 0x10], 0
jne 0x409638
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40966a
cmp dword [ebp - 4], 0
jne 0x40964d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x40964d
jmp 0x40966a
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x409601
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b908
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4220c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], 0
je 0x409aa0
mov ecx, dword [ebp - 0x1c]
call fcn.00409f10
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00403710
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x409930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x58], 0
jne 0x409af3
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404820
mov al, byte [ebp - 0x15]
jmp 0x409b13
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 1
mov byte [ebp - 0x16], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404820
mov al, byte [ebp - 0x16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x409bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x409c0d
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409bf0
xor al, al
jmp 0x409c1a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x409bc3
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bf94
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4220c0]
jne 0x40bf9e
repz ret
jmp fcn.0040d9d6

Function at 0x415b6f
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.0040e556
and dword [ebp - 4], 0
cmp dword [0x423f7c], 0
mov ebx, eax
jne 0x415c20
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d55c
push edi
call esi
test eax, eax
je 0x415cd1
push eax
call fcn.0040e4e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423f7c], eax
call esi
push eax
call fcn.0040e4e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423f80], eax
call esi
push eax
call fcn.0040e4e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423f84], eax
call esi
push eax
call fcn.0040e4e4
pop ecx
mov dword [0x423f8c], eax
test eax, eax
je 0x415c20
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e4e4
pop ecx
mov dword [0x423f88], eax
mov eax, dword [0x423f88]
cmp eax, ebx
je 0x415c78
cmp dword [0x423f8c], ebx
je 0x415c78
push eax
call fcn.0040e55f
push dword [0x423f8c]
mov esi, eax
call fcn.0040e55f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415c78
test edi, edi
je 0x415c78
call esi
test eax, eax
je 0x415c6f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415c6f
test byte [ebp - 0xc], 1
jne 0x415c78
or dword [ebp + 0x10], 0x200000
jmp 0x415cb1
mov eax, dword [0x423f80]
cmp eax, ebx
je 0x415cb1
push eax
call fcn.0040e55f
pop ecx
test eax, eax
je 0x415cb1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415cb1
mov eax, dword [0x423f84]
cmp eax, ebx
je 0x415cb1
push eax
call fcn.0040e55f
pop ecx
test eax, eax
je 0x415cb1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423f7c]
call fcn.0040e55f
pop ecx
test eax, eax
je 0x415cd1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415cd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402994
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.004042bc
test esi, esi
jne 0x4029ca
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.004043ac
jmp 0x4029e8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402848
mov edi, eax
test esi, esi
je 0x4029e8
cmp dword [ebx], 0
je 0x4029e8
dec esi
jmp 0x4029d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034f0
Capabilities:
Query or enumerate registry value

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

Function at 0x404140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d044], 0
je 0x4041a1
cmp word [0x41d218], 0xd7b2
jne 0x404169
cmp dword [0x41d220], 0
jbe 0x404169
mov eax, 0x41d214
call dword [0x41d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41c070
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 0x4041c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41c030], 0
jne 0x4041bd
push 0
push 0x41c068
push 0x41c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ca0
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 0x405d06
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.0040452c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cf0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d0d
lea eax, [ebp - 0x10]
call fcn.004042bc
ret

Function at 0x40a2e4
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 0x40a31d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043ac
jmp 0x40a326
mov eax, ebx
mov edx, esi
call fcn.00404310
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a9d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a850
mov eax, dword [0x41c8bc]
cmp byte [eax], 0
je 0x40aa54
mov eax, dword [0x41c7c8]
call fcn.00402dcc
call fcn.00402774
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.00407b38
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 0x40aa9c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aa8a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41c7a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41d660]
call fcn.004051f0
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 0x40b738
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 0x40b79c
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.0040452c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040764c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7a3
lea eax, [ebp - 0xc]
call fcn.004042bc
ret

Function at 0x415308
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 0x41530e
ret

Function at 0x417194
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 0x4171e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4171cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4171bc
jmp 0x4171e5
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 0x4171cd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4081dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4081ec
pop dword [ebp - 0x44]
mov eax, 0x4081ec
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x7d8b90fa
sub dword [ebp - 0x54], 0x2f394baf
mov dword [ebp - 0x50], 0xa2e71df5
add dword [ebp - 0x50], 0x8f4c2e50
mov dword [ebp - 0x4c], 0x4438f4eb
sub dword [ebp - 0x4c], 0xf7ecb0bd
mov dword [ebp - 0x48], 0xeb9c1272
add dword [ebp - 0x48], 0x1463ed8e
lea eax, [ebp - 0x54]
push eax
mov eax, 0xfbf66581
add eax, 0x44bcaf3
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb15405c
add dword [ebp - 0x54], 0x695d28fa
mov dword [ebp - 0x50], 0x40672bcb
add dword [ebp - 0x50], 0x10535aa
mov dword [ebp - 0x4c], 0x339cf7e0
add dword [ebp - 0x4c], 0x2fd2748c
mov dword [ebp - 0x48], 0xa5ec6839
sub dword [ebp - 0x48], 0xa5ec6839
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xc9d956a4
sub eax, 0xc9972580
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x40b9e
push 0
call eax
mov ecx, 0xc949a8d7
sub ecx, 0xc94954d6
xor ebx, ebx
add ebx, eax
mov esi, 0xa97adbf9
add esi, 0x56c86807
add esi, dword [ebp - 0x44]
mov edi, 0x5b9df4ad
sub edi, 0xdf9f1ce8
mov edx, dword [esi]
sub dword [ebp - 0x3c], 0xd7072fb1
xor edx, edi
add dword [ebp - 0xc], 0x28e14db2
mov dword [ebx], edx
add ebx, 0x7f2b16af
add ebx, 0x80d4e955
add esi, 0x32aa56f7
sub esi, 0x32aa56f3
loop 0x40830b
add eax, 0x8c2aeccf
sub eax, 0x8c29a9f8
xor ebx, ebx
add ebx, eax
add eax, 0x3eec247a
sub eax, 0x3eec2475
mov ecx, 0xa5f00561
add ecx, 0x5a4ffa9f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret