joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cbab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d7e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edi, esi
shr edi, 0x10
and edi, 0xfff
mov dword [eax], 0
call fcn.00429050
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.OnAppCommand__X__X__X__d___X__r_n
push eax
call fcn.0042a0e0
add esp, 0x1c
lea ecx, [ebp + 0x10]
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add edi, 0xfffffff8
cmp edi, 0x2a
ja case.0x5cbb3d.15
movzx eax, byte [edi + 0x5cbc60]
jmp dword [eax*4 + 0x5cbc30]
push 0
push 0x2821
jmp 0x5cbbea
push 0
push 0x2822
jmp 0x5cbbea
push 0
push 0x2811
jmp 0x5cbbea
push 0
push 0x2814
jmp 0x5cbbea
push 0
push 0x1a6
jmp 0x5cbbea
push 0
push 0x2808
jmp 0x5cbbea
push 0
push 0x281e
jmp 0x5cbbea
cmp dword [0x7f7458], 0
je case.0x5cbb3d.15
mov eax, dword [0x7f75ac]
mov ecx, ebx
neg eax
push eax
call fcn.005f85b0
mov eax, dword [ebp + 0x14]
mov esi, 1
mov dword [eax], 1
jmp 0x5cbc0a
cmp dword [0x7f7458], 0
je case.0x5cbb3d.15
push dword [0x7f75ac]
mov ecx, ebx
call fcn.005f85b0
mov eax, dword [ebp + 0x14]
mov esi, 1
mov dword [eax], 1
jmp 0x5cbc0a
push 0
push 0x2818
jmp 0x5cbbea
push 0
push 0x2817
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x14]
mov esi, 1
mov dword [eax], 1
jmp 0x5cbc0a
xor esi, esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5cf780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71a048
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5cf81b
mov ecx, dword [edi + 0x1780]
test ecx, ecx
je 0x5cf812
call fcn.0067e4c0
cmp eax, dword [ebp + 0xc]
jne 0x5cf812
push esi
lea ecx, [ebp + 0x10]
call fcn.00428840
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x7fa128
call fcn.005e0840
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push dword [edi + 0x1780]
push 0x5d9640
push 0
push 0
call fcn.006b8cf3
add esp, 0x18
push esi
call fcn.006b3261
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5d0450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7f7454], 0
je 0x5d0462
pop ebp
jmp fcn.005cbab0
xor eax, eax
pop ebp
ret 0x10
Function at 0x5dcda0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call fcn.005b0e80
add esp, 4
mov ecx, 0x7f71e0
cmp eax, 0xd
jl 0x5dcdc8
push 0
jmp 0x5dcdca
push 1
call fcn.00599d30
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x5dce5f
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x74e0a8
push edi
call esi
push str.LookupPrivilegeValueW
push edi
mov dword [ebp - 0x18], eax
call esi
push 0x7509c8
push edi
mov ebx, eax
call esi
cmp dword [ebp - 0x18], 0
mov esi, eax
je 0x5dce56
test ebx, ebx
je 0x5dce56
test esi, esi
je 0x5dce56
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5dce56
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 8], 2
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
push 0
push 0
call fcn.005b0e80
mov edx, 8
add esp, 4
cmp eax, edx
mov ecx, 1
cmovge ecx, edx
or ecx, 4
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.006b3266
mov esp, ebp
pop ebp
ret

Function at 0x5dcec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x18c0], 1
mov dword [ebp - 0x28], ecx
je 0x5dcfc1
push esi
mov esi, dword [ecx + 0x620]
test esi, esi
je 0x5dcfc0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
jne 0x5dcfc0
push ebx
lea ebx, [ecx + 0x17c8]
push 0
push ebx
call fcn.00549410
add esp, 8
test al, al
je 0x5dcfbf
push edi
push dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
mov ecx, dword [ebx]
mov edi, eax
push dword [ecx + 4]
call esi
cmp edi, 1
pop edi
jne 0x5dcfad
mov ecx, dword [ebx]
cmp dword [ecx + 0x2c], 1
jne 0x5dcf47
test eax, eax
jne 0x5dcf47
push 5
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov eax, dword [eax + 0x620]
push dword [eax + 4]
call esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx]
push dword [eax + 4]
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x5dcfbf
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push 4
push eax
push 0
add ecx, 4
call fcn.00458cf0
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x5dcfbf
mov eax, dword [ebx]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 4
Function at 0x5e0fe0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x5e0ff8
mov ecx, esi
pop esi
jmp fcn.005dcc70
push edi
mov edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
jne 0x5e100f
pop edi
mov ecx, esi
pop esi
jmp fcn.005c8040
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
ret

Function at 0x5e1680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.005e18b0
add esp, 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00429100
push eax
call fcn.005b6cc0
add esp, 4
cmp eax, 1
jne 0x5e17f2
push 0x40
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0
push 0
push eax
call fcn.006b47d0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x7835d4
lea eax, [ebp - 0x30]
push eax
call fcn.00428c80
push 0x74e788
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.00428bd0
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.00428bd0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00429100
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
cmp dword [eax + 0x14], 8
jb 0x5e174a
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 8
mov edi, eax
jb 0x5e177d
push dword [ebp - 0x28]
call fcn.00428680
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00428810
test edi, edi
je 0x5e17d0
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x44]
call esi
mov esi, 1
jmp 0x5e17f4
push 1
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00429100
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 1
jmp 0x5e17f4
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
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.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5e1a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71af23
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x7e6410]
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 edi, ecx
push 0x783aec
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x783aec
call fcn.00428840
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
call fcn.005b6a10
mov ecx, esp
mov byte [ebp - 4], 1
push 0x744bc4
push eax
push ecx
call fcn.00428bd0
push 0x7488ec
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push str.ACTIVE
push eax
call fcn.005b55c0
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00429150
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
setne bl
call fcn.00428810
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
test bl, bl
jne 0x5e1bc6
call fcn.005e1990
test al, al
je 0x5e1ae6
call fcn.005e19d0
jmp 0x5e1bc6
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movdqu xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x17bc], 0
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jne 0x5e1b71
push 0x88
call fcn.00428650
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x5e1b40
mov ecx, eax
call fcn.0053f930
jmp 0x5e1b42
xor eax, eax
push ecx
mov dword [edi + 0x17bc], eax
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [ebp - 4], 0xffffffff
mov dword [eax], ecx
push dword [edi + 4]
mov ecx, dword [edi + 0x17bc]
call fcn.0053fb50
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push 0
sub ecx, esi
sub eax, edx
push ecx
push eax
mov eax, dword [edi + 0x17bc]
push esi
push edx
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x17bc]
push 0
call fcn.005408d0
mov ecx, dword [edi + 0x17bc]
push 2
call fcn.00540940
mov eax, dword [edi + 0x17bc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 4]
call esi
mov eax, dword [edi + 0x17bc]
push 1
push dword [eax + 4]
call 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.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5e45c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0xb24]
test eax, eax
je 0x5e45ea
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5e45ea
mov eax, dword [esi]
push dword [eax + 0xb24]
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
ret
mov ecx, dword [esi]
push 0
push dword [ecx + 4]
add ecx, 0xb20
call fcn.005e8c20
mov eax, dword [esi]
push 1
push dword [eax + 0xb24]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [eax + 0xb24]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret
Function at 0x5ee650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x3a8]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x5ee731
cmp dword [eax + 4], 0
jle 0x5ee731
mov eax, dword [edi + 0xaf8]
test eax, eax
je 0x5ee6b2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5ee6b2
push dword [edi + 0xaf8]
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x320]
test eax, eax
je 0x5ee6bf
mov eax, dword [eax + 4]
push esi
push eax
lea ecx, [edi + 0xaf4]
call fcn.00664bc0
lea eax, [edi + 0x28]
push eax
lea ecx, [edi + 0xaf4]
call fcn.00665020
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
push 1
push 0
push 0
add eax, 0xffffffe2
push eax
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
push 0xffffffffffffffff
push dword [edi + 0xaf8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [edi + 0xaf8]
call fcn.005b74e0
add esp, 8
push 1
push dword [edi + 0xaf8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5ee7e0
Capabilities:
Get graphical window text

Disassembly:
push esi
push 1
mov esi, ecx
call fcn.005f5f60
cmp dword [esi + 0x1584], 0
je 0x5ee80c
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5ee80c
push 0
push 0xd
push 0x100
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
ret 0x10

Function at 0x5f0a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71cb18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x751b6c
lea ecx, [ebp - 0x10]
call fcn.004288a0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.005b6a10
add esp, 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00428b20
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00428810
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00428810
push 8
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00429100
push eax
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x5f0b10
push 0
push 0x64
push 0x1a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
inc dword [0x7f79e0]
mov esi, 1
jmp 0x5f0b12
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5f1510
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xb54]
test eax, eax
je 0x5f153a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5f153a
push dword [esi + 0xb54]
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop esi
ret 0x10
push 0
push dword [esi + 4]
lea ecx, [esi + 0xb50]
call fcn.005e8cd0
push 1
push dword [esi + 0xb54]
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 0xb54]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
ret 0x10
Function at 0x5f7370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.00429050
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00429050
mov ecx, dword [edi + 0x188c]
xor esi, esi
mov byte [ebp - 4], 1
test ecx, ecx
je 0x5f73cd
mov eax, dword [ecx]
call dword [eax + 0x20]
lea esi, [eax - 1]
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 8], 0
jne 0x5f7475
cmp dword [edi + 0x14b8], 0
je 0x5f754c
cmp dword [edi + 0x1484], 0
je 0x5f754c
cmp dword [0x7f73d4], 0
je 0x5f754c
mov eax, dword [0x7f73dc]
cmp eax, 1
jne 0x5f741c
mov ecx, edi
call fcn.005ca7d0
test eax, eax
jne 0x5f754c
mov eax, dword [0x7f73dc]
cmp eax, 2
jne 0x5f743b
cmp dword [edi + 0x14a0], 0
je 0x5f754c
cmp dword [edi + 0x14b0], 0
je 0x5f754c
test esi, esi
je 0x5f754c
lea esi, [edi + 0x155c]
mov ecx, esi
call fcn.00429100
push eax
lea ecx, [edi + 0x148c]
call fcn.00429110
test eax, eax
je 0x5f754c
push esi
call fcn.0058fdf0
add esp, 4
test eax, eax
jne 0x5f754c
lea eax, [edi + 0x155c]
mov dword [edi + 0x1484], 0
lea esi, [edi + 0x148c]
push eax
mov ecx, esi
call fcn.004289a0
mov ecx, edi
call fcn.005eaae0
lea eax, [edi + 0x1488]
push eax
lea ecx, [ebp - 0x14]
call fcn.004289a0
push 1
lea eax, [ebp + 8]
push esi
push eax
call fcn.00437100
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00429100
push eax
push 0x753ec0
lea ecx, [ebp - 0x14]
call fcn.00429560
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00428810
push SysReAllocStringLen
push 0x74218c
lea eax, [ebp - 0x1c]
push str.GRETECH
push eax
call fcn.005b3480
add esp, 0x10
push 0x753ed0
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
call fcn.00428bd0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004289a0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00428810
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00428810
push 0x78a158
lea ecx, [ebp - 0x18]
call fcn.00429100
push eax
call fcn.006b57a3
mov esi, eax
add esp, 8
test esi, esi
jne 0x5f7553
xor esi, esi
jmp 0x5f75dd
push esi
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0x10], 0xfeff
push 1
push eax
call fcn.006b5539
add esp, 0x10
lea ecx, [ebp - 0x14]
push esi
call fcn.004290e0
push eax
push 2
lea ecx, [ebp - 0x14]
call fcn.00429100
push eax
call fcn.006b5539
push esi
call fcn.006b5369
mov eax, dword [0x7f73d8]
lea ecx, [ebp - 0x18]
add esp, 0x14
lea esi, [edi + 0x24]
neg eax
sbb eax, eax
push 0
push 0
push 0xffff
push 0xffff
push 0
push 0x1388
and eax, 4
push eax
push 0x188
push SysReAllocStringLen
push 0x4f
push 0x108
call fcn.00429100
push eax
push dword [0x801a50]
push esi
call fcn.006826d0
add esp, 0x38
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5f8940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71d738
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7e6410]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x5f8a65
cmp byte [ebx + 0x45], 0
je 0x5f8a65
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x5f8994
xor al, al
jmp 0x5f8a67
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x5f89fe
dec eax
je 0x5f8a02
sub eax, 2
je 0x5f8a4e
xor bl, bl
jmp 0x5f8a50
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x5f8a34
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.006b5539
add esp, 0x10
cmp esi, eax
jne 0x5f89fa
cmp byte [ebx + 0x45], 0
je 0x5f8a4e
test esi, esi
jne 0x5f89c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00437010
jmp 0x5f89c4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x5f8a61
push dword [ebp - 0x28]
call fcn.00428680
add esp, 4
mov al, bl
jmp 0x5f8a67
mov al, 1
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.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x600b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71e258
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x7544fc]
lea ecx, [ebp + 8]
movq xmm0, qword [0x754504]
push 0
push 0x8000000
push 3
mov dword [ebp - 0x20], eax
mov al, byte [0x754500]
push 0
push 1
mov byte [ebp - 0x1c], al
mov eax, dword [0x75450c]
push SysReAllocStringLen
mov dword [ebp - 4], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x600c52
push 0
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x600c4b
lea eax, [ebp - 0x20]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.006bcab2
add esp, 8
test eax, eax
jne 0x600c0d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, 1
jmp 0x600c63
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xa
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x600c4b
lea eax, [ebp - 0x38]
mov word [ebp - 0x22], 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x600bf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 4