joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100490b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1003dfed
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1003dfed
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004912b
cmp word [ecx], dx
je 0x1004912b
mov eax, dword [0x100567ac]
push edi
dec eax
push eax
push 0x10056698
call fcn.1004904d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004919e
cmp word [eax], dx
je 0x1004919e
mov eax, dword [edi]
test eax, eax
je 0x1004914f
cmp word [eax], dx
je 0x1004914f
lea eax, [ebp - 0x10]
push eax
call fcn.10048a33
jmp 0x10049158
lea eax, [ebp - 0x10]
push eax
call fcn.10048ace
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100491c8
mov eax, dword [0x10056694]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10056388
call fcn.1004904d
add esp, 0xc
test al, al
je 0x100491c8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10049193
cmp word [eax], di
je 0x10049193
lea eax, [ebp - 0x10]
push eax
call fcn.10048a33
pop ecx
jmp 0x100491ca
lea eax, [ebp - 0x10]
push eax
call fcn.10048ace
jmp 0x10049190
mov eax, dword [edi]
test eax, eax
je 0x100491b5
cmp word [eax], dx
je 0x100491b5
lea eax, [ebp - 0x10]
push eax
call fcn.100489e8
pop ecx
jmp 0x100491c8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10049293
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10048ed2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10049293
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10049293
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10049293
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10049220
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10040ca1
test ebx, ebx
je 0x1004928e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10040ca1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10049293
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10049293
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004c1e0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10049295
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ab5b
leave
ret
Function at 0x1004c4a3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004c41f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004c612
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004c612
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004c5c7
jg 0x1004c4ff
test eax, eax
je 0x1004c5bd
push 1
push 0x1000
call fcn.100406a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004c522
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004c5b4
push 0x8000
push ebx
call fcn.1004c34e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004c54b
jg 0x1004c546
cmp ecx, 0x1000
jb 0x1004c54b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10041932
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004c590
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004c546
jl 0x1004c577
test ecx, ecx
jne 0x1004c538
push dword [ebp - 0xc]
push ebx
call fcn.1004c34e
push esi
call fcn.10040700
add esp, 0xc
xor ebx, ebx
jmp 0x1004c620
cmp byte [edi + 0x24], 0
je 0x1004c5a7
cmp dword [edi + 0x20], 5
jne 0x1004c5a7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004c5b2
mov ebx, dword [edi + 0x18]
jmp 0x1004c5b4
xor ebx, ebx
push esi
call fcn.10040700
pop ecx
jmp 0x1004c620
test ecx, ecx
jg 0x1004c589
jl 0x1004c5c7
test eax, eax
jae 0x1004c589
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003db65
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004c5e7
cmp byte [edi + 0x1c], 0
je 0x1004c589
jmp 0x1004c618
push ebx
call fcn.10046e9c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004c589
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004c620
cmp byte [edi + 0x1c], 0
je 0x1004c61d
mov ebx, dword [edi + 0x18]
jmp 0x1004c620
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003db65
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004e520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004e54d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004e54d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x30c0bd4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1be570f9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x419aec]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401020
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x10]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl ecx, 4
add ecx, dword [ebp - 8]
shr eax, 5
add eax, dword [ebp - 4]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x401040
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4010a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x419aec]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x4010c0
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shl ecx, 4
add ecx, dword [ebp - 8]
shr eax, 5
add eax, dword [ebp - 4]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl ecx, 4
add ecx, dword [ebp - 0x10]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x4010e2
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x419ae4]
push esi
mov esi, ecx
test eax, eax
je 0x401f6d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x419ae4], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x419ae4], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [0x419adc]
mov dword [ebp - 0x10], eax
movzx eax, word [0x41975c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x419ae4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401fd9
push 0
push 0x416368
push 0x416370
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403102
mov esp, ebp
pop ebp
ret
push 0x23
push 0x8001
push esi
push dword [0x419ae4]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403102
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
movzx eax, dx
mov ebx, ecx
mov dword [ebp - 0x108], ebx
push edi
mov edi, dword [ebp + 8]
sub eax, 1
je 0x4020f9
sub eax, 1
jne 0x4021e7
movzx eax, word [edi]
lea esi, [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x108], eax
mov al, byte [esi]
inc esi
movzx edi, al
lea eax, [ebp - 0x104]
push edi
push esi
push eax
call fcn.00404f70
add esp, 0xc
cmp edi, 0x100
jae 0x4021f8
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
mov byte [ebp + edi - 0x104], 0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
push 0
call edi
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.00403315
add esp, 4
push esi
mov esi, eax
lea eax, [ebp - 0x104]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
push 0
push 0x416368
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp word [ebp - 0x108], 0
jne 0x4020df
push 0
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
push esi
call fcn.00403310
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403102
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov eax, dword [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp esi, 1
jne 0x4021bb
mov al, byte [edi + 6]
add edi, 7
movzx esi, al
lea eax, [ebp - 0x104]
push esi
push edi
push eax
call fcn.00404f70
add esp, 0xc
cmp esi, 0x100
jae 0x4021f8
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x104]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [ebp + esi - 0x104], 0
call ebx
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.00403315
add esp, 4
mov edi, eax
lea eax, [ebp - 0x104]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
push 0
push 0x416368
push edi
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.00403310
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403102
mov esp, ebp
pop ebp
ret
push dword [0x41996c]
mov dword [0x419974], eax
push dword [0x419754]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x419754]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
mov esp, ebp
pop ebp
ret
call fcn.00403233
int3
Function at 0x402200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, bx
movzx esi, ax
push edi
add esi, 0x10
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
call fcn.004070c3
mov edi, eax
add esp, 4
test edi, edi
je 0x402346
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov dword [edi + 4], eax
mov word [edi + 8], 1
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xa], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0xc], ax
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push dword [ebp - 8]
mov word [edi + 0xe], ax
lea eax, [edi + 0x10]
push eax
call fcn.00404f70
lea edx, [esi + 0xa]
mov eax, 8
mov ecx, edx
and ecx, 7
sub eax, ecx
test ecx, ecx
cmove eax, ecx
add eax, edx
mov dword [ebp + 8], eax
add eax, 0x12
push eax
call fcn.004070c3
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402346
lea eax, [ebp + 8]
mov edx, esi
push eax
lea ecx, [ebx + 0x12]
push ecx
push ecx
mov ecx, edi
call fcn.00401140
mov esi, dword [ebp + 8]
push edi
add esi, 0x12
call fcn.004070a8
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_htonl]
push 0x74
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
mov word [ebx + 4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov word [ebx + 6], ax
call edi
push 0
mov dword [ebx + 8], eax
call edi
mov dword [ebx + 0xc], eax
mov edi, ebx
mov word [ebx + 0x10], 1
test esi, esi
jle 0x40233d
push 0
push esi
push edi
push dword [0x419ae4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40233d
sub esi, eax
add edi, eax
test esi, esi
jg 0x402321
push ebx
call fcn.004070a8
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004100f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x100c], ecx
sub eax, 1
jne 0x402606
push ebx
push esi
push eax
lea ebx, [ebp - 0x1004]
push 0x1000
mov eax, ebx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x402604
mov ecx, dword [0x419ad0]
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
push edi
test ecx, ecx
je 0x402596
cmp dword [0x419ad8], 4
jae 0x4024b5
mov ebx, dword [0x419ad8]
lea eax, [ebp - 0x1004]
mov edi, 4
sub edi, ebx
cmp esi, edi
cmovl edi, esi
push edi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.00404f70
add ebx, edi
add esp, 0xc
mov dword [0x419ad8], ebx
cmp ebx, 4
jb 0x402603
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [ebp - 0x1004]
mov ecx, dword [0x419ad0]
add ebx, edi
sub esi, edi
push dword [ecx]
call eax
mov edx, dword [0x419ad8]
mov ecx, eax
sub eax, edx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1008], eax
cmp ecx, dword [0x419ad4]
jle 0x40250a
push ecx
push dword [0x419ad0]
mov dword [0x419ad4], ecx
call fcn.0040709d
mov edi, eax
add esp, 8
test edi, edi
je 0x402603
mov eax, dword [ebp - 0x1008]
mov edx, dword [0x419ad8]
mov dword [0x419ad0], edi
jmp 0x402510
mov edi, dword [0x419ad0]
test eax, eax
js 0x402570
cmp esi, eax
cmovl eax, esi
push eax
mov dword [ebp - 0x1008], eax
lea eax, [edx + edi]
push ebx
push eax
call fcn.00404f70
mov ecx, dword [0x419ad8]
add esp, 0xc
add ecx, dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
mov dword [0x419ad8], ecx
cmp ecx, eax
jl 0x402603
mov ecx, dword [ebp - 0x100c]
mov edx, edi
push eax
call fcn.00402350
add ebx, dword [ebp - 0x1008]
add esp, 4
sub esi, dword [ebp - 0x1008]
mov edi, dword [0x419ad0]
push edi
call fcn.004070a8
add esp, 4
mov dword [0x419ad0], 0
mov dword [0x419ad8], 0
test esi, esi
jle 0x402603
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
cmp esi, 4
jae 0x4025a2
mov edi, 4
jmp 0x4025a8
push dword [ebx]
call eax
mov edi, eax
push edi
cmp edi, esi
jg 0x4025db
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00402350
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
sub esi, edi
add esp, 4
add ebx, edi
test esi, esi
jg 0x402596
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403102
mov esp, ebp
pop ebp
ret
mov dword [0x419ad4], edi
call fcn.004070c3
add esp, 4
test eax, eax
je 0x402603
push esi
push ebx
push eax
mov dword [0x419ad0], eax
call fcn.00404f70
add esp, 0xc
mov dword [0x419ad8], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403102
mov esp, ebp
pop ebp
ret
Function at 0x402620
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2230
call fcn.004100f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402641
sub ebx, edx
lea eax, [ebp - 0x2003]
push ebx
push ecx
push eax
mov byte [ebp - 0x2004], bl
call fcn.00404f70
lea edi, [ebp - 0x2003]
add esp, 0xc
add edi, ebx
mov ebx, esi
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402670
sub ebx, ecx
push ebx
mov byte [edi], bl
inc edi
push esi
push edi
call fcn.00404f70
add esp, 0xc
add edi, ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x4026f6
lea eax, [ebp - 0x2230]
mov dword [ebp - 0x2230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4026ef
nop dword [eax + eax]
lea eax, [ebp - 0x220c]
push eax
push str.GameApp.exe
call fcn.004063ef
add esp, 8
test eax, eax
lea eax, [ebp - 0x2230]
cmove esi, dword [ebp - 0x2228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4026c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi], eax
sub esp, 0x14
lea eax, [ebp - 0x2004]
mov ecx, 1
sub edi, eax
mov edx, eax
add edi, 4
push edi
call fcn.00402200
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00403102
mov esp, ebp
pop ebp
ret
Function at 0x403a53
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403a92
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403a92
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403a92
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403a92
cmp dword [ecx + 0x74], 0xe
jbe 0x403a92
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409598
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4095e3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00409733
test al, al
jne 0x4095dd
sub edx, 2
cmp edx, edi
jne 0x4095c3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x409605
lea eax, [edi + 2]
cmp edx, eax
je 0x409605
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004094e4
add esp, 0x10
jmp 0x4096ff
push esi
lea ecx, [ebp - 0x255]
call fcn.00409733
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409648
push dword [ebp - 0x25c]
jmp 0x4095f5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x409685
cmp word [ebp - 0x226], 0
je 0x4096a6
cmp word [ebp - 0x226], ax
jne 0x409685
cmp word [ebp - 0x224], 0
je 0x4096a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004094e4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4096f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40965f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4096da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4096ff
push 0x409314
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040c350
add esp, 0x10
jmp 0x4096cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret

Function at 0x40b312
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41334c
push 0x413344
push str.FlsAlloc
push 0x1f
call fcn.0040b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b346
push dword [ebp + 8]
mov ecx, esi
call dword [0x411254]
call esi
jmp 0x40b34c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40b390
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41335c
push 0x413354
push str.FlsGetValue
push 0x21
call fcn.0040b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b3c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x411254]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b3cf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413364
push 0x41335c
push str.FlsSetValue
push 0x22
call fcn.0040b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b409
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x411254]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41002d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41002d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret