joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490ecc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x490ed4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x490ff1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402e84
mov eax, dword [ebp - 0x14]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.00402ac0
mov edi, eax
push edi
push esi
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402e84
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x491000
push edi
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00408f90
push dword [ebp - 0x20]
push 0x49100c
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00408f90
push dword [ebp - 0x24]
push 0x49100c
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00408f90
push dword [ebp - 0x28]
push 0x49100c
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00408f90
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004048d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, 0xff
call fcn.004047ec
mov edx, esi
mov eax, edi
call fcn.00402af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490ff8
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00404574
ret
Function at 0x491a54
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a00
xor eax, eax
push ebp
push 0x491bcf
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.00407904
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00407924
mov ebx, eax
jmp 0x491ba1
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409614
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408a18
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408a18
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040495c
je 0x491b78
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408a18
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408a18
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040495c
jne 0x491b92
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00407944
mov ebx, eax
test ebx, ebx
jne 0x491ad3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491bd6
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404550
ret

Function at 0x491be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
xor eax, eax
push ebp
push 0x491cd5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.00407904
mov esi, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.00407924
mov ebx, eax
jmp 0x491cb3
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409614
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408a68
mov edx, dword [ebp - 0x12c]
mov eax, dword [0x49af9c]
mov eax, dword [eax + 0x574]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x491ca4
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x128]
mov eax, esi
call fcn.00407944
mov ebx, eax
test ebx, ebx
jne 0x491c39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491cdc
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00404574
ret
Function at 0x49693c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, 0x496594
call fcn.00406740
mov ebx, dword [0x4993f8]
xor eax, eax
push ebp
push 0x496a9b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.0045f3f4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409614
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408a18
mov eax, dword [ebp - 0x14]
call fcn.0049641c
test al, al
jne 0x496a80
push 0x496aac
push 0x496ad0
call sub.user32.dll_FindWindowA
cmp eax, 0x20
ja 0x496a80
mov eax, dword [ebx]
call fcn.0045ec9c
mov eax, dword [ebx]
mov edx, 0x496ae8
call fcn.0045e884
push 0xffffffffffffffec
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
push esi
call sub.user32.dll_GetWindowLongA
add eax, 0x80
push eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x48c73c]
call fcn.004573e0
mov edx, dword [0x499630]
mov dword [edx], eax
mov ecx, dword [0x499354]
mov eax, dword [ebx]
mov edx, dword [0x48f3ec]
call fcn.0045ecb4
mov ecx, dword [0x499504]
mov eax, dword [ebx]
mov edx, dword [0x48eb08]
call fcn.0045ecb4
mov ecx, dword [0x499098]
mov eax, dword [ebx]
mov edx, dword [0x48ef44]
call fcn.0045ecb4
push 0xffffffffffffffec
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
push esi
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
push 0x40000080
push 0xffffffffffffffec
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx]
call fcn.0045eb78
mov eax, dword [ebx]
call fcn.0045ed34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496aa2
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404574
ret
Function at 0x403340
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 0x14]
movzx eax, word [ebp + 0x10]
movzx ecx, byte [ebp + 8]
movzx ebx, word [ebp + 0xc]
mov dword [ebp - 0x10], eax
xor eax, eax
test cl, cl
sete al
shr edx, 8
test eax, eax
mov dword [ebp - 0x14], eax
setne al
movzx eax, al
test eax, edx
je 0x4033c0
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, 0x407322
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x14]
shr edx, 4
and esi, 3
and edx, 1
and edi, 0xc
lea esi, [esi]
lea edi, [edi]
cmp word [eax - 2], bx
je 0x4034ae
inc ecx
add eax, 0xa
cmp ecx, 0xc
jne 0x4033a0
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, cl
cmp bx, 0x58
mov dword [ebp - 0x18], ecx
jbe 0x403403
mov eax, edi
or eax, dword [ebp + 0x18]
jne 0x4033e0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4034a6
mov esi, esi
test edi, edi
je 0x4033b3
cmp esi, 0xff
jle 0x4033f9
mov eax, esi
and eax, 0xff00
lea esi, [eax + 0xff]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 2
lea edi, [ebx*8 + 0x407040]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.USER32.dll_MapVirtualKeyA
movzx ebx, ax
mov eax, dword [sym.imp.MSVCRT.DLL___mb_cur_max]
sub esp, 8
cmp dword [eax], 1
jne 0x4034d7
mov eax, dword [sym.imp.MSVCRT.DLL__pctype]
mov eax, dword [eax]
movzx eax, word [eax + ebx*2]
and eax, 1
test eax, eax
jne 0x403527
mov eax, dword [sym.imp.MSVCRT.DLL___mb_cur_max]
cmp dword [eax], 1
jne 0x403502
mov eax, dword [sym.imp.MSVCRT.DLL__pctype]
mov eax, dword [eax]
movzx eax, word [eax + ebx*2]
and eax, 2
test eax, eax
mov edx, ebx
jne 0x403536
test byte [ebp + 0x14], 3
je 0x4034ed
movzx esi, word [edi + 6]
xor edi, edi
cmp esi, 0xff
jle 0x4033cc
cmp dword [ebp - 0x18], ebx
sete al
cmp dword [ebp - 0x18], edx
sete dl
or eax, edx
test al, 1
je 0x4033cc
mov edi, 1
jmp 0x4033cc
mov esi, dword [ebp - 0x18]
jmp 0x4033e4
test esi, esi
jne 0x4034c6
test edi, edi
jne 0x403518
test edx, edx
jne 0x403545
movzx esi, word [eax]
jmp 0x4033e4
movzx esi, word [eax + 6]
test esi, esi
setne al
movzx edi, al
jmp 0x4033e0
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call sub.MSVCRT.DLL__isctype
jmp 0x403440
test byte [ebp + 0x14], 0xc
jne 0x40351e
test byte [ebp + 0x14], 0x10
je 0x40354e
movzx esi, word [edi + 2]
jmp 0x403478
mov dword [esp], ebx
mov eax, 2
mov dword [esp + 4], eax
call sub.MSVCRT.DLL__isctype
jmp 0x403464
movzx esi, word [eax + 4]
jmp 0x4034ca
movzx esi, word [edi + 4]
jmp 0x403478
mov dword [esp], ebx
call sub.MSVCRT.DLL_tolower
mov edx, eax
jmp 0x40346e
mov dword [esp], ebx
call sub.MSVCRT.DLL_toupper
mov edx, eax
jmp 0x40346e
movzx esi, word [eax + 2]
jmp 0x4034ca
mov eax, dword [ebp - 0x18]
mov esi, ebx
test eax, eax
jne 0x403478
movzx esi, word [edi]
jmp 0x403478
Function at 0x404520
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 8], esi
js 0x4045d6
test ebx, ebx
js 0x4045c4
and esi, 0xffff0000
movzx eax, di
mov edx, dword [ebp + 0x14]
or esi, eax
shl ebx, 0x10
and esi, 0xffff
or esi, ebx
test edx, edx
js 0x40459e
mov dword [esp], 0
lea ebx, [ebp - 0x18]
call fcn.00403e00
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.KERNEL32.dll_GetConsoleCursorInfo
sub esp, 8
xor eax, eax
cmp dword [ebp + 0x14], 0
mov dword [esp + 4], ebx
setne al
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SetConsoleCursorInfo
sub esp, 8
mov dword [esp + 4], esi
xor eax, eax
mov dword [0x408040], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SetConsoleCursorPosition
sub esp, 8
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404db0
mov ebx, eax
jmp 0x404545
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004046c0
mov edi, eax
jmp 0x40453d
Function at 0x490370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x49038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4b9074
push ecx
mov edi, eax
call fcn.004a4198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4903cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004a402e
push esi
call fcn.004a3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x493850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x4938ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x4be720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4938ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.004a41e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x4938ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x4be720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x49392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.004a5082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x493957
mov word [eax], si
add eax, 2
push eax
call fcn.004a5030
add esp, 4
jmp 0x493959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x4938ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4938b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x493ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x494080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x4940c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x4b9458
push ecx
call fcn.004a41e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004a41e1
add esp, 0x10
jmp 0x4940d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.004a3dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00494050
mov eax, dword [0x4be728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x49413b
push esi
call fcn.00493fb0
add esp, 4
mov dword [0x4be728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x49414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00493ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x497440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x4974b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x49748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x497471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49747e
add edx, ecx
cmp ebx, edx
jb 0x49748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x497467
xor ecx, ecx
jmp 0x4974a2
test eax, eax
jne 0x497492
xor ecx, ecx
jmp 0x4974a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.004973c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4978f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x497921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x497946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x49796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x497993
push ecx
push esi
call fcn.004974c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x498c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x498c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x498c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x498c38
add edx, eax
cmp ebx, edx
jb 0x498c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x498c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x498c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x498c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x498cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x498c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x498ca8
add edx, ecx
cmp ebx, edx
jb 0x498cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x498c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x498f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.004a5145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x498ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x498fdd
lea eax, [esp + 0x18]
push eax
jmp 0x498fe2
push 0x4be720
call fcn.004a4fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x498fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x498f40
push 4
push ecx
push eax
call fcn.004a543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x499310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.004a5145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4993ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x49938d
lea eax, [esp + 0x18]
push eax
jmp 0x499392
push 0x4be720
call fcn.004a4fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x499360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x498f40
push 4
push ecx
push eax
call fcn.004a543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x49af20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x49afd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x49afcf
push ebx
push edi
push 0x4be770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x49afae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x4be770
push esi
call ebx
test eax, eax
je 0x49afae
mov ebp, 3
cmp dword [0x4be774], ebp
jne 0x49afaa
push 0x3e8
call edi
push 0x4be770
push esi
call ebx
test eax, eax
jne 0x49af8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x49afc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x49afbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret