joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401087
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
jmp 0x402360
sub esp, 0x10
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 4]
test eax, eax
jne 0x402383
push 1
push 0
push 0
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp + 4], eax
cmp dword [ebp + 4], 0xffffffff
jne 0x40239e
push str.m_hSocket
call fcn.00404256
add esp, 4
pop esi
pop ebp
add esp, 0x10
ret 0x10
mov esi, dword [esp + 0x1c]
push esi
push 0x418e74
call fcn.00404256
xor eax, eax
add esp, 8
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x402427
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4024b8
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push edi
lea edi, [esp + 0x10]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov ax, word [eax + 8]
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.addr_in.sin_addr___s_n
call fcn.00404256
add esp, 8
pop edi
lea esi, [ebp + 8]
xor edx, edx
mov eax, esi
mov cx, word [esp + 0x24]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov byte [esi], 8
mov byte [ebp + 9], dl
mov word [ebp + 0xa], dx
mov word [ebp + 0xc], cx
mov word [ebp + 0xe], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x28]
push 0x10
push esi
mov ecx, ebp
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
call fcn.00401064
mov ecx, dword [ebp + 4]
mov word [ebp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push 0
push 0x10
push esi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4024b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x4024a3
push str.Send_Timed_out__n
call fcn.00404256
add esp, 4
push 0x418e30
call fcn.00404256
add esp, 4
pop esi
pop ebp
add esp, 0x10
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gethostbyname___failed:__d_n
call fcn.00404256
add esp, 8
pop esi
pop ebp
add esp, 0x10
ret 0x10
Function at 0x4010aa
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x401810
sub esp, 0x41c
xor eax, eax
push ebx
mov dword [esp + 8], eax
mov ebx, ecx
mov dword [esp + 0xc], eax
push ebp
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], al
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x401863
mov ecx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x434]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp ebp, edx
jb 0x401872
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x41c
ret 0xc
mov eax, dword [ebx + 0xc]
lea edx, [ebp + ebp*4]
or ecx, 0xffffffff
lea edi, [eax + edx*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x438]
cmp eax, esi
jle 0x4018b2
mov byte [esp + 0x29], 1
jmp 0x4018b7
mov byte [esp + 0x2a], 1
movsx ecx, byte [esp + 0x2a]
movsx edx, byte [esp + 0x29]
movsx eax, byte [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x3c]
push str.ip_s_dn_d_up_d_dy_d_
push edx
call fcn.00404297
movsx eax, byte [esp + 0x42]
movsx ecx, byte [esp + 0x41]
movsx edx, byte [esp + 0x40]
add esp, 0x18
push esi
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push ebp
push eax
push str.ip_s_iInd_d_dn_d_up_d_dy_dm_iDlyTime__d__n
call fcn.00404256
mov eax, dword [ebx + 0x234]
add esp, 0x1c
xor edi, edi
test eax, eax
jle 0x40196f
mov esi, dword [esp + 0x430]
mov ebp, dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebx + 0x238]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp dword [eax + 0x408], esi
jne 0x401959
push esi
push 0x418d78
call fcn.00404256
add esp, 8
lea ecx, [esp + 0x2c]
push 0
push 0x400
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40197e
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x234]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x401929
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x41c
ret 0xc
push edi
mov ecx, ebx
call fcn.00401032
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x41c
ret 0xc
Function at 0x401f73
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x401f70
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edi, [esi + 0x18]
push 0
push 0x400
push edi
push edx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, dword [esi + 0x424]
inc edx
cmp eax, 0xffffffff
mov dword [esi + 0x424], edx
jne 0x401fdd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x401fca
push str.Recv_Timed_out__n
call fcn.00404256
add esp, 4
push 0x418dc4
call fcn.00404256
add esp, 4
pop edi
pop esi
add esp, 0x14
ret
test eax, eax
jle 0x401fea
push eax
push edi
mov ecx, esi
call fcn.004010dc
pop edi
pop esi
add esp, 0x14
ret
Function at 0x402bc0
Capabilities:
Check if file exists
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468376
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x485884]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov eax, dword [0x485884]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x402da3
push edi
call dword [0x469350]
test eax, eax
je 0x402da3
push ebx
lea esi, [esp + 0x1e0]
mov dword [esp + method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00407b00
mov ecx, edi
mov edi, esi
mov dword [esp + 0x3b8], ebx
call fcn.00406ab0
cmp dword [esp + 0x1e0], ebx
je 0x402d7c
push ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x18], vtable.CxImage.0
call fcn.00407b00
mov byte [esp + 0x3b8], 1
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1e8]
push 1
push eax
lea eax, [ebx + 0x18]
push ecx
mov ebx, esi
call fcn.00407e80
xor esi, esi
cmp dword [esp + 0x1ec], esi
jbe 0x402d3a
xor edi, edi
cmp dword [esp + 0x1e8], edi
jbe 0x402d2a
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x11], 0xff
mov byte [esp + 0x10], 0xff
mov byte [esp + 0x13], 0
xor ebx, ebx
jmp 0x402cc0
cmp dword [esp + 0x18], 0
je 0x402d1b
test edi, edi
jl 0x402d1b
test esi, esi
jl 0x402d1b
cmp edi, dword [esp + 0x20]
jge 0x402d1b
cmp esi, dword [esp + 0x24]
jge 0x402d1b
cmp dword [esp + 0x3c], 0
je 0x402cff
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004076e0
push esi
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.00407500
jmp 0x402d1b
mov eax, dword [esp + 0x44]
imul eax, esi
add eax, ebx
add eax, dword [esp + 0x48]
mov byte [eax], 0xff
add eax, 1
mov byte [eax], 0xff
add eax, 1
mov byte [eax], 0xff
add edi, 1
add ebx, 3
cmp edi, dword [esp + 0x1e8]
jb 0x402cc0
add esi, 1
cmp esi, dword [esp + 0x1ec]
jb 0x402c96
lea ecx, [esp + 0x1dc]
push ecx
lea eax, [esp + 0x18]
call fcn.004061d0
lea esi, [esp + 0x14]
call fcn.00406fe0
push eax
push 8
call dword [0x46955c]
mov byte [esp + 0x3b8], 0
mov ebx, 1
mov dword [esp + 0x14], vtable.CxImage.0
call fcn.00407c50
call fcn.00407ba0
mov dword [esp + 0x3b8], 0xffffffff
lea esi, [esp + 0x1dc]
mov dword [esp + method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00407c50
call fcn.00407ba0
mov eax, ebx
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.00448fb3
mov esp, ebp
pop ebp
ret 4
Function at 0x417510
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x417561
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x415e20
mov dword [eax + 4], 0x415f80
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00415c60
cmp byte [esi + 0x40], 0
je 0x41755a
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4175dc
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x4175cc
mov eax, dword [esi + 8]
test eax, eax
je 0x417586
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x4175c8
cmp eax, 2
je 0x4175cc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x417577
cmp eax, 3
je 0x4175ae
cmp eax, 1
jne 0x417577
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x417577
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x417577
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00417610
pop esi
ret
cmp eax, 0xcc
je 0x4175fe
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00417610
pop esi
ret
Function at 0x4223a0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4223a7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004223b0
Function at 0x4223b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4223e2
lea esp, [esp]
test cl, 3
je 0x4223e2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x470cc8]
add ecx, 1
sub esi, 1
jne 0x4223c0
cmp esi, 0x20
push ebx
push edi
jb 0x4225cc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4710c8]
xor edx, dword [ebx*4 + 0x4714c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x470cc8]
add ecx, 4
xor edx, dword [eax*4 + 0x4718c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4710c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4714c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x470cc8]
add ecx, 4
xor eax, dword [edx*4 + 0x4718c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4710c8]
xor edx, dword [ebx*4 + 0x4714c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x470cc8]
xor edx, dword [eax*4 + 0x4718c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4710c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4714c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x470cc8]
xor eax, dword [edx*4 + 0x4718c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4710c8]
xor edx, dword [ebx*4 + 0x4714c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x470cc8]
xor edx, dword [eax*4 + 0x4718c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4710c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4714c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x470cc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4718c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4710c8]
xor edx, dword [ebx*4 + 0x4714c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x470cc8]
add ecx, 4
xor edx, dword [eax*4 + 0x4718c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4710c8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4714c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x470cc8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4718c8]
sub edi, 1
jne 0x4223f2
cmp esi, 4
jb 0x422619
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4710c8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4714c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x470cc8]
and eax, 0xff
xor edi, dword [eax*4 + 0x4718c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4225d6
test esi, esi
pop edi
pop ebx
je 0x42263d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x470cc8]
add ecx, 1
sub esi, 1
jne 0x422620
not eax
pop esi
ret
Function at 0x429360
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x429387
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x429393
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4294bc
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4293d8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4293f9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x429451
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x429430
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x429430
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x429416
cmp dword [esp + 0x10], 0
je 0x4294a1
mov eax, 1
lea edx, [ebp - 1]
jmp 0x429480
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x429480
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4293d0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x44b3a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44b3e5
cmp dword [ebp + 0x14], edi
je 0x44b3e5
cmp ecx, edi
jne 0x44b3ec
call fcn.0044cf28
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044a5f4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44b400
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44b421
cmp ebx, 0xffffffff
je 0x44b410
push ebx
push edi
push ecx
call fcn.0044e5f0
add esp, 0xc
cmp esi, edi
je 0x44b3cd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44b3cd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44b43d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44b444
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44b535
test word [esi + 0xc], 0x10c
je 0x44b498
mov eax, dword [esi + 4]
test eax, eax
je 0x44b498
jl 0x44b596
cmp ebx, eax
mov edi, ebx
jb 0x44b469
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44b53d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00448fc2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44b52d
cmp ebx, dword [ebp - 0xc]
jb 0x44b505
cmp dword [ebp - 0xc], 0
je 0x44b4c2
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x44b4b7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44b4be
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44b4cd
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x44b4cd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44b569
push eax
push dword [ebp - 8]
push esi
call fcn.00456840
pop ecx
push eax
call fcn.00459450
add esp, 0xc
test eax, eax
je 0x44b5a8
cmp eax, 0xffffffff
je 0x44b596
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44b52d
push esi
call fcn.00457f45
cmp eax, 0xffffffff
pop ecx
je 0x44b59a
cmp dword [ebp - 4], 0
je 0x44b569
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44b44c
mov eax, dword [ebp + 0x14]
jmp 0x44b3e7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b554
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044e5f0
add esp, 0xc
call fcn.0044cf28
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44b3dd
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b57f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044e5f0
add esp, 0xc
call fcn.0044cf28
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44b3dd
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44b3e7
or dword [esi + 0xc], 0x10
jmp 0x44b59a
Function at 0x402e5c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cf8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cf8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e9f
inc ebx
jmp 0x402e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ebc
lea eax, [ebp - 8]
call fcn.00404470
ret

Function at 0x402ec4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404470
test esi, esi
jne 0x402efb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404560
jmp 0x402f1c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cf8
mov dword [esp], eax
test esi, esi
je 0x402f1c
cmp dword [ebx], 0
je 0x402f1c
dec esi
jmp 0x402f03
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403504
Capabilities:
Query or enumerate registry value

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

Function at 0x404248
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e04c], 0
je 0x4042a9
cmp word [0x43e220], 0xd7b2
jne 0x404271
cmp dword [0x43e228], 0
jbe 0x404271
mov eax, 0x43e21c
call dword [0x43e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43c06c
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 0x4042d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c030], 0
jne 0x4042c5
push 0
push 0x43c064
push 0x43c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404424
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.00402ac4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x43e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043ec
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063f4
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 0x40645a
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.004046e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406444
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406461
lea eax, [ebp - 0x10]
call fcn.00404470
ret

Function at 0x4082dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x40830d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x408314
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x408345
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40b16c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40b1b4
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404560
jmp 0x40b1bf
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004044c4
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b1f6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40b1fc
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret