joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cc8e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x5cca77
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5cca63
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5cc93e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5cc930
sub eax, edx
lea ecx, [eax + 1]
jmp 0x5cc940
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x5cc952
mov eax, 0x10
jmp 0x5cc960
cmp eax, 0x17
jne 0x5cca05
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x5cca05
mov edx, dword [esi + 0x10]
test edx, edx
je 0x5cca05
cmp edx, eax
jb 0x5cca05
add ecx, 0x20
add eax, ecx
push eax
call dword [0x8f7f4c]
mov edi, eax
add esp, 4
test edi, edi
je 0x5cca55
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00704c30
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x5cc9f3
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00704c30
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x5cca02
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x5cc920
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x5cca22
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x5cca5f
test ebx, ebx
je 0x5cca46
nop word [eax + eax]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x8f7f50]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x5cca30
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x5cca13
test ebx, ebx
jne 0x5cca6f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ccc70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5ccca2
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
push 2
call fcn.005cca80
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5cccca
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.005cca80
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5cce40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00715c5f
add esp, 0x18
test eax, eax
je 0x5cce62
cmp eax, 0xffffffff
jne 0x5cce64
xor eax, eax
pop ebp
ret

Function at 0x5cceb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x5ccf57
mov esi, dword [ebp + 0xc]
nop dword [eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.005b4aa0
add esp, 0xc
cmp eax, 4
jne 0x5ccf15
cmp byte [0x1030c14], 0
jne 0x5ccf20
push 2
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x5ccf59
mov eax, dword [ebp + 0x10]
jmp 0x5ccf3c
imul eax, dword [0x1030c10], 0x41c64e6d
add eax, 0x3039
mov dword [0x1030c10], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x5ccf4f
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x5ccf40
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x5cced0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5ccf60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
sub ebx, 1
je 0x5ccff8
mov esi, dword [ebp + 8]
push 4
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005b4aa0
add esp, 0xc
cmp eax, 4
je 0x5ccf92
test eax, eax
jne 0x5ccffd
jmp 0x5ccfd9
cmp byte [0x1030c14], 0
jne 0x5ccfbf
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x5ccfd9
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret
imul eax, dword [0x1030c10], 0x41c64e6d
add eax, 0x3039
mov dword [0x1030c10], eax
rol eax, 0x10
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xfffffffc
jae 0x5ccf78
xor edx, edx
mov ecx, 0x3e
div ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x5ccf78
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5cd010
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x88
mov eax, edx
and eax, 0xfffffffe
cmp eax, 0x100
jae 0x5cd103
test dl, 1
je 0x5cd103
push ebx
push esi
push edi
lea edi, [edx - 1]
mov ecx, 0x2b
shr edi, 1
lea esi, [ebp - 0x88]
mov dword [ebp - 8], edi
mov ebx, edi
je 0x5cd0e0
push 4
lea eax, [ebp - 4]
mov edi, 4
push eax
push dword [ebp + 8]
cmp ebx, edi
cmovb edi, ebx
call fcn.005b4aa0
add esp, 0xc
cmp eax, 4
jne 0x5cd098
cmp byte [0x1030c14], 0
jne 0x5cd0a3
push 2
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x5cd0fc
mov eax, dword [ebp - 4]
jmp 0x5cd0bf
imul eax, dword [0x1030c10], 0x41c64e6d
add eax, 0x3039
mov dword [0x1030c10], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
test edi, edi
je 0x5cd0d2
mov byte [esi], al
dec ebx
inc esi
shr eax, 8
sub edi, 1
jne 0x5cd0c3
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x5cd053
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov eax, ecx
test eax, eax
jne 0x5cd0fc
push edx
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.005d4b50
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2b
mov esp, ebp
pop ebp
ret
Function at 0x5d1ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x8f7f54]
mov edi, eax
add esp, 8
test edi, edi
je 0x5d1f4a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x5d1f66
cmp esi, ebx
je 0x5d1f66
cmp esi, 0x8000
ja 0x5d1f66
cmp esi, ebx
jb 0x5d1f5d
push esi
push edi
call dword [0x8f7f54]
mov edi, eax
add esp, 8
test edi, edi
jne 0x5d1f10
mov ebx, dword [ebp - 4]
push ebx
call dword [0x8f7f50]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x8f7f50]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d3980
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, 4
jb 0x5d3ac5
mov ebx, dword [ebp + 0xc]
sub esi, 2
inc ebx
push str.0123456789abcdefABCDEF:.
push ebx
call fcn.00722280
add esp, 8
cmp esi, eax
je 0x5d3a59
mov dword [ebp + 0x10], eax
add eax, ebx
mov dword [ebp - 4], eax
cmp byte [eax], 0x25
jne 0x5d3ac5
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x7a68cc
push esi
call fcn.0071a8f0
add esp, 0xc
test eax, eax
jne 0x5d39ec
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x5d39ec
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x5d3ac5
lea ecx, [ebp - 0x14]
sub ecx, esi
nop dword [eax + eax]
cmp al, 0x5d
je 0x5d3a15
cmp edi, 0xf
jge 0x5d3a15
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5d3a00
test edi, edi
je 0x5d3ac5
cmp byte [esi], 0x5d
jne 0x5d3ac5
lea eax, [ebp - 0x14]
mov byte [ebp + edi - 0x14], 0
push eax
call dword [0x8f7f58]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x5d3a4e
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [ebx + esi], 0
push eax
push ebx
lea edi, [ebx + esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5d3ac5
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x5d3ab9
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x5d3a90
sub edx, ecx
cmp edx, esi
jae 0x5d3ab9
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x5d3aa6
lea edi, [ebx + edx]
mov byte [edi + 1], al
mov byte [edi], 0x5d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x16
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d6de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push dword [ebp + 0xc]
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d6e65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5d6e30
mov dword [edi], 0x51
jmp 0x5d6e62
push 0x100
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.005a5cd0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.005bada0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x10]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.005baea0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x180
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1c4]
test dword [eax + 0x44], 0x800
jne 0x5d6f80
push 0x80
lea eax, [ebp - 0x80]
mov dword [ebp + 8], 0x80
push 0
push eax
call fcn.007051b0
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5d6f21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x180]
push 0x100
push eax
push esi
call fcn.005a5cd0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.005bada0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.005bc0d0
add esp, 0x10
test al, al
jne 0x5d6f80
push edi
call fcn.0070f6a2
mov esi, dword [eax]
call fcn.0070f6a2
mov edi, eax
lea eax, [ebp - 0x180]
push 0x100
push eax
push esi
call fcn.005a5cd0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005bada0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5dfb10
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.0053abf0
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 [0x8f7f4c]
mov edi, eax
add esp, 8
test edi, edi
je 0x5dfc70
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 0x5dfb8e
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 0x5dfbeb
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 0x5dfbb0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5dfc17
mov eax, dword [esi + 4]
push 1
push 0x7a8975
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x7a8976
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5dfbf0
push dword [ebp + 0x18]
call fcn.0053abf0
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 0x5dfc3f
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 [0x8f7f50]
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 0x5e3e00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x74f0dd
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x8f8344]
push ebx
cmp eax, 0xffffffff
jne 0x5e3e2d
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x5e3e39
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x5e3e8a
push esi
push edi
nop dword [eax]
cmp dword [ebx + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
jne 0x5e3e99
test esi, esi
jne 0x5e3ea0
push esi
call fcn.005e3f30
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x5e3e88
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x5e3ee0
nop dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x5e3ecd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x5e3ea0
mov edi, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov esi, dword [edi]
mov dword [ebp - 0x10], esi
cmp esi, edi
je 0x5e3e50
mov ebx, eax
lea ecx, [ebp - 0x10]
call fcn.004cde50
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x5e3f14
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x5e3f14
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
mov ecx, ebx
call fcn.005e3270
mov esi, dword [ebp - 0x10]
cmp esi, edi
jne 0x5e3ef8
mov ebx, dword [ebp - 0x14]
jmp 0x5e3e50

Function at 0x5e3fd0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x5e4030
push 0
push 0
call fcn.00715c5f
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5e3ff9
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x5e4017
cmp eax, 0xffffffff
je 0x5e4017
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x5e4a00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74f1dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
mov dword [ebp - 0x18], 0
call fcn.005e0840
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.005e6c00
add esp, 0xc
cmp dword [ebp - 0x20], 3
jne 0x5e4a6e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5e4a5d
mov dword [esi], 0
call fcn.005e0840
mov dword [esi + 4], eax
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.005e2850
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
je 0x5e4ae5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.005e6c00
add esp, 0xc
cmp dword [ebp - 0x20], 1
jne 0x5e4ae5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005e4a00
mov edi, dword [ebp - 0x18]
add esp, 8
test edi, edi
je 0x5e4ae5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5e4b86
mov eax, dword [ebp - 0x14]
mov dword [ecx], edi
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00484ba0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5e4aef
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x5e4b17
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5e4b11
mov dword [esi], 0
call fcn.005e0840
mov dword [esi + 4], eax
mov byte [ebp - 0xd], 1
jmp 0x5e4b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.005e0840
cmp edi, 0xb7
jne 0x5e4b56
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005e6c00
add esp, 0xc
cmp dword [eax], 3
jne 0x5e4b56
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5e4b67
mov dword [esi], 0
call fcn.005e0840
jmp 0x5e4b64
mov esi, dword [ebp + 0xc]
call fcn.005e0840
test esi, esi
je 0x5e4bc0
mov dword [esi], edi
mov dword [esi + 4], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x40]
call fcn.00484ba0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
push str.boost::filesystem::create_directories
call fcn.00483930
push esi
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x8c]
call fcn.005e45d0
push 0x840464
lea eax, [ebp - 0x8c]
push eax
call fcn.00704803
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004e94f0
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x58]
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.00483930
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x8c]
call fcn.005e45d0
push 0x840464
lea eax, [ebp - 0x8c]
push eax
call fcn.00704803
int3
Function at 0x5e4c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74f205
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00492550
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x5e4cc9
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x24]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x5e4cc2
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2f
je 0x5e4cc2
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x5e4cc9
mov edx, 0x760e3c
jmp 0x5e4cce
mov edx, 0x7a8c24
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e4cd3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.004a8660
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x28c]
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x5e4d4e
mov dword [ecx], 0
call fcn.005e0840
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
cmp eax, 2
je 0x5e4d3f
call esi
cmp eax, 0x12
je 0x5e4d3f
call esi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x5e4e5a
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x5e4e5a
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e4d57
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00486be0
mov eax, dword [ebp - 0x28c]
test eax, 0x400
je 0x5e4d9a
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
jmp 0x5e4e49
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x260]
mov edi, dword [ebp + 0x1c]
lea edx, [ecx + 2]
and eax, 0x10
or eax, 0x20
shr eax, 4
mov dword [esi], eax
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e4dd1
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00486be0
push dword [ebp - 0x28c]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.005e6130
mov edx, dword [ebp - 0x28]
add esp, 8
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x5e4e43
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5e4e39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e4e74
push edx
push ecx
call fcn.00516d60
add esp, 8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], 0
call fcn.005e0840
mov dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.00484ba0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0070f5b4
int3