joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d038
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d1e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45d1c4
mov dl, 1
mov eax, dword [0x413054]
call fcn.004040bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404f18
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45d1b3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044f534
test al, al
je 0x45d1a6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45d1f4
lea eax, [ebp - 0x254]
call fcn.00409c54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45d1a6
xor eax, eax
push ebp
push 0x45d19f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45d22c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d188
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405188
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45d188
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d1a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45d0a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004174dc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d1ea
lea eax, [ebp - 0x260]
call fcn.00404f18
ret

Function at 0x45db5c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46acd4]
cmp byte [eax + 0xad], 0
jne 0x45dbcd
cmp dword [0x46acf0], 0
jne 0x45db8e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45db18
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46acf0], eax
cmp dword [0x46acec], 0
jne 0x45dba9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46acec], eax
cmp dword [0x46acf4], 0
jne 0x45dbcd
push esp
push 0
push 0
push 0x45dabc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46acf4], eax
pop edx
ret
Function at 0x45dda0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ddb7
add esp, 0xfffffff0
call fcn.00404410
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b630
mov eax, dword [0x465abc]
cmp word [eax + 2], 0
jne 0x45dddf
mov eax, dword [0x465abc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f9a0
mov eax, dword [0x465b68]
cmp word [eax + 2], 0
jne 0x45ddf9
mov eax, dword [0x465b68]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045fbac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412aa4]
call fcn.004040bc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412aa4]
call fcn.004040bc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412aa4]
call fcn.004040bc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41fdf4]
call fcn.00427418
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45dfb0
mov eax, dword [0x4659e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004277ec
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x460280
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4659e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d4bc
test eax, eax
je 0x45df00
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004095f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d4f0
test eax, eax
je 0x45df14
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405188
mov byte [ebx + 0xd4], 0
push ebx
push 0x45f4c8
call fcn.0041c7ac
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4658e0]
cmp byte [eax], 0
jne 0x45df65
mov eax, ebx
call fcn.0045e0f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00460458
mov eax, ebx
call fcn.00460fbc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45dfa5
call fcn.00404468
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e374
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45e413
cmp dword [ebx + 0x94], 0
jne 0x45e40d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e2fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e40d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e3d3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e40d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414fd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e3e2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e62c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x46acd4]
cmp dword [eax + 0x30], 0
je 0x45e789
test bl, bl
jne 0x45e6da
cmp dword [esi + 0x9c], 0
jne 0x45e6cf
mov eax, esi
call fcn.00460e38
push eax
push 0x45e558
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45e6a0
mov eax, dword [0x46acd4]
call fcn.00461518
test al, al
je 0x45e6a0
mov eax, dword [0x46acf8]
call fcn.00405e20
mov edi, eax
cmp edi, 0
jl 0x45e6a0
push 0
mov eax, dword [0x46acf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45e68a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45e6cf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414fd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45e6af
inc dword [esi + 0x9c]
jmp 0x45e789
cmp dword [esi + 0x9c], 0
jle 0x45e789
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45e789
cmp dword [esi + 0x44], 0
je 0x45e735
mov eax, dword [0x46acd4]
call fcn.00461518
test al, al
je 0x45e735
mov eax, dword [0x46acf8]
call fcn.00405e20
mov edi, eax
cmp edi, 0
jl 0x45e735
push 5
mov eax, dword [0x46acf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45e71f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45e764
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414fd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45e744
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x46acf8
mov ecx, 1
mov edx, dword [0x45e538]
call fcn.00405fd4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45f21c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45f286
mov eax, ebx
call fcn.00461518
test al, al
jne 0x45f286
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405008
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45f273
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45f293
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f6c
jmp 0x45f293
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f6c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46063c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4606aa
mov eax, esi
call fcn.0044a1f8
test al, al
je 0x4606aa
mov eax, dword [ebx + 0x84]
call fcn.00449e48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4606aa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46069e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449e48
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00441ddc
jmp 0x4606aa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00460478
pop esi
pop ebx
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x370d708f
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
mov ecx, 0x4cda6157
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100011d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100011e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x100011fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1000121e
cmp esi, eax
jae 0x100011f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001210
cmp esi, eax
jae 0x100011f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10009be0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x418
mov eax, dword [0x1005d330]
push ebp
push esi
mov esi, dword [esp + 0x424]
mov dword [esp + 0x41c], eax
mov eax, dword [esi]
test eax, 0x800000
mov ebp, ecx
je 0x10009c1f
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x414]
call fcn.10036c09
add esp, 0x418
ret 0xc
push ebx
and eax, 0xf0ffffff
lea ebx, [ebp + 0xa0]
mov dword [esi], eax
mov dword [ebx], esi
mov eax, dword [esi]
add ebx, 4
test eax, 0x780000
push edi
lea edi, [esi + 0xc]
jne 0x10009dab
xor eax, eax
mov ax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x10009d89
xor eax, eax
cmp word [esi + 6], ax
jne 0x10009d8b
test dword [esi + 8], 0xffff
jne 0x10009d8b
cmp word [esi + 0xa], ax
jne 0x10009d8b
test byte [edi], 0xc0
jne 0x10009c87
mov dword [ebx], edi
add ebx, 4
mov edx, dword [esp + 0x430]
push 0x401
lea ecx, [esp + 0x24]
push ecx
mov dword [ebx], eax
push edi
lea ebx, [esi + edx]
push ebx
push esi
mov ecx, ebp
call fcn.10009330
test eax, eax
jge 0x10009cbe
mov eax, dword [esi]
and eax, 0xf1ffffff
or eax, 0x1000000
mov dword [esi], eax
jmp 0x10009dab
add edi, eax
xor eax, eax
mov ah, byte [edi]
add edi, 2
xor ecx, ecx
mov ch, byte [edi]
add edi, 2
cmp edi, ebx
mov al, byte [edi - 3]
mov cl, byte [edi - 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
ja 0x10009d9b
cmp eax, 0xfc
jne 0x10009cfb
mov dword [ebp + 0xa0], 0
and dword [esi], 0xfffeffff
mov eax, dword [esp + 0x430]
sub dword [esp + 0x434], eax
lea ecx, [esp + 0x20]
mov edx, ecx
push edx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10009dcd
push eax
mov ecx, ebp
call fcn.10009b30
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x438]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push esi
push eax
push ecx
sub edi, esi
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.100099c0
mov edx, dword [ebx]
push edx
mov edi, eax
call fcn.10037066
mov eax, dword [ebx + 0xc]
push eax
call fcn.10037066
push ebx
call fcn.10037066
add esp, 0xc
test edi, edi
je 0x10009dab
add dword [esp + 0x430], edi
mov cx, word [esp + 0x10]
add word [esi + 6], cx
jmp 0x10009dab
xor eax, eax
mov word [esi + 4], ax
mov word [esi + 8], ax
mov word [esi + 6], ax
mov word [esi + 0xa], ax
mov edx, dword [esi]
and edx, 0xf1ffffff
or edx, 0x1000000
mov dword [esi], edx
mov edx, dword [esi]
xor eax, eax
mov ax, word [esi + 6]
or edx, 0x80800000
mov dword [esi], edx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 6], ax
mov eax, dword [esp + 0x430]
mov ecx, dword [esp + 0x424]
pop edi
pop ebx
pop esi
pop ebp
call fcn.10036c09
add esp, 0x418
ret 0xc
Function at 0x10009ec0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x10009ee0
xor al, al
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push esi
push 0x14
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10009f04
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
push edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
je 0x10009f4b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
cmp dword [esp + 0x14], 2
jne 0x10009f4a
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x10009f30
pop ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
cmp eax, 4
pop esi
sete al
pop ebp
add esp, 0x1c
ret
Function at 0x10009f70
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
mov eax, 0x1020
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x1038], eax
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000a01e
push 0xf01ff
lea eax, [ebx + 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000a013
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10009ffe
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x10009ffe
mov edi, edi
cmp dword [esp + 0x14], 3
jne 0x10009ffe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x10009fe0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebp
push edi
call ebp
jmp 0x1000a024
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebp
jmp 0x1000a024
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x1000a0a8
push 0x7d0
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000a0a8
push str._service
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x834]
push 0x10050ae8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x840]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
lea edx, [ebx + 0x28]
push edx
add ebx, 0x228
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x1000a0c1
push esi
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x101c]
call fcn.10036c09
add esp, 0x1020
ret
push eax
call ebp
push esi
call ebp
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.10036c09
add esp, 0x1020
ret
Function at 0x1000a220
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
test edi, edi
je 0x1000a19a
push 0xf01ff
add esi, 0x228
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000a17e
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000a170
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x1000a16f
cmp dword [esp + 0x14], 3
jne 0x1000a16f
push 0x3e8
call ebp
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x1000a155
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x3e8
mov esi, 1
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret
push 0x3e8
xor esi, esi
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret
mov ecx, 0x1005e8f8
jmp 0x1000a0f0

Function at 0x1000a5e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x1005d330]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x41c], eax
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x100
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x18]
push str._s___WSAError:__ld_r_n
push ecx
call fcn.10036e11
lea eax, [esp + 0x20]
add esp, 0x10
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a632
lea edi, [ebx + 8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000a641
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a660
sub eax, edx
push 0
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x41c]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a690
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [0x1005c164]
mov word [0x1005ed24], ax
inc eax
mov dword [0x1005c164], eax
mov eax, dword [0x1005c160]
mov word [0x1005ed26], ax
inc eax
push esi
push edi
mov dword [0x1005c160], eax
mov edi, ecx
mov byte [0x1005ed20], 8
mov byte [0x1005ed21], 0
mov word [0x1005ed22], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x1005ed2d], cl
inc eax
cmp eax, 0x20
jl 0x1000a6d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1005ed29], eax
mov ecx, 0x1005ed20
xor eax, eax
mov edx, 0x16
movzx esi, word [ecx]
add eax, esi
add ecx, 2
dec edx
jne 0x1000a6f8
mov dl, byte [ecx]
mov dword [esp + 8], 0
mov byte [esp + 8], dl
movzx ecx, word [esp + 8]
add eax, ecx
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
add ecx, eax
mov eax, dword [esp + 0x14]
push 0x10
push eax
mov edx, ecx
push 0
sar edx, 0x10
push 0x2d
add edx, ecx
mov ecx, dword [esp + 0x20]
push 0x1005ed20
not edx
push ecx
mov word [0x1005ed22], dx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a762
push str.sendto__
mov ecx, edi
call fcn.1000a5e0
pop edi
mov eax, esi
pop esi
pop ecx
ret 8

Function at 0x1000a770
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14c
mov eax, dword [0x1005d330]
push esi
mov dword [esp + 0x14c], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x158]
mov esi, ecx
mov ecx, dword [esp + 0x15c]
push ecx
push 0
push 0x141
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x1000a7d4
push str.recvfrom__
mov ecx, esi
call fcn.1000a5e0
mov ecx, dword [esp + 0x15c]
mov dl, byte [esp + 0x10]
mov byte [ecx], dl
jmp 0x1000a7e1
mov eax, dword [esp + 0x15c]
mov cl, byte [esp + 0x10]
mov byte [eax], cl
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x25]
pop esi
call fcn.10036c09
add esp, 0x14c
ret 0xc