joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab0a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65e953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x114c
call fcn.005e1650
mov eax, dword [0x6f853c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 1
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1050]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1050], 0x2f
push eax
mov ecx, edi
call fcn.005a93e0
mov esi, eax
cmp esi, 0xffffffff
je 0x5ab50a
push 1
lea ecx, [ebp - 0x108c]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea edx, [ebp - 0x108c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push esi
push ebx
lea ecx, [ebp - 0x106c]
lea eax, [ebp - 0x108c]
push ecx
mov ecx, edi
mov dword [ebp - 0x1078], 0xc
mov dword [ebp - 0x1070], 1
mov dword [ebp - 0x1074], eax
call fcn.005a96d0
cmp dword [eax + 0x18], 0x10
jb 0x5ab157
mov eax, dword [eax + 4]
jmp 0x5ab15a
add eax, 4
lea edx, [ebp - 0x1078]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x1054], 0x10
jb 0x5ab180
mov eax, dword [ebp - 0x1068]
push eax
call fcn.005e0f6d
add esp, 4
push 1
inc esi
push esi
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x1054], 0xf
mov dword [ebp - 0x1058], ebx
mov byte [ebp - 0x1068], bl
mov byte [ebp + 0xb], 0x2f
push ecx
jmp 0x5ab0ea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.005e1637
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5ab530
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ea43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x114c
call fcn.005e1650
mov eax, dword [0x6f853c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 1
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x106c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x106c], 0x2f
push eax
mov ecx, edi
call fcn.0055a820
mov esi, eax
cmp esi, 0xffffffff
je 0x5ab9a1
push 1
lea ecx, [ebp - 0x108c]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea edx, [ebp - 0x108c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push esi
push ebx
lea ecx, [ebp - 0x1068]
lea eax, [ebp - 0x108c]
push ecx
mov ecx, edi
mov dword [ebp - 0x1078], 0xc
mov dword [ebp - 0x1070], 1
mov dword [ebp - 0x1074], eax
call fcn.0040dbb0
cmp dword [eax + 0x18], 8
jb 0x5ab5ea
mov eax, dword [eax + 4]
jmp 0x5ab5ed
add eax, 4
lea edx, [ebp - 0x1078]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x1050], 8
jb 0x5ab613
mov eax, dword [ebp - 0x1064]
push eax
call fcn.005e0f6d
add esp, 4
push 1
inc esi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], bx
mov dword [ebp + 8], 0x2f
push ecx
jmp 0x5ab57d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.005e1637
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5c3c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x662961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x67fe48
xor ebx, ebx
push ebx
push 0x666713
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401500
lea eax, [esp + 0x10]
lea esi, [edi + 4]
push eax
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.0057e720
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0x34], 3
jb 0x5c3c79
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005e0f6d
add esp, 4
mov dword [esi], 0x68008c
lea esi, [edi + 0x28]
mov ecx, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [edi], 0x6800a8
call fcn.0058f930
mov dword [esi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
lea esi, [edi + 0x34]
mov ecx, esi
mov byte [esp + 0x34], 4
call fcn.0040dad0
mov dword [esi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
lea esi, [edi + 0x40]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x6722d0
mov byte [esp + 0x38], 5
mov word [esi + 4], bx
call fcn.005e179f
add esp, 4
push eax
push 0x6722d0
mov ecx, esi
call fcn.004061f0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x5c], edx
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x5c9660
Capabilities:
Encode data using xor

Disassembly:
mov cx, word [edx]
xor eax, eax
test cx, cx
je 0x5c9688
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
xor eax, ecx
add edx, 2
xor ecx, ecx
mov cx, word [edx]
test cx, cx
jne 0x5c9670
ret
Function at 0x5cf8f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esi]
mov ecx, edx
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr edx, 8
xor ecx, edx
mov edx, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
push ebx
and ecx, 0xff
mov ebx, dword [edi + ecx*4]
shr edx, 8
xor edx, ebx
mov dword [esi + 8], edx
pop ebx
ret

Function at 0x5cf940
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov al, byte [esi]
test al, al
je 0x5cf9a7
push ebx
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [edi + eax*4]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov ebx, dword [edi + eax*4]
shr ecx, 8
xor ecx, ebx
inc esi
mov dword [edx + 8], ecx
mov al, byte [esi]
test al, al
jne 0x5cf960
pop ebx
pop esi
ret
Function at 0x5e1b6b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x6fc080], esi
push edi
jne 0x5e1b8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x6fc07c], esi
mov byte [0x6fc078], al
jne 0x5e1bf1
mov ecx, dword [0x6fe4dc]
test ecx, ecx
je 0x5e1bd2
mov eax, dword [0x6fe4d8]
sub eax, 4
cmp eax, ecx
jmp 0x5e1bcb
mov eax, dword [eax]
test eax, eax
je 0x5e1bbd
call eax
mov eax, dword [0x6fe4d8]
sub eax, 4
cmp eax, dword [0x6fe4dc]
mov dword [0x6fe4d8], eax
jae 0x5e1bb5
mov eax, 0x6f71cc
mov esi, 0x6f71d4
cmp eax, esi
mov edi, eax
jae 0x5e1bf1
mov eax, dword [edi]
test eax, eax
je 0x5e1bea
call eax
add edi, 4
cmp edi, esi
jb 0x5e1be2
mov eax, 0x6f71d8
mov esi, 0x6f71e0
cmp eax, esi
mov edi, eax
jae 0x5e1c10
mov eax, dword [edi]
test eax, eax
je 0x5e1c09
call eax
add edi, 4
cmp edi, esi
jb 0x5e1c01
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x5e1c2a
push dword [ebp + 8]
mov dword [0x6fc080], 1
call fcn.005e1ad1
pop ebp
ret
Function at 0x5e2465
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x685cf0
call fcn.005e66a4
mov edi, 0x94
mov eax, edi
call fcn.005e1650
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6fc040], ecx
mov eax, dword [esi + 4]
mov dword [0x6fc04c], eax
mov edx, dword [esi + 8]
mov dword [0x6fc050], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6fc044], esi
cmp ecx, 2
je 0x5e24c5
or esi, 0x8000
mov dword [0x6fc044], esi
shl eax, 8
add eax, edx
mov dword [0x6fc048], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5e2500
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5e2500
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5e2518
cmp eax, 0x20b
je 0x5e2505
mov dword [ebp - 0x1c], esi
jmp 0x5e252c
cmp dword [ecx + 0x84], 0xe
jbe 0x5e2500
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5e2526
cmp dword [ecx + 0x74], 0xe
jbe 0x5e2500
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.005e6ca7
pop ecx
test eax, eax
jne 0x5e2558
cmp dword [0x6fc08c], 1
jne 0x5e2545
call fcn.005e8cca
push 0x1c
call fcn.005e8b53
push 0xff
call fcn.005e1ad1
pop ecx
pop ecx
call fcn.005e781b
mov dword [ebp - 4], esi
call fcn.005e938c
test eax, eax
jge 0x5e2571
push 0x1b
call fcn.005e2440
pop ecx
call fcn.005e92ed
mov dword [0x6fe4d0], eax
call fcn.005e9183
mov dword [0x6fc088], eax
call fcn.005e90ed
test eax, eax
jge 0x5e2596
push 8
call fcn.005e2440
pop ecx
call fcn.005e8eba
test eax, eax
jge 0x5e25a7
push 9
call fcn.005e2440
pop ecx
push 1
call fcn.005e1b01
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x5e25bd
push eax
call fcn.005e2440
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.005e8e74
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x5e25de
movzx eax, word [ebp - 0x40]
jmp 0x5e25e1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00538950
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5e25ff
push edi
call fcn.005e1c2c
call fcn.005e1c4e
jmp 0x5e2631
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005e66df
ret
Function at 0x5e8b53
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6f853c]
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 + 0x6f8830]
je 0x5e8b88
inc eax
cmp eax, 0x13
jb 0x5e8b79
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6f8830]
jne 0x5e8cae
mov eax, dword [0x6fc08c]
cmp eax, 1
je 0x5e8c86
cmp eax, edx
jne 0x5e8bb8
cmp dword [0x6f85ac], 1
je 0x5e8c86
cmp ecx, 0xfc
je 0x5e8cae
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 0x5e8bee
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.005e59d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.005e3a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5e8c22
mov eax, edi
push eax
call fcn.005e3a40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x68658c
push edi
call fcn.005ecbc0
add esp, 0x10
push edi
call fcn.005e3a40
push dword [esi + 0x6f8834]
mov ebx, eax
call fcn.005e3a40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005e1650
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005e59d0
push edi
push ebx
call fcn.005e59e0
push 0x686588
push ebx
call fcn.005e59e0
push dword [esi + 0x6f8834]
push ebx
call fcn.005e59e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005ed94c
add esp, 0x2c
jmp 0x5e8cae
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x6f8834]
push dword [esi]
call fcn.005e3a40
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.005e1637
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x5e9183
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x6fc30c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x5e91cc
call ebp
mov esi, eax
cmp esi, ebx
je 0x5e91b2
mov dword [0x6fc30c], 1
jmp 0x5e91d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5e91c7
push 2
pop eax
mov dword [0x6fc30c], eax
jmp 0x5e91cc
mov eax, dword [0x6fc30c]
cmp eax, 1
jne 0x5e9229
cmp esi, ebx
jne 0x5e91e4
call ebp
mov esi, eax
cmp esi, ebx
jne 0x5e91e4
xor eax, eax
jmp 0x5e92d0
cmp word [esi], bx
mov eax, esi
je 0x5e91f9
inc eax
inc eax
cmp word [eax], bx
jne 0x5e91eb
inc eax
inc eax
cmp word [eax], bx
jne 0x5e91eb
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.005e3791
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x5e921c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x5e92d0
push ebp
push esi
push edi
call fcn.005e3ad0
add esp, 0xc
jmp 0x5e920e
cmp eax, 2
je 0x5e9232
cmp eax, ebx
jne 0x5e91dd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x5e91dd
cmp byte [ebp], bl
mov esi, ebp
je 0x5e9268
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x5e91dd
push esi
add edi, eax
call fcn.005e3a40
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x5e9245
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.005e3791
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x5e92e1
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x5e92c2
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5e92d7
push edi
call fcn.005e3a40
push esi
lea edi, [edi + eax + 1]
call fcn.005e179f
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x5e9288
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.005e17ba
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x5e91dd
Function at 0x5e92ed
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x6fc310]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x5e932d
call esi
test eax, eax
je 0x5e9312
mov dword [0x6fc310], 1
jmp 0x5e9332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5e9329
mov dword [0x6fc310], 2
jmp 0x5e933b
xor eax, eax
jmp 0x5e9389
cmp eax, 1
jne 0x5e9336
call esi
jmp 0x5e9389
cmp eax, 2
jne 0x5e9329
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x5e9381
lea eax, [esi + esi]
push eax
call fcn.005e3791
mov ebp, eax
test ebp, ebp
pop ecx
je 0x5e9381
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x5e9385
push ebp
call fcn.005e17ba
pop ecx
xor eax, eax
jmp 0x5e9387
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x5e991e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x6fe384]
mov eax, dword [0x6f853c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x5e9ae4
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x6fe3a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x5e9ae4
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x5e9988
xor eax, eax
jmp 0x5e9af8
test al, 0x20
je 0x5e9999
push 2
push edi
push edi
push ecx
call fcn.005ef006
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5e9a6e
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x5e9ab5
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x5e99fb
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5e99ec
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x5e99ce
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5e9a3b
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x5e9a47
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x5e99c2
jmp 0x5e9a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x5e9adf
cmp dword [ebp + 0x3a4], edi
je 0x5e9ab5
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x5e9aa7
mov dword [0x6fc038], eax
jmp 0x5e9aeb
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5e9a99
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x5e9a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x5e9a49
push dword [ebp + 0x3a4]
call fcn.005eefa7
pop ecx
jmp 0x5e9af5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5e9acd
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x5e9981
mov dword [0x6fc034], 0x1c
mov dword [0x6fc038], edi
jmp 0x5e9af5
sub eax, dword [ebp - 0x7c]
jmp 0x5e9af8
and dword [0x6fc038], 0
mov dword [0x6fc034], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.005e1637
add ebp, 0x39c
leave
ret
Function at 0x5ebafe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x6fe384]
push edi
jae 0x5ebcd3
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x6fe3a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x5ebcd3
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x5ebba9
test dl, 2
jne 0x5ebba9
test dl, 0x48
je 0x5ebb73
cmp byte [eax + 5], 0xa
je 0x5ebb73
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5ebbbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x5ebba4
mov dword [0x6fc038], ecx
jmp 0x5ebcda
cmp eax, 0x6d
jne 0x5ebbb0
xor eax, eax
jmp 0x5ebce7
push eax
call fcn.005eefa7
pop ecx
jmp 0x5ebce4
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x5ebcce
test eax, eax
je 0x5ebbe3
cmp byte [ebx], 0xa
jne 0x5ebbe3
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5ebbec
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x5ebcc8
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x5ebcb8
cmp al, 0xd
je 0x5ebc1e
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x5ebcaa
dec ecx
cmp dword [ebp - 8], ecx
jae 0x5ebc38
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x5ebc33
add dword [ebp - 8], 2
jmp 0x5ebc8c
mov dword [ebp - 8], eax
jmp 0x5ebca6
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x5ebc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5ebca6
cmp dword [ebp - 0x10], 0
je 0x5ebca6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5ebc81
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5ebc8c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5ebca9
cmp ebx, dword [ebp + 0xc]
jne 0x5ebc91
cmp byte [ebp - 1], 0xa
jne 0x5ebc91
mov byte [ebx], 0xa
jmp 0x5ebca9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005ea026
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x5ebcaa
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x5ebc02
jmp 0x5ebcc8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5ebcc8
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x5ebce7
and dword [0x6fc038], 0
mov dword [0x6fc034], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ec13c
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.005e1650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5ec1d7
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 [0x6fc040]
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 0x5ec1d7
cmp eax, 1
je 0x5ec1f8
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 0x5ec1d7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5ec1a4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5ec1d3
xor eax, eax
inc eax
jmp 0x5ec217
cmp edi, eax
jae 0x5ec1db
xor eax, eax
jmp 0x5ec217
cmp eax, esi
jae 0x5ec1e2
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 [0x6fc040]
jmp 0x5ec1fb
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 0x5ed94c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6fc49c], ebx
push esi
push edi
jne 0x5ed9cc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5eda07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x687ba0
push edi
call esi
test eax, eax
mov dword [0x6fc49c], eax
je 0x5eda07
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6fc4a0], eax
call esi
cmp dword [0x6fc040], 2
mov dword [0x6fc4a4], eax
jne 0x5ed9cc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6fc4ac], eax
je 0x5ed9cc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6fc4a8], eax
mov eax, dword [0x6fc4a8]
test eax, eax
je 0x5eda11
call eax
test eax, eax
je 0x5ed9f8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6fc4ac]
test eax, eax
je 0x5ed9f8
test byte [ebp - 8], 1
jne 0x5eda11
cmp dword [0x6fc04c], 4
jb 0x5eda0b
or byte [ebp + 0x12], 0x20
jmp 0x5eda30
xor eax, eax
jmp 0x5eda40
or byte [ebp + 0x12], 4
jmp 0x5eda30
mov eax, dword [0x6fc4a0]
test eax, eax
je 0x5eda30
call eax
mov ebx, eax
test ebx, ebx
je 0x5eda30
mov eax, dword [0x6fc4a4]
test eax, eax
je 0x5eda30
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6fc49c]
pop edi
pop esi
pop ebx
leave
ret