joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x62ada8
lea eax, [ebp - 0x268]
call fcn.0040eef0
xor eax, eax
push fcn.00463570
push ebp
push 0x414a60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4635d3
mov eax, 0x6722f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x46361b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x4635ef
clc
jmp 0x4635f6
bt dword [0x62a310], eax
jb 0x46360f
mov eax, ebp
call fcn.004636c0
test al, al
je 0x46360f
mov byte [ebp - 0x26c], 1
jmp 0x4636a0
mov byte [ebp - 0x26c], 0
jmp 0x4636a0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x5f5e00]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x4636a0
and esi, 0x400
je 0x4636a0
lea ebx, [ebp - 0x268]
mov edx, 0x62ada8
mov eax, ebx
call fcn.0040efb0
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00463230
test eax, eax
je 0x463674
sub eax, 1
je 0x46368c
jmp 0x463698
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00463590
mov byte [ebp - 0x26c], al
jmp 0x4636a0
mov byte [ebp - 0x26c], 1
jmp 0x4636a0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00463570
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4638b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4638bc
mov eax, 0x6722f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x463a00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004639f0
push ebp
push 0x414a60
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x463a70
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040bbf0
cmp ebx, 1
jle 0x463a60
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040b280
jmp 0x463a7b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408bc0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004639f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4646a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x673b60], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x6739c0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x6739d0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x6739e0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x6739f0], eax
mov edx, 0x673a01
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004037b0
lea eax, [ebp - 0x80]
call fcn.00404980
mov byte [0x673a00], al
mov eax, 0x62a3e0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x673b70], eax
test eax, eax
je 0x464740
mov eax, 0x62a3ec
push eax
push dword [0x673b70]
call sub.kernel32.dll_GetProcAddress
mov dword [0x673b60], eax
nop
cmp dword [0x6739d0], 6
jae 0x464754
mov dword [0x5f56c0], 0
nop
cmp dword [0x6739d0], 6
jb 0x464770
cmp dword [0x6739e0], 1
jb 0x464770
mov dword [0x5f56d0], 2
mov esp, ebp
pop ebp
ret
Function at 0x405950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4000]
push edi
or ebp, 0xffffffff
jmp 0x405972
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x405979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405968
mov eax, 1
add ebx, ebx
jne 0x40598b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405980
jne 0x40599c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405980
xor ecx, ecx
sub eax, 3
jb 0x4059b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x405a22
mov ebp, eax
add ebx, ebx
jne 0x4059bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4059c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4059ec
inc ecx
add ebx, ebx
jne 0x4059d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4059cd
jne 0x4059e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4059cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x405a0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4059fd
jmp 0x40596e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x405a0c
add edi, ecx
jmp 0x40596e
pop esi
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x405a6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ce0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d44]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x405a29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d48]
or eax, eax
je 0x405a65
mov dword [ebx], eax
add ebx, 4
jmp 0x405a46
call dword [esi + 0x5d58]
mov ebp, dword [esi + 0x5d4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x405a9f
sub esp, 0xffffff80
jmp 0x401b7f
Function at 0x40582a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40586c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00405880
lea eax, [ebx + 1]
cmp eax, 2
jb 0x405865
mov dword [esi], ebx
call fcn.0043e1e0
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00457860
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x409518
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
mov byte [ecx], 0
mov dword [ecx + 4], eax
push str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x40954b
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [esi]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40aebc
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov edx, ecx
add edi, esi
add edx, eax
test cl, cl
mov ecx, 4
cmovs edx, edi
cmovs eax, esi
sub edx, eax
cmp edx, ecx
jb 0x40af32
mov esi, 0xfffffffc
mov ebx, eax
lea ecx, [edx + esi]
and esi, ecx
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov dword [ebp - 0x10], esi
imul edi, dword [ebx], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
add edx, 0xfffffffc
add ebx, 4
mov esi, edi
shr esi, 0x18
xor esi, edi
imul esi, esi, 0x5bd1e995
xor ecx, esi
cmp edx, 3
ja 0x40aefe
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [esi + eax + 4]
sub edx, esi
jmp 0x40af34
mov ecx, edx
cmp edx, 1
je 0x40af55
cmp edx, 2
je 0x40af4c
cmp edx, 3
jne 0x40af60
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40b358
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, edx
movzx eax, cx
and edx, 0x1f
shr ecx, 0x10
shr esi, 5
mov dword [ebp - 0x10], edx
test esi, esi
je 0x40b48c
mov edx, esi
mov edi, esi
mov esi, 0xad
mov edi, 0xad
mov dword [ebp - 0x14], edx
movd xmm4, ecx
pxor xmm6, xmm6
mov dword [ebp - 0x18], ebx
cmp edx, esi
cmovb edi, edx
mov edx, eax
mov ecx, edi
imul edx, edi
movd xmm5, edx
shl ecx, 5
mov edx, edi
movdqu xmm1, xmmword [ebx]
movdqu xmm3, xmmword [ebx + 0x10]
movdqa xmm7, xmm6
pxor xmm2, xmm2
add ebx, 0x20
dec edx
paddd xmm5, xmm7
movdqa xmm0, xmm1
movdqa xmm6, xmm3
psadbw xmm0, xmm2
psadbw xmm6, xmm2
movdqa xmm2, xmmword [0x556fd0]
paddd xmm6, xmm0
movdqa xmm0, xmmword [0x556fc0]
paddd xmm6, xmm7
pmaddubsw xmm3, xmm2
movdqa xmm2, xmmword [0x556fb0]
pmaddwd xmm3, xmm0
paddd xmm4, xmm3
pmaddubsw xmm1, xmm2
pmaddwd xmm1, xmm0
paddd xmm4, xmm1
jne 0x40b3b4
pshufd xmm0, xmm6, 0xb1
pslld xmm5, 5
mov ebx, dword [ebp - 0x18]
mov edx, 0x80078071
paddd xmm0, xmm6
paddd xmm4, xmm5
pshufd xmm1, xmm0, 0x4e
paddd xmm1, xmm0
pshufd xmm0, xmm4, 0xb1
movd esi, xmm1
paddd xmm0, xmm4
add ebx, ecx
add esi, eax
pshufd xmm1, xmm0, 0x4e
mov eax, esi
paddd xmm1, xmm0
mul edx
movd ecx, xmm1
shr edx, 0xf
imul eax, edx, 0xfff1
mov edx, 0x80078071
sub esi, eax
mov eax, ecx
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
mov edx, dword [ebp - 0x14]
sub ecx, eax
mov eax, esi
sub edx, edi
jne 0x40b387
jmp 0x40b48e
mov esi, eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x40b561
cmp edx, 0x10
jb 0x40b531
movzx eax, byte [ebx]
mov edi, ebx
add esi, eax
movzx eax, byte [ebx + 1]
mov ebx, edx
movzx edx, byte [edi + 2]
add ecx, esi
add eax, esi
movzx esi, byte [edi + 0xd]
add ecx, eax
add edx, eax
movzx eax, byte [edi + 3]
add ecx, edx
add eax, edx
movzx edx, byte [edi + 4]
add ecx, eax
add edx, eax
movzx eax, byte [edi + 5]
add ecx, edx
add eax, edx
movzx edx, byte [edi + 6]
add ecx, eax
add edx, eax
movzx eax, byte [edi + 7]
add ecx, edx
add eax, edx
movzx edx, byte [edi + 8]
add ecx, eax
add edx, eax
movzx eax, byte [edi + 9]
add ecx, edx
add eax, edx
movzx edx, byte [edi + 0xa]
add ecx, eax
add edx, eax
movzx eax, byte [edi + 0xb]
add ecx, edx
add eax, edx
movzx edx, byte [edi + 0xc]
add ecx, eax
add edx, eax
add ecx, edx
add esi, edx
movzx edx, byte [edi + 0xe]
add ecx, esi
add edx, esi
movzx esi, byte [edi + 0xf]
add ecx, edx
add esi, edx
mov edx, ebx
add ecx, esi
add edx, 0xfffffff0
je 0x40b53e
add edi, 0x10
jmp 0x40b533
mov edi, ebx
movzx eax, byte [edi]
inc edi
add esi, eax
add ecx, esi
dec edx
jne 0x40b533
lea eax, [esi - 0xfff1]
cmp esi, 0xfff0
mov edx, 0x80078071
cmova esi, eax
mov eax, ecx
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
shl ecx, 0x10
or ecx, esi
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movd xmm0, dword [ebp + 0x10]
mov edi, 0x40
movdqu xmm3, xmmword [esi]
movdqu xmm4, xmmword [esi + 0x10]
movdqu xmm2, xmmword [esi + 0x20]
movdqu xmm1, xmmword [esi + 0x30]
lea eax, [edx - 0x40]
lea ecx, [esi + edi]
cmp eax, edi
pxor xmm0, xmm3
jb 0x40b66b
add edx, 0xffffff80
movdqa xmm5, xmmword [0x556ff0]
mov edi, edx
and edi, 0xffffffc0
lea ebx, [edi + 0x80]
movdqa xmm3, xmmword [0x556fe0]
movdqa xmm6, xmm0
movdqa xmm7, xmm0
movdqu xmm0, xmmword [ecx]
add eax, 0xffffffc0
pclmulqdq xmm7, xmm5, 0x11
pclmulqdq xmm6, xmm3, 0
pxor xmm0, xmm6
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm3, 0
movdqa xmm3, xmm4
movdqu xmm4, xmmword [ecx + 0x10]
pxor xmm0, xmm7
movdqa xmm7, xmm2
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm7, xmm5, 0x11
pxor xmm4, xmm6
movdqa xmm6, xmm2
movdqu xmm2, xmmword [ecx + 0x20]
pclmulqdq xmm6, xmmword [0x556fe0], 0
pxor xmm4, xmm3
movdqa xmm3, xmm1
pclmulqdq xmm3, xmmword [0x556fe0], 0
pxor xmm2, xmm6
movdqa xmm6, xmm1
movdqu xmm1, xmmword [ecx + 0x30]
add ecx, 0x40
cmp eax, 0x3f
pclmulqdq xmm6, xmm5, 0x11
pxor xmm2, xmm7
pxor xmm1, xmm3
pxor xmm1, xmm6
ja 0x40b5c1
sub edx, edi
add esi, ebx
mov eax, edx
mov ecx, esi
movdqa xmm5, xmmword [0x557010]
movdqa xmm3, xmmword [0x557000]
movdqa xmm6, xmm0
cmp eax, 0x10
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm6, xmm3, 0
pxor xmm0, xmm4
pxor xmm0, xmm6
movdqa xmm4, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm4, xmm3, 0
pxor xmm0, xmm2
pxor xmm0, xmm4
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm2, xmm3, 0
pxor xmm0, xmm1
pxor xmm0, xmm2
jb 0x40b6ef
movdqu xmm1, xmmword [ecx]
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
add eax, 0xfffffff0
add ecx, 0x10
pclmulqdq xmm2, xmm3, 0
cmp eax, 0xf
pxor xmm0, xmm1
pxor xmm0, xmm2
ja 0x40b6c8
movdqa xmm1, xmmword [0x557010]
pxor xmm2, xmm2
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
movss xmm2, xmm0
psrldq xmm0, 4
pclmulqdq xmm2, xmmword [0x557020], 0
pxor xmm2, xmm0
pxor xmm0, xmm0
movss xmm0, xmm2
pclmulqdq xmm0, xmmword [0x557030], 0x10
pblendw xmm0, xmm1, 0xfc
pclmulqdq xmm0, xmmword [0x557040], 0
pxor xmm0, xmm2
pextrd eax, xmm0, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ea30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edx, dword [ecx + 8]
cmp edx, 0xffffffff
je 0x40ea4e
mov eax, dword [ecx + 4]
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, eax
not ecx
cmp ecx, edi
jae 0x40ea59
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov bl, 1
test edi, edi
je 0x40ea50
mov ecx, edx
sub ecx, eax
cmp ecx, edi
jae 0x40eaa2
test edx, edx
mov ecx, 0x100
cmovne ecx, edx
add eax, edi
cmp ecx, eax
jae 0x40ea8e
xor edi, edi
dec edi
mov edx, ecx
xor edx, edi
cmp ecx, edx
lea ecx, [ecx + ecx]
mov edx, edi
cmovb edx, ecx
cmp edx, eax
jb 0x40ea7a
jmp 0x40ea90
mov edx, ecx
mov ecx, esi
push edx
call fcn.0040e4a4
test al, al
je 0x40ea4e
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0xc]
add eax, dword [esi]
push edi
push dword [ebp + 8]
push eax
call fcn.0052acc0
add esp, 0xc
add dword [esi + 4], edi
jmp 0x40ea50

Function at 0x40f2a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 0xc]
mov ebx, 0x20
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push edi
push dword [ebp + 8]
call fcn.0053aa78
add esp, 0xc
mov esi, 6
cmp eax, ebx
jne 0x40f366
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
mov eax, esp
push eax
push dword [ebp + 8]
call fcn.00538552
add esp, 8
mov esi, 6
test eax, eax
jne 0x40f366
mov eax, 0x4944424d
mov ecx, 0x30314646
mov esi, 8
xor eax, dword [edi]
xor ecx, dword [edi + 4]
or ecx, eax
jne 0x40f366
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x40f366
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x40f366
sub eax, dword [edi + 0x18]
jb 0x40f366
cmp eax, dword [edi + 0x1c]
jb 0x40f366
setne al
movzx esi, al
shl esi, 3
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00527311
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f37b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
add edi, dword [ecx + 0x14]
add eax, dword [ebp + 0x10]
add edi, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
push edi
call fcn.00458860
add esp, 4
test eax, eax
je 0x40f3cf
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x40f3d4
push edi
push esi
push ebx
call fcn.0053aa78
add esp, 0xc
test eax, eax
js 0x40f3f4
sub edi, eax
add esi, eax
test eax, eax
jne 0x40f3ae
test edi, edi
je 0x40f3ae
jmp 0x40f3eb
xor eax, eax
inc eax
jmp 0x40f409
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
imul ecx, eax, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x40f411
mov dword [ebp - 0x10], 8
jmp 0x40f3fb
mov dword [ebp - 0x10], 6
push dword [ebp - 0x1c]
call fcn.004588a0
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
jle 0x40f50e
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1c]
mov esi, dword [ebp + 0x10]
mov ebx, edi
add ebx, eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], ebx
add eax, ebx
add ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
sub ecx, esi
cmp eax, ecx
ja 0x40f3eb
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x40f3eb
test eax, eax
je 0x40f488
xor eax, eax
mov cl, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x40f479
jmp 0x40f48a
xor ecx, ecx
push ecx
push ebx
push dword [ebp + 0x14]
call fcn.0053df4a
add esp, 0xc
cmp eax, dword [edi]
mov dword [ebp - 0x18], eax
jne 0x40f51a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 7
sub ecx, edx
cmp eax, ecx
ja 0x40f3eb
push eax
push edx
push dword [ebp + 0x14]
call fcn.0053df4a
add esp, 0xc
cmp eax, dword [edi + 4]
jne 0x40f3fb
add esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
sub edx, esi
cmp ecx, edx
jl 0x40f3eb
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x40f3eb
add edi, 0xc
add ebx, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
add esi, ecx
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x40f439
jmp 0x40f3fb
mov dword [ebp - 0x10], 0
jmp 0x40f3fb
mov dword [ebp - 0x10], 7
jmp 0x40f3fb
Function at 0x40f526
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov ecx, dword [0x5a05c4]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
lea esi, [esp + 0x10]
xor ecx, ebp
mov dword [esp + 0x68], ecx
push ebx
push esi
push ebx
push 0x40
push 0x8000
push eax
call fcn.0053a176
add esp, 0x18
cmp eax, 1
mov edi, 0
sbb edi, edi
not edi
or edi, dword [esi]
js 0x40f58d
lea eax, [esp + 0x48]
push eax
push edi
call fcn.0040f2a4
add esp, 8
xor ecx, ecx
dec ecx
test eax, eax
mov dword [esp + 4], ecx
je 0x40f597
mov dword [esp], eax
mov esi, ecx
jmp 0x40f6a4
mov esi, 6
jmp 0x40f6d7
xor ebx, ebx
push ebx
push esi
push ebx
push 0x40
push 0x8000
push dword [ebp + 8]
call fcn.0053a176
add esp, 0x18
mov ecx, dword [esp + 0x10]
cmp eax, 1
mov eax, esi
mov esi, 0
sbb esi, esi
not esi
or esi, ecx
js 0x40f5eb
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.00538552
add esp, 8
xor ebx, ebx
xor ecx, ecx
dec ecx
test eax, eax
mov dword [esp + 4], ecx
je 0x40f5f7
mov dword [esp], 6
jmp 0x40f6a0
mov dword [esp], 6
jmp 0x40f6a4
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x50]
jne 0x40f688
mov dword [esp], eax
push eax
call fcn.00458860
add esp, 4
test eax, eax
je 0x40f691
push dword [esp]
push eax
push esi
mov ebx, eax
call fcn.0053aa78
add esp, 0xc
cmp eax, dword [esp + 0x50]
jne 0x40f5df
mov esi, eax
call fcn.004745ae
mov ecx, ebx
mov edx, esi
call fcn.00474594
not eax
cmp dword [esp + 0x54], eax
jne 0x40f699
xor esi, esi
mov dword [esp + 8], ebx
lea ebx, [esp + 0x44]
push esi
push ebx
push esi
push 0x40
push 0x8301
push dword [ebp + 0x10]
call fcn.0053a176
add esp, 0x18
mov ecx, dword [ebx]
cmp eax, 1
sbb esi, esi
not esi
or esi, ecx
js 0x40f6ec
mov dword [esp + 4], ecx
push esi
mov ebx, dword [esp + 0xc]
push ebx
push edi
lea eax, [esp + 0x54]
push eax
call fcn.0040f37b
add esp, 0x10
jmp 0x40f694
mov dword [esp], 8
jmp 0x40f6a0
xor eax, eax
inc eax
mov dword [esp], eax
jmp 0x40f6a0
mov dword [esp], 4
mov esi, dword [esp + 0xc]
push ebx
call fcn.004588a0
add esp, 4
push edi
call fcn.00535c95
add esp, 4
test esi, esi
js 0x40f6c3
push esi
call fcn.00535c95
add esp, 4
mov eax, dword [esp + 4]
test eax, eax
js 0x40f6d4
push eax
call fcn.00535c95
add esp, 4
mov esi, dword [esp]
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00527311
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 8]
mov dword [esp + 4], esi
jmp 0x40f5df
Function at 0x4129f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
xor eax, eax
lea edi, [ebp - 0x1c]
mov ebx, 4
mov esi, ecx
dec eax
mov dword [edi], esp
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0x413780
mov eax, dword fs:[0]
mov dword [edi + 4], eax
lea eax, [edi + ebx]
mov dword fs:[0], eax
call fcn.00410866
mov eax, dword [ebp + 8]
mov dword [esi], vtable.std::__1::__stdinbuf_char_.0
lea ecx, [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
xor eax, eax
add ebx, esi
dec eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x34], 0
push ebx
call fcn.004220ec
mov eax, dword [esi]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [edi + 0xc], 0
push edx
call eax
lea ecx, [ebp - 0x20]
call fcn.00413c52
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x24]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x412aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea edi, [ebp - 0x1c]
mov ebx, 4
mov esi, ecx
mov dword [edi], esp
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 8], 0x413790
mov eax, dword fs:[0]
mov dword [edi + 4], eax
lea eax, [edi + ebx]
mov dword fs:[0], eax
call fcn.00410a68
mov eax, dword [ebp + 8]
mov dword [esi], vtable.std::__1::__stdinbuf_wchar_t_.0
add ebx, esi
lea ecx, [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
mov word [esi + 0x30], 0xffff
mov byte [esi + 0x32], 0
push ebx
call fcn.004220ec
mov eax, dword [esi]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [edi + 0xc], 0
push edx
call eax
lea ecx, [ebp - 0x20]
call fcn.00413c52
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x24]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4133d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x5a05c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.005402cd
add esp, 0x10
cmp eax, esi
jne 0x413440
cmp ebx, 1
je 0x4133e9
cmp ebx, 2
mov esi, 0xffffffff
je 0x413443
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.0053f2f6
add esp, 4
neg eax
sbb esi, esi
jmp 0x413443
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret