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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00626ba0
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
call fcn.00494580
mov ecx, dword [ebp + 0xc]
call fcn.004946f0
mov esi, eax
test esi, esi
je 0x537fe6
mov edx, dword [ebx + 4]
add edx, edx
cmp edx, dword [esi + 8]
jle 0x537e1a
mov ecx, esi
call fcn.0046e200
test eax, eax
je 0x537fe6
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x537f9e
mov edi, ecx
nop word [eax + eax]
mov eax, dword [ebx]
mov edx, dword [eax + edi*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + edi*8], edx
sub edi, 1
jns 0x537e30
mov eax, dword [ebx + 4]
xor edi, edi
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x537fc3
mov ecx, dword [esi]
lea ecx, [ecx + eax*4]
nop dword [eax]
cmp dword [ecx - 4], 0
lea ecx, [ecx - 4]
jne 0x537fbe
dec eax
test eax, eax
jg 0x537fb0
mov dword [esi + 4], eax
test eax, eax
jne 0x537fcc
mov dword [esi + 0xc], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.005377f0
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov ecx, dword [ebp + 0xc]
call fcn.00494680
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x583470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.00626ba0
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [eax + 0x64]
inc ebx
push edi
mov edi, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edi
test byte [eax + 0x30], 1
mov esi, dword [edi + 8]
je 0x5834ed
mov ecx, dword [ebp + 8]
lea eax, [ebx + ecx]
cmp eax, esi
ja 0x5834f1
add dword [edi + 0x14], ecx
sub esi, ecx
add dword [edi + 0x18], ecx
sub dword [edi + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
dec eax
add eax, esi
mov dword [ebp - 8], eax
mov al, byte [eax]
movzx edx, al
mov byte [ebp + 0xf], al
mov eax, dword [ecx + 0x3cc]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test dword [eax + 0x10], 0x200000
je 0x5834fa
sub esi, edx
mov eax, 1
dec esi
mov dword [edi + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, esi
jbe 0x5834b6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edx + ebx]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x58356e
mov ecx, dword [ebp - 4]
mov edx, ecx
mov esi, dword [ebp - 8]
shr edx, 0x1f
xor edi, edi
mov dword [ebp - 0x10], edx
sub ecx, edi
lea esi, [esi - 1]
shr ecx, 0x1f
mov eax, edi
shr eax, 0x1f
inc edi
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 0xf]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
mov ecx, dword [ebp - 4]
not edx
and ebx, edx
mov edx, dword [ebp - 0x10]
cmp edi, dword [ebp - 0xc]
jb 0x583530
mov edi, dword [ebp - 0x14]
mov edx, ecx
mov esi, dword [edi + 8]
not ebx
lea eax, [edx + 1]
movzx ecx, bl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [ebp + 0xc], ecx
not ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5835a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa0
call fcn.00626ba0
mov eax, dword [0x70a514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0xa0], ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], ecx
cmp edx, edi
jb 0x58378b
cmp edi, 0x40
ja 0x58378b
lea eax, [ebp - 0x84]
neg eax
lea ecx, [ebp - 0x84]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x9c], ecx
cmp edx, eax
jbe 0x583618
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
push esi
push edi
xor esi, esi
mov dword [ebp - 0x90], 0
push esi
push ecx
call fcn.00629cd0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [ebp - 0x94], esi
cmp ebx, dword [eax + 0xc]
jae 0x5836ef
mov ecx, ebx
sub ecx, dword [eax + 8]
mov dword [ebp - 0x88], ecx
mov edi, dword [ebp - 0x8c]
mov eax, ebx
xor eax, dword [ebp - 0x98]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebp - 0x8c]
neg edx
xor ecx, dword [eax + 8]
mov eax, ebx
xor eax, dword [edi + 8]
or ecx, eax
mov eax, edx
or eax, dword [ebp - 0x90]
xor ecx, ebx
and edx, dword [ebp - 0x94]
shr ecx, 0x1f
or esi, edx
mov edx, dword [ebp - 0x94]
neg ecx
and ecx, eax
mov eax, dword [edi + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90], ecx
mov al, byte [eax + ebx]
inc ebx
and al, cl
mov ecx, dword [ebp - 0x9c]
or byte [edx + ecx], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
mov eax, dword [ebp - 0x8c]
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp - 0x88]
inc ecx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x88], ecx
cmp ebx, dword [eax + 0xc]
jb 0x583650
mov dword [ebp - 0x88], 0
test edi, edi
je 0x583775
mov ecx, dword [ebp - 0x9c]
mov eax, esi
and eax, 0xffffffdf
mov bl, byte [eax + ecx]
mov eax, esi
or eax, 0x20
mov dl, byte [eax + ecx]
mov eax, esi
and eax, 0x20
inc esi
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [ebp - 0x90], eax
not eax
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x90]
and cl, dl
mov edx, dword [ebp - 0x88]
and al, bl
or al, cl
mov ecx, dword [ebp - 0xa0]
mov byte [ecx + edx], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
mov dword [ebp - 0x88], edx
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x583701
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00626a7a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00626a7a
mov esp, ebp
pop ebp
ret
Function at 0x5a3372
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x20], 0
je 0x5a338a
push 2
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [esi + 0x20], 0
pop esi
ret

Function at 0x5a3f75
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x651a61
call fcn.00626aba
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.005b7ea2
pop ecx
pop ecx
push 0x65a9c0
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x5a3fda
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5a3fda
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [edi + 0x10], eax
setne bl
cmp dword [ebp - 0x14], 0
je 0x5a3fe9
push dword [ebp - 0x14]
call fcn.0062d677
pop ecx
mov al, bl
call fcn.00626a88
ret 4

Function at 0x5a4536
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor eax, eax
push eax
push esi
push 0x5a1955
push eax
push eax
mov byte [esi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x7c], eax
pop esi
leave
ret
Function at 0x5a4afb
Capabilities:
Create pipe

Disassembly:
push 0x3c
mov eax, 0x651c04
call fcn.00626aed
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 4], ebx
jne 0x5a4ba1
call fcn.005b7b70
push eax
lea eax, [ebp - 0x28]
push str..pipe_
push eax
call fcn.005a01c7
push str._admin_proxy_pipe_in
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.005a015e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.005b7ea2
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.00448620
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00448620
push ebx
push ebx
push ebx
push ebx
push 0xff
push ebx
push 2
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x5a4ba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b7f8c
pop ecx
pop ecx
mov byte [ebp - 4], 3
jmp 0x5a4c29
cmp dword [esi + 8], 0xffffffff
jne 0x5a4c38
call fcn.005b7b70
push eax
lea eax, [ebp - 0x40]
push str..pipe_
push eax
call fcn.005a01c7
push str._admin_proxy_pipe_out
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.005a015e
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.005b7ea2
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00448620
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00448620
push ebx
push ebx
push ebx
push ebx
push 0xff
push ebx
push 1
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x5a4c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b7f8c
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.005b00e2
lea ecx, [ebp - 0x28]
call fcn.00448620
jmp 0x5a4c3a
mov bl, 1
cmp dword [ebp - 0x48], 0
je 0x5a4c49
push dword [ebp - 0x48]
call fcn.0062d677
pop ecx
mov al, bl
call fcn.00626a9c
ret
Function at 0x5a4cf9
Capabilities:
Connect pipe
Create process on windows
Create thread

Disassembly:
push 0x5c
mov eax, 0x651c84
call fcn.00626aed
mov esi, ecx
cmp byte [esi], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
je 0x5a4d2f
mov edi, str.AdministrativeProxy_is_already_running
push edi
call fcn.0062d730
pop ecx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00448260
mov al, 1
jmp 0x5a4eaa
cmp byte [esi + 0xc], 0
je 0x5a4d3c
xor al, al
jmp 0x5a4eaa
lea edi, [esi + 0x10]
call fcn.005a4afb
test al, al
jne 0x5a4d5f
mov esi, str.unable_to_listen_on_admin_proxy_pipes
push esi
call fcn.0062d730
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00448260
jmp 0x5a4d35
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x64]
call fcn.005b7ea2
pop ecx
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push ebx
push ebx
push ebx
push dword [ebp - 0x60]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x5a4dd4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005b75d6
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push str.ShellExecute_for_admin_proxy_failed__
push eax
call fcn.005a0191
add esp, 0x14
mov ecx, edi
push eax
call fcn.005a10d6
lea ecx, [ebp - 0x58]
call fcn.00448620
lea ecx, [ebp - 0x28]
call fcn.00448620
mov byte [esi + 0xc], 1
jmp 0x5a4e99
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x5a4e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005b7f8c
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push str.ConnectNamedPipe_for_admin_proxy_failed__
push eax
call fcn.005a0191
add esp, 0x14
mov ecx, edi
push eax
call fcn.005a10d6
lea ecx, [ebp - 0x28]
call fcn.00448620
lea ecx, [ebp - 0x58]
jmp 0x5a4e94
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x68]
push eax
push ebx
push esi
push 0x5a48e1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.005a4c51
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push str.got_adminStatus_from_admin_proxy__
push eax
call fcn.005a01c7
add esp, 0xc
mov ecx, edi
push eax
call fcn.005a10d6
lea ecx, [ebp - 0x28]
call fcn.00448620
push str.STATUS:ADMIN
lea ecx, [ebp - 0x40]
call fcn.005a498d
mov byte [esi], al
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00448620
cmp dword [ebp - 0x60], 0
je 0x5a4ea8
push dword [ebp - 0x60]
call fcn.0062d677
pop ecx
mov al, bl
call fcn.00626a9c
ret 4
Function at 0x5a50e9
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x651d28
call fcn.00626aba
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.005b7ea2
pop ecx
pop ecx
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x18]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], 0x1234
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x18], ebx
je 0x5a5150
push dword [ebp - 0x18]
call fcn.0062d677
pop ecx
call fcn.00626a88
ret 4
Function at 0x5ad923
Capabilities:
Get common file path

Disassembly:
push 0x3c
mov eax, 0x653059
call fcn.00626aed
push 0x208
push 0
mov dword [ebp - 0x44], 0x104
call fcn.0062d692
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
and dword [ebp - 4], 0
push 0
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5ad9a9
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005b8bc8
push str..exe
push eax
xor ebx, ebx
lea eax, [ebp - 0x28]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.005a015e
add esp, 0x14
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00448620
lea eax, [ebp - 0x28]
push eax
call fcn.005b5659
pop ecx
lea ecx, [ebp - 0x28]
test al, al
je 0x5ad9a4
call fcn.00448620
jmp 0x5ad9ab
call fcn.00448620
xor bl, bl
test esi, esi
je 0x5ad9b6
push esi
call fcn.0062d677
pop ecx
mov al, bl
call fcn.00626a9c
ret

Function at 0x5b0ee6
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x20], 0
je 0x5b0f25
push 2
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xb8]
mov byte [esi + 0x20], 0
test eax, eax
je 0x5b0f19
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [esi + 0xb8], 0
push dword [esi + 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x5b176e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [esi + 0xc8]
mov byte [esi + 0xe0], 1
mov byte [esi + 0x21], bl
mov dword [esi + 0x104], ebx
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 0x10
jb 0x5b1799
mov eax, dword [eax]
mov byte [eax], bl
lea eax, [esi + 0x24]
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 0x10
jb 0x5b17a9
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
lea ecx, [esi + 0xe4]
mov byte [eax], bl
call fcn.004485f0
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x10c]
cmp dword [eax + 0x10], ebx
je 0x5b17d0
push eax
mov ecx, edi
call fcn.004485f0
push dword [ebp + 8]
mov ecx, esi
call fcn.005b1351
cmp dword [esi + 0x11c], ebx
je 0x5b17f7
push edi
call fcn.005b5659
pop ecx
test al, al
je 0x5b17f7
push 1
push edi
call fcn.005b6ba6
pop ecx
pop ecx
lea eax, [ebp - 4]
mov byte [esi + 0x20], 1
push eax
push ebx
push esi
push 0x5b035e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x12c], eax
pop edi
cmp dword [esi + 0x150], ebx
jne 0x5b1825
cmp dword [esi + 0x154], ebx
je 0x5b182c
mov ecx, esi
call fcn.005b1923
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x5b18bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x11c], ebx
je 0x5b18eb
push edi
lea edi, [esi + 0x10c]
push edi
call fcn.005b5659
pop ecx
test al, al
je 0x5b18ea
push 1
push edi
call fcn.005b6ba6
pop ecx
pop ecx
pop edi
lea eax, [ebp - 4]
mov byte [esi + 0x20], 1
push eax
push ebx
push esi
push 0x5b0434
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x12c], eax
cmp dword [esi + 0x150], ebx
jne 0x5b1918
cmp dword [esi + 0x154], ebx
je 0x5b191f
mov ecx, esi
call fcn.005b1923
pop esi
pop ebx
leave
ret

Function at 0x5b2f8a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.00626ba0
mov eax, dword [0x70a514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x208
push ebx
mov dword [ebp - 0x1000c], eax
mov dword [ebp - 0x10010], 0x104
call fcn.0062d692
mov dword [ebp - 0x10014], eax
lea eax, [ebp - 0x10014]
push eax
push esi
call fcn.005b7ea2
mov edi, dword [ebp - 0x10014]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
push accept
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x5b303e
lea eax, [ebp - 0x10014]
push eax
push dword [ebp - 0x1000c]
call fcn.005b7ea2
mov edi, dword [ebp - 0x10014]
pop ecx
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
cmp eax, 0xffffffff
jne 0x5b305c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
test edi, edi
je 0x5b304b
push edi
call fcn.0062d677
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00626a7a
leave
ret
mov edi, eax
push 0
lea eax, [ebp - 0x10008]
push eax
push 0xffff
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test eax, eax
je 0x5b30c4
cmp dword [ebp - 0x10008], 0
je 0x5b30d2
push 0
lea eax, [ebp - 0x10018]
push eax
push dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
xor ecx, ecx
movzx ebx, al
mov eax, dword [ebp - 0x10008]
cmp dword [ebp - 0x10018], eax
cmovne ebx, ecx
jmp 0x5b30ca
mov eax, dword [ebp - 0x10008]
test eax, eax
je 0x5b30d2
test bl, bl
jne 0x5b305e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov edi, dword [ebp - 0x10014]
jmp 0x5b3040
Function at 0x5b32e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x653f57
call fcn.00626aba
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call fcn.005b7ea2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.005b7ea2
add esp, 0x10
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x5b3364
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5b3364
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call fcn.005b73d1
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x5b3373
push dword [ebp - 0x18]
call fcn.0062d677
pop ecx
cmp dword [ebp - 0x20], 0
je 0x5b3382
push dword [ebp - 0x20]
call fcn.0062d677
pop ecx
call fcn.00626a88
ret
Function at 0x5b5659
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push ebx
push eax
push dword [ebp + 8]
call fcn.005b7ea2
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 8], 0
je 0x5b5693
push dword [ebp - 8]
call fcn.0062d677
pop ecx
mov al, bl
pop ebx
leave
ret