joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x34
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa7
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x79
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x15
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x39
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x66
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6e
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x99
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x12
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4a
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x58
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4019a5
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x4012a0
call fcn.00401b94
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4019e0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019e0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4019f8
cmp eax, 0x20b
je 0x4019e5
mov dword [ebp - 0x1c], edi
jmp 0x401a0c
cmp dword [ecx + 0x84], 0xe
jbe 0x4019e0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401a06
cmp dword [ecx + 0x74], 0xe
jbe 0x4019e0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4034dc], 0xffffffff
or dword [0x4034e0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4032c8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4032c4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4034e4], eax
call fcn.00401b8a
cmp dword [0x403030], edi
jne 0x401a67
push fcn.00401b8a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401b73
push 0x403010
push 0x40300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x4032c0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4032bc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x403008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040152b
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x401ade
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x401b13
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401bcf
ret
Function at 0x401aa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x401ac2
mov ecx, 0x19
int 0x29
test byte [ebp - 8], 0x44
je 0x401b0e
push esi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x3c]
xor edx, edx
mov ecx, edi
neg ecx
and ecx, ebx
lea esi, [edi - 1]
mov eax, esi
and esi, dword [ebp + 0xc]
and eax, ebx
dec esi
add eax, edi
add eax, esi
div edi
xor edx, edx
mov esi, eax
mov eax, dword [ebp + 0xc]
div edi
add esi, eax
je 0x401b0c
lea ecx, [ecx]
xor eax, eax
lock or dword [ecx], eax
add ecx, edi
sub esi, 1
jne 0x401b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40003c]
cmp dword [eax + 0x400074], 0xd
push ebx
push esi
lea esi, [eax + 0x400000]
push edi
jbe 0x401b7d
mov ebx, dword [esi + 0xe0]
test ebx, ebx
je 0x401b7d
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
mov ebx, dword [ebx + 0x40000c]
add ecx, eax
movzx eax, word [esi + 6]
xor edx, edx
mov dword [ebp - 4], eax
test eax, eax
je 0x401b7d
mov esi, dword [ecx + 0xc]
cmp ebx, esi
jb 0x401b75
mov edi, dword [ecx + 8]
lea eax, [edi + esi]
cmp ebx, eax
jb 0x401b8d
mov eax, dword [ebp - 4]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x401b61
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x24]
lea esi, [esi + 0x400000]
test esi, esi
je 0x401b7d
cmp dword [0x424468], 0
jne 0x401bc2
mov dword [0x424468], 1
test eax, eax
js 0x401bb8
mov ecx, 0x19
int 0x29
push edi
push esi
call fcn.00401aa0
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b86
mov ecx, 0x19
int 0x29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 4], 0
push esi
push edi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], ebx
je 0x413eb2
cmp dword [ebp + 0x14], ebx
je 0x413eb2
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x413eb2
push ebx
push ebx
push edi
call fcn.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x413eb2
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x413deb
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push edi
call fcn.00410cd7
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x413dd1
cmp ebx, esi
je 0x413ea1
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x413ebf
pop edi
pop esi
mov dword [eax], 0xd
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov edi, edi
mov eax, dword [esi]
cmp eax, edi
jae 0x413e51
test eax, eax
je 0x413e2e
sub eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00410cd7
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x413dd1
mov edx, dword [esi]
mov ecx, edx
mov eax, dword [ebp - 4]
sub ecx, eax
cmp dword [ebp - 0xc], ecx
jne 0x413dd1
sub edx, eax
add dword [ebp - 8], edx
add ebx, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ea1
lea eax, [ecx + 1]
push 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x413dd1
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
je 0x413e61
cmp dword [esi], edi
jb 0x413e97
mov eax, edi
sub eax, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00410cd7
add esp, 0xc
cmp eax, 0xffffffff
je 0x413dd1
cmp eax, dword [ebp - 0xc]
jne 0x413dd1
add ebx, eax
cmp dword [esi], edi
jae 0x413ea1
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
test esi, esi
jne 0x413df0
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x413ebf
mov dword [eax], 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x414ddc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x414ddc
cmp dword [ebp + 0x10], 0
je 0x414ddc
push 0x40
call fcn.00409565
mov esi, eax
add esp, 4
test esi, esi
je 0x414ddc
push 0
push 0
push edi
call fcn.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x414dd3
push 0x40
push esi
push edi
call fcn.00410cd7
add esp, 0xc
cmp eax, 0x40
jne 0x414dd3
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x414dbe
mov eax, dword [esi + 0x3c]
push 0
lea ecx, [eax + 0x58]
add eax, 0x18
push eax
push edi
mov dword [ebp - 8], ecx
call fcn.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x414dd3
push 4
lea eax, [ebp - 4]
push eax
push edi
call fcn.00410cd7
add esp, 0xc
cmp eax, 4
jne 0x414dd3
xor eax, eax
mov edx, 0x10b
cmp word [ebp - 4], dx
push esi
setne al
dec eax
and eax, 0xfffffff0
add eax, 0xa8
add eax, dword [esi + 0x3c]
mov dword [ebp + 8], eax
call fcn.00409246
mov esi, dword [ebp + 8]
push 0
push esi
push edi
call fcn.0040fc80
add esp, 0x10
cmp eax, 0xffffffff
je 0x414ddc
push 8
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00410cd7
add esp, 0xc
cmp eax, 8
jne 0x414ddc
push 0x14
call fcn.00409565
add esp, 4
test eax, eax
je 0x414ddc
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
add ecx, 3
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
push 0x14
mov dword [ebx], eax
call fcn.00409565
mov edx, eax
add esp, 4
test edx, edx
je 0x414ddc
mov dword [edx], esi
lea ecx, [esi + 7]
mov dword [edx + 4], 0
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov eax, dword [ebx]
mov dword [eax + 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x414dc7
push 0x14
call fcn.00409565
mov esi, eax
add esp, 4
test esi, esi
je 0x414ddc
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
dec ecx
add ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x414ddc
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00409246
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00409246
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416280
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x417730
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
mov dword [ebp - 0x60], eax
shr esi, 6
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
push edi
test esi, esi
je 0x41779b
mov edi, ecx
mov dword [ebp - 0x48], esi
mov edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00417010
add esp, 8
add edi, 0x40
sub esi, 1
jne 0x417780
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov edi, ebx
shl eax, 6
and edi, 0x3f
add eax, ecx
push edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00406a30
mov eax, ebx
lea esi, [ebp - 0x44]
and eax, 0x3f
add esp, 0xc
add esi, eax
lea eax, [ebx*8]
shr ebx, 0x1d
mov dword [ebp - 0x48], eax
cmp edi, 0x38
jae 0x4177e7
mov eax, 0x38
sub eax, edi
push eax
push 0
push esi
call fcn.00407790
add esp, 0xc
mov byte [esi], 0x80
jmp 0x417817
mov eax, 0x40
sub eax, edi
push eax
push 0
push esi
call fcn.00407790
lea eax, [ebp - 0x44]
mov byte [esi], 0x80
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417010
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00407790
add esp, 0x20
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 8], ebx
push eax
call fcn.00417010
mov ecx, dword [ebp - 0x60]
add esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405962
mov esp, ebp
pop ebp
ret
Function at 0x4029f4
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.004040a0
test esi, esi
jne 0x402a2a
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.00404190
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d60
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4031c8
Capabilities:
Query or enumerate registry value

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

Function at 0x403f24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49a048], 0
je 0x403f85
cmp word [0x49a21c], 0xd7b2
jne 0x403f4d
cmp dword [0x49a224], 0
jbe 0x403f4d
mov eax, 0x49a218
call dword [0x49a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x498070
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 0x403fac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x498034], 0
jne 0x403fa1
push 0
push 0x498068
push 0x498070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c54
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 0x405cba
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.00404310
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ca4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cc1
lea eax, [ebp - 0x10]
call fcn.004040a0
ret

Function at 0x40b434
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 0x40b46d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404190
jmp 0x40b476
mov eax, ebx
mov edx, esi
call fcn.004040f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bb28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9a0
mov eax, dword [0x499ce8]
cmp byte [eax], 0
je 0x40bba4
mov eax, dword [0x499acc]
call fcn.00402b90
call fcn.00402834
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.00408864
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 0x40bbec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbda
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x499a70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49a664]
call fcn.00405168
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 0x40c440
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 0x40c516
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404138
lea eax, [ebp - 8]
call fcn.004045b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404560
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c500
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4f9
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.00404560
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c528
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4e3
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 0x40c500
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c51d
lea eax, [ebp - 8]
call fcn.004040a0
ret

Function at 0x40ca28
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 0x40ca8c
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.00404310
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408378
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca93
lea eax, [ebp - 0xc]
call fcn.004040a0
ret

Function at 0x41ad54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49a884
cmp dword [edi], 0
jne 0x41add0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49a880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4983f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41ad2c
lea eax, [esi + 5]
call fcn.0041ad4c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ad4c
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 0x41ada5
mov dword [0x49a880], 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 0x41c38c
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 0x41c392
ret
Function at 0x41eae0
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 0x41eb31
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41eb18
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41eb08
jmp 0x41eb31
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 0x41eb19
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427c1c
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.00404550
xor eax, eax
push ebp
push 0x427d4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x427d1d
xor eax, eax
push ebp
push 0x427d16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404360
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x427ceb
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 0x427cda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404360
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404560
mov edx, ebx
pop ecx
call fcn.004028c8
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 0x427ce1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x499a0c]
mov dl, 1
mov eax, dword [0x407048]
call fcn.0040bcac
call fcn.00403adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d51
lea eax, [ebp - 4]
call fcn.004040a0
ret