joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fb890
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x5fb933
test eax, eax
jbe 0x5fb933
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x5fb933
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x5fb8de
xor esi, esi
jmp 0x5fb8e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x5fb90f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.005ffc90
add esi, eax
push esi
mov ebx, esi
call fcn.005ffc90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x5fb8f0
pop ebp
test edi, edi
pop edi
jne 0x5fb933
test ebx, ebx
je 0x5fb933
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00618df0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x5fba55
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5fbb6d
push eax
call dword [sym.imp.USER32.dll_IsWindow_1]
test eax, eax
je 0x5fbb6d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0062a6b1
mov esi, eax
test esi, esi
je 0x5fbb6d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x5fbb6d
mov ecx, esi
call fcn.005fb9e0
cmp edi, eax
jge 0x5fbb6d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5fbaf3
mov dword [esp + 0x34], 1
jmp 0x5fbb4e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x5fbb6d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen_1]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005faf90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x602c60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x726ef0]
xor edx, edx
cmp eax, edx
jne 0x602c86
xor eax, eax
mov byte [eax + 0x726df0], al
inc eax
cmp eax, 0x100
jl 0x602c6e
mov dword [0x726ef0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x726df0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x602d17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x602cea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x602cb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x602d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x602d73
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x602d5a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x609730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63778e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0060a050
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x650674
call fcn.006289c8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x6097c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006289c8
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x6097bc
push 0
mov ecx, eax
call fcn.006008a0
mov dword [esi + 0xc], eax
jmp 0x6097c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x6097c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x62b055
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x62b08d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006290e2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006290ba
jmp 0x62b099
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x62c74a
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 0x62c78c
call fcn.00632204
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x62c78c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x62c783
xor eax, eax
jmp 0x62c794
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0062c79a
pop edi
pop esi
pop ebx
ret 4

Function at 0x632734
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_1]
cmp dword [esp + 0x10], 0
jne 0x632762
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x632780
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0063269a
jmp 0x632780
mov eax, dword [esi + 0x14]
test eax, eax
je 0x632780
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0063269a
test edi, edi
mov eax, edi
jne 0x63276a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x1004054
Capabilities:
Listen for remote procedure calls

Disassembly:
mov eax, dword [0x1028054]
test al, 1
je 0x1004060
or eax, 2
or eax, 0x80
push eax
mov dword [0x1028054], eax
call fcn.01008566
test eax, eax
jne 0x1004079
jmp fcn.01004e91
ret

Function at 0x1004316
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0x1028060
push esi
push 0x1001788
call fcn.01003f87
push esi
call fcn.01008e6e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov edi, ebx
jle 0x100438d
mov eax, dword [ebp - 8]
push dword [eax + edi*4]
call fcn.01004091
cmp byte [0x1028759], bl
jne 0x1004383
cmp byte [0x1028758], bl
jne 0x1004383
push 0x1001760
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 0x57
pop eax
test eax, eax
jne 0x10043c6
inc edi
cmp edi, dword [ebp - 4]
jl 0x1004359
cmp byte [0x1028778], bl
pop edi
pop esi
pop ebx
je 0x10043dc
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x1001460
mov dword [ebp - 0x14], 0x1004274
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x10043d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 0x10
call fcn.0100418d
push esi
call fcn.0100401d
push ebx
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
jmp 0x10043c2
call fcn.01004054
test eax, eax
jne 0x10043f2
push 0x2dc6c0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10043e5
push eax
push 0x1001738
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
push 0
jmp 0x10043d2

Function at 0x1005634
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1028084]
jne 0x1005645
test ecx, 0xffff0000
jne 0x1005645
ret
jmp fcn.0100564f
Function at 0x1005734
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10019f8
call fcn.01005930
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1005787
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1005787
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100579f
cmp ecx, 0x20b
je 0x100578c
mov dword [ebp - 0x1c], ebx
jmp 0x10057b3
cmp dword [eax + 0x84], 0xe
jbe 0x1005787
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x10057ad
cmp dword [eax + 0x74], 0xe
jbe 0x1005787
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10290a0], edi
mov dword [0x10290a4], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1028ae8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1028ae4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10290a8], eax
call fcn.010059ec
cmp dword [0x1028088], ebx
jne 0x1005810
push fcn.010059ec
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010059d5
push 0x1001430
push 0x100142c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1028ae0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1028adc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001428
push 0x100141c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x100589b
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x100587b
cmp cl, 0x22
jne 0x100586c
cmp byte [eax], 0x22
jne 0x1005884
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x100588f
cmp cl, 0x20
jbe 0x1005880
test byte [ebp - 0x54], 1
je 0x10058a6
movzx ecx, word [ebp - 0x50]
jmp 0x10058a9
cmp byte [eax], 0x20
jbe 0x1005884
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100589b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01004316
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10058c7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1005903
mov eax, esi
jmp 0x1005917
call fcn.0100596b
ret
Function at 0x100667b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 0x1000
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0x10067ad
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
mov edi, 0x800
push 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10066c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10066f7
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x10066e5
mov dword [ebp - 4], 8
jmp 0x10066f1
push dword [ebp - 8]
push ebx
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
mov dword [0x1028f44], ebx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
jne 0x100674b
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 3
call esi
test eax, eax
jne 0x100671c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 4], eax
jne 0x100674b
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x1006739
mov dword [ebp - 4], 8
jmp 0x1006745
push dword [ebp - 8]
push ebx
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
mov dword [0x1028f48], ebx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
jne 0x100679f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 2
call esi
test eax, eax
jne 0x1006770
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 4], eax
jne 0x100679f
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
jne 0x100678d
mov dword [ebp - 4], 8
jmp 0x1006799
push dword [ebp - 8]
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
pop ecx
pop ecx
mov dword [0x1028f4c], esi
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
jmp 0x10067b4
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
leave
ret

Function at 0x1006ceb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], eax
je 0x1006d2d
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006d2d
cmp dword [ebp - 4], 4
mov eax, dword [ebp - 8]
je 0x1006d30
mov eax, dword [ebp + 0x10]
leave
ret 0xc
Function at 0x1007849
Capabilities:
Modify service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1007879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100795f
push esi
push edi
push 0x23
push 0x1002200
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x100789d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100794b
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call esi
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x10078c7
mov dword [ebp - 4], 8
jmp 0x100793d
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x1007922
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, 3
jne 0x1007900
cmp byte [ebp + 8], bl
je 0x1007900
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100793d
jmp 0x1007922
cmp eax, 2
jne 0x100793d
cmp byte [ebp + 8], bl
jne 0x100793d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100792d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100793d
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], ebx
je 0x100794b
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp edi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1007958
push edi
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4

Function at 0x1007a9b
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 1
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
test eax, eax
je 0x1007ac5
call fcn.01006661
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1007aff
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1007ae5
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push 2
push 4
push dword [eax]
call fcn.0100aedb
jmp 0x1007aef
call fcn.01006661
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x1007aff
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeAnsiString]
leave
ret 8
Function at 0x1007e24
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call fcn.01005b9b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [ebp + 0xc], 8
mov esi, eax
jne 0x1007e6f
mov eax, dword [0x1028fcc]
mov ecx, esi
sub ecx, eax
cmp ecx, 0x36ee80
ja 0x1007e6f
cmp eax, ebx
je 0x1007e6f
mov edi, dword [0x1028fd0]
jmp 0x1007ed1
lea eax, [ebp - 8]
push eax
push 0x91
push ebx
push ebx
push dword [ebp + 0x10]
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov edi, eax
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1007eb2
test byte [eax + 0x1c], 0x20
je 0x1007eb2
cmp byte [eax + 0x19], 3
jb 0x1007eb2
push edi
push 0x1001fac
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
cmp edi, ebx
jne 0x1007ed1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.01005bb6
push dword [ebp - 8]
mov edi, eax
call sub.NETAPI32.dll_NetApiBufferFree
push 0x1028b04
call fcn.01006b5b
cmp eax, ebx
je 0x1007ee6
mov edi, eax
jmp 0x1007f97
cmp byte [ebp - 1], 1
jne 0x1007f10
cmp edi, ebx
jne 0x1007f0a
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1028fc0
call fcn.01005b0b
mov edi, eax
cmp edi, ebx
jne 0x1007f0a
mov dword [0x1028fcc], esi
mov dword [0x1028fd0], edi
cmp edi, ebx
jne 0x1007f58
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1007f2b
mov ecx, eax
call fcn.01005b9b
mov esi, eax
jmp 0x1007f2d
xor esi, esi
cmp esi, ebx
jne 0x1007f36
push 8
pop edi
jmp 0x1007f58
push 0x1028fc0
mov ecx, esi
call fcn.01005b0b
mov edi, eax
cmp edi, ebx
jne 0x1007f4f
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x1007f58
push 1
mov ecx, esi
call fcn.010072ee
push 0x1028b04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x1007f97
mov eax, dword [0x1029018]
cmp eax, ebx
je 0x1007f97
test byte [eax + 0x1c], 0x20
je 0x1007f97
cmp byte [eax + 0x19], 3
jb 0x1007f97
push edi
push dword [ecx + 4]
push 0x1001fac
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b7
lea ecx, [ebp - 0x14]
call fcn.01005be5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1007fad
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [0x1028094]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1008086
push 4
push 0x1029010
push 4
push esi
push 0x100217c
push dword [ebp - 4]
mov dword [0x1029010], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, esi
jne 0x100807d
cmp byte [0x1028f8e], 1
je 0x100807d
cmp byte [0x1028f90], 1
je 0x100807d
push 0x1001d30
call fcn.0100796c
test eax, eax
jne 0x100807d
push 0x1001d20
call fcn.0100796c
test eax, eax
jne 0x100807d
push esi
call fcn.01007849
mov edi, eax
mov eax, dword [0x1029018]
cmp eax, esi
je 0x100807d
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 0xc
xor edx, edx
dec ecx
inc edx
and ecx, 0x1f
shl edx, cl
or edx, 0x20
test dword [eax + 0x1c], edx
je 0x100807d
cmp byte [eax + 0x19], 1
jb 0x100807d
push edi
push 0x1001fac
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010174e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100a759
Capabilities:
Get token privileges

Disassembly:
push 1
push 8
call fcn.01024343
test eax, eax
jne 0x100a780
push 1
push 0x11
call fcn.01024343
test eax, eax
jne 0x100a780
push 1
push 0x12
call fcn.01024343
test eax, eax
je 0x100a783
xor eax, eax
ret
push esi
xor esi, esi
push esi
push 2
call fcn.01024343
push esi
push 4
call fcn.01024343
push esi
push 0xc
call fcn.01024343
push esi
push 0x10
call fcn.01024343
push esi
push 0xf
call fcn.01024343
push esi
push 0x14
call fcn.01024343
push esi
push 0xa
call fcn.01024343
push esi
push 0xd
call fcn.01024343
pop esi
jmp fcn.01024220

Function at 0x100c304
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x2001f
push ebx
push 0x1001a10
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x100c3b8
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebp + 0x10]
call fcn.010239c1
mov edi, eax
cmp edi, ebx
jne 0x100c3af
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push dword [0x10280cc]
push dword [ebp - 0xc]
call esi
mov edi, eax
cmp edi, ebx
jne 0x100c3ae
lea eax, [ebp - 8]
push eax
push 0xffff
push dword [ebp + 0xc]
call fcn.010239c1
mov edi, eax
cmp edi, ebx
jne 0x100c3ae
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [0x10280d4]
push dword [ebp - 0xc]
call esi
mov edi, eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 0xc