joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
mov dword [0x4332c0], 0
call esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x433710]
cmp eax, dword [ecx + 4]
jle 0x40378b
push 0x433710
call fcn.00414d5c
add esp, 4
cmp dword [0x433710], 0xffffffff
jne 0x40378b
push 0x428130
mov dword [0x4336d8], 0
mov dword [0x4336dc], 0xf
mov byte [0x4336c8], 0
mov dword [0x4336f0], 0
mov dword [0x4336f4], 0xf
mov byte [0x4336e0], 0
mov dword [0x433708], 0
mov dword [0x43370c], 0xf
mov byte [0x4336f8], 0
call fcn.00415299
push 0x433710
call fcn.00414d12
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x4336c8
push eax
call fcn.00413cf0
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov ecx, 0x4336e0
push eax
call fcn.00413cf0
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 0x38]
mov ecx, 0x4336f8
push eax
call fcn.00413cf0
push 0
push 0
push 0x4336c8
push 0x4035b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call esi
mov edx, dword [ebp + 0x1c]
mov esi, dword [0x4332c0]
cmp edx, 0x10
jb 0x40382f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403825
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038b8
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x403871
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403867
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038b8
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x4038b3
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4038a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038b8
push edx
push ecx
call fcn.004152ae
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.004186fc
int3
Function at 0x404580
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x15c]
movaps xmmword [ebp - 0x40], xmm0
push 0
push eax
movaps xmmword [ebp - 0x30], xmm0
call fcn.00415ec0
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x404601
mov eax, 0x64
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c3c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x18
mov ecx, esp
push 0x4323cc
call fcn.00413990
lea ecx, [ebp - 0x190]
call fcn.00402910
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x404628
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push 0x431d6c
call fcn.00413990
lea ecx, [ebp - 0x178]
call fcn.00402910
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x40464d
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x164]
mov esi, eax
cmp edx, 0x10
jb 0x404698
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40468e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404759
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
cmp edx, 0x10
jb 0x4046e9
mov ecx, dword [ebp - 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4046df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404759
push edx
push ecx
call fcn.004152ae
add esp, 8
mov dword [ebp - 0x180], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
push eax
test esi, esi
je 0x404710
call esi
jmp 0x404716
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x15c], 6
jb 0x404747
mov ax, word [ebp - 0x40]
cmp ax, 9
jne 0x404740
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414c3c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test ax, ax
jne 0x404747
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004186fc
int3

Function at 0x4049a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x4049a8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4049bb
test al, 0x10
je 0x4049bb
mov al, 1
ret
xor al, al
ret
Function at 0x404ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x140], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404ef0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00413cf0
mov ecx, 3
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x130], ecx
lea eax, [ebp - 0x140]
mov dword [ebp - 0x114], 0xf
cmovb ecx, dword [ebp - 0x130]
cmp dword [ebp - 0x12c], 0x10
push ecx
cmovae eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x128]
push eax
mov byte [ebp - 0x128], 0
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x431cdc
call fcn.00413990
lea ecx, [ebp - 0x158]
call fcn.00402910
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x404fbf
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404fb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405057
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x405010
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405057
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x144]
cmp edx, 0x10
jb 0x405046
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40503c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405057
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
int3
Function at 0x405060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050b0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x43224c
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.00402910
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x40512d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405123
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40518f
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40517e
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405174
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40518f
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
int3

Function at 0x4051a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4051f0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x43224c
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.00402910
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x40526d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405263
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052cf
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x4052be
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052cf
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
int3
Function at 0x4052e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405330
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x43224c
call fcn.00413990
lea ecx, [ebp - 0x140]
call fcn.00402910
push eax
lea edx, [ebp - 0x128]
mov ecx, esi
call fcn.00413e40
mov edx, dword [ebp - 0x114]
add esp, 0x1c
cmp edx, 0x10
jb 0x4053ad
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4053a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40540f
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x4053fe
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4053f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40540f
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
int3
Function at 0x407050
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
cmp dword [0x432158], 0x10
mov eax, 0x432144
cmovae eax, dword [0x432144]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40707c
ret
push 0
call fcn.004174bf
int3
Function at 0x4080a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x4080d7
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov word [eax + ecx], 0
jmp 0x4080ea
sub esp, 8
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
lea ecx, [ebp + 8]
call fcn.00414310
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x408111
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov word [eax + ecx], 0
jmp 0x408124
sub esp, 8
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00414310
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
xorps xmm0, xmm0
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x610
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x4081a3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408199
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081f6
push edx
push ecx
call fcn.004152ae
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4081e5
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4081db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081f6
push edx
push ecx
call fcn.004152ae
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414c3c
mov esp, ebp
pop ebp
ret
call fcn.004186fc
int3
Function at 0x40ed00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0xe
mov dword [ebp - 0x70], 0
Function at 0x4137d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4136f0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x413740
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x7530
call esi
jmp 0x4137c0
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.00408bd0
call fcn.00407050
mov ecx, 1
call fcn.004087c0
mov ecx, 1
call fcn.00408200
sub esp, 0x18
mov ecx, esp
call fcn.00405420
call fcn.00409000
add esp, 0x18
call fcn.00410fe0
jmp 0x413790
Function at 0x402420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00408c30
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push 8
push edi
push edi
push edi
xorps xmm0, xmm0
push esi
push edi
movq qword [ebp - 0x58], xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4024b4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402492
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087da
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004087da
mov esp, ebp
pop ebp
ret

Function at 0x402ba0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
mov edi, ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402c1a
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x28]
push str.Util
push eax
call fcn.00401490
add esp, 0xc
mov dword [ebp - 0x24], 1
push 4
push dword [eax]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x402c1a
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402c1a
cmp dword [ebp - 0x1c], 4
jne 0x402c1a
mov edi, 1
jmp 0x402c1c
xor edi, edi
test byte [ebp - 0x24], 1
je 0x402c3f
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402c3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x402c57
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x402c54
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087da
mov esp, ebp
pop ebp
ret
Function at 0x403060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4030eb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4030ad
cmp eax, 2
jne 0x4030c9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4030e5
test ecx, ecx
je 0x4030e0
test cl, 1
jne 0x4030c9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4030e5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087da
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004087da
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412d38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push str.SOFTWAREClassesCLSIDe56aed30_f6df_4f3b_bf66_3efa7c0355e5
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00401080
push 0x20006
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push 0x80000002
call fcn.00402f20
test eax, eax
je 0x403240
push 0
push 0
push 0x20006
push 0
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push 0x80000002
call fcn.004021b0
test eax, eax
je 0x403240
mov esi, dword [ebp - 0x24]
xor edi, edi
test esi, esi
je 0x4031ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], edx
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403218
mov ecx, dword [edx]
push dword [ebp - 0x14]
mov edx, dword [ecx]
call dword [edx + 4]
test esi, esi
je 0x403223
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 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.004087da
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402710
mov esi, dword [ebp - 0x24]
inc eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x41463c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4031dd
lea edi, [eax + 1]
jmp 0x4031df
Function at 0x4034f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push esi
xor eax, eax
test ecx, ecx
push edi
setne al
push 0
push 0x20
inc eax
push eax
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403575
push ebx
mov ebx, dword [ebp + 0x14]
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x40357d
cmp dword [ebp - 8], ebx
mov eax, 0x570
push edi
cmovne esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x40357d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40359a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004087da
mov esp, ebp
pop ebp
ret
Function at 0x4038e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4038f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403934
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403930
lea ebx, [ebx]
cmp esi, edx
jae 0x403934
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403920
cmp esi, edx
jb 0x403939
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret