joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d1570
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x744d00
push 0x6673a0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x74e694]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x5d16ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x5d16cf
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x5d16cf
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push 1
push esi
call edi
test eax, eax
je 0x5d16bc
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x48]
jae 0x5d16f3
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x54]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x74], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x64], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x5d16bc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x5d16bc
cmp dword [ebp - 0x3c], 1
je 0x5d16d3
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x5d16bc
cmp dword [ebp - 0x3c], 1
je 0x5d16d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x5d1682
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x74e694
call fcn.00667500
add esp, 0xc
xor al, al
jmp 0x5d1701
mov dword [ebp - 4], 0
call fcn.005d16eb
inc edi
jmp 0x5d162b
mov dword [ebp - 4], 0xfffffffe
call fcn.005d171d
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
Function at 0x5d1740
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push ebx
push esi
push edi
push ecx
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.005c34c0
add esp, 8
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x5d180b
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5d179f
push eax
call fcn.0066a657
add esp, 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], 0
call fcn.005c34c0
add esp, 8
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [ebp - 0x40]
mov esi, eax
test esi, esi
je 0x5d17e9
push 0x10
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5d1888
push esi
call ebx
xor bl, bl
test edi, edi
je 0x5d17f8
push edi
call fcn.0066a657
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x38]
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x5d1830
push esi
call ebx
test edi, edi
je 0x5d179f
push edi
jmp 0x5d1797
lea ecx, [ebp - 0x3c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push dword [ebp - 0x34]
mov esi, eax
call ebx
push dword [ebp - 0x44]
call ebx
test esi, esi
je 0x5d1822
cmp dword [ebp - 0x24], 4
sete al
mov byte [ebp - 0x29], al
test edi, edi
je 0x5d186d
push edi
call fcn.0066a657
mov al, byte [ebp - 0x29]
add esp, 4
test al, al
je 0x5d179f
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00663ada
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp - 0x30]
test eax, eax
setne byte [ebp - 0x29]
call ebx
push esi
call ebx
mov bl, byte [ebp - 0x29]
jmp 0x5d17eb
Function at 0x5d2c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x74e694]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00663a97
mov edi, eax
add esp, 4
test edi, edi
je 0x5d2ced
push 1
mov dword [ebp - 4], 0
call fcn.006659ee
add esp, 4
mov dword [edi + 4], eax
jmp 0x5d2cef
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.005a21f0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x5d2d4a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x5d2d4a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x5d2d66
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x5d2d89
cmp byte [ebp + 0xc], 0
je 0x5d2d75
push esi
call fcn.00665edd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x5d2d95
mov esi, str.ios_base::badbit_set
jmp 0x5d2da5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.005a5d80
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.005a2ff0
push 0x741ca4
lea eax, [ebp - 0x28]
push eax
call fcn.006667a7
int3
Function at 0x5d3ee0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6930b9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
push ecx
push eax
call fcn.005c34c0
add esp, 8
mov dword [0x74e0d8], 0
cmp dword [0x74e0dc], 0x10
mov eax, 0x74e0c8
cmovae eax, dword [0x74e0c8]
mov byte [eax], 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x5d3f6c
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
jmp 0x5d3fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c5710
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, 0x74e0c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5d3fbd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d3fb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d3ffa
push edx
push ecx
call fcn.00663ac7
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5d3fdb
push ecx
call fcn.0066a657
add esp, 4
mov eax, esi
mov edx, edi
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.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
int3
Function at 0x5d6290
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693412
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x734310
push eax
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x484], esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x484], eax
cmp eax, 0xffffffff
je 0x5d63d4
nop dword [eax + eax]
mov ax, word [ebp - 0x454]
cmp ax, 0x2e
je 0x5d63ad
test byte [ebp - 0x480], 0x10
je 0x5d63a4
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x488]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.005d6290
add esp, 0xc
cmp dword [ebp - 0x220], 0
jne 0x5d6412
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x5d63ad
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d6398
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d64e9
push edx
push ecx
call fcn.00663ac7
add esp, 8
jmp 0x5d63ad
cmp ax, word [edi]
je 0x5d643f
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5d6310
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x10], 0
mov byte [esi], 0
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.00663ada
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x5d63f5
mov edx, dword [ebp - 0x488]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d6471
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.005d2a30
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.005ccb30
mov edx, dword [ebp - 0x21c]
add esp, 8
cmp edx, 8
jb 0x5d63f5
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5d64da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d64e9
push edx
push ecx
call fcn.00663ac7
add esp, 8
jmp 0x5d63f5
call fcn.0066a5fb
int3
Function at 0x5daa30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7548cc]
test eax, eax
jne 0x5daa93
push esi
push 0x10
call fcn.00663a97
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x5daa88
lea eax, [ebp - 4]
mov dword [esi], vtable.Installer.0
push eax
push 0
push esi
push 0x5de8d0
push 0
push 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, esi
mov dword [0x7548cc], esi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [0x7548cc], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5f8210
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696b9f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str..pipe_
push eax
call fcn.005a1ec0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.005c34c0
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x5f82a8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f829e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f83bb
push edx
push ecx
call fcn.00663ac7
add esp, 8
push 0
push 0
push 0
push 0
push 1
push 0
push 0x40080003
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x5f838a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c5710
add esp, 8
push 0x18
push str.CreateNamedPipe_failed:
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005a5ba0
lea ecx, [esi + 0x20]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
push eax
movq qword [ebp - 0x30], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5f8354
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f834a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f83c0
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5f8384
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f837a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f83c0
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov byte [ebp - 0x41], 0
jmp 0x5f838e
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x5f839e
push eax
call fcn.0066a657
add esp, 4
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
call fcn.0066a5fb
int3
Function at 0x5f83d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x4c]
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [eax], 0
test ecx, ecx
je 0x5f8493
nop dword [eax]
push eax
mov eax, dword [ebp - 0x60]
sub ecx, esi
push 0
push ecx
add eax, esi
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5f845e
push 1
lea eax, [ebp - 0x5c]
push eax
lea eax, [edi + 0x4c]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x5f8486
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5f854e
push 1
lea eax, [ebp - 0x5c]
push eax
lea eax, [edi + 0x4c]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x5f84b2
add esi, dword [ebp - 0x5c]
lea eax, [edi + 0x4c]
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jb 0x5f8430
mov al, 1
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.00663ada
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005c5710
add esp, 8
push 0x1c
push str.GetOverlappedResult_failed:
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.005a5ba0
lea ecx, [edi + 0x20]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5f853f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f8535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f85df
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00448860
xor al, al
jmp 0x5f8495
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005c5710
add esp, 8
push 0x11
push str.ReadFile_failed:
push 0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.005a5ba0
lea ecx, [edi + 0x20]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5f85d0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f85c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f85e4
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00448860
xor al, al
jmp 0x5f8495
call fcn.0066a5fb
call fcn.0066a5fb
int3
Function at 0x5f85f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696c17
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
cmp dword [ecx + 0x48], 0x9249249
lea esi, [ecx + 0x44]
mov eax, dword [ebp + 8]
mov edi, dword [esi]
mov dword [ebp - 0x48], eax
je 0x5f8770
mov dword [ebp - 0x50], esi
push 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
call fcn.00663a97
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
add esp, 4
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], 0
inc dword [esi + 4]
xor esi, esi
mov eax, dword [edi + 4]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [edi + 4], ecx
mov edi, dword [ebp + 0xc]
mov dword [eax], ecx
test edi, edi
je 0x5f86b0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x44]
mov eax, dword [eax + 4]
add eax, 8
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
add eax, esi
push eax
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5f86cf
add esi, dword [ebp - 0x4c]
cmp esi, edi
jb 0x5f8680
mov al, 1
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.00663ada
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x5f86b0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005c5710
add esp, 8
push 0x12
push str.WriteFile_failed:
push 0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.005a5ba0
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5f8761
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5f8757
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f877a
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00448860
xor al, al
jmp 0x5f86b2
push str.list_too_long
call fcn.006657fd
call fcn.0066a5fb
int3

Function at 0x5f87e0
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x74e40c]
cmp eax, 0xa
jne 0x5f887b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
and eax, 0x1ff
add eax, 0xfffffffe
cmp eax, 0x83
ja case.0x5f880a.3
movzx eax, byte [eax + 0x5f88a4]
jmp dword [eax*4 + 0x5f887c]
mov eax, 1
mov dword [0x74e40c], eax
ret
mov eax, 2
mov dword [0x74e40c], eax
ret
mov eax, 3
mov dword [0x74e40c], eax
ret
mov eax, 4
mov dword [0x74e40c], eax
ret
mov eax, 5
mov dword [0x74e40c], eax
ret
mov eax, 6
mov dword [0x74e40c], eax
ret
mov eax, 9
mov dword [0x74e40c], eax
ret
mov eax, 7
mov dword [0x74e40c], eax
ret
mov eax, 8
mov dword [0x74e40c], eax
ret
xor eax, eax
mov dword [0x74e40c], eax
ret
Function at 0x5fa950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
cmp eax, 0x201
jne 0x5fa9a1
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x898]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [edi + 0xc50], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x205
cmp ax, cx
jne 0x5faa41
push ebx
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov eax, dword [edi + 4]
push 0
push ebx
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
test eax, eax
jne 0x5faa2b
push 2
push ebx
push esi
call dword [sym.imp.USER32.dll_MonitorFromPoint]
test eax, eax
je 0x5faa2b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x28
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push ecx
push eax
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x5faa2b
mov eax, dword [ebp - 0x18]
cmp esi, eax
jge 0x5faa24
mov esi, eax
jmp 0x5faa2b
cmp esi, dword [ebp - 0x10]
cmovg esi, dword [ebp - 0x10]
push 0
push dword [ebp - 0x38]
push 0
push ebx
push esi
push 4
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00663ada
mov esp, ebp
pop ebp
ret 0x10