joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc277
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60979e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x34
mov dword [esp + 0xc], esi
mov dword [esi], ebx
call fcn.00401cc0
mov dword [esi], eax
mov dword [esi + 4], ebx
mov byte [eax], bl
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax + 8], eax
mov eax, dword [esi]
add esp, 4
mov dword [eax + 0xc], eax
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esi + 0xc], ebx
call fcn.00402680
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
push 0x28
mov byte [esp + 0x18], 2
mov dword [esi + 0x2c], ebx
call fcn.00401cc0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov byte [eax], bl
mov ecx, dword [esi + 0x2c]
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x2c]
add esp, 4
mov dword [eax + 0xc], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5c3e30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x5c3e50
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.005e4cd4
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.005e4c65
int3
Function at 0x5c4340
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebp, edi
sub ebp, ecx
cmp eax, 6
je 0x5c4360
call fcn.005c42b0
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x5c43a4
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x5c437f
push 5
push esi
call fcn.005c3e30
movzx ecx, ax
shl ecx, 1
push ecx
push esi
call fcn.005c3fa0
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x5c43a4
push str.stack_overflow
push esi
call fcn.005c9b80
add esp, 8
mov eax, dword [edi + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x5c4467
push ebx
mov ebx, dword [eax + 0xc]
mov al, byte [ebx + 0x46]
test al, al
je 0x5c43cd
movzx eax, byte [ebx + 0x45]
lea edx, [edi + 0x10]
push eax
call fcn.005c4170
add esp, 4
movzx eax, byte [ebx + 0x47]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x5c43ec
push eax
push esi
call fcn.005c4010
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add eax, 0x18
mov dword [esi + 0x14], eax
lea edx, [ecx + ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
movzx edx, byte [ebx + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x5c445a
mov ecx, 0x10
jmp 0x5c4440
mov edx, dword [esi + 8]
mov dword [edx], 0
mov ebx, dword [esi + 8]
add ebx, ecx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov edx, ebx
cmp edx, edi
jb 0x5c4440
mov eax, dword [eax + 4]
pop ebx
pop edi
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 8]
cmp ecx, 0x140
jg 0x5c4480
push 0x14
push esi
call fcn.005c4010
add esp, 8
mov edx, dword [esi + 0x14]
add edx, 0x18
mov dword [esi + 0x14], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
add edx, 0x140
mov ecx, 1
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
test byte [esi + 0x30], cl
je 0x5c44c2
push 0xffffffffffffffff
push 0
push esi
call fcn.005c4090
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
push esi
call dword [ecx + 0xc]
add esp, 4
shl eax, 4
mov edx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
sub eax, edx
pop ebp
ret
Function at 0x5c7b70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
shr ecx, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc ecx
cmp ebx, ecx
push edi
mov edx, ebx
mov eax, ebx
jb 0x5c7bab
lea ebx, [ebx]
movzx edi, byte [esi + eax - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub eax, ecx
xor edx, edi
cmp eax, ecx
jae 0x5c7b90
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x5c7bdb
cmp dword [eax + 0xc], ebx
jne 0x5c7bd5
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x5c7bec
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x5c7bc1
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
mov eax, edx
call fcn.005c7ad0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5e2758
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x5e2774
call fcn.005e37fa
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x5e27e6
push esi
push 0x8c
push 1
call fcn.005e521a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5e27cc
push esi
call fcn.005e9ec8
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x5e26c6
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x5e27c4
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x5e27e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.005e2a07
test ebx, ebx
pop ecx
je 0x5e27de
push ebx
call fcn.005e380c
pop ecx
or eax, 0xffffffff
jmp 0x5e27e5
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x5e4ba2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x62a350
call fcn.005e83a0
push 8
call fcn.005e8020
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x68d8b8], esi
jne 0x5e4bd6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x68d8b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x68d8b0], al
cmp dword [ebp + 0xc], edi
jne 0x5e4c20
cmp dword [0x68e1a0], edi
je 0x5e4c10
mov eax, dword [0x68e19c]
sub eax, 4
mov dword [0x68e19c], eax
cmp eax, dword [0x68e1a0]
jb 0x5e4c10
mov eax, dword [eax]
cmp eax, edi
je 0x5e4bf1
call eax
jmp 0x5e4bf1
push 0x64f20c
mov eax, 0x64f200
call fcn.005e4b20
pop ecx
push 0x64f218
mov eax, 0x64f210
call fcn.005e4b20
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x5e4c51
cmp dword [ebp + 0x10], edi
jne 0x5e4c5f
mov dword [0x68d8b8], esi
push dword [ebp + 8]
call fcn.005e4ade
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x5e4c5e
push 8
call fcn.005e7f6b
pop ecx
ret
call fcn.005e83db
ret
Function at 0x5ed881
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x65480c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x5ed8b2
xor eax, eax
jmp 0x5eda3b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x68e080]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5ed8ee
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.005f5e5c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5ed9c9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x5eda07
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x5ed952
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5ed943
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x5ed923
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ed992
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x5ed99b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x5ed914
jmp 0x5ed99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x5eda36
cmp dword [ebp - 0x6c], edi
je 0x5eda07
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x5ed9fc
call fcn.005e37fa
mov dword [eax], 9
call fcn.005e3803
mov dword [eax], esi
jmp 0x5eda31
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ed9f1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x5ed99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x5ed99d
push dword [ebp - 0x6c]
call fcn.005e380c
pop ecx
jmp 0x5eda31
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5eda1f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x5eda1f
xor eax, eax
jmp 0x5eda39
call fcn.005e37fa
mov dword [eax], 0x1c
call fcn.005e3803
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x5eda39
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.005e149c
add ebp, 0x3a0
leave
ret
Function at 0x5ee52d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x65480c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x655330]
je 0x5ee562
inc eax
cmp eax, 0x13
jb 0x5ee553
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x655330]
jne 0x5ee688
mov eax, dword [0x68d850]
cmp eax, 1
je 0x5ee660
cmp eax, edx
jne 0x5ee592
cmp dword [0x654ae4], 1
je 0x5ee660
cmp ecx, 0xfc
je 0x5ee688
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5ee5c8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.005e9930
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.005e84b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5ee5fc
mov eax, edi
push eax
call fcn.005e84b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x62906c
push edi
call fcn.005e1210
add esp, 0x10
push edi
call fcn.005e84b0
push dword [esi + 0x655334]
mov ebx, eax
call fcn.005e84b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005e2440
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005e9930
push edi
push ebx
call fcn.005e9940
push 0x62ae10
push ebx
call fcn.005e9940
push dword [esi + 0x655334]
push ebx
call fcn.005e9940
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005f5ba9
add esp, 0x2c
jmp 0x5ee688
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x655334]
push dword [esi]
call fcn.005e84b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.005e149c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x5f00b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5f028b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x68e080]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5f028b
test cl, 0x48
je 0x5f0122
cmp byte [eax + 5], 0xa
je 0x5f0122
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f0174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5f015c
call fcn.005e37fa
mov dword [eax], 9
call fcn.005e3803
mov dword [eax], esi
jmp 0x5f016c
cmp eax, 0x6d
je 0x5f028b
push eax
call fcn.005e380c
pop ecx
or eax, 0xffffffff
jmp 0x5f028d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5f0286
test eax, eax
je 0x5f019b
cmp byte [ebx], 0xa
jne 0x5f019b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5f01a4
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5f0280
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5f0270
cmp al, 0xd
je 0x5f01d6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5f0262
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5f01f0
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5f01eb
add dword [ebp + 0x10], 2
jmp 0x5f0244
mov dword [ebp + 0x10], eax
jmp 0x5f025e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f0218
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5f025e
cmp dword [ebp - 0xc], 0
je 0x5f025e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5f0239
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5f0244
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5f0261
cmp ebx, dword [ebp + 0xc]
jne 0x5f0249
cmp byte [ebp - 1], 0xa
jne 0x5f0249
mov byte [ebx], 0xa
jmp 0x5f0261
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005ee2aa
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x5f0262
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5f01ba
jmp 0x5f0280
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5f0280
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5f028d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f1385
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5f13b3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5f13ba
cmp ebx, dword [eax + 4]
jae 0x5f13ba
xor eax, eax
jmp 0x5f15aa
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5f13cb
xor eax, eax
inc eax
jmp 0x5f15a9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5f13e1
cmp ecx, edx
jae 0x5f1526
cmp dword [eax + 4], 0
je 0x5f13ea
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5f13d2
cmp dword [ebp + 8], 0
je 0x5f140c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5f1526
cmp eax, esi
jae 0x5f1526
mov eax, dword [0x68dd00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5f1431
cmp dword [esi*4 + 0x68dd08], edi
je 0x5f152a
inc esi
cmp esi, eax
jl 0x5f141f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5f15a6
cmp dword [ebp - 8], 0x1000000
jne 0x5f15a6
test byte [ebp - 0xc], 0xcc
je 0x5f14af
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5f15a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5f15a6
cmp word [eax + 0x18], 0x10b
jne 0x5f15a6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5f15a6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5f14af
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5f14af
test byte [ecx + 0x27], 0x80
jne 0x5f1526
push 1
push 0x68dd48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5f13c3
mov ecx, dword [0x68dd00]
test ecx, ecx
mov edx, ecx
jle 0x5f14e3
lea eax, [ecx*4 + 0x68dd04]
cmp dword [eax], edi
je 0x5f14e3
dec edx
sub eax, 4
test edx, edx
jg 0x5f14d7
test edx, edx
jne 0x5f1514
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5f14f0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5f1508
lea eax, [edx*4 + 0x68dd08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5f14f6
cmp ecx, 0x10
jge 0x5f1514
inc ecx
mov dword [0x68dd00], ecx
push 0
push 0x68dd48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5f13c3
xor eax, eax
jmp 0x5f15a9
test esi, esi
jle 0x5f13c3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x68dd48
call ebx
test eax, eax
jne 0x5f13c3
cmp dword [esi*4 + 0x68dd08], edi
je 0x5f1580
mov eax, dword [0x68dd00]
lea esi, [eax - 1]
test esi, esi
jl 0x5f156e
cmp dword [esi*4 + 0x68dd08], edi
je 0x5f156a
dec esi
jns 0x5f155e
test esi, esi
jge 0x5f157e
cmp eax, 0x10
jge 0x5f1579
inc eax
mov dword [0x68dd00], eax
lea esi, [eax - 1]
jmp 0x5f1580
je 0x5f1598
xor ecx, ecx
test esi, esi
jl 0x5f1598
lea eax, [ecx*4 + 0x68dd08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5f1586
push 0
push 0x68dd48
call ebx
jmp 0x5f13c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f16c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5f16e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005e380c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5f1704
test byte [esp + 8], 2
je 0x5f1704
call fcn.005e37fa
mov dword [eax], 0xd
call fcn.005e3803
mov dword [eax], 5
jmp 0x5f16dd
xor eax, eax
ret

Function at 0x5f1dce
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.005e2440
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5f1e69
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x68d878]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5f1e69
cmp eax, 1
je 0x5f1e8a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5f1e69
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5f1e36
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5f1e65
xor eax, eax
inc eax
jmp 0x5f1ea9
cmp edi, eax
jae 0x5f1e6d
xor eax, eax
jmp 0x5f1ea9
cmp eax, esi
jae 0x5f1e74
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x68d878]
jmp 0x5f1e8d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f5ba9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x68ddec], ebx
push esi
push edi
jne 0x5f5c29
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5f5c64
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x63044c
push edi
call esi
test eax, eax
mov dword [0x68ddec], eax
je 0x5f5c64
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x68ddf0], eax
call esi
cmp dword [0x68d878], 2
mov dword [0x68ddf4], eax
jne 0x5f5c29
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x68ddfc], eax
je 0x5f5c29
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x68ddf8], eax
mov eax, dword [0x68ddf8]
test eax, eax
je 0x5f5c6e
call eax
test eax, eax
je 0x5f5c55
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x68ddfc]
test eax, eax
je 0x5f5c55
test byte [ebp - 8], 1
jne 0x5f5c6e
cmp dword [0x68d884], 4
jb 0x5f5c68
or byte [ebp + 0x12], 0x20
jmp 0x5f5c8d
xor eax, eax
jmp 0x5f5c9d
or byte [ebp + 0x12], 4
jmp 0x5f5c8d
mov eax, dword [0x68ddf0]
test eax, eax
je 0x5f5c8d
call eax
mov ebx, eax
test ebx, ebx
je 0x5f5c8d
mov eax, dword [0x68ddf4]
test eax, eax
je 0x5f5c8d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x68ddec]
pop edi
pop esi
pop ebx
leave
ret