joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422230
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [str.C:NxCoreData_]
lea edx, [ebp - 0x110]
push esi
mov esi, ecx
test bl, bl
je 0x42226c
mov ecx, str.C:NxCoreData_
mov eax, edx
sub ecx, eax
mov byte [edx], bl
inc edx
mov al, byte [ecx + edx]
mov bl, al
test al, al
jne 0x422260
mov word [edx - 1], 0
mov bl, 0x43
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], bl
push eax
mov word [ebp - 0x113], 0x5c3a
mov byte [ebp - 0x111], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4222cf
xor edx, edx
mov byte [ebp - 0x110], bl
lea ecx, [ebp - 0x110]
call fcn.0040ef12
test al, al
je 0x4222cf
xor eax, eax
push eax
push dword [esi + 0xc]
push eax
push eax
push 0x404
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
inc bl
cmp bl, 0x5a
jl 0x422274
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x42475c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 5]
push esi
push edi
mov byte [ebp - 0x10a], dl
xor edi, edi
mov edx, ecx
mov dword [ebp - 0x114], ebx
push eax
lea ecx, [ebp - 0x108]
call fcn.0040e8b2
lea esi, [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov ecx, esi
cmp ecx, eax
jae 0x4247cc
lea ebx, [ebp - 0x107]
mov al, byte [esi]
mov byte [ebp - 0x109], al
cmp al, 0x3a
jne 0x4247f8
inc esi
inc ebx
mov eax, dword [ebp - 0x110]
inc esi
inc ebx
cmp esi, eax
jb 0x4247ac
mov ebx, dword [ebp - 0x114]
cmp byte [ebp - 0x10a], 0
jne 0x42484e
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42485b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x424856
xor eax, eax
jmp 0x42485e
cmp al, 0x2f
je 0x424800
cmp al, 0x5c
jne 0x4247ba
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42481e
xor edi, edi
jmp 0x42482e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x4247f4
mov cl, byte [ebp - 0x109]
mov eax, dword [ebp - 0x110]
mov byte [esi], cl
cmp ebx, eax
jne 0x4247c0
xor eax, eax
cmp edi, 0xb7
sete al
inc eax
jmp 0x42485e
cmp edi, 0xb7
jne 0x42485b
push 2
pop eax
jmp 0x42485e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x4248dc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x158], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 8], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
je 0x424920
xor edi, edi
jmp 0x42496a
mov dl, 0x2a
call fcn.00428d70
mov edi, eax
test edi, edi
jne 0x42494b
add dl, 0x15
mov ecx, esi
call fcn.00428d70
mov edi, eax
test edi, edi
je 0x42496a
jmp 0x42494b
mov al, byte [edi - 1]
cmp al, 0x5c
je 0x42494f
cmp al, 0x2f
je 0x42494f
dec edi
cmp edi, esi
ja 0x42493f
lea esi, [edi + 0xc8]
mov edx, edi
mov ecx, esi
mov ebx, edi
call fcn.0040e8eb
mov edi, esi
mov esi, dword [esp + 0xc]
mov byte [eax - 1], 0
lea eax, [esp + 0x20]
mov word [ebx], 0x2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
or eax, 0xffffffff
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x424a8f
test byte [esp + 0x20], 0x10
je 0x424a3d
mov cl, byte [esp + 0x4c]
cmp cl, 0x2e
jne 0x4249b4
mov al, byte [esp + 0x4d]
cmp al, cl
je 0x424a69
test al, al
je 0x424a69
cmp dword [ebp + 0x18], 0
je 0x4249c6
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x18]
ja 0x424a69
test edi, edi
je 0x4249e1
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.00428bd7
test al, al
je 0x424a69
mov cl, byte [esp + 0x4c]
mov edx, ebx
test cl, cl
je 0x4249fd
lea esi, [esp + 0x4c]
sub esi, ebx
mov byte [edx], cl
inc edx
mov al, byte [esi + edx]
mov cl, al
test al, al
jne 0x4249ed
mov esi, dword [esp + 0xc]
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov byte [edx], 0x5c
inc edx
inc eax
push eax
push dword [esp + 0x1c]
mov byte [edx], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.004248dc
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x424a63
mov eax, dword [esp + 0x10]
cmp byte [eax], 0x2a
jne 0x424a65
cmp byte [eax + 1], 0
jne 0x424a65
mov ecx, dword [esp + 0xc]
jmp 0x424a50
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
call fcn.00428bd7
test al, al
je 0x424a69
mov ecx, esi
push dword [esp + 0x14]
lea edx, [esp + 0x24]
mov byte [ebx], 0
call dword [esp + 0x1c]
mov esi, eax
test esi, esi
jg 0x424aa4
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42498c
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebx], 0
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a623
mov esp, ebp
pop ebp
ret
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x424a8f
Function at 0x42517d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x108]
push edi
mov edi, dword [ebp + 8]
call fcn.00425154
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x108]
mov byte [esi], bl
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x425203
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], bl
je 0x425203
mov eax, esi
inc eax
cmp byte [eax], bl
jne 0x4251fa
sub eax, esi
jmp 0x425205
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
cmp dword [edx + 0x28], 0xffffffff
je 0x425380
cmp byte [ebp + 8], 0
mov ecx, dword [edx + 0x60]
sete al
mov byte [ebp - 0x43], 0
inc al
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x44], al
mov ax, word [edx + 0x56]
mov word [ebp - 0x42], ax
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x40], eax
mov ax, word [edx + 0x54]
mov word [ebp - 0x3c], ax
xor eax, eax
and dword [ebp - 0x38], eax
mov word [ebp - 0x3a], ax
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x64]
push 0x10
mov dword [ebp - 0x30], eax
lea eax, [edx + 0xc]
push eax
push 0
push 0x1c
lea eax, [ebp - 0x44]
push eax
push dword [edx + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a623
mov esp, ebp
pop ebp
ret 4
Function at 0x425609
Capabilities:
Check for time delay via gettickcount
Create udp socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x801c
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
push 0x11
push 2
push 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x8008], eax
cmp eax, 0xffffffff
jne 0x42565c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x34], eax
xor al, al
jmp 0x4257fb
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x800c]
push 4
push ecx
push 4
xor ebx, ebx
push 0xffff
inc ebx
push eax
mov dword [ebp - 0x800c], ebx
call edi
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 4]
mov edx, ebx
call fcn.004287ab
mov ecx, dword [ebp - 0x8008]
lea edx, [esi + 4]
push 0
call fcn.004286de
test al, al
je 0x4256ce
mov eax, dword [ebp + 8]
push 8
mov dword [ebp - 0x801c], eax
lea eax, [ebp - 0x801c]
push eax
push 0xc
push 0
push dword [ebp - 0x8008]
mov dword [ebp - 0x8018], ebx
call edi
cmp eax, 0xffffffff
jne 0x4256ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x8008]
mov dword [esi + 0x34], eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4257f9
mov edx, dword [esi + 0x14]
mov ecx, dword [ebp - 0x8008]
call fcn.004287e9
mov ecx, dword [ebp - 0x8008]
call fcn.004286ba
and dword [esi + 0x20], 0
xor bl, bl
and dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x8014], eax
lea edi, [esi + 4]
jmp 0x4257ab
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
je 0x42580c
lea eax, [ebp - 0x800c]
push eax
lea eax, [ebp - 0x8010]
push eax
lea eax, [esi + 0x28]
push eax
push ecx
lea edx, [ebp - 0x8004]
call fcn.004255ac
mov ecx, dword [ebp - 0x8010]
cmp ecx, 0xff
jne 0x425780
cmp dword [ebp - 0x800c], 8
jne 0x425796
mov ecx, dword [ebp + eax - 0x800c]
mov bl, 1
mov dword [esi + 0x2c], ecx
mov eax, dword [ebp + eax - 0x8008]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jmp 0x425794
test eax, eax
jle 0x4257e3
xor eax, eax
mov dword [esi + 0x24], ecx
or eax, dword [ebp - 0x800c]
test bl, bl
mov dword [esi + 0x20], eax
jne 0x4257e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
sub eax, dword [ebp - 0x8014]
add ecx, ecx
cmp eax, ecx
ja 0x4257e3
lea eax, [esi + 0x18]
push eax
push edi
push 0
mov dword [eax], 0x10
lea eax, [ebp - 0x8004]
push 0x8000
push eax
push dword [ebp - 0x8008]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
test ecx, ecx
jg 0x425721
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x34], eax
lea edx, [ebp - 0x801c]
lea ecx, [ebp - 0x8008]
call fcn.004289b2
test bl, bl
setne al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret 0x10
xor bl, bl
or dword [esi + 0x34], 0xffffffff
jmp 0x4257e3
Function at 0x425f68
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0xffff83df
mov word [ebp - 0x104], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x102], al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x101], eax
mov eax, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0xfd], eax
lea eax, [ecx + 0xc]
push eax
push 0
push 0xb
lea eax, [ebp - 0x104]
push eax
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
cmp eax, 0xb
sete al
xor ecx, ebp
call fcn.0042a623
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426073
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11
push 2
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x28], eax
cmp eax, 0xffffffff
jne 0x4260a3
xor al, al
jmp 0x42614f
cmp dword [edi + 0xd0], 0
je 0x4260e0
movzx eax, byte [0x44a6e9]
movzx eax, word [eax*2 + 0x442ca4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [edi + 0x4c]
lea ecx, [ebp - 0x14]
movzx eax, ax
push 1
push eax
call fcn.004287ab
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x14]
push 1
call fcn.004286de
mov eax, dword [edi + 0x9c]
mov ebx, 0xffff
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [edi + 0xa0], eax
lea eax, [ebp - 0x18]
push eax
push 0x1005
push ebx
push dword [edi + 0x28]
mov dword [ebp - 0x18], 0x64
call esi
mov edx, dword [edi + 0xa0]
mov ecx, dword [edi + 0x28]
call fcn.004287e9
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x8000
push eax
push 0x1002
push ebx
push dword [edi + 0x28]
call esi
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x100
push ecx
push 0x1001
push ebx
push dword [edi + 0x28]
call esi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x4267ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x64], eax
jne 0x42684e
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [esi + 8]
mov dword [esi + 0xc0], 2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop edi
jmp 0x426871
mov ecx, dword [esi + 0xc0]
cmp ecx, 1
je 0x42685e
cmp ecx, 5
jne 0x426871
push dword [esi + 0x1c]
mov dword [esi + 0xc0], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, ecx
push 2
pop eax
cmp dword [edi], eax
jne 0x426a00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x104]
push esi
push 0xfeed
mov dword [ebp - 0x104], eax
lea esi, [ebp - 0xf5]
mov eax, dword [ebp + 0xc]
push 0xf
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0xfc], dx
pop edx
mov byte [ebp - 0xfa], 0xff
mov dword [ebp - 0xf9], eax
call fcn.0040ec88
push 2
mov word [ebp - 0xf5], ax
lea eax, [ebp - 0x104]
sub si, ax
pop eax
push 0x10
push ebx
add si, ax
lea eax, [ebp - 0x104]
push 0
movzx esi, si
push esi
push eax
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
pop esi
je 0x426a00
inc dword [edi + 0x44]
xor eax, eax
jmp 0x426a03
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 0x14

Function at 0x426c77
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 2
je 0x426cbc
push edi
xor edi, edi
cmp dword [esi + 0x64], edi
jne 0x426cac
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x60], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [esi + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
push dword [esi + 0x60]
mov dword [esi], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427ce5
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x20
push 1
lea ecx, [ebp - 0x28]
call fcn.00427b35
pop ecx
pop ecx
test eax, eax
jne 0x427d24
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x427d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00427b75
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x427d45
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x2000
lea eax, [ebp - 0x2004]
push ebx
xor esi, esi
mov edi, edx
push esi
push eax
call fcn.0042c7b0
push 1
push 1
lea ecx, [ebp - 0x200c]
mov dword [edi], esi
call fcn.00427b35
add esp, 0x14
test eax, eax
jne 0x427db8
lea eax, [ebp - 0x2010]
push eax
push ebx
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x427db8
mov eax, dword [ebp - 0x2000]
inc eax
mov dword [edi], eax
jmp 0x427dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x200c]
call fcn.00427b75
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x427dde
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10020
push 1
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00427b35
pop ecx
pop ecx
test eax, eax
jne 0x427e44
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x427e37
cmp dword [ebp - 0x1c], 1
je 0x427e37
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x427e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00427b75
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x42871e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x428764
cmp byte [esi], 0
je 0x428764
mov al, byte [esi]
cmp al, 0x20
je 0x42873d
cmp al, 9
jne 0x428740
inc esi
jmp 0x428733
movsx eax, byte [esi]
push eax
call fcn.0042d6f2
pop ecx
test eax, eax
je 0x42876c
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x428764
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
jne 0x428766
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00401a1f
lea edx, [ebp - 0xc]
mov ecx, eax
call fcn.00401a1f
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00401a1f
lea edx, [ebp - 4]
mov ecx, eax
call fcn.00401a1f
mov eax, dword [ebp - 4]
shl eax, 8
or eax, dword [ebp - 8]
shl eax, 8
or eax, dword [ebp - 0xc]
shl eax, 8
or eax, dword [ebp - 0x10]
jmp 0x428766

Function at 0x428a15
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 1
push edx
mov edx, ecx
lea ecx, [ebp - 0x18]
call fcn.004287ab
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x428a61
push 1
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004286de
test al, al
je 0x428a5a
mov eax, esi
jmp 0x428a64
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret 4

Function at 0x428a75
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x461c44]
mov esi, edx
mov ecx, edi
call fcn.00428693
push 0x10
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x428abc
mov ecx, edi
call fcn.004286ba
xor eax, eax
jmp 0x428b59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and dword [ebp - 0x210], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x104], edi
div ecx
xor ebx, ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x218], eax
inc ebx
imul eax, edx, 0x3e8
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
pop ebx
jl 0x428b4e
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x428aae
lea eax, [ebp - 0x210]
push eax
push ecx
mov ecx, edi
call fcn.0042866a
mov eax, dword [ebp - 0x210]
test eax, eax
cmove eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret 8
Function at 0x4291e7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x7c
call fcn.0040fd28
mov esi, eax
pop ecx
test esi, esi
je 0x4292c0
push ebx
mov dword [esi], 0x45f900
xor ebx, ebx
mov eax, dword [0x45f910]
push edi
mov edi, ebx
test eax, eax
je 0x429230
mov eax, dword [0x45f900]
mov edx, esi
push ebx
lea ecx, [eax + edi*4]
call fcn.0040eba3
test al, al
mov eax, dword [0x45f910]
jne 0x429230
inc edi
cmp edi, eax
jb 0x429212
cmp edi, eax
je 0x4292b2
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 0x28], edi
mov eax, dword [0x45f918]
imul eax, edi
push 4
add eax, dword [0x45f914]
or dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0x30], ax
pop eax
mov word [esi + 0x32], ax
lea eax, [esi + 0x20]
push eax
push ebx
push esi
push 0x4290b8
push ebx
push ebx
mov dword [esi + 0xc], fcn.004268c9
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], 0x1388
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42929e
mov ecx, 0x45f904
mov dword [esi + 0x24], eax
call fcn.0040eb84
mov eax, esi
jmp 0x4292be
mov eax, dword [0x45f900]
xor edx, edx
push esi
lea ecx, [eax + edi*4]
call fcn.0040eba3
test al, al
je 0x4292bc
push 0x7c
push esi
call fcn.0042a83c
pop ecx
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x42937d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x12c], eax
push ebx
push 0x8000080
push 3
pop esi
push esi
push ebx
push ebx
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp eax, 0xffffffff
je 0x429540
push edi
push ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 0x104], bl
push ecx
push 0x100
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x124], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, str.NxVERSION_MAJOR
lea ecx, [ebp - 0x104]
call fcn.00428ce5
test eax, eax
je 0x42949f
lea ecx, [eax + 0x10]
lea edx, [ebp - 0x11c]
call fcn.0042934e
mov edx, str.NxVERSION_MINOR
lea ecx, [ebp - 0x104]
call fcn.00428ce5
test eax, eax
je 0x429434
lea ecx, [eax + 0x10]
lea edx, [ebp - 0x118]
call fcn.0042934e
mov edx, str.NxVERSION_BUILD
lea ecx, [ebp - 0x104]
call fcn.00428ce5
test eax, eax
je 0x429456
lea ecx, [eax + 0x10]
lea edx, [ebp - 0x114]
call fcn.0042934e
mov edx, str.NxVERSION_DATE
lea ecx, [ebp - 0x104]
call fcn.00428ce5
test eax, eax
je 0x429478
lea ecx, [eax + 0xf]
lea edx, [ebp - 0x110]
call fcn.0042934e
mov edx, str.NxVERSION_TIME
lea ecx, [ebp - 0x104]
call fcn.00428ce5
test eax, eax
je 0x42949a
lea ecx, [eax + 0xf]
lea edx, [ebp - 0x10c]
call fcn.0042934e
push 5
pop edi
jmp 0x4294f2
lea ecx, [ebp - 0x104]
mov edi, ebx
cmp byte [ebp - 0x104], bl
je 0x4294f2
mov al, byte [ecx]
cmp al, 0x3b
je 0x4294f2
cmp al, 0x30
jl 0x4294ca
cmp al, 0x39
jg 0x4294ca
lea edx, [ebp - 0x120]
call fcn.0042934e
mov ecx, eax
mov al, byte [ecx]
cmp al, 0x2c
je 0x4294d4
cmp al, 0x2e
jne 0x4294ed
mov eax, dword [ebp - 0x120]
mov dword [ebp + edi*4 - 0x11c], eax
inc edi
cmp edi, 6
je 0x4294f2
mov dword [ebp - 0x120], ebx
inc ecx
cmp byte [ecx], bl
jne 0x4294af
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x11c]
shl eax, 8
or eax, dword [ebp - 0x118]
shl eax, 0x10
or dword [ebp - 0x114], eax
cmp edi, esi
cmovb esi, edi
mov ebx, esi
test esi, esi
je 0x42953f
mov eax, dword [ebp - 0x12c]
lea edi, [ebp - 0x114]
sub edi, eax
lea edx, [eax + esi*4]
lea edx, [edx - 4]
mov ecx, dword [edi + edx]
mov dword [edx], ecx
sub esi, 1
jne 0x429532
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret