joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4066be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4066cd
pop dword [ebp - 0x40]
mov eax, 0x4066cd
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3bdc2
push 0
mov eax, 0x232a49e2
sub eax, 0x22e968c2
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xb0d45713
sub ecx, 0xb0d404f9
xor edx, edx
add edx, eax
mov edi, 0xa66b5ab7
add edi, 0x59d61d49
add edi, dword [ebp - 0x40]
mov esi, 0x659ee233
add esi, 0x237d8cea
add dword [ebp - 0x28], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x18], edx
sub ebx, esi
add dword [ebp - 0xc], edx
mov dword [edx], ebx
sub dword [ebp - 0x14], 0x14b2c4c
add edx, 4
add edi, 4
loop 0x406729
add eax, 0xaa12d243
sub eax, 0xaa119708
mov ebx, eax
add eax, 0xf307d372
sub eax, 0xf307d36d
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x24
mov dword [esp + 4], eax
jmp fcn.0040b9dc
Function at 0x4079a8
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x34
mov esi, dword [esp + 0x40]
mov dword [esp], str.USERPROFILE
call sub.msvcrt.dll_getenv
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [esp + 0x28], eax
mov dword [esi], eax
lock inc dword [eax]
setne dl
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], str.Desktop
mov dword [esp], ebx
call dword [method.QString.fromAscii_char_const__int_]
push eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [method.QString.append_QString_const_]
mov eax, dword [esp + 0x2c]
lock dec dword [eax]
setne dl
test dl, dl
je 0x407a38
mov eax, dword [esp + 0x28]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x407a2e
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
mov eax, esi
add esp, 0x34
pop ebx
pop esi
ret 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x407a13
Function at 0x40e058
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x34], 0xc000
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [method.QAbstractSocket.socketDescriptor___const]
mov dword [esp + 0x10], 4
lea edx, [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
mov eax, dword [sym.imp.QtCore4.dll_QByteArray::shared_null]
mov dword [esp + 0x38], eax
lock inc dword [eax]
setne dl
mov eax, dword [ebx + 0x34]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 8]
mov dword [esp + 0x28], eax
cdq
mov dword [esp + 0x2c], edx
mov dword [esp + 8], 8
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
lea edi, [esp + 0x38]
mov dword [esp], edi
mov esi, dword [method.QByteArray.append_char_const__int_]
call esi
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0040decc
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
mov dword [esp + 8], 8
lea eax, [ebx + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
lea esi, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040d3c0
push eax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QByteArray.append_QByteArray_const_]
mov eax, dword [esp + 0x3c]
lock dec dword [eax]
setne dl
test dl, dl
je 0x40e1b4
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [method.QIODevice.write_char_const__long_long_]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
cdq
add dword [ebx + 0x28], eax
adc dword [ebx + 0x2c], edx
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [esp], ebx
call fcn.0040d304
mov eax, dword [esp + 0x38]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x40e1ac
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.QtCore4.dll_qFree_void_]
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.QtCore4.dll_qFree_void_]
jmp 0x40e138
Function at 0x41c8b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x41c900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x41c91c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x41c9cc
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x41c9c0
cmp eax, 4
je 0x41c9c0
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x41c911
cmp eax, 4
je 0x41c911
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0041c8b4
Function at 0x41cc50
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0041cc2c
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
push ecx
test ebx, ebx
je 0x41ccc3
nop
mov al, byte [ebx]
cmp al, 0x20
je 0x41cc8a
cmp al, 9
jne 0x41cc90
inc ebx
jmp 0x41cc80
cmp al, 0x22
jne 0x41cca3
jmp 0x41ccb0
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x41cd08
cmp al, 9
je 0x41cd0c
test al, al
jne 0x41cc98
jmp 0x41ccbb
test al, al
je 0x41ccbb
inc ebx
mov al, byte [ebx]
cmp al, 0x22
jne 0x41ccac
nop
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x41ccb8
cmp al, 9
je 0x41ccb8
test byte [ebp - 0x30], 1
je 0x41cd00
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041cef4
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
leave
lea esp, [ecx - 4]
ret
mov esi, 0xa
jmp 0x41cccd
mov al, 0x20
jmp 0x41ccbb
mov al, 9
jmp 0x41ccbb
Function at 0x41cef4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
call sub.KERNEL32.dll_GetCommandLineW
lea ebx, [ebp - 0x10]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [method.QString.fromWCharArray_wchar_t_const__int_]
push edx
lea esi, [ebp - 0xc]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [method.QString.toLocal8Bit___const]
push eax
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x41cf44
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
mov dword [ebp - 0x14], 0
mov dword [esp + 4], 4
mov dword [esp], 0x30
call dword [method.QVectorData.allocate_int__int_]
mov ebx, eax
test eax, eax
je 0x41d08c
mov dword [ebp - 0x18], ebx
mov dword [ebx], 1
mov dword [ebx + 8], 8
mov dword [ebx + 4], 8
mov al, byte [ebx + 0xc]
or eax, 1
and eax, 0xfffffffd
mov byte [ebx + 0xc], al
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
add ebx, 0x10
mov dword [esp], ebx
call dword [sym.imp.QtCore4.dll_qMemSet_void__int__unsigned_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
dec edx
je 0x41d078
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [method.QByteArray.realloc_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
lea ebx, [ebp - 0x18]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.QtCore4.dll_qWinMain_HINSTANCE____HINSTANCE____char__int__int__QVector_char__
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
dec edx
je 0x41d014
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0041f874
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0040138c
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41d03c
lock dec dword [eax]
setne dl
test dl, dl
je 0x41d060
mov eax, dword [ebp - 0xc]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x41d055
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.QtCore4.dll_qFree_void_]
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret 0x10
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [method.QVectorData.free_QVectorData__int_]
jmp 0x41d03c
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
cmp edx, ecx
jne 0x41cfb5
jmp 0x41cfcb
call dword [sym.imp.QtCore4.dll_qBadAlloc__]
jmp 0x41cf6a
Function at 0x29a0798c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x29a0799b
pop dword [ebp - 0x4c]
mov eax, 0x38d2ea60
sub eax, 0xf3270c5
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x32f4ec2d
add dword [ebp - 0x5c], 0x1b5d591e
mov dword [ebp - 0x58], 0x247e9031
sub dword [ebp - 0x58], 0xf24b43ec
mov dword [ebp - 0x54], 0x5ddd01c5
sub dword [ebp - 0x54], 0x1190bd97
mov dword [ebp - 0x50], 0xe304b0f7
sub dword [ebp - 0x50], 0xe304b0f7
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x7e96abe8
add eax, 0xab0a94a4
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb2e946dc
add dword [ebp - 0x5c], 0xc189227a
mov dword [ebp - 0x58], 0x565cf06
add dword [ebp - 0x58], 0x3c06926f
mov dword [ebp - 0x54], 0xaef3f54d
add dword [ebp - 0x54], 0xb47b771f
mov dword [ebp - 0x50], 0xf34e4ad2
sub dword [ebp - 0x50], 0xf34e4ad2
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xd570e1fc
add eax, 0x54305e48
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d3fb
push 0
call eax
mov ecx, 0x6a725a36
add ecx, 0x958df973
xor edx, edx
add edx, eax
mov edi, 0x31394026
add edi, 0xf868dfda
add edi, dword [ebp - 0x4c]
mov esi, 0x33b6d1f0
add esi, 0x7049b29
sub dword [ebp - 0xc], 0xacd9e36e
mov ebx, dword [edi]
sub ebx, esi
xor dword [ebp - 0xc], eax
mov dword [edx], ebx
add dword [ebp - 0x30], eax
add edx, 4
add edi, 0x2a55ac9a
add edi, 0xd5aa536a
loop 0x29a07abf
add eax, 0x14177
mov ebx, eax
add eax, 0xe75ef6a5
sub eax, 0xe75ef6a0
mov ecx, 0x4be80ad5
sub ecx, 0x22480ad5
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x401222
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.00401163
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4032ed
push eax
sub edi, fcn.00402a87
push edi
push fcn.00402a87
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401299
mov eax, fcn.00402a87
mov ebx, esi
mov edx, edi
call fcn.00401163
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00401932
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.00402461
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00402a87
lea esp, [ebp + 0x82]
pop ebp
Function at 0x402b3c
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.004046a0
test esi, esi
jne 0x402b72
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404790
jmp 0x402b90
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f0
mov edi, eax
test esi, esi
je 0x402b90
cmp dword [ebx], 0
je 0x402b90
dec esi
jmp 0x402b79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4037b4
xor eax, eax
push ebp
push 0x4037ad
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 0x4037f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x4c1024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c1024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c704c], 0
je 0x404501
cmp word [0x4c7220], 0xd7b2
jne 0x4044c9
cmp dword [0x4c7228], 0
jbe 0x4044c9
mov eax, 0x4c721c
call dword [0x4c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c1074
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404528
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4c1034], 0
jne 0x40451d
push 0
push 0x4c106c
push 0x4c1074
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404654
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40461c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406650
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 0x4066b6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404910
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403198
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bd
lea eax, [ebp - 0x10]
call fcn.004046a0
ret

Function at 0x40bd84
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
test eax, eax
jle 0x40bdbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40bdc6
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bdd0
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
test eax, eax
jle 0x40bdf1
mov al, byte [esp]
jmp 0x40bdf3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c478
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2f0
mov eax, dword [0x4c6e08]
cmp byte [eax], 0
je 0x40c4f4
mov eax, dword [0x4c6a58]
call fcn.00402fa0
call fcn.0040291c
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.004094a0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c53c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40c52a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c69cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c7668]
call fcn.00405b48
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret
Function at 0x40cde4
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 0x40ceba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 8]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cea4
mov eax, ebx
call fcn.004027b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce9d
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.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cecc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce87
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 0x40cea4
mov eax, dword [ebp - 0x10]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cec1
lea eax, [ebp - 8]
call fcn.004046a0
ret

Function at 0x40d484
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 0x40d4e8
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404910
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408e1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4ef
lea eax, [ebp - 0xc]
call fcn.004046a0
ret

Function at 0x41f2d4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f12c
dec esi
jne 0x41f2f6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420438
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c7890
cmp dword [edi], 0
jne 0x4204b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4c788c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c1404
mov ecx, 2
call fcn.004029b0
mov edx, 0x420410
lea eax, [esi + 5]
call fcn.00420430
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420430
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 0x420489
mov dword [0x4c788c], 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 0x422268
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 0x42226e
ret

Function at 0x424778
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 0x4247c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4247b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4247a0
jmp 0x4247c9
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 0x4247b1
pop ebx
mov esp, ebp
pop ebp
ret