joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495ce2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x57b804]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x495d2d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004961a4
test al, al
jne 0x495d27
sub edx, 2
cmp edx, edi
jne 0x495d0d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495d4f
lea eax, [edi + 2]
cmp edx, eax
je 0x495d4f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004958db
add esp, 0x10
jmp 0x495e49
push esi
lea ecx, [ebp - 0x255]
call fcn.004961a4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x495d92
push dword [ebp - 0x25c]
jmp 0x495d3f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x495dcf
cmp word [ebp - 0x226], 0
je 0x495df0
cmp word [ebp - 0x226], ax
jne 0x495dcf
cmp word [ebp - 0x224], 0
je 0x495df0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004958db
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495e3c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495da9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x495e24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495e49
push 0x4952c3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405754
add esp, 0x10
jmp 0x495e19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a18f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x57b804]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004060f0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a193a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1a96
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406258
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x57f460]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x57f460]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1a8f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1a8f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1a8f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x4a1a8f
jg 0x4a1a05
test eax, eax
jb 0x4a1a8f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1a8f
jl 0x4a1a1f
cmp dword [ebp - 0x1008], eax
ja 0x4a1a8f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1a3d
test ebx, ebx
je 0x4a1a76
cmp ecx, edi
jae 0x4a1a76
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1a57
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1a63
cmp byte [ecx + 1], 0xa
jne 0x4a1a63
inc ecx
jmp 0x4a1a63
movzx eax, al
movsx eax, byte [eax + 0x57c140]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1a3d
cmp edx, ebx
jne 0x4a1a3d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1a94
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a21d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x57f460]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2215
cmp byte [ebx], 0xa
jne 0x4a2215
or byte [eax + edi + 0x28], 4
jmp 0x4a221a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a2318
mov al, byte [edx]
cmp al, 0x1a
je 0x4a22fa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2249
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a226e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2278
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a222b
jmp 0x4a2318
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a22f5
cmp dword [ebp - 0xc], 0
je 0x4a22f5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x57f460]
test byte [eax + edi + 0x28], 0x48
je 0x4a22cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a22ba
mov byte [esi], dl
jmp 0x4a22cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57f460]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2318
cmp byte [ebp - 1], 0xa
jne 0x4a22de
cmp esi, ebx
jne 0x4a22de
mov byte [esi], 0xa
jmp 0x4a2317
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2318
mov byte [esi], 0xd
jmp 0x4a2317
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x57f460]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2314
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2318
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2374
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x57f460]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a23b7
cmp word [esi], dx
jne 0x4a23b7
or byte [edi + eax + 0x28], 4
jmp 0x4a23bc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a250f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a24ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a23fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2434
cmp eax, edx
jae 0x4a2440
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a23d6
jmp 0x4a250f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a24eb
cmp dword [ebp - 0x14], 0
je 0x4a24eb
mov eax, dword [ebx*4 + 0x57f460]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a24c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a248c
mov word [esi], cx
jmp 0x4a24bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x57f460]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x57f460]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x57f460]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a250f
pop ebx
cmp word [ebp - 4], bx
jne 0x4a24d4
cmp esi, dword [ebp + 0xc]
jne 0x4a24d4
mov word [esi], bx
jmp 0x4a250c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a250f
push 0xd
jmp 0x4a2508
mov ecx, dword [ebx*4 + 0x57f460]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2506
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a250f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.0040d800
xor eax, eax
add esp, 0x14
lea ecx, [ebp - 0x204]
mov word [ebp - 6], ax
mov dword [ebp - 0x208], ecx
cmp dword [esi + 0x260], eax
jne 0x40112d
mov edx, ecx
push edx
call fcn.0040d4a9
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401162
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d820
mov esp, ebp
pop ebp
ret

Function at 0x401b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ba2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x401b71
cmp eax, 2
jne 0x401b8c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x401b9c
test eax, eax
je 0x401b97
test al, 1
jne 0x401b8c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x401b9c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402a30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
push 0x104
lea edi, [esi + 0x268]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402b6c
mov eax, edi
lea edx, [eax + 2]
jmp 0x402a60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a60
sub eax, edx
sar eax, 1
je 0x402b6c
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x268]
push eax
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x402aa2
push ebx
call fcn.0040d82f
mov edi, eax
add esp, 4
test edi, edi
jne 0x402aab
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push edi
push ebx
push ecx
lea eax, [esi + 0x268]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402b5a
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x41b81c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402b5a
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x12]
mov dword [esi + 0x678], ecx
movzx edx, word [eax + 0x10]
mov dword [esi + 0x67c], edx
movzx ecx, word [eax + 0x16]
mov dword [esi + 0x680], ecx
movzx edx, word [eax + 0x14]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push str.StringFileInfo040904e4OriginalFilename
push edi
mov dword [esi + 0x684], edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402b5a
mov edx, dword [esi + 0x684]
mov eax, dword [esi + 0x680]
mov ecx, dword [esi + 0x67c]
push edx
mov edx, dword [esi + 0x678]
push eax
mov eax, dword [ebp - 8]
push ecx
push edx
push eax
push str._s___d._d._d._d
add esi, 0x470
push esi
call fcn.00401220
add esp, 0x1c
push edi
call fcn.0040d8c3
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x402bd9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x402bca
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x402d14
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402c7a
cmp eax, 0x104
je 0x402c7a
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x402c8d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402c65
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.00401350
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x402d08
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402cf9
push 0x41b820
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.00401350
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x402c72
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040d820
mov esp, ebp
pop ebp
ret
Function at 0x402d30
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0040dbc0
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x402d9b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x402d8a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402d90
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x402db1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402e0b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402dfc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00401350
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x402f48
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402e69
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402dfc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00401350
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x402f48
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x402ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x402ee2
cmp eax, 0x425
jne 0x402e9a
cmp dword [ebp - 0x101c], 3
je 0x402ee2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402ed0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00401350
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x402d9b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.004015a0
add esp, 0xc
test eax, eax
jne 0x402f3e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.00401350
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040d820
mov esp, ebp
pop ebp
ret
Function at 0x403040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00401a80
mov ebx, eax
cmp ebx, esi
je 0x4030ba
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4030a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40313c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00403040
mov ebx, eax
cmp ebx, esi
jne 0x403094
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4030f0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x403155
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00401930
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x403178
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d820
mov esp, ebp
pop ebp
ret 4

Function at 0x4036b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4036d1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x402f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4036f8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4059ad
call fcn.004015f0
mov edi, eax
jmp 0x405a92
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4059c6
call fcn.004015f0
jmp 0x405a89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4059e4
call fcn.004015f0
jmp 0x405a89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x405a05
mov edi, 0x8007000e
jmp 0x405a8b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004042f0
mov dword [ebp - 4], 1
jmp 0x405a3d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x405a4e
mov edi, 0x8007000e
jmp 0x405a8b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x405a67
call fcn.004015f0
jmp 0x405a89
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00405650
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x405ab0
lea ecx, [ebp - 0x418]
call fcn.004029f0
jmp 0x405ab0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret 0x10