joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4583b4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00457c78
xor edx, edx
push ebp
push 0x458514
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4584fe
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4583fe
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x458408
call fcn.004035f0
jmp 0x45851b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412294
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x4584f3
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x4584b1
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4584a1
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00402fd4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045836c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x458524]
cmp dl, byte [eax + 0x28]
je 0x4584fa
call fcn.0040b1fc
jmp 0x4584fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004122a4
jmp 0x4584fa
cmp eax, ebx
jge 0x4584ca
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004122a4
jmp 0x458408
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00412294
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004122b0
cmp ebx, eax
jne 0x458408
push ebp
call fcn.0045836c
pop ecx
jmp 0x4584fa
push ebp
call fcn.0045836c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45851b
mov eax, dword [ebp - 4]
call fcn.00457c84
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fdec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403f54
xor eax, eax
push ebp
push 0x45fe88
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov byte [eax + 0x14], 0
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403da0
push eax
lea eax, [ebp - 4]
call fcn.00403f70
push eax
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x45fe4d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x45fe4d
xor eax, eax
jmp 0x45fe4f
mov al, 1
test al, al
jne 0x45fe6f
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x45ebb8]
call fcn.00460484
call fcn.00403550
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe8f
lea eax, [ebp - 4]
call fcn.00403b20
ret

Function at 0x45ff2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov byte [eax + 0x14], 1
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x45ff6e
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x45ff6e
xor eax, eax
jmp 0x45ff70
mov al, 1
test al, al
jne 0x45ff90
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x45ebb8]
call fcn.00460484
call fcn.00403550
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x479620
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x479709
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4796ba
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4813ac]
mov eax, dword [eax]
mov ecx, 0x479720
mov dl, 2
call fcn.0044ed04
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4796a8
call fcn.00415608
push 0x1388
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
sub eax, 0x102
je 0x47967f
jmp 0x4796a0
mov eax, dword [0x4813ac]
mov eax, dword [eax]
mov ecx, 0x47973c
xor edx, edx
call fcn.0044ed04
push 1
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
lea eax, [ebx + 0x14]
call fcn.0040c79c
mov byte [ebx + 0xc], 0
mov byte [ebx + 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4796f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479710
lea eax, [ebp - 4]
call fcn.00403b20
ret
Function at 0x401414
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dc34
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004092a6
add esp, 0xc
test eax, eax
je 0x401441
xor eax, eax
jmp 0x4014c1
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040937d
push dword [ebp - 4]
call fcn.0040959a
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040937d
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00409657
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409977
push dword [ebp - 4]
call fcn.00409a05
push ebx
lea ebx, [edi + esi]
call fcn.004030c7
push 0x41dc3c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004092a6
add esp, 0x44
test eax, eax
pop esi
jne 0x40143a
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409b9b
push dword [ebp - 4]
call fcn.00409a05
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret

Function at 0x40455d
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4046ef
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00416330
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41dc34
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004092a6
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x40474d
push 0x14
push edi
push esi
call fcn.00408c40
add esp, 0xc
xor eax, eax
jmp 0x4047e8
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.0040937d
push dword [ebp - 0x18]
call fcn.0040959a
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.0040937d
lea eax, [ebp - 0x80]
call fcn.0040455d
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409977
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4047bc
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00404588
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409977
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x404793
xor edi, edi
push dword [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.00404621
push dword [ebp - 0x18]
call fcn.00409a05
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], eax
pop ecx
pop ecx
pop ebx
jae 0x4047e5
push 0x14
push edi
push dword [ebp - 0x20]
jmp 0x40473e
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0xff0
leave
ret
Function at 0x404ec9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00416330
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0x41c1e8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x404f0f
xor eax, eax
jmp 0x404f5d
cmp dword [ebp - 0x78], ebx
jbe 0x404f4c
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
test eax, eax
mov dword [ebp - 0x80], eax
je 0x404f4c
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00409b9b
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
mov dword [0x424784], ebx
jb 0x404f14
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00409a05
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0xf90
leave
ret

Function at 0x40676e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x406779
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x40682b
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
sub eax, 8
dec edi
jne 0x406790
pop edi
test eax, eax
je 0x406844
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f910]
inc ecx
dec eax
jne 0x40682f
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x40684b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41f910]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f910]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4087ed
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor esi, esi
and word [ebp - 0x7c], si
push 0x206
lea eax, [ebp - 0x7a]
push esi
push eax
call fcn.00408c40
add esp, 0xc
test ebx, ebx
je 0x4088a3
and dword [ebp - 0x80], esi
mov esi, 0x41dd90
push esi
call fcn.00409c28
test eax, eax
pop ecx
jbe 0x40884c
push 0x41dc3c
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004092a6
add esp, 0xc
jmp 0x408880
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [fcn.0041c078]
push 0x41ff6c
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408d30
push 0x41dc3c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004092a6
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x80], 0
je 0x4088a3
push dword [ebp - 0x80]
push esi
push 0x200
push ebx
call fcn.00409b9b
push dword [ebp - 0x80]
call fcn.00409a05
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0x190
leave
ret

Function at 0x4088bb
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408991
push edi
mov edi, 0x41dc78
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408990
cmp dword [0x4230a0], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x408941
push esi
push eax
call dword [0x41c014]
push 0x41dc18
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
add esp, 0xc
jmp 0x408949
push eax
push esi
call dword [fcn.0041c078]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408990
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret
Function at 0x4089ab
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x72]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x74], bx
call fcn.00408c40
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x78], ebx
je 0x408a58
push edi
mov edi, 0x41ff6c
push edi
call fcn.00409c28
test eax, eax
pop ecx
je 0x408a57
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [fcn.0041c078]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408d30
push 0x41dc34
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004092a6
add esp, 0x18
cmp dword [ebp - 0x78], ebx
je 0x408a57
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x80]
call fcn.00409977
push dword [ebp - 0x78]
call fcn.00409a05
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
add ebp, 0x198
leave
ret
Function at 0x402b48
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.0040480c
test esi, esi
jne 0x402b7e
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.004048fc
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a5c
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40384c
Capabilities:
Query or enumerate registry value

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

Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd04c], 0
je 0x4046f1
cmp word [0x4cd220], 0xd7b2
jne 0x4046b9
cmp dword [0x4cd228], 0
jbe 0x4046b9
mov eax, 0x4cd21c
call dword [0x4cd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ca074
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 0x404718
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ca034], 0
jne 0x40470d
push 0
push 0x4ca06c
push 0x4ca074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406ad0
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 0x406b36
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.00404a7c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403410
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b3d
lea eax, [ebp - 0x10]
call fcn.0040480c
ret

Function at 0x40c630
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 0x40c669
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048fc
jmp 0x40c672
mov eax, ebx
mov edx, esi
call fcn.00404860
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb9c
mov eax, dword [0x4cc708]
cmp byte [eax], 0
je 0x40cda0
mov eax, dword [0x4cc3c0]
call fcn.00402fb0
call fcn.00402988
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.0040984c
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 0x40cde8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cdd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cc344]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cd668]
call fcn.00405fc8
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 0x40d6b4
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 0x40d78a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004048a4
lea eax, [ebp - 8]
call fcn.00404d1c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ccc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d774
mov eax, ebx
call fcn.00402820
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d76d
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.00404ccc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d757
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d79c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d757
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 0x40d774
mov eax, dword [ebp - 0x10]
call fcn.00402840
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d791
lea eax, [ebp - 8]
call fcn.0040480c
ret

Function at 0x40dc9c
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 0x40dd00
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.00404a7c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004092c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd07
lea eax, [ebp - 0xc]
call fcn.0040480c
ret

Function at 0x42506c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cd888
cmp dword [edi], 0
jne 0x4250e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cd884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ca654
mov ecx, 2
call fcn.00402a1c
mov edx, 0x425044
lea eax, [esi + 5]
call fcn.00425064
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425064
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 0x4250bd
mov dword [0x4cd884], 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 0x42673c
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 0x426742
ret
Function at 0x428eb4
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 0x428f05
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428eec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428edc
jmp 0x428f05
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 0x428eed
pop ebx
mov esp, ebp
pop ebp
ret