joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10115e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [0x1019001], bl
push edi
mov dword [ebp - 0x39c], esi
je 0x1011643
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10116d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x10116db
lea eax, [ebp - 0x394]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x10116c3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1011670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10116e0
and eax, 0xffff
or eax, 0x80070000
jmp 0x10116e0
call fcn.0100450b
mov dword [ebp - 0x398], esp
push ebx
push ebx
push edi
push dword [ebp - 0x398]
push 0xffffffffffffffff
push dword [ebp - 0x39c]
push ebx
push ebx
call esi
test eax, eax
je 0x101165a
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10116d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x10116db
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x10116db
cmp eax, 0xffffffff
je 0x10116db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10116e0
test al, 0x10
je 0x10116d3
mov eax, 0x80070002
lea esp, [ebp - 0x3a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010016d9
leave
ret 4
Function at 0x1015347
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x1019001], bl
push esi
push edi
je 0x1015383
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x10154fd
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10153bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10154ff
and eax, 0xffff
or eax, 0x80070000
jmp 0x10154ff
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0x18], esp
jne 0x10153d2
mov eax, 0x8007000e
jmp 0x10154ff
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x101539f
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x101539f
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0x14], esp
je 0x10153c8
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x14]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x101539f
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x101539f
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0x10], esp
je 0x10153c8
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x101539f
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10154a2
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x101539f
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0xc], esp
je 0x10153c8
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
test eax, eax
je 0x101539f
jmp 0x10154b9
push 4
pop eax
call fcn.0100451c
mov eax, esp
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10153c8
mov byte [eax], bl
mov esi, dword [ebp + 0x18]
lea eax, [esi + 1]
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x10153c8
push dword [ebp - 0x18]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push dword [ebp + 0x14]
push edi
push dword [ebp - 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101539f
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010016d9
leave
ret 0x18
Function at 0x1015518
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x1019001], bl
push esi
push edi
je 0x101554e
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1015631
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1015587
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015638
and eax, 0xffff
or eax, 0x80070000
jmp 0x1015638
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0x10], esp
jne 0x101559d
mov eax, 0x8007000e
jmp 0x1015638
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x101556a
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x101556a
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 0xc], esp
je 0x1015593
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x101556a
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x101556a
call fcn.0100450b
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x1015593
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x101556a
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010016d9
leave
ret 0x14

Function at 0x1015d05
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1015d59
push 3
lea eax, [ebp - 0x44]
push 0x1015d6c
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010016d9
leave
ret
Function at 0x1015d88
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1015de1
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x1015e35
dec ecx
jne 0x1015e58
cmp edx, 5
jne 0x1015e2d
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x1015e29
dec ecx
je 0x1015e1e
dec ecx
je 0x1015e0f
push 0x14
jmp 0x1015e80
cmp word [ebp - 0xc], 1
jb 0x1015e19
push 0x10
pop eax
or eax, 4
jmp 0x1015e58
cmp word [ebp - 0xc], 2
jb 0x1015e19
push 8
jmp 0x1015e18
push 4
jmp 0x1015e80
cmp edx, 4
ja 0x1015e64
push 2
pop eax
cmp edx, 4
jne 0x1015e58
cmp dword [ebp - 0x118], 0
je 0x1015e55
cmp dword [ebp - 0x118], 0xa
je 0x1015e55
cmp dword [ebp - 0x118], 0x5a
jne 0x1015e58
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010016d9
leave
ret
cmp edx, 6
jne 0x1015e83
cmp dword [ebp - 0x118], 0
jne 0x1015e83
cmp dword [ebp - 0x114], 0x1554
jae 0x1015e83
push 0x40
pop eax
jmp 0x1015e58
push 0x20
jmp 0x1015e80

Function at 0x101601c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10194cc], si
jne 0x10160b4
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x10161a8
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10160b4
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1016260
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10160b4
push 3
push dword [esi*8 + 0x10160c8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10160a6
inc esi
cmp esi, 0x1c
jae 0x10160b4
jmp 0x1016085
mov ax, word [esi*8 + 0x10160cc]
mov word [0x10194cc], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10194cc]
xor ecx, ebp
pop esi
call fcn.010016d9
leave
ret
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408b70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401200
xor al, al
jmp 0x401220
cmp dword [ebp - 0x7c], 5
jb 0x4011fc
jbe 0x40120c
mov al, 1
jmp 0x401220
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x401220
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004088de
add ebp, 0xa0
leave
ret

Function at 0x4016f6
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.0040233c
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.0040235a
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40173f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401773
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.0040233c
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x40ec0c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.0040235a
test bl, bl
je 0x401778
or eax, 0xffffffff
jmp 0x40178c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401791
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x218], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x21c], bl
call fcn.00408b70
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push ebx
push 0x40ec14
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401907
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
call fcn.00402182
add esi, 0x10
lea ebx, [ebp - 0x214]
call fcn.00402291
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
call fcn.004010b5
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, 0x40eb90
push edi
push 0x67
xor ebx, ebx
push ebx
call esi
mov dword [ebp - 0x214], eax
cmp eax, ebx
jne 0x40185b
push edi
push 0x66
push ebx
mov byte [ebp - 0x21c], 1
call esi
mov dword [ebp - 0x214], eax
cmp eax, ebx
je 0x401907
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401907
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x401907
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x401907
push dword [ebp - 0x21c]
xor eax, eax
push dword [ebp - 0x218]
lea edi, [ebp - 0x228]
push dword [ebp - 0x214]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, esi
call fcn.00401b75
add esp, 0xc
test eax, eax
jne 0x4018f4
push ebx
push ebx
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401907
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x218], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088de
leave
ret
Function at 0x401b75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xa0], eax
jne 0x401bc6
push 0
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d72
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x80], eax
jne 0x401d72
jmp 0x401d56
cmp dword [ebp + 8], 0xd
jb 0x401d72
xor ebx, ebx
lea eax, [ebp - 0x90]
mov edx, edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x90], 0x401b5f
mov dword [ebp - 0x8c], 0x401b6a
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00404617
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x84], eax
call fcn.0040c637
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x84]
push eax
push esi
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], ebx
call fcn.004044cd
add esp, 0x14
push dword [ebp - 0x6c]
mov edi, eax
lea eax, [ebp - 0x90]
push eax
call dword [ebp - 0x8c]
push dword [ebp - 0x68]
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x6c], ebx
call dword [ebp - 0x8c]
add esp, 0x10
mov dword [ebp - 0x68], ebx
cmp edi, ebx
je 0x401c94
or edi, 0xffffffff
push esi
call fcn.0040c67b
pop ecx
mov eax, edi
jmp 0x401d75
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x94], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x98], edx
add esi, eax
call fcn.0040c637
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
push eax
push dword [ebp - 0x98]
mov eax, dword [ebp - 0x94]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404684
add esp, 0x24
test eax, eax
je 0x401d13
push dword [ebp - 0x84]
call fcn.0040c67b
mov esi, dword [ebp - 0x88]
xor edi, edi
pop ecx
inc edi
jmp 0x401c86
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d5a
cmp dword [ebp - 0x9c], esi
jne 0x401d5a
push dword [ebp - 0x84]
call fcn.0040c67b
pop ecx
push dword [ebp - 0x88]
call fcn.0040c67b
pop ecx
xor eax, eax
jmp 0x401d75
push dword [ebp - 0x84]
call fcn.0040c67b
pop ecx
push dword [ebp - 0x88]
call fcn.0040c67b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088de
leave
ret
Function at 0x401e7f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
and dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x401ec4
call fcn.00401e62
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
call fcn.004088de
add ebp, 0x1b8
leave
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x401eaa
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00408b70
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x401f12
call fcn.00401e62
mov esi, eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
jmp 0x401eaf
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x70], eax
jne 0x401f21
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x401f38
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401f12
mov esi, 0x80004005
jmp 0x401f04
mov dword [edi], eax
xor esi, esi
jmp 0x401f04

Function at 0x401fc9
Capabilities:
Query service status

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x74], eax
call fcn.00401f3e
test al, al
je 0x401fee
xor al, al
jmp 0x4020a1
push edi
lea edi, [ebp - 0x34]
call fcn.00401e7f
test eax, eax
jge 0x402002
xor al, al
jmp 0x4020a0
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40201f
xor al, al
jmp 0x40209f
push esi
mov esi, str.seclogon
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x8e
lea eax, [ebp - 0x1a]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00408b70
add esp, 0xc
push 0xf01ff
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x402069
mov byte [ebp - 0x2d], 0
push ebx
call esi
mov al, byte [ebp - 0x2d]
jmp 0x40209e
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x5c]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push edi
test eax, eax
je 0x402091
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jne 0x402091
call esi
mov byte [ebp - 0x2d], 1
jmp 0x402061
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor al, al
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004088de
add ebp, 0x78
leave
ret
Function at 0x402890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.00402625
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408b70
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4028f1
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004026d5
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x40294f
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x40291a

Function at 0x402990
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.00402a29
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402a21
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x402a1c
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x402a13
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402a13
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x402a23
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402a29
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402a81
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402a88
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402a85
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402a85
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402aae
lea edx, [eax + ecx]
jmp 0x402ab0
xor edx, edx
test edx, edx
je 0x402a85
lea eax, [edx + 8]
test eax, eax
je 0x402a85
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402adf
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402adf
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402ae1
xor eax, eax
test eax, eax
je 0x402a85
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402b8b
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402bae
test esi, esi
jl 0x402bc2
cmp esi, dword [edi + 0x10]
jge 0x402bc2
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402b93
lea esi, [edi + 0xc]
call fcn.00402307
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]