joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57bcf8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0057bdb1
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov word [ebp - 0x14], ax
mov cx, word [ebp + 0x18]
mov word [ebp - 4], cx
movsx edx, word [ebp - 0x14]
push edx
call fcn.005c0433
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x57bd44
push 1
call fcn.005c2233
push 2
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005c26c0
add esp, 0xc
push 2
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.005c26c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.005c26c0
add esp, 0xc
movsx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057e19a
add esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
call fcn.005bf4e7
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x57be1d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0057bdb1
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov word [ebp - 0x14], ax
mov cx, word [ebp + 0x14]
mov word [ebp - 4], cx
movsx edx, word [ebp - 0x14]
push edx
call fcn.005c0433
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x57be69
push 1
call fcn.005c2233
push 2
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005c26c0
add esp, 0xc
push 2
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.005c26c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.005c26c0
add esp, 0xc
movsx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0057e692
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bf4e7
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x57bed2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0057bdb1
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov word [ebp - 0x14], ax
mov cx, word [ebp + 0x14]
mov word [ebp - 4], cx
movsx edx, word [ebp - 0x14]
push edx
call fcn.005c0433
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x57bf1e
push 1
call fcn.005c2233
push 2
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005c26c0
add esp, 0xc
push 2
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.005c26c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.005c26c0
add esp, 0xc
movsx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0057e90a
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bf4e7
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x57bf87
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0057bdb1
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov word [ebp - 0x14], ax
mov cx, word [ebp + 0x14]
mov word [ebp - 4], cx
movsx edx, word [ebp - 0x14]
push edx
call fcn.005c0433
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x57bfd3
push 1
call fcn.005c2233
push 2
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005c26c0
add esp, 0xc
push 2
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.005c26c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.005c26c0
add esp, 0xc
movsx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0057eb30
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bf4e7
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x587e9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0xa40e04], 0
jne 0x587ec3
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_CharToOemBuffA]
jmp 0x587eda
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00587088
add esp, 0xc
push 0
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x14], 1
jne 0x587f3d
call fcn.0059ab8a
test eax, eax
je 0x587f23
push 0
lea ecx, [ebp - 0x404]
push ecx
push 2
push 0x62d4b4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x587f3d
push 0
lea eax, [ebp - 0x404]
push eax
push 1
push 0x62d4b8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x58928e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [0x703560], 0
jne 0x5892a7
call fcn.00588190
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0xa408d0]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0xa408d4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0xa408d0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xa408d0], 0
mov edx, dword [0xa408d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xa408d4], 0
mov eax, dword [0xa408d8]
push eax
mov ecx, dword [0xa408c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov edx, dword [0xa408c0]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0xa408c0], 0
mov eax, dword [0xa401c4]
push eax
push 0x62db9c
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov dword [0xa401c4], 0
call fcn.00588dc0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x589dc6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x10c], 0
push 0xa40914
call fcn.005c05c0
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x58a053
cmp dword [0xa40da4], 0
jne 0x589e20
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0xa40914
call dword [sym.imp.USER32.dll_CharToOemBuffA]
jmp 0x589fca
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
jmp 0x589e45
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x108]
jge 0x589fb0
mov ecx, dword [ebp - 0x110]
xor edx, edx
mov dl, byte [ecx + 0xa40914]
cmp edx, 0xa1
jl 0x589f35
mov eax, dword [ebp - 0x110]
xor ecx, ecx
mov cl, byte [eax + 0xa40914]
cmp ecx, 0xfe
jg 0x589f35
mov edx, dword [ebp - 0x110]
xor eax, eax
mov al, byte [edx + 0xa40914]
and eax, 0x7f
shl eax, 8
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
xor eax, eax
mov al, byte [edx + 0xa40914]
and eax, 0x7f
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x120]
push ecx
call fcn.005c2a87
add esp, 4
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
shr edx, 8
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x104], dl
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x11c]
and edx, 0xff
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x104], dl
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
jmp 0x589fab
mov edx, dword [ebp - 0x110]
xor eax, eax
mov al, byte [edx + 0xa40914]
cmp eax, 0x8e
jne 0x589f83
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
mov cl, byte [eax + 0xa40914]
mov byte [ebp + edx - 0x104], cl
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
jmp 0x589fab
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
mov dl, byte [ecx + 0xa40914]
mov byte [ebp + eax - 0x104], dl
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
jmp 0x589e36
mov ecx, dword [ebp - 0x114]
mov byte [ebp + ecx - 0x104], 0
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x108], edx
cmp dword [0xa408e0], 2
jne 0x58a00f
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [0xa408c8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
je 0x58a003
cmp dword [ebp - 0x110], 0
jne 0x58a00d
mov dword [ebp - 0x10c], 1
jmp 0x58a053
cmp dword [0xa408e0], 3
jne 0x58a053
push 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [0xa408c8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x58a049
cmp dword [ebp - 0x110], 0
jne 0x58a053
mov dword [ebp - 0x10c], 1
mov byte [0xa40914], 0
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret
Function at 0x58a064
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0xa408e0], 2
jne 0x58a08d
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x62dcf4
mov ecx, dword [0xa408c8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x58a0a6
push 0
lea edx, [ebp - 4]
push edx
push 1
push 0x62dcf8
mov eax, dword [0xa408c8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x58aa73
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0xa408c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
cmp eax, 1
jne 0x58ab7d
cmp dword [ebp + 8], 0
jle 0x58ab10
movsx ecx, word [ebp - 0x14]
movsx esi, word [ebp - 0x18]
mov eax, dword [ebp + 8]
cdq
idiv esi
add ecx, edx
mov word [ebp - 0x14], cx
movsx ecx, word [ebp - 0x12]
movsx esi, word [ebp - 0x18]
mov eax, dword [ebp + 8]
cdq
idiv esi
add ecx, eax
movsx edx, word [ebp - 0x16]
cmp ecx, edx
jge 0x58aadb
movsx ecx, word [ebp - 0x12]
movsx esi, word [ebp - 0x18]
mov eax, dword [ebp + 8]
cdq
idiv esi
add ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x58aae2
movsx edx, word [ebp - 0x16]
mov dword [ebp - 0x1c], edx
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x12], ax
movsx ecx, word [ebp - 0x14]
movsx edx, word [ebp - 0x18]
cmp ecx, edx
jle 0x58ab0e
mov ax, word [ebp - 0x14]
sub ax, word [ebp - 0x18]
mov word [ebp - 0x14], ax
mov cx, word [ebp - 0x12]
add cx, 1
mov word [ebp - 0x12], cx
jmp 0x58ab6c
mov edx, dword [ebp + 8]
push edx
call fcn.005c1cff
add esp, 4
movsx ecx, word [ebp - 0x18]
cdq
idiv ecx
mov ax, word [ebp - 0x14]
sub ax, dx
mov word [ebp - 0x14], ax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005c1cff
add esp, 4
movsx ecx, word [ebp - 0x18]
cdq
idiv ecx
mov dx, word [ebp - 0x12]
sub dx, ax
mov word [ebp - 0x12], dx
movsx eax, word [ebp - 0x14]
test eax, eax
jge 0x58ab6c
mov cx, word [ebp - 0x14]
add cx, word [ebp - 0x18]
mov word [ebp - 0x14], cx
mov dx, word [ebp - 0x12]
sub dx, 1
mov word [ebp - 0x12], dx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0xa408c8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58b440
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [0xa408c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
cmp eax, 1
jne 0x58b4eb
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0
movsx eax, word [ebp - 0x20]
movsx ecx, word [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x24]
jge 0x58b4db
mov eax, dword [ebp - 0x30]
add eax, 0x20
cmp eax, dword [ebp - 0x24]
jg 0x58b49d
mov dword [ebp - 0x2c], 0x20
jmp 0x58b4a6
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x62dcfc
mov edx, dword [0xa408c8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov cx, word [ebp - 0x28]
add cx, word [ebp - 0x2c]
mov word [ebp - 0x28], cx
jmp 0x58b481
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0xa408c8]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esp, ebp
pop ebp
ret

Function at 0x5912f8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push esi
mov eax, dword [0x62f904]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x62f908]
mov dword [ebp - 8], ecx
mov dl, byte [0x62f90c]
mov byte [ebp - 4], dl
push 0xa
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x104]
push edx
call fcn.005c4a83
add esp, 0xc
push 0xa
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
push edx
call fcn.005c4a83
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call fcn.005c05c0
add esp, 4
test eax, eax
jbe 0x59138a
lea ecx, [ebp - 0x138]
push ecx
call fcn.005c05c0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.005c05c0
add esp, 4
lea eax, [esi + eax + 1]
cmp eax, 0x104
jb 0x59139e
push 0x53
push str.G:CMMEDUSASRCPEGASUSLIBUIUI_WINNTCOMMSCOMMON.CXX
push str.strlen_id____0__strlen_id___strlen_engine_id.name___1___MAX_PATH
call fcn.005c30de
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x124]
push eax
call fcn.005bfe20
add esp, 8
push 0x62f994
lea ecx, [ebp - 0x124]
push ecx
call fcn.005bfe30
add esp, 8
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x124]
push eax
call fcn.005bfe30
add esp, 8
push 0x62f998
lea ecx, [ebp - 0x124]
push ecx
call fcn.005bfe30
add esp, 8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x124]
push eax
call fcn.005bfe30
add esp, 8
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub eax, 1
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x591420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [str.UIENGINE]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x62f9a0]
mov dword [ebp - 0x10], ecx
mov dl, byte [0x62f9a4]
mov byte [ebp - 0xc], dl
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x591552
cmp dword [ebp - 4], 0x104
ja 0x591552
push 0x62f9a8
lea edx, [ebp - 0x11c]
push edx
call fcn.005c1b23
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x591552
push 0x62f9ac
push 0
call fcn.005c1b23
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x591552
mov eax, dword [ebp - 0x124]
push eax
call fcn.005bf8fb
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x591552
push 0x62f9b0
push 0
call fcn.005c1b23
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x591552
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.005bf8fb
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x591552
mov edx, dword [ebp - 0x120]
push edx
call fcn.005c05c0
add esp, 4
cmp eax, 0x104
jae 0x591552
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005bfe20
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x104], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x108], edx
mov eax, 1
jmp 0x591554
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5944e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
add edx, 4
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x594568
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x108], 0x40
jl 0x594566
push 0x40
push 0x62fdd0
push 0x636f58
call fcn.005bf647
add esp, 0xc
push 0
call fcn.005c2233
jmp 0x594505
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [ebp + 8]
add esp, 0x100
mov esp, ebp
pop ebp
ret
Function at 0x597940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0xa43878], 0
je 0x59795e
lea eax, [ebp + 8]
push eax
push 2
call dword [0xa43878]
add esp, 8
call fcn.00597895
mov ecx, dword [ebp + 8]
push ecx
call fcn.005c2233
mov esp, ebp
pop ebp
ret

Function at 0x59bfa9
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov dword [ebp - 8], 0
mov dword [ebp - 0x15c], 0x80
lea eax, [ebp - 0x150]
push eax
push 0x630178
mov ecx, dword [ebp + 8]
push ecx
call fcn.0059548f
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x59bff9
or eax, 0xffffffff
jmp 0x59c180
mov edx, dword [ebp - 0x15c]
shl edx, 2
push edx
call fcn.005c0433
add esp, 4
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x59c022
or eax, 0xffffffff
jmp 0x59c180
push 0x63017c
lea eax, [ebp - 0x124]
push eax
call fcn.005c04c0
add esp, 8
test eax, eax
jne 0x59c03f
jmp 0x59c116
push 0x630180
lea ecx, [ebp - 0x124]
push ecx
call fcn.005c04c0
add esp, 8
test eax, eax
jne 0x59c05c
jmp 0x59c116
cmp dword [ebp + 0x10], 0
je 0x59c078
lea edx, [ebp - 0x124]
push edx
call dword [ebp + 0x10]
add esp, 4
test eax, eax
jne 0x59c078
jmp 0x59c116
lea eax, [ebp - 0x124]
push eax
call fcn.005c05c0
add esp, 4
add eax, 1
push eax
call fcn.005c0433
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x59c0a4
or eax, 0xffffffff
jmp 0x59c180
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005bfe20
add esp, 8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x15c]
jl 0x59c106
mov edx, dword [ebp - 0x15c]
shl edx, 1
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.005c1bc7
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x59c106
or eax, 0xffffffff
jmp 0x59c180
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4 - 4], ecx
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x59c022
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 8], 0
je 0x59c172
cmp dword [ebp + 0x14], 0
je 0x59c172
mov edx, dword [ebp + 0x14]
push edx
push 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.005c16f1
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x154]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x5a58b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x708358]
push ebx
xor eax, eax
push esi
test edx, edx
push edi
jbe 0x5a58dc
mov ecx, 0x705360
mov esi, dword [ebp + 8]
mov edi, dword [ecx]
cmp esi, edi
je 0x5a59a9
inc eax
add ecx, 8
cmp eax, edx
jb 0x5a58c7
mov eax, dword [ebp + 0xc]
push 0x800
push 0x7077f0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5a58f9
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push 0x7077f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a592a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
jne 0x5a5957
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x5a5981
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
add eax, ecx
mov ecx, dword [0x708358]
mov dword [ecx*8 + 0x705360], edx
mov dword [ecx*8 + 0x705364], eax
inc ecx
mov dword [0x708358], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax*8 + 0x705364]
pop edi
pop esi
pop ebx
pop ebp
ret