joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x440cf6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x440c08
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00440d10
jmp 0x440d0a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0043bd80
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x440c9c
jg 0x440c30
cmp dword [ebp + 0xc], 0
jbe 0x440c9c
cmp dword [ebp - 8], 0
jl 0x440c9c
jg 0x440c3e
cmp dword [ebp - 0xc], 0
jbe 0x440c9c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x440c5c
jl 0x440c50
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x440c5c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0043f000
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043df30
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0043eed0
cmp dword [ebp + 0x10], 0
jl 0x440ce6
jg 0x440caa
cmp dword [ebp + 0xc], 0
jbe 0x440ce6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x440ce6
mov ecx, dword [ebp - 4]
call fcn.0043c7e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x440d0a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00440d10
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x440f4e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x440e68
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00440f70
jmp 0x440f62
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0043c740
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x440efc
jg 0x440e90
cmp dword [ebp + 0xc], 0
jbe 0x440efc
cmp dword [ebp - 8], 0
jl 0x440efc
jg 0x440e9e
cmp dword [ebp - 0xc], 0
jbe 0x440efc
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x440ebc
jl 0x440eb0
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x440ebc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0043fd70
push eax
call fcn.0043df30
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0043fbb0
cmp dword [ebp + 0x10], 0
jl 0x440f3e
jg 0x440f0a
cmp dword [ebp + 0xc], 0
jbe 0x440f3e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x440f3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x440f62
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00440f70
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push 0x4bb38c
push 0x4bb3a4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4462a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1417
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8a8], ecx
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0x442
lea edx, [ebp - 0x8b4]
push edx
mov ecx, dword [ebp - 0x8a8]
add ecx, 4
call fcn.00444300
mov ecx, eax
call fcn.004392b0
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x810]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
test eax, eax
jne 0x446335
xor eax, eax
jmp 0x44651b
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x870]
call fcn.00442b90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.00436890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x870]
call fcn.004446a0
push eax
lea edx, [ebp - 0x828]
push edx
call fcn.00446980
add esp, 8
push 0
push 0x4bb7a8
lea ecx, [ebp - 0x828]
call fcn.004492c0
mov dword [ebp - 0x8a4], eax
cmp dword [ebp - 0x8a4], 0xffffffff
jne 0x4463cf
mov dword [ebp - 0x8ac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.00438400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x870]
call fcn.00442d50
mov eax, dword [ebp - 0x8ac]
jmp 0x44651b
mov eax, dword [ebp - 0x8a4]
push eax
push 0
lea ecx, [ebp - 0x8a0]
push ecx
lea ecx, [ebp - 0x828]
call fcn.004405d0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
mov edx, dword [ebp - 0x8a4]
add edx, 1
push edx
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x828]
call fcn.004405d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x858]
call fcn.00442c00
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8b8], esp
lea edx, [ebp - 0x8a0]
push edx
call fcn.00436730
lea eax, [ebp - 0x858]
push eax
call fcn.00446a00
add esp, 0x1c
lea ecx, [ebp - 0x840]
call fcn.00442c00
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8bc], esp
lea edx, [ebp - 0x888]
push edx
call fcn.00436730
lea eax, [ebp - 0x840]
push eax
call fcn.00446a00
add esp, 0x1c
lea ecx, [ebp - 0x858]
call fcn.004446a0
push eax
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x48
call fcn.004445e0
lea ecx, [ebp - 0x840]
call fcn.004446a0
push eax
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x50
call fcn.004445e0
mov dword [ebp - 0x8b0], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x840]
call fcn.00442d50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x858]
call fcn.00442d50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x888]
call fcn.00438400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8a0]
call fcn.00438400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.00438400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x870]
call fcn.00442d50
mov eax, dword [ebp - 0x8b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x446950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push 0x4bb7ac
push 0x4bb7c4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4491d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4491f4
xor eax, eax
jmp 0x449274
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44920b
xor eax, eax
jmp 0x449274
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x449257
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x449257
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x44922e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x449263
xor eax, eax
jmp 0x449274
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x449271
xor eax, eax
jmp 0x449274
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44a1e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44a200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45dde0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045e3d0
call fcn.0045e000
test eax, eax
je 0x45de0a
mov byte [ebp - 0x806], 1
jmp 0x45de11
mov byte [ebp - 0x806], 0
mov al, byte [ebp - 0x806]
mov byte [ebp - 0x805], al
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
movzx ecx, byte [ebp - 0x805]
test ecx, ecx
je 0x45deb9
mov dword [ebp - 0x80c], 0
push 0x4be4e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x45de9a
push 0x4be500
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x810], eax
push 0x4be520
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x810], 0
je 0x45deb9
cmp dword [ebp - 0x814], 0
je 0x45deb9
lea ecx, [ebp - 0x818]
push ecx
call dword [ebp - 0x810]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x400
push 0
lea edx, [ebp - 0x404]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.driversPro5.sys
lea ecx, [ebp - 0x404]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0x400
push 0
lea edx, [ebp - 0x804]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Pro5.del
lea ecx, [ebp - 0x804]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx edx, byte [ebp - 0x805]
push edx
lea eax, [ebp - 0x404]
push eax
push 0x4be560
call fcn.0045e850
add esp, 0xc
mov dword [ebp - 0x81c], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x404]
push edx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
add esp, 8
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x404]
push edx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
add esp, 4
lea eax, [ebp - 0x804]
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
add esp, 4
movzx ecx, byte [ebp - 0x805]
test ecx, ecx
je 0x45dfec
cmp dword [ebp - 0x810], 0
je 0x45dfec
cmp dword [ebp - 0x814], 0
je 0x45dfec
lea edx, [ebp - 0x818]
push edx
call dword [ebp - 0x814]
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x45e170
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45e1a1
xor eax, eax
jmp 0x45e20a
lea edx, [ebp - 0x24]
push edx
push 0x4bdf50
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x45e1ba
xor eax, eax
jmp 0x45e20a
mov dword [ebp - 0x14], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x24]
mov dword [ebp + ecx - 0x10], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp + ecx - 0xc], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x45e205
xor eax, eax
jmp 0x45e20a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret

Function at 0x45e220
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45e24b
xor al, al
jmp 0x45e2c5
lea ecx, [ebp - 0x20]
push ecx
push 0x4bdf74
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x45e26e
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45e2c5
mov dword [ebp - 0x14], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
mov dword [ebp + ecx - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp + ecx - 0xc], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x45e2c3
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45e2c5
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x45e2e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x28]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45e329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45e322
mov al, 1
jmp 0x45e3c1
xor al, al
jmp 0x45e3c1
lea ecx, [ebp - 0x34]
push ecx
push 0x4bdf98
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x45e34c
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45e3c1
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 1
mov ecx, 0xc
imul edx, ecx, 0
mov eax, dword [ebp - 0x34]
mov dword [ebp + edx - 0x10], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp + edx - 0xc], ecx
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 8], 2
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x45e3b5
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45e3c1
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret

Function at 0x45e3f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45e416
xor eax, eax
jmp 0x45e4c1
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45e432
xor eax, eax
jmp 0x45e4c1
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45e44b
xor eax, eax
jmp 0x45e4c1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45e462
xor eax, eax
jmp 0x45e4c1
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x45e488
xor eax, eax
jmp 0x45e4c1
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45e4b2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45e4c1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45e5d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
jmp 0x45e5f2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 5
jge 0x45e638
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
je 0x45e623
cmp dword [ebp - 0x28], 4
je 0x45e61a
jmp 0x45e627
mov eax, 1
jmp 0x45e63a
jmp 0x45e5e9
xor eax, eax
jmp 0x45e63a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x45eee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0045f680
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x45fa70
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x45f760
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45f680
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004ae2d0
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2014], ecx
lea eax, [ebp - 0x200c]
push eax
push 0x2000
lea ecx, [ebp - 0x2004]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x45f730
mov edx, dword [ebp - 0x200c]
shr edx, 2
mov dword [ebp - 0x2010], edx
mov dword [ebp - 0x2008], 0
jmp 0x45f6e3
mov eax, dword [ebp - 0x2008]
add eax, 1
mov dword [ebp - 0x2008], eax
mov ecx, dword [ebp - 0x2008]
cmp ecx, dword [ebp - 0x2010]
jae 0x45f730
mov edx, dword [ebp - 0x2008]
lea eax, [ebp + edx*4 - 0x2004]
push eax
mov ecx, dword [ebp - 0x2008]
lea edx, [ebp + ecx*4 - 0x2004]
push edx
lea eax, [ebp - 0x201c]
push eax
call fcn.00435a30
add esp, 0xc
push eax
lea ecx, [ebp - 0x2024]
push ecx
mov ecx, 0x4e7e40
call fcn.00435980
jmp 0x45f6d4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret

Function at 0x45fb80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45fbae
xor al, al
jmp 0x45fc32
lea ecx, [ebp - 0x20]
push ecx
push 0x4be6bc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x45fbd1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45fc32
mov dword [ebp - 0x14], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
mov dword [ebp + ecx - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp + ecx - 0xc], eax
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x45fc26
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x45fc32
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret