joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45da10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x45da59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45ded0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47dbd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045da80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045db00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045db00
lea ecx, [esi + 0xc]
call fcn.00475ac0
lea ecx, [esi + 0x10]
call fcn.00475ac0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045f090
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045f090
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045f090
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00475b35
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00475b35
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4764c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47e118
call fcn.00469254
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0047bf63
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x476502
call fcn.0047bf63
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x476510
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47651e
or eax, 0xffffffff
jmp 0x476606
mov ecx, esi
call fcn.00476439
mov dword [ebp - 0x14], eax
call fcn.00477433
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x476555
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x476555
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004773e7
push dword [ebp - 0x14]
call fcn.00476f19
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004761d1
cmp eax, edi
je 0x4765c8
test byte [esi + 0x24], 0x10
je 0x476596
push 4
mov ecx, esi
pop ebx
call fcn.00476919
test ah, 1
je 0x47658e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00478f3e
cmp dword [esi + 0x1c], edi
je 0x4765c8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047694d
jmp 0x4765c8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4765dc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4765f5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4765f5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00476473
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x478dec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478e2e
call fcn.0047bf63
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478e2e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x478e25
xor eax, eax
jmp 0x478e36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478e3c
pop edi
pop esi
pop ebx
ret 4
Function at 0x47c45c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47c48a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47c4a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047c3c2
jmp 0x47c4a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47c4a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047c3c2
test edi, edi
mov eax, edi
jne 0x47c492
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, str.http:__www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwff.com
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jmp 0x4081a7
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10

Function at 0xc3700d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c3700d
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x77621104
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x68c64a15
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10029fb
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1003ca8
call fcn.01002d14
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1005400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10027b6
cmp eax, esi
jne 0x10027a9
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10027b9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002790
xor esi, esi
inc esi
mov eax, dword [0x10053fc]
cmp eax, esi
jne 0x10027cc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10027fb
mov eax, dword [0x10053fc]
test eax, eax
jne 0x10027f5
mov dword [0x10053fc], esi
push 0x100116c
push 0x1001160
call fcn.010026f2
pop ecx
pop ecx
test eax, eax
je 0x10027fb
jmp 0x100291f
mov dword [0x10050cc], esi
mov eax, dword [0x10053fc]
cmp eax, esi
jne 0x100281f
push 0x100115c
push 0x1001154
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10053fc], 2
cmp dword [ebp - 0x20], ebx
jne 0x100282c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100540c], ebx
je 0x100284d
push 0x100540c
call fcn.01002c89
pop ecx
test eax, eax
je 0x100284d
push ebx
push 2
push ebx
call dword [0x100540c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100291f
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10028b7
cmp cx, bx
je 0x1002872
cmp dword [ebp - 0x1c], ebx
jne 0x10028b7
movzx ecx, word [eax]
cmp cx, bx
je 0x1002887
cmp cx, 0x20
ja 0x1002887
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002872
test byte [ebp - 0x40], 1
je 0x1002893
movzx ecx, word [ebp - 0x3c]
jmp 0x1002896
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10050c8], eax
cmp dword [0x10050bc], ebx
jne 0x10028fc
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10028c8
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100285c
cmp dword [0x10050cc], ebx
jne 0x100290a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10050c8]
jmp 0x100292b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002d59
ret
call fcn.01002e61
jmp 0x1002753
Function at 0x100338a
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100503c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x10033dc
mov esi, 0x80070057
push esi
push 0x7b7
push 0x10015b0
push 1
call fcn.01003241
jmp 0x1003451
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, 0x80070000
test eax, eax
jne 0x1003422
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003414
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x1003422
push esi
push 0x7c4
jmp 0x100348e
cmp dword [ebp - 0x10], ebx
jne 0x1003434
mov esi, 0x8007000e
push esi
push 0x7c5
jmp 0x100348e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1003471
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
pop edi
cmp dword [ebp - 0x10], ebx
je 0x100345f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a15
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003482
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x1003448
push esi
push 0x7cd
push 0x10015b0
push 1
call fcn.01003241
jmp 0x1003450
Function at 0x10034a1
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100503c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x10034f3
mov esi, 0x80070057
push esi
push 0x7fa
push 0x10015c8
push 1
call fcn.01003241
jmp 0x1003564
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, 0x80070000
test eax, eax
jne 0x1003535
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003527
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x1003535
push esi
push 0x807
jmp 0x10035a1
cmp dword [ebp - 0x10], ebx
jne 0x1003547
mov esi, 0x8007000e
push esi
push 0x808
jmp 0x10035a1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1003584
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
pop edi
cmp dword [ebp - 0x10], ebx
je 0x1003572
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a15
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003595
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x100355b
push esi
push 0x810
push 0x10015c8
push 1
call fcn.01003241
jmp 0x1003563
Function at 0x10016c1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001b38
call fcn.01001864
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100147c
cmp eax, esi
jne 0x100146f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100147f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001456
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001492
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10014c1
mov eax, dword [0x100236c]
test eax, eax
jne 0x10014bb
mov dword [0x100236c], esi
push 0x10010bc
push 0x10010b0
call fcn.010013b8
pop ecx
pop ecx
test eax, eax
je 0x10014c1
jmp 0x10015e5
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10014e5
push 0x10010ac
push 0x10010a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10014f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x1001513
push 0x1002374
call fcn.010017d9
pop ecx
test eax, eax
je 0x1001513
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10015e5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100157d
cmp cx, bx
je 0x1001538
cmp dword [ebp - 0x1c], ebx
jne 0x100157d
movzx ecx, word [eax]
cmp cx, bx
je 0x100154d
cmp cx, 0x20
ja 0x100154d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001538
test byte [ebp - 0x40], 1
je 0x1001559
movzx ecx, word [ebp - 0x3c]
jmp 0x100155c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x10015c2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100158e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001522
cmp dword [0x1002034], ebx
jne 0x10015d0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10015f1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010018a9
ret
call fcn.010019b1
jmp 0x1001419
Function at 0x4014a8
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x40afd4
call fcn.00404448
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x4015cd
mov ecx, dword [ebp - 0x18]
call fcn.00401799
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call fcn.00401ce6
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push SysReAllocString
mov dword [ebp - 4], ebx
call fcn.00401ca8
mov edi, eax
cmp edi, ebx
je 0x40151c
cmp dword [ebp - 0x14], ebx
je 0x4015cb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4015cb
mov dword [ebp - 0x10], ebx
push esi
push str.D95C9B4A_9B92_4B75_B273_80C0EAECAB24
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401ca8
mov edi, eax
cmp edi, ebx
jne 0x4015ae
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 0xc], ebx
je 0x40159a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x40e298
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.004016b7
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.00403060
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4015c1
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4015cb
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4016b7
Capabilities:
Create service
Modify service
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040108d
test eax, eax
je 0x4016d6
push 1
pop eax
jmp 0x401794
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4016fb
add edi, 0x84
push esi
push edi
push str.Couldnt_open_service_manager
jmp 0x401750
lea eax, [ebp - 0x210]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push str.RPCSS
push esi
lea eax, [ebp - 0x210]
push esi
push eax
push 1
push 3
add edi, 0x84
push 0x10
push 0xf01ff
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x40175b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x401794
push 1
lea eax, [ebp - 8]
pop edi
push eax
push 3
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x401779
push str.ChangeServiceConfig2_failed_n
jmp 0x40177e
push str.SERVICE_CONFIG_DELAYED_AUTO_START_INFO_updated_successfully._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401799
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040108d
test eax, eax
je 0x401820
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
jne 0x4017cf
add esi, 0x84
push ebp
push esi
push str.Couldnt_open_service_manager
jmp 0x4017f6
lea ebx, [esi + 0x84]
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x4017f9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x40182f
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x401825
push 1
pop eax
jmp 0x401837
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x401fa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
and dword [ebp - 8], 0
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x401ff5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x401fe0
call esi
mov esi, eax
jmp 0x4020ba
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4020ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402029
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x402039
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4020b1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40203d
jmp 0x402008
call esi
jmp 0x4020af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov edi, ebx
cmp byte [esi + ebx], 0
je 0x402070
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.004048b0
lea eax, [esi + 1]
mov edi, esp
push eax
push ebx
push edi
call fcn.00404470
add esp, 0xc
and byte [edi + esi], 0
test edi, edi
jne 0x402078
xor ebx, ebx
jmp 0x4020a3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004048b0
mov ebx, esp
push esi
push ebx
xor eax, eax
push 0xffffffffffffffff
push edi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ebx
call fcn.004020c6
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402a0f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x40b06c
call fcn.00404448
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00401ca8
mov edi, eax
cmp edi, esi
je 0x402a59
cmp dword [ebp - 0x10], esi
je 0x402a52
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402af6
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x402aca
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.00402a0f
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x402ab7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x402a7c
cmp dword [ebp - 0x10], esi
je 0x402ac5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x402af6
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402add
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x402af4
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4