joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54dae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + 0x260]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x54db6c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.004e25c0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x54db9f
push str.Received_too_short_packet
push ebx
call fcn.005245a0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x54dbc0
jmp dword [ecx*4 + 0x54dcfc]
cmp esi, 4
jle case.0x54dbc0.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x54dbc0.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00524890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54dc27
push 5
push edi
call fcn.0054e640
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.00533670
jmp 0x54dcc7
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [ebp - 0x8c], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0054e6c0
add esp, 8
cmp eax, esi
jae case.0x54dbc0.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.00524660
jmp 0x54dcc7
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0054d890
add esp, 0xc
test eax, eax
je case.0x54dbc0.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x684060
push ebx
call fcn.005245a0
add esp, 0xc
push ebx
call fcn.00533bb0
add esp, 4
test eax, eax
je 0x54db8c
push 5
push edi
call fcn.0054e640
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x54e640
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x54e650
jmp dword [edx*4 + 0x54e6a4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054e030
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054dd10
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0054e7f0
push str.TFTP_finished
push 0x684060
push ecx
call fcn.00524660
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x684060
push ecx
call fcn.005245a0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x560440
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x560473
push 0x2e
push edi
call fcn.004e38b0
add esp, 8
test eax, eax
je 0x560471
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x561190
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x7192f0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5611bd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x561207
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x56120d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56126b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x561230
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x561297
mov eax, dword [esi + 4]
push 1
push 0x6a18a4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6a18a5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x561270
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5612a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.00526440
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x7192f0]
mov edi, eax
add esp, 8
test edi, edi
je 0x561400
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x56131e
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [esi + 8]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp - 4]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x56137b
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp - 4], 1
jne 0x561340
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5613a7
mov eax, dword [esi + 4]
push 1
push 0x6a18a4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6a18a5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x561380
push dword [ebp + 0x18]
call fcn.00526440
mov ecx, dword [edi]
push eax
push dword [ebp + 0x14]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x5613cf
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x7192f4]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x666780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x666902
cmp dword [esi + 0x20], 0
je 0x666902
cmp dword [esi + 0x24], 0
je 0x666902
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x666902
cmp dword [edi], esi
jne 0x666902
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x6667e6
cmp eax, 0x39
je 0x6667e6
cmp eax, 0x45
je 0x6667e6
cmp eax, 0x49
je 0x6667e6
cmp eax, 0x5b
je 0x6667e6
cmp eax, 0x67
je 0x6667e6
cmp eax, 0x71
je 0x6667e6
cmp eax, 0x29a
jne 0x666902
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x66681b
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x66683d
call fcn.00563650
jmp 0x666842
call fcn.005633d0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.006681d0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004e30c0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x705aba]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x705ab8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x705abc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x705abe]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
pop edi
mov eax, 0xfffffffe
pop esi
ret
Function at 0x495e30
Capabilities:
Accept command line arguments

Disassembly:
push esi
call fcn.0044b610
jmp fcn.00bce139
Function at 0x402a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jb 0x402ad3
push edi
mov edi, dword [ebp + 0xc]
ja 0x402a9e
test edi, edi
je 0x402ad2
push ebx
mov ebx, dword [ebp - 4]
push esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp + 0x18]
and ecx, 7
shl ecx, 3
call fcn.0042c680
mov ecx, dword [ebp + 8]
xor byte [esi + ecx], al
add esi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0x10]
jb 0x402aa6
ja 0x402ad0
cmp esi, edi
jb 0x402aa6
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40da40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40da71
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40da60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x437720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e26d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ba094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov edx, 2
test esi, esi
mov eax, 1
cmove esi, eax
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00498421
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
push ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4377ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4377ab
push str.boost::filesystem::current_path
push dword [ebp + 0xc]
push eax
call fcn.0043e9d0
add esp, 0xc
jmp 0x4377c0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4377c0
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov esi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
mov dword [esi], 0
lea edx, [ecx + 2]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4377e1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.0040d6a0
push ebx
call fcn.0042c533
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a980
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov cl, al
push ebx
mov ebx, eax
shr ebx, 4
and bl, 1
and cl, 1
push esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0xb], cl
je 0x43aa2d
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x43a9af
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43aa2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43aac0
cmp eax, 3
je 0x43aac0
cmp eax, 0x7b
je 0x43aac0
cmp eax, 0xf
je 0x43aac0
cmp eax, 0x15
je 0x43aac0
cmp eax, 0x57
je 0x43aac0
cmp eax, 0xa1
je 0x43aac0
cmp eax, 0x35
je 0x43aac0
cmp eax, 0x43
je 0x43aac0
push str.boost::filesystem::remove
push dword [esp + 0x1c]
push esi
push eax
call fcn.0043e960
add esp, 0x10
xor al, al
pop esi
pop ebx
pop ecx
ret
mov eax, esi
test bl, bl
jne 0x43aa44
cmp dword [esi + 0x14], 8
jb 0x43aa3b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43aa53
cmp dword [esi + 0x14], 8
jb 0x43aa4c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43aac6
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x43aabf
cmp edi, 3
je 0x43aabf
cmp edi, 0x7b
je 0x43aabf
cmp edi, 0xf
je 0x43aabf
cmp edi, 0x15
je 0x43aabf
cmp edi, 0x57
je 0x43aabf
cmp edi, 0xa1
je 0x43aabf
cmp edi, 0x35
je 0x43aabf
cmp edi, 0x43
je 0x43aabf
cmp byte [esp + 0xf], 0
je 0x43aaac
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43aaa1
mov eax, dword [esi]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.boost::filesystem::remove
push dword [esp + 0x20]
push esi
push edi
call fcn.0043e960
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
pop esi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x43b5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ba094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x14], 8
jb 0x43b611
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b631
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040d6a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x43b6c0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x43b6b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b776
push edx
push ecx
call fcn.0042c525
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x43b73c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x43b72c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43b6f1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b721
test esi, 0x400
jne 0x43b729
push esi
push edi
call fcn.00438940
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ebx], esi
jmp 0x43b758
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43b72c
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.004390e0
add esp, 0x10
jmp 0x43b758
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0043b2d0
add esp, 0x10
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c665
mov esp, ebp
pop ebp
ret
call fcn.0044e6cf
int3
Function at 0x43df50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eb58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ba094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0043e440
mov dword [edi], vtable.boost::filesystem::filesystem_error.0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
push 0x4c
mov byte [ebp - 4], 2
call fcn.0042c4f5
mov ecx, eax
add esp, 4
mov eax, 1
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 7
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0xf
lock xadd dword [ecx], eax
mov esi, dword [edi + 0x18]
mov dword [edi + 0x18], ecx
test esi, esi
je 0x43e229
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x43e229
mov ecx, dword [esi + 0x48]
cmp ecx, 0x10
jb 0x43e0bd
mov eax, dword [esi + 0x34]
inc ecx
mov byte [ebp - 4], 3
cmp ecx, 0x1000
jb 0x43e0b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43e23f
mov eax, edx
push ecx
push eax
call fcn.0042c525
add esp, 8
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov eax, dword [esi + 0x30]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x43e0e8
inc eax
lea ecx, [esi + 0x1c]
push eax
push dword [esi + 0x1c]
call fcn.004228fe
xor eax, eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x43e115
inc eax
lea ecx, [esi + 4]
push eax
push dword [esi + 4]
call fcn.004228fe
xor eax, eax
mov dword [esi + 0x14], 0
push 0x4c
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.0042c525
add esp, 8
jmp 0x43e229
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044e6cf
int3

Function at 0x47d84d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a6c9c
push 0x4a6c94
push str.FlsAlloc
push 0x1e
call fcn.0047d51d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47d881
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a01f4]
call esi
jmp 0x47d887
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x47d8cb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a6cac
push 0x4a6ca4
push str.FlsGetValue
push 0x20
call fcn.0047d51d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47d902
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a01f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x47f955
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047f53c

Function at 0x47fe83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042c6a0
mov eax, dword [0x4ba094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0047e2ad
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47fec5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x480021
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004988f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4bd278]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00481416
mov ecx, dword [esi*4 + 0x4bd278]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x48001a
cmp eax, dword [edi + ecx + 0x24]
jne 0x48001a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48001a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00481416
add esp, 0x14
test edx, edx
jl 0x48001a
jg 0x47ff90
test eax, eax
jb 0x48001a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48001a
jl 0x47ffaa
cmp dword [ebp - 0x1008], eax
ja 0x48001a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47ffc8
test ebx, ebx
je 0x480001
cmp ecx, edi
jae 0x480001
mov al, byte [ecx]
cmp al, 0xd
jne 0x47ffe2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47ffee
cmp byte [ecx + 1], 0xa
jne 0x47ffee
inc ecx
jmp 0x47ffee
movzx eax, al
movsx eax, byte [eax + 0x4ba438]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47ffc8
cmp edx, ebx
jne 0x47ffc8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48001f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c665
leave
ret