joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467a38
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push edi
push ebx
sub esp, 0x10
mov edi, ecx
mov ebx, dword [esp + 0x1c]
cmp dword [edi + 4], 0
jl 0x467ab1
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, 2
mov word [esp], ax
push ebx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
jne 0x467a8d
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x467ab1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x467ab1
mov eax, dword [eax]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x20]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 2], ax
lea eax, [esp]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x467abb
xor eax, eax
add esp, 0x10
pop ebx
pop edi
ret 8
mov eax, 0xffffffff
add esp, 0x10
pop ebx
pop edi
ret 8

Function at 0x467ae8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496b8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], ecx
test edx, edx
jl 0x467bc5
mov dword [ebp - 0x24], 1
xor eax, eax
push eax
push eax
push edx
call dword [sym.imp.WSOCK32.dll_accept]
test eax, eax
jl 0x467bc5
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
push 0x2394
call fcn.00485d1c
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x467b6e
mov ecx, dword [ebp - 0x30]
call fcn.00467bd8
mov eax, dword [ebp - 0x30]
jmp 0x467b70
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x467ba9
mov edx, dword [ebp - 0x38]
mov dword [eax + 4], edx
push 4
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 2
push dword [ebp - 0x38]
call dword [sym.imp.WSOCK32.dll_shutdown]
push dword [ebp - 0x38]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
jmp 0x467b84
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x467ce8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push ebp
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x467d0f
push ebp
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x467d11
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x467d11
mov eax, dword [eax]
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x467dc0
Capabilities:
Send data
Send data on socket

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x467de8
test dword [0x4b63ec], 0xffffffff
jne 0x467eec
call fcn.00490ee4
jmp fcn.00467dc0
push edi
push esi
push ebp
push ebx
mov edi, ecx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0x2390]
lea edx, [ebp + eax]
cmp edx, 0x2000
jle 0x467e94
lea edx, [eax + edi + 0x68]
neg eax
add eax, 0x2000
push eax
push esi
push edx
call fcn.0049106c
add esp, 0xc
push 0
lea ebx, [edi + 0x68]
push 0x2000
push ebx
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov edx, dword [edi + 0x2390]
sub esi, edx
add esi, 0x2000
mov dword [edi + 0x2390], 0
mov eax, dword [esp + 0x18]
lea ebp, [eax + edx - 0x2000]
xor eax, eax
cmp ebp, 0x2000
jbe 0x467e97
push 0
push 0x2000
push esi
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x467ee1
add esi, 0x2000
add ebp, 0xffffe000
cmp ebp, 0x2000
ja 0x467e63
mov eax, dword [edi + 0x2390]
jmp 0x467e97
lea ebx, [edi + 0x68]
push ebp
lea eax, [eax + edi + 0x68]
push esi
push eax
call fcn.0049106c
add esp, 0xc
add ebp, dword [edi + 0x2390]
mov dword [edi + 0x2390], ebp
push 0
push ebp
push ebx
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jne 0x467ecc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov dword [edi + 0x2390], 0
mov eax, dword [esp + 0x18]
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8
push edi
push esi
push ebp
push ebx
mov edi, ecx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0x2390]
lea edx, [ebp + eax]
cmp edx, 0x2000
jle 0x467f98
lea edx, [eax + edi + 0x68]
neg eax
add eax, 0x2000
push eax
push esi
push edx
call fcn.0049106c
add esp, 0xc
lea ebx, [edi + 0x68]
push 0
push 0x2000
push ebx
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov edx, dword [edi + 0x2390]
sub esi, edx
add esi, 0x2000
mov eax, dword [esp + 0x18]
lea ebp, [eax + edx - 0x2000]
xor eax, eax
mov dword [edi + 0x2390], 0
cmp ebp, 0x2000
jbe 0x467f9b
push 0
push 0x2000
push esi
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x467fe5
add esi, 0x2000
add ebp, 0xffffe000
cmp ebp, 0x2000
ja 0x467f67
mov eax, dword [edi + 0x2390]
jmp 0x467f9b
lea ebx, [edi + 0x68]
lea eax, [eax + edi + 0x68]
push ebp
push esi
push eax
call fcn.0049106c
add esp, 0xc
add ebp, dword [edi + 0x2390]
mov dword [edi + 0x2390], ebp
push 0
push ebp
push ebx
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jne 0x467fd0
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov dword [edi + 0x2390], 0
mov eax, dword [esp + 0x18]
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8
Function at 0x4680e0
Capabilities:
Send data
Send data on socket

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x468108
test dword [0x4b63ec], 0xffffffff
jne 0x4681d8
call fcn.00490ee4
jmp fcn.004680e0
push edi
push esi
push ebp
push ebx
mov edi, ecx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x2390]
lea eax, [ebp + edx]
mov ebx, ebp
cmp eax, 0x2000
jle 0x4681b0
lea eax, [edx + edi + 0x68]
neg edx
add edx, 0x2000
push edx
push esi
push eax
call fcn.0049106c
add esp, 0xc
push 0
lea eax, [edi + 0x68]
push 0x2000
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [edi + 0x2390]
sub esi, eax
add esi, 0x2000
mov dword [edi + 0x2390], 0
lea ebx, [ebp + eax - 0x2000]
xor edx, edx
cmp ebx, 0x2000
jbe 0x4681b0
push 0
push 0x2000
push esi
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x4681ce
add esi, 0x2000
add ebx, 0xffffe000
cmp ebx, 0x2000
ja 0x468181
mov edx, dword [edi + 0x2390]
push ebx
lea eax, [edx + edi + 0x68]
push esi
push eax
call fcn.0049106c
add dword [edi + 0x2390], ebx
mov eax, ebp
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8
push edi
push esi
push ebp
push ebx
mov edi, ecx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x2390]
lea eax, [ebp + edx]
mov ebx, ebp
cmp eax, 0x2000
jle 0x468280
lea eax, [edx + edi + 0x68]
neg edx
add edx, 0x2000
push edx
push esi
push eax
call fcn.0049106c
add esp, 0xc
lea eax, [edi + 0x68]
push 0
push 0x2000
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [edi + 0x2390]
sub esi, eax
add esi, 0x2000
lea ebx, [ebp + eax - 0x2000]
xor edx, edx
mov dword [edi + 0x2390], 0
cmp ebx, 0x2000
jbe 0x468280
push 0
push 0x2000
push esi
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x46829e
add esi, 0x2000
add ebx, 0xffffe000
cmp ebx, 0x2000
ja 0x468251
mov edx, dword [edi + 0x2390]
lea eax, [edx + edi + 0x68]
push ebx
push esi
push eax
call fcn.0049106c
add dword [edi + 0x2390], ebx
mov eax, ebp
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret 8

Function at 0x468570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_recv]
ret 8

Function at 0x4688a0
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
mov edi, ecx
movzx eax, word [0x4b4b0c]
movzx eax, al
cmp eax, 2
jge 0x4688ba
xor eax, eax
pop ecx
pop edi
ret 4
mov eax, dword [esp + 0xc]
lea edx, [esp]
mov dword [esp], eax
push 4
push edx
push 0x1006
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4688b3
lea eax, [esp]
push 4
push eax
push 0x1005
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4688b3
mov eax, 0xffffffff
pop ecx
pop edi
ret 4
Function at 0x46b540
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x46b596
push 0x4a03d8
lea eax, [ebp - 0x2c]
push eax
call fcn.00485ce2
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push 4
push edx
push 0x46af3c
push dword [0x4b5fe4]
push 0
call fcn.00487f1a
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], edx
test eax, eax
je 0x46b652
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
push edi
call fcn.0046b674
pop ecx
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x46b639
mov eax, dword [ebp - 0x14]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x46b620
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a0378
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00485ce2
jmp 0x46b5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a0378
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00485ce2
jmp 0x46b5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a0378
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00485ce2
jmp 0x46b5c9
Function at 0x472cec
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
not eax
test ecx, ecx
je 0x472d13
test dl, 3
je 0x472d13
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x499cc0]
add ecx, 0xffffffff
jne 0x472cf4
cmp ecx, 0x20
jb 0x472efa
xor eax, dword [edx]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x49a8c0]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a4c0]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a0c0]
shr eax, 0x18
add ecx, 0xffffffe0
xor ebx, dword [eax*4 + 0x499cc0]
xor ebx, dword [edx + 4]
movzx eax, bl
mov eax, dword [eax*4 + 0x49a8c0]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x49a4c0]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x49a0c0]
xor eax, dword [ebx*4 + 0x499cc0]
xor eax, dword [edx + 8]
movzx ebx, al
mov esi, eax
shr esi, 8
mov ebx, dword [ebx*4 + 0x49a8c0]
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a4c0]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a0c0]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x499cc0]
xor ebx, dword [edx + 0xc]
movzx eax, bl
mov eax, dword [eax*4 + 0x49a8c0]
mov esi, ebx
shr esi, 8
and esi, 0xff
xor eax, dword [esi*4 + 0x49a4c0]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
shr ebx, 0x18
xor eax, dword [esi*4 + 0x49a0c0]
xor eax, dword [ebx*4 + 0x499cc0]
xor eax, dword [edx + 0x10]
movzx ebx, al
mov esi, dword [ebx*4 + 0x49a8c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x49a4c0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
shr eax, 0x18
xor esi, dword [ebx*4 + 0x49a0c0]
xor esi, dword [eax*4 + 0x499cc0]
xor esi, dword [edx + 0x14]
mov eax, esi
and eax, 0xff
mov ebx, esi
shr ebx, 8
mov eax, dword [eax*4 + 0x49a8c0]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x49a4c0]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
xor eax, dword [ebx*4 + 0x49a0c0]
shr esi, 0x18
xor eax, dword [esi*4 + 0x499cc0]
xor eax, dword [edx + 0x18]
movzx ebx, al
mov ebx, dword [ebx*4 + 0x49a8c0]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a4c0]
mov esi, eax
shr esi, 0x10
and esi, 0xff
shr eax, 0x18
xor ebx, dword [esi*4 + 0x49a0c0]
xor ebx, dword [eax*4 + 0x499cc0]
xor ebx, dword [edx + 0x1c]
movzx eax, bl
mov esi, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x49a8c0]
and esi, 0xff
xor eax, dword [esi*4 + 0x49a4c0]
mov esi, ebx
shr esi, 0x10
and esi, 0xff
xor eax, dword [esi*4 + 0x49a0c0]
shr ebx, 0x18
add edx, 0x20
xor eax, dword [ebx*4 + 0x499cc0]
cmp ecx, 0x20
jae 0x472d1c
cmp ecx, 4
jb 0x472f48
xor eax, dword [edx]
movzx esi, al
mov ebx, dword [esi*4 + 0x49a8c0]
mov esi, eax
shr esi, 8
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a4c0]
mov esi, eax
shr esi, 0x10
and esi, 0xff
xor ebx, dword [esi*4 + 0x49a0c0]
shr eax, 0x18
mov esi, eax
mov eax, ebx
xor eax, dword [esi*4 + 0x499cc0]
add ecx, 0xfffffffc
add edx, 4
cmp ecx, 4
jae 0x472eff
test ecx, ecx
je 0x472f66
movzx ebx, byte [edx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
add edx, 1
xor eax, dword [ebx*4 + 0x499cc0]
add ecx, 0xffffffff
jne 0x472f4c
not eax
pop ebx
pop esi
ret
Function at 0x48d368
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a2dc0
cmp edx, dword [eax]
je 0x48d38a
add eax, 8
inc ecx
cmp eax, 0x4a2e50
jl 0x48d37b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a2dc0]
jne 0x48d4b8
mov eax, dword [0x4b6088]
cmp eax, 1
je 0x48d492
test eax, eax
jne 0x48d3bb
cmp dword [0x4a0748], 1
je 0x48d492
cmp edx, 0xfc
je 0x48d4b8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48d3f2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0048e500
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0048bce0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x48d435
lea eax, [ebp - 0x1a4]
push eax
call fcn.0048bce0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x49cbb4
push edi
call fcn.004869b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0048e500
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0048e510
lea eax, [ebp - 0xa0]
push 0x49cb94
push eax
call fcn.0048e510
push dword [esi + 0x4a2dc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0048e510
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0048f61d
add esp, 0x2c
pop edi
jmp 0x48d4b8
lea eax, [ebp + 8]
lea esi, [esi + 0x4a2dc4]
push 0
push eax
push dword [esi]
call fcn.0048bce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4033b4
Capabilities:
Query or enumerate registry value

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

Function at 0x404150
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x4041b1
cmp word [0x463220], 0xd7b2
jne 0x404179
cmp dword [0x463228], 0
jbe 0x404179
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46106c
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 0x4041d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x4041cd
push 0
push 0x461064
push 0x46106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406200
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 0x406266
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.00404544
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f78
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406250
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626d
lea eax, [ebp - 0x10]
call fcn.004042d4
ret

Function at 0x40b3f0
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 0x40b429
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043c4
jmp 0x40b432
mov eax, ebx
mov edx, esi
call fcn.00404328
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40baf4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b95c
mov eax, dword [0x462338]
cmp byte [eax], 0
je 0x40bb70
mov eax, dword [0x462120]
call fcn.00402de4
call fcn.00402c7c
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.00408bac
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 0x40bbb8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bba6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4620cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.00405650
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 0x40c468
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 0x40c53e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040436c
lea eax, [ebp - 8]
call fcn.004047e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404794
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c528
mov eax, ebx
call fcn.00402af0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c521
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.00404794
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c50b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c550
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c50b
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 0x40c528
mov eax, dword [ebp - 0x10]
call fcn.00402b20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c545
lea eax, [ebp - 8]
call fcn.004042d4
ret

Function at 0x40caa4
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 0x40cb08
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.00404544
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086c0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb0f
lea eax, [ebp - 0xc]
call fcn.004042d4
ret

Function at 0x41e428
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x463888
cmp dword [edi], 0
jne 0x41e4a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x463884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4613fc
mov ecx, 2
call fcn.00402d10
mov edx, 0x41e400
lea eax, [esi + 5]
call fcn.0041e420
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e420
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 0x41e479
mov dword [0x463884], 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 0x41f9e0
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 0x41f9e6
ret
Function at 0x421e64
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 0x421eb5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421e9c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421e8c
jmp 0x421eb5
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 0x421e9d
pop ebx
mov esp, ebp
pop ebp
ret