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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5140b2
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x51409c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x513f6f
lea ebp, [eax + 0xe]
jmp 0x513f7b
cmp eax, 0x17
jne 0x514029
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x514029
mov eax, dword [edi + 0x10]
test eax, eax
je 0x514029
cmp eax, ebp
jb 0x514029
push 0x20
call dword [0x600ab0]
mov esi, eax
add esp, 4
test esi, esi
je 0x514091
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x600ab0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x514080
push ebp
push dword [edi + 0x18]
push eax
call fcn.004c2cb0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x514015
push eax
call dword [0x600abc]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x514066
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x514025
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x513f62
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x514048
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x514098
push ebx
call fcn.00513ee0
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x600ab4]
push esi
call dword [0x600ab4]
add esp, 8
jmp 0x514038
push esi
mov ebp, 8
call dword [0x600ab4]
add esp, 4
jmp 0x514038
mov ebp, 8
jmp 0x514038
test ebx, ebx
jne 0x5140a8
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x514a10
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x514a2a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5b354c
push esi
call fcn.004f0560
add esp, 8
test eax, eax
je 0x514a72
test ebp, ebp
je 0x514a63
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x514a98
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x514a98
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x514b4f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514ab5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x600ab0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x514b45
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x514b45
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514ae7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514b00
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x514b10
test ebp, ebp
je 0x514b3c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x600ab4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x600ab4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x5181c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x600088]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004d9265
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x518225
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x518225
lea eax, [esp]
push eax
call dword [0x600abc]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ac0cf
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004ac0cf
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x51989c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00504840
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.00519460
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5199d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x150]
jne 0x519b20
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x519a0b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x519a0d
mov eax, ebx
cmp eax, edi
jae 0x519a21
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a21
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x519a8b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.00519560
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x519adf
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00504840
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.005198c0
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x519b1d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00504840
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x51af10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x600088]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x518]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x51af96
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.004c2cb0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x51afd1
push str.Received_too_short_packet
push ebx
call fcn.00504840
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ac0cf
add esp, 0x8c
ret
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x51aff2
jmp dword [ecx*4 + 0x51b118]
cmp edx, 4
jle case.0x51aff2.4
mov esi, dword [edi + 0x15c]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x51aff2.4
lea eax, [edx - 4]
push eax
lea eax, [esi + 4]
push eax
push 1
push ebp
call fcn.00504780
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51b050
push 5
push edi
call fcn.0051b9f0
add esp, 8
mov eax, esi
jmp 0x51afb8
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00511c70
jmp 0x51b0ec
mov eax, dword [edi + 0x15c]
lea esi, [edx - 4]
push esi
lea ecx, [eax + 4]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
push dword [esp + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
call fcn.0051ac00
add esp, 8
cmp eax, esi
jae case.0x51aff2.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.00504920
jmp 0x51b0ec
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x15c]
add eax, 2
push eax
push edi
call fcn.0051aca0
add esp, 0xc
test eax, eax
je case.0x51aff2.4
jmp 0x51afb8
push str.Internal_error:_Unexpected_packet
push 0x5cf1cc
push ebx
call fcn.00504840
add esp, 0xc
push ebp
call fcn.00512020
add esp, 4
test eax, eax
je 0x51afb6
push 5
push edi
call fcn.0051b9f0
add esp, 8
mov eax, 0x2a
jmp 0x51afb8
Function at 0x5357d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov esi, dword [eax]
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x5357e1
sub edx, ecx
mov eax, 0x811c9dc5
push edi
xor edi, edi
lea ecx, [edx + esi]
cmp esi, ecx
cmova edx, edi
test edx, edx
je 0x535813
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
inc edi
imul eax, ecx, 0x1000193
cmp edi, edx
jne 0x535800
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.0058e319
imul ecx, edx, 0x41a7
add esp, 8
imul eax, eax, 0xb14
pop edi
sub ecx, eax
jns 0x53583d
add ecx, 0x7fffffff
mov eax, dword [ebx + 0x1c]
pop esi
and eax, ecx
pop ebx
pop ebp
ret 4
Function at 0x548210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598d97
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055a5b0
mov dword [esi], eax
lea esi, [edi + 0x44]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055a5b0
mov dword [esi], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 4
mov dword [ecx + 0x10], 0
push 0
mov dword [ecx + 0x14], 0xf
push 0x5c28cc
mov byte [ecx], 0
call fcn.00403fdc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5499a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5499b0
sub ecx, edx
xor edi, edi
push ebx
xor ebx, ebx
mov eax, 0x811c9dc5
lea edx, [ecx + esi]
cmp esi, edx
cmova ecx, ebx
pop ebx
test ecx, ecx
je 0x5499e3
movzx edx, byte [esi]
lea esi, [esi + 1]
xor edx, eax
inc edi
imul eax, edx, 0x1000193
cmp edi, ecx
jne 0x5499d0
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.0058e319
imul eax, eax, 0xb14
add esp, 8
imul ecx, edx, 0x41a7
pop edi
pop esi
sub ecx, eax
lea eax, [ecx + 0x7fffffff]
js 0x549a10
mov eax, ecx
pop ebp
ret 4

Function at 0x56b8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x60bd64]
cmp eax, 2
je 0x56b904
mov dword [ebp - 0x18], 0x59f79c
mov dword [ebp - 0x14], 0x495fa0
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x60bd64
call fcn.00496e10
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.00496300
mov dword [esi + 0xc], 0
mov eax, dword [0x60bd60]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x24], 1
mov eax, dword [0x60bd60]
mov dword [esi + 0x1c], eax
mov eax, dword [0x60bd60]
mov dword [esi + 0x20], eax
mov eax, dword [0x60bd60]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x56bcc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x60bd64]
cmp eax, 2
je 0x56bd24
mov dword [ebp - 0x18], 0x59f79c
mov dword [ebp - 0x14], 0x495fa0
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x60bd64
call fcn.00496e10
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.00496300
mov dword [esi + 0xc], 0
mov eax, dword [0x60bd60]
mov dword [esi + 0x30], eax
mov eax, dword [0x60bd60]
mov dword [esi + 0x34], eax
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x56bd60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x600088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x60bd64]
cmp eax, 2
je 0x56bdc4
mov dword [ebp - 0x18], 0x59f79c
mov dword [ebp - 0x14], 0x495fa0
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x60bd64
call fcn.00496e10
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.00496300
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
mov eax, dword [0x60bd60]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movsd qword [esi + 0x38], xmm0
mov eax, dword [0x60bd60]
mov dword [esi + 0x40], eax
mov eax, dword [0x60bd60]
mov dword [esi + 0x44], eax
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x587c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x600088]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0047aec4
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x587d0f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
mov ecx, dword [ebp - 0x14]
je 0x587d08
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
mov ecx, dword [ebp - 0x14]
je 0x587d08
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x587d0f
mov edx, 0x5c2470
jmp 0x587d14
mov edx, 0x5c2468
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587d20
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004a368f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x587d9b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], 0
call edi
cmp eax, 2
je 0x587d8d
call edi
cmp eax, 0x12
je 0x587d8d
call edi
mov edi, eax
call fcn.00586cf0
mov dword [esi], edi
jmp 0x587e71
xor edi, edi
call fcn.00586cf0
mov dword [esi], edi
jmp 0x587e71
lea edx, [ebp - 0x264]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x587da4
sub edx, ecx
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x29c]
sar edx, 1
push edx
push eax
call fcn.00439493
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x587de4
mov dword [edi], 0
mov dword [ebx], 0
jmp 0x587e66
test al, 0x10
je 0x587df6
mov dword [edi], 3
mov dword [ebx], 3
jmp 0x587e02
mov dword [edi], 2
mov dword [ebx], 2
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587e20
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00439493
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.005887c0
add esp, 8
mov dword [edi + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00438657
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
call fcn.00586cf0
lea ecx, [ebp - 0x28]
mov dword [esi + 4], eax
call fcn.00438657
mov eax, esi
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.004ac0cf
mov esp, ebp
pop ebp
ret
Function at 0x5889d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x5889e3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x588a0b
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.005888c0
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x588a22
mov dword [edi], 0
call fcn.00586cf0
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x588a59
push esi
call fcn.00588580
add esp, 4
test al, al
je 0x588a4e
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x588ae0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
cmp eax, 1
jne 0x588b0a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x588b93
mov dword [esi], 0
call fcn.00586cf0
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
ret
cmp eax, 3
je 0x588b2b
cmp eax, 0xb
je 0x588b2b
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x588b22
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x588b40
mov esi, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x588b39
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x588b7a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x588b7a
cmp eax, 3
je 0x588b7a
cmp eax, 0x7b
je 0x588b7a
cmp eax, 0xf
je 0x588b7a
cmp eax, 0x15
je 0x588b7a
cmp eax, 0x57
je 0x588b7a
cmp eax, 0xa1
je 0x588b7a
cmp eax, 0x35
je 0x588b7a
call edi
jmp 0x588b7c
xor eax, eax
push str.boost::filesystem::remove
push dword [esp + 0x18]
push esi
push eax
call fcn.005884c0
add esp, 0x10
test al, al
je 0x588b98
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x58b190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d9b4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x600088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0057c0e0
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x58b26b
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac0cf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.0047a124
push eax
mov byte [ebp - 4], 4
call fcn.0047afe7
int3