joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbf56
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4bbf70
mov byte [eax], bl
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x4bbf7f
mov dword [ebp - 4], 3
test cl, 2
je 0x4bbf8b
mov dword [ebp - 4], 1
push 4
mov dword [ebp - 8], ecx
pop edx
and dword [ebp - 8], edx
je 0x4bbf99
mov dword [ebp - 4], edx
test cl, 8
je 0x4bbfa5
mov dword [ebp - 4], 2
test cl, 0x10
je 0x4bbfb1
mov dword [ebp - 4], 5
cmp dword [ebp - 4], ebx
jne 0x4bbfbd
xor eax, eax
jmp 0x4bc0c0
mov edi, 0x40000000
test cl, 0x40
je 0x4bbfc9
mov ebx, edi
test cl, cl
jns 0x4bbfcf
mov ebx, edx
test cl, 0x20
je 0x4bbfda
or ebx, 0x80000000
mov esi, 0x100
test ecx, 0x4000
je 0x4bbfe9
or ebx, esi
test ecx, 0x80000
je 0x4bbff7
or ebx, 0x20000000
mov eax, ecx
shr eax, 8
not eax
and eax, 1
test ecx, 0x200
jne 0x4bc00c
or eax, 2
test ecx, 0x10000
je 0x4bc016
or eax, edx
xor edx, edx
test ecx, 0x400
je 0x4bc022
mov edx, edi
test dword [ebp + 0xc], 0x800
je 0x4bc02d
or edx, esi
test dword [ebp + 0xc], 0x1000
je 0x4bc039
or edx, 2
test dword [ebp + 0xc], 0x2000
je 0x4bc048
or edx, 0x4000000
test dword [ebp + 0xc], 0x40000
je 0x4bc057
or edx, 0x2000000
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4bc062
mov ecx, dword [ecx]
push 0
push edx
push dword [ebp - 4]
push 0
push eax
push ebx
push ecx
call dword [0x2a2d528]
mov ebx, dword [ebp + 0x10]
mov esi, dword [0x2a2d474]
mov edi, eax
test ebx, ebx
je 0x4bc0a4
cmp edi, 0xffffffff
je 0x4bc0a4
cmp dword [ebp - 8], 0
je 0x4bc09b
call esi
cmp eax, 0xb7
setne al
mov byte [ebx], al
jmp 0x4bc0a4
test byte [ebp + 0xc], 0xa
je 0x4bc0a4
mov byte [ebx], 1
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4bc0be
cmp edi, 0xffffffff
je 0x4bc0b5
and dword [ebx], 0
jmp 0x4bc0be
call esi
call 0x8dd18e
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000158d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f248]
jne 0x10001597
repz ret
jmp fcn.10005a68

Function at 0x10007674
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002f380]
je 0x1000768f
inc edi
cmp edi, 0x17
jb 0x10007680
cmp edi, 0x17
jae 0x1000780f
push ebp
push 3
call fcn.1000b92a
cmp eax, 1
pop ecx
je 0x100077db
push 3
call fcn.1000b92a
test eax, eax
pop ecx
jne 0x100076c3
cmp dword [0x1005e2e0], 1
je 0x100077db
cmp ebx, 0xfc
je 0x1000780e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1005e7c0
push ebp
call fcn.1000b8c5
add esp, 0xc
test eax, eax
je 0x100076f9
push esi
push esi
push esi
push esi
push esi
call fcn.10004f03
add esp, 0x14
push 0x104
mov esi, 0x1005e7d9
push esi
push 0
mov byte [0x1005e8dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000773d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000b8c5
add esp, 0xc
test eax, eax
je 0x1000773d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10004f03
add esp, 0x14
push esi
call fcn.10001c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10007782
push esi
call fcn.10001c90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1005ead4
push 0x10029f9c
sub ecx, eax
push ecx
push eax
call fcn.1000b812
add esp, 0x14
test eax, eax
je 0x10007782
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10004f03
add esp, 0x14
jmp 0x10007784
xor esi, esi
push 0x10029f98
push ebx
push ebp
call fcn.1000b7a1
add esp, 0xc
test eax, eax
je 0x100077a4
push esi
push esi
push esi
push esi
push esi
call fcn.10004f03
add esp, 0x14
push dword [edi*8 + 0x1002f384]
push ebx
push ebp
call fcn.1000b7a1
add esp, 0xc
test eax, eax
je 0x100077c6
push esi
push esi
push esi
push esi
push esi
call fcn.10004f03
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000b5e4
add esp, 0xc
jmp 0x1000780e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000780e
cmp ebp, 0xffffffff
je 0x1000780e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002f384]
push dword [esi]
call fcn.10001c90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000b5e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100054dd
xor ebx, ebx
cmp dword [0x1005ec60], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000b6ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000b79a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000b79a
push eax
call fcn.1000546f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1005ec60], eax
call esi
push eax
call fcn.1000546f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1005ec64], eax
call esi
push eax
call fcn.1000546f
mov dword [0x1005ec68], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100072df
test eax, eax
pop ecx
pop ecx
je 0x1000b688
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004f03
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000b6ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000546f
cmp eax, ebx
pop ecx
mov dword [0x1005ec70], eax
je 0x1000b6ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000546f
pop ecx
mov dword [0x1005ec6c], eax
mov eax, dword [0x1005ec6c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000b73f
cmp dword [0x1005ec70], ecx
je 0x1000b73f
push eax
call fcn.100054e6
push dword [0x1005ec70]
mov esi, eax
call fcn.100054e6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000b73f
cmp edi, ebx
je 0x1000b73f
call esi
cmp eax, ebx
je 0x1000b70c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b70c
test byte [ebp - 0x18], 1
jne 0x1000b73f
lea eax, [ebp - 0x10]
push eax
call fcn.1000738e
test eax, eax
pop ecx
je 0x1000b727
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004f03
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000b736
or dword [ebp + 0x10], 0x200000
jmp 0x1000b77a
or dword [ebp + 0x10], 0x40000
jmp 0x1000b77a
mov eax, dword [0x1005ec64]
cmp eax, dword [ebp - 8]
je 0x1000b77a
push eax
call fcn.100054e6
cmp eax, ebx
pop ecx
je 0x1000b77a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000b77a
mov eax, dword [0x1005ec68]
cmp eax, dword [ebp - 8]
je 0x1000b77a
push eax
call fcn.100054e6
cmp eax, ebx
pop ecx
je 0x1000b77a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1005ec60]
call fcn.100054e6
cmp eax, ebx
pop ecx
je 0x1000b79a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b79c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10018580
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
jmp 0x1001bf0a
push esi
jmp 0x100ba0cf

Function at 0x100191d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
jmp 0x100b5de3
Function at 0x402470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x24]
lea eax, [eax + eax*2]
shl eax, 7
add eax, esi
cmp esi, eax
jae 0x4024a0
cmp dword [esi + 0x24], 0
je 0x4024a9
add esi, 0x180
cmp esi, eax
jb 0x402490
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x78
call fcn.00401170
mov dword [esi + 0x28], eax
test eax, eax
je 0x4024a0
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2c], 2
mov dword [esi + 0x24], 1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x10]
mov dword [esi + 0x18], eax
inc dword [ebx + 0x1c]
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [esi + 0xb4]
mov dword [ebp - 4], ecx
test eax, eax
je 0x402512
shr eax, 0x10
shl eax, 0xc
mov dword [ecx], eax
cmp eax, 0x1000
jae 0x40250b
mov dword [ecx], 0x1000
jmp 0x402518
cmp eax, 0x10000
jbe 0x402518
mov dword [ecx], 0x10000
mov edx, dword [esi + 0x28]
lea eax, [edx + 0x78]
cmp edx, eax
jae 0x402555
xor eax, eax
lea ecx, [edx + 0x2c]
mov dword [edx], eax
mov dword [edx + 0x26], eax
call fcn.004029b0
lea ecx, [edx + 0x34]
call fcn.004029b0
mov word [edx + 4], ax
xorps xmm0, xmm0
movups xmmword [edx + 6], xmm0
movups xmmword [edx + 0x16], xmm0
mov eax, dword [esi + 0x28]
add edx, 0x3c
add eax, 0x78
cmp edx, eax
jb 0x402522
movzx eax, word [esi + 0xe]
push eax
mov word [ebp - 0x38], 0xff82
call dword [sym.imp.WS2_32.dll_htons]
push dword [esi + 0xb0]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x34], ax
movzx eax, byte [esi + 0x15]
mov byte [ebp - 0x32], al
movzx eax, byte [esi + 0x14]
mov byte [ebp - 0x31], al
call edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
push dword [eax]
call edi
push 2
mov dword [ebp - 0x2c], eax
call edi
push dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
call edi
push dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
call edi
push dword [esi + 0x84]
mov dword [ebp - 0x20], eax
call edi
push dword [esi + 0x7c]
mov dword [ebp - 0x1c], eax
call edi
push dword [esi + 0x80]
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push 0
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call edi
push 0
push ecx
push 0
lea edx, [ebp - 0x38]
mov dword [ebp - 0xc], eax
mov ecx, esi
call fcn.004035a0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
xor esi, esi
mov edx, 8
mov ecx, esi
call fcn.00402ad0
shl eax, 0x18
lea ecx, [eax + eax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
mov edx, 0x20
cmovns ecx, eax
call fcn.00402ad0
mov dword [esi*4 + 0x41fc30], eax
inc esi
cmp esi, 0x100
jl 0x402b03
mov dword [0x420030], 1
pop esi
ret

Function at 0x4063e0
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x406406
cmp word [eax + 8], 2
jne 0x406406
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret
mov ecx, edi
mov edx, esi
pop edi
pop esi
jmp fcn.00406320

Function at 0x406490
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
mov esi, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4064cf
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x16]
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [esi + 4], ax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x406500
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x406510
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
dec edx
or esi, 0xffffffff
cmp edx, 8
ja case.0x40652e.8
jmp dword [edx*4 + 0x4065e0]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x4065c4
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
jmp 0x4065bd
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
dec eax
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x406620
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x406663
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
movzx eax, word [esi + 4]
push eax
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, esi
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0x10
test esi, esi
push eax
lea eax, [ebp - 0x18]
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x4066b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
Function at 0x4066d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0
mov edi, edx
mov dword [ebp - 0xc], 0x10
xor edx, edx
mov dword [ebp - 8], 0
push 0
test edi, edi
cmove eax, edx
test edi, edi
push eax
lea eax, [ebp - 0x20]
cmove eax, edx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push ecx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x406748
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x406736
sub eax, 0x13
jne 0x406751
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
test dword [ebp - 8], 0x8000
je 0x406764
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40677a
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x1e]
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 4], ax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop edi
pop esi
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x406790
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x10624dd3
push edi
mov edi, edx
mov dword [ebp - 0x224], 0
mul esi
mov ebx, ecx
mov dword [ebp - 0x11c], 0
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0x10], edx
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
test al, 1
je 0x4067f5
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
test al, 2
je 0x406809
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x40683f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
test eax, eax
je 0x406871
mov esi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x11c]
push eax
push ebx
call esi
test eax, eax
je 0x406860
or dword [edi], 1
lea eax, [ebp - 0x224]
push eax
push ebx
call esi
test eax, eax
je 0x406871
or dword [edi], 2
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x406e50
Capabilities:
Hash data using fnv

Disassembly:
mov al, byte [ecx]
test al, al
jne 0x406e59
mov eax, edx
ret
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
jmp fcn.00406e50
Function at 0x40b730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40b75c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x40b7de
jg 0x40b784
test esi, esi
je 0x40b7de
test ecx, ecx
jl 0x40b7d9
jg 0x40b78e
test eax, eax
je 0x40b7d9
cmp edi, ecx
jg 0x40b7a2
jl 0x40b798
cmp esi, eax
jae 0x40b7a2
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.0040dca0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, ecx
sub esi, ecx
mov dword [esp + 0x10], eax
sbb edi, dword [esp + 0x14]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [esp + 0x10]
jmp 0x40b7e1
mov eax, dword [ebp + 8]
jmp 0x40b7eb
mov eax, dword [ebp + 8]
test edi, edi
jl 0x40b805
jg 0x40b7eb
test esi, esi
je 0x40b805
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x40b805
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test eax, eax
jg 0x40b85f
jl 0x40b848
test esi, esi
jne 0x40b85f
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x38], 0
je 0x40b881
push eax
push esi
push ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b8c2
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.0040b950
mov ecx, edi
mov esi, dword [eax]
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
push ebx
call fcn.0040dca0
sub dword [ebp - 8], esi
add esp, 0xc
mov ecx, edi
add ebx, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x4c], 0
je 0x40b921
mov ecx, edi
call fcn.0040d030
mov ecx, dword [ebp - 8]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp ecx, 0xfff
jbe 0x40b90a
nop
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call eax
mov ecx, dword [ebp - 8]
add esp, 0x10
sub ecx, eax
add ebx, eax
mov dword [ebp - 8], ecx
cmp eax, 0xfff
jne 0x40b924
cmp ecx, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40b8e0
test ecx, ecx
je 0x40b924
push dword [edi + 0x4c]
push ecx
push 1
push ebx
call eax
mov ecx, dword [ebp - 8]
add esp, 0x10
sub ecx, eax
jmp 0x40b924
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
sub esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
sbb edx, 0
xor ecx, ebp
pop esi
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bcc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
call fcn.0040dc20
mov ebx, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
call fcn.0040dc50
add esp, 8
test al, al
je 0x40bd0c
lea ecx, [ebp + 8]
call fcn.0040dc30
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x40bd5d
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x40bd5d
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov esi, eax
lea eax, [ebp + 8]
push eax
call fcn.0040be20
add esp, 4
mov byte [esi], al
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x40be09
mov ecx, edi
call fcn.0040d030
mov esi, dword [edi + 0x38]
lea eax, [ebp + 8]
push eax
call fcn.0040be20
add esp, 4
test esi, esi
jne 0x40bd93
mov edx, dword [edi + 0x4c]
mov cl, al
call fcn.004083c0
test al, al
cmovne ebx, dword [ebp + 8]
jmp 0x40be09
mov byte [ebp - 0x25], al
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40bddc
sub eax, 1
je 0x40bddc
sub eax, 2
jne 0x40be09
mov edx, dword [edi + 0x4c]
mov cl, byte [ebp - 0x25]
call fcn.004083c0
test al, al
cmovne ebx, dword [ebp + 8]
jmp 0x40be09
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40bdfa
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40be09
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
jne 0x40be0b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 4