joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403319
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403336
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403345
mov ebx, 0x419474
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40335a
mov ecx, dword [0x449338]
add ecx, eax
push ecx
call fcn.0040353d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040350b
test eax, eax
je 0x4034f9
test byte [ebp + 0x17], 0x80
je 0x40349f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4153e8
mov dword [ebp - 0xc], eax
call fcn.0040664a
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403501
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4033aa
mov esi, dword [ebp + 0x14]
mov edi, 0x415474
push esi
push edi
call fcn.0040350b
test eax, eax
je 0x4034f9
sub dword [ebp + 0x14], esi
mov dword [0x415400], edi
mov dword [0x415404], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4153e8
mov dword [0x415408], ebx
mov dword [0x41540c], eax
call fcn.0040666c
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403497
mov esi, dword [0x415408]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x449394], 1
mov edi, eax
je 0x40344c
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403419
cmp dword [ebp + 0x14], 0
jne 0x40344c
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040533c
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40348c
cmp dword [ebp + 0x10], eax
jne 0x403475
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40349b
cmp dword [ebp - 0x10], esi
jne 0x40349b
add dword [ebp - 4], esi
jmp 0x403481
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x415408]
cmp dword [ebp - 0x14], 1
je 0x403501
jmp 0x4033cd
cmp dword [ebp + 0x14], eax
jg 0x40339d
jmp 0x403501
push 0xfffffffffffffffc
jmp 0x4034fb
push 0xfffffffffffffffe
jmp 0x4034fb
test edi, edi
jne 0x4034e6
cmp dword [ebp + 0x14], 0
jle 0x403501
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4034b4
mov esi, dword [ebp + 0x14]
mov edi, 0x415474
push esi
push edi
call fcn.0040350b
test eax, eax
je 0x4034f9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40349b
cmp esi, dword [ebp + 0x10]
jne 0x40349b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x4034a3
cmp dword [ebp + 0x14], esi
jge 0x4034ee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040350b
test eax, eax
jne 0x4034fe
push 0xfffffffffffffffd
pop eax
jmp 0x403504
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40583f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43fcc0], 0x44
push eax
xor eax, eax
push 0x43fcc0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40587a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405c31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d4c0
push esi
call fcn.00406065
push esi
call fcn.00405be2
mov edi, eax
test edi, edi
jne 0x405c52
xor eax, eax
jmp 0x405ca4
push edi
call fcn.004062f1
test byte [0x4492f8], 0x80
je 0x405c6b
mov al, byte [edi]
test al, al
je 0x405c4e
cmp al, 0x5c
je 0x405c4e
sub edi, esi
push esi
call fcn.0040607b
cmp eax, edi
push esi
jle 0x405c8e
call fcn.00406537
test eax, eax
je 0x405c86
test byte [eax], 0x10
je 0x405c4e
push esi
call fcn.00405b95
jmp 0x405c6d
call fcn.00405b4e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d1b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d37
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d3a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d69
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405dae
mov eax, edi
dec edi
test eax, eax
jne 0x405d74
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405da8
Function at 0x405db2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040655e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405dd6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe48], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe48
je 0x405e1a
push 1
push 0
push esi
call fcn.00405d3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f15
cmp eax, edi
jg 0x405f15
mov esi, 0x43f8c0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f15
cmp eax, edi
jg 0x405f15
push esi
push ebp
push str._s_s_r_n
push 0x43f4c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4492f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406099
push 4
push 0xc0000000
push esi
call fcn.00405d3a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f0f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f08
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f08
cmp edi, dword [esp + 0x18]
jne 0x405f08
push str._Rename__r_n
push esi
call fcn.00405ca9
test eax, eax
jne 0x405f1c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406065
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f4c0
push eax
call fcn.00405cf5
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405ca9
test eax, eax
je 0x405ed3
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405f43
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f38
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ed5
Function at 0x405f4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fbc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fab
cmp dword [ebp + 0x14], 1
je 0x405fad
cmp dword [ebp + 0x14], 2
je 0x405fad
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40638a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063af
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x4063a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x406422
cmp dword [0x440a60], ebx
je 0x406422
cmp byte [0x440660], bl
je 0x4063ee
cmp dword [0x40a8a8], 0xffffffff
jne 0x4063f7
push 4
push 0x40000000
push 0x440660
call fcn.00405d3a
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x406422
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x406422
push esi
mov esi, 0x444a80
push 0x40aaf0
push esi
call fcn.00406088
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040607b
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4065d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44024c], esi
push edi
jne 0x40660e
mov ecx, 0x440248
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4065ea
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440648
jl 0x4065e5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406643
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440248]
xor eax, esi
inc ecx
dec edx
jne 0x406626
pop edi
pop esi
not eax
ret 0xc
Function at 0x1001e50
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x100cd69
call fcn.01007e40
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x24]
mov dword [ebp - 0x10], esi
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x28]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
lea ecx, [esi + 0x2c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 3
lea ecx, [esi + 0x58]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 4
lea ecx, [esi + 0x60]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 5
lea ecx, [esi + 0x64]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 6
lea ecx, [esi + 0x70]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 7
lea ecx, [esi + 0x74]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 8
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], 1
mov dword [esi + 0xa0], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1005342
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1005419
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x1005419
mov eax, 0x8000
push eax
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x1005409
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call edi
mov ebx, 0xea
jmp 0x10053ce
add dword [ebp + 0x10], 0x2000
push dword [ebp + 0x10]
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
mov dword [esi], eax
je 0x1005409
lea ecx, [ebp + 0x10]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100539c
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, ebx
je 0x1005405
mov eax, dword [esi]
cmp eax, ebx
je 0x10053f5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push dword [ebp - 4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
mov eax, edi
jmp 0x100541b
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100557e
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0x74]
push edi
xor edx, edx
push 0x27
xor eax, eax
cmp ebx, edx
mov word [ebp - 0x38], dx
pop ecx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x68], edx
stosw word es:[edi], ax
je 0x1005612
mov eax, dword [ebp + 0x7c]
mov ax, word [eax + 6]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0x14
pop ecx
mov word [ebp + 0x76], ax
mov word [ebp + 0x74], dx
push dword [ebp + 0x74]
xor eax, eax
lea edi, [ebp - 0x38]
push ebx
rep stosd dword es:[edi], eax
call esi
push 0
lea eax, [ebp + 0x68]
push eax
push 0x4f
push 0x4f
push 0x10016a4
lea eax, [ebp - 0x38]
push eax
call fcn.010080d9
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp + 0x74]
push ebx
call esi
cmp dword [ebp + 0x78], 0
pop esi
je 0x1005612
push 0
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 0x78]
push ebx
call edi
pop edi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x1005a3c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x3c], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
jne 0x1005a6a
xor eax, eax
inc eax
jmp 0x1005b68
lea eax, [esi + 0xa4]
push eax
push 0x25a
call fcn.01008fa7
push eax
push dword [esi + 0xa0]
call fcn.0100557e
xor eax, eax
cmp dword [esi + 0xdc], edi
jne 0x1005a94
mov eax, dword [esi + 0x74]
push 5
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x1005ab1
call fcn.01008381
xor eax, eax
jmp 0x1005b68
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov ebx, 0x1000
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
ja 0x1005b42
add ebx, dword [ebp - 0x10]
push ebx
push 1
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x1005b2e
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 1
push 0x30
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1005b42
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1005abd
call fcn.01008381
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1005b3e
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
xor eax, eax
jmp 0x1005b67
cmp dword [esi + 0x90], edi
jne 0x1005b5b
cmp dword [ebp - 4], edi
je 0x1005b64
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1005b64
mov eax, dword [ebp - 4]
mov dword [esi + 0x94], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1005e4b
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x100cf4b
call fcn.01007e40
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x1005e8b
push 0x800300fd
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
lea ebx, [esi + 8]
mov eax, dword [ebx]
cmp eax, edi
je 0x1005e9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx], edi
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x14], eax
push eax
lea ecx, [ebp - 0x18]
call fcn.01004278
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
push 0x1001704
lea ecx, [ebp - 0x20]
call fcn.01004278
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 2
mov eax, dword [edi]
test eax, eax
je 0x1005ed4
mov edx, dword [eax]
jmp 0x1005ed6
xor edx, edx
mov eax, dword [ecx]
test eax, eax
je 0x1005ee0
mov ecx, dword [eax]
jmp 0x1005ee2
xor ecx, ecx
mov eax, dword [esi + 4]
mov edi, dword [eax]
push ebx
push 0
push 0x30
push edx
push ecx
push eax
call dword [edi + 0x50]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
xor edi, edi
cmp ecx, edi
je 0x1005f0a
call fcn.010042e8
mov dword [ebp - 0x20], edi
and byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x1005f1d
call fcn.010042e8
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x28], edi
jge 0x1005f27
push dword [ebp - 0x28]
jmp 0x1005f39
push dword [esi + 0xc]
push dword [ebx]
call fcn.010064f6
mov dword [ebp - 0x28], eax
cmp eax, edi
jge 0x1005f43
push eax
call fcn.01006929
jmp 0x1005e7a
push dword [esi + 0x50]
call fcn.010097f1
cmp dword [esi + 0xdc], 1
jne 0x1005f96
cmp dword [esi + 0x44], 1
jne 0x1005f96
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0x1005da7
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
cmp dword [ebp - 0x38], edi
je 0x1005f87
push dword [ebp - 0x38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x34], edi
je 0x1005f96
push dword [ebp - 0x34]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, esi
call fcn.01005c39
lea eax, [esi + 0xa4]
push eax
push edi
push dword [esi + 0xa0]
call fcn.0100557e
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x1005e7c
Function at 0x1007cb3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10019e8
call fcn.01007f28
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1007cee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007cee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1007d06
cmp eax, 0x20b
je 0x1007cf3
mov dword [ebp - 0x1c], edi
jmp 0x1007d1a
cmp dword [ecx + 0x84], 0xe
jbe 0x1007cee
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1007d14
cmp dword [ecx + 0x74], 0xe
jbe 0x1007cee
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f05c], 0xffffffff
or dword [0x100f060], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100f040]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100f03c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f064], eax
call fcn.01007f22
cmp dword [0x100f020], edi
jne 0x1007d75
push fcn.01007f22
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007f10
push 0x10012cc
push 0x10012c8
call sub.msvcrt.dll__initterm
mov eax, dword [0x100f038]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100f034]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10012c4
push 0x10012c0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005fcd
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1007dec
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007e21
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01007f61
ret