joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x414971
cmp byte [ebx + 0x49], 0
je 0x414971
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x414965
lea esi, [ebp - 0x2c]
call fcn.00414470
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x414853
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41488c
dec eax
je 0x414890
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x41496c
call fcn.00401190
xor al, al
jmp 0x414973
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4148a0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4148cd
cmp edi, 0x10
jae 0x4148af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004172cc
add esp, 0x10
cmp esi, eax
jne 0x41495d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x414969
test esi, esi
jne 0x414847
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x41498e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x41498e
cmp edi, esi
jae 0x414946
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004015a0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x414847
mov ecx, eax
cmp edi, 0x10
jae 0x414922
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x41493d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x414841
test esi, esi
jne 0x414918
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x414955
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x414841
lea ecx, [ebp - 0x2c]
call fcn.00401190
xor al, al
jmp 0x414973
lea ecx, [ebp - 0x2c]
call fcn.00401190
mov al, 1
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.00415ac1
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041503f
int3
Function at 0x414b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00415690
push 4
mov dword [ebp - 4], 0
call fcn.004161c1
mov edi, eax
add esp, 4
test edi, edi
je 0x414b8c
call fcn.00415568
mov dword [edi], eax
call fcn.00415327
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00415651
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414b82
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00415679
jmp 0x414b8e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415ac1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437610]
jne 0x415acb
repz ret
jmp fcn.0041b7bd
Function at 0x427125
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d75c
and dword [ebp - 0x14], 0
cmp dword [0x43a8b4], 0
mov dword [ebp - 0x18], eax
jne 0x4271d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x427280
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x427280
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43a8b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43a8b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43a8bc], eax
call edi
push eax
call esi
mov dword [0x43a8c4], eax
test eax, eax
je 0x4271d8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43a8c0], eax
mov eax, dword [0x43a8c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x427231
cmp dword [0x43a8c4], ecx
je 0x427231
push eax
call esi
push dword [0x43a8c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x427231
test ebx, ebx
je 0x427231
call edi
test eax, eax
je 0x427228
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x427228
test byte [ebp - 8], 1
jne 0x427231
or dword [ebp + 0x10], 0x200000
jmp 0x427264
mov eax, dword [0x43a8b8]
cmp eax, dword [ebp - 0x18]
je 0x427264
push eax
call esi
test eax, eax
je 0x427264
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x427264
mov eax, dword [0x43a8bc]
cmp eax, dword [ebp - 0x18]
je 0x427264
push eax
call esi
test eax, eax
je 0x427264
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a8b4]
call esi
test eax, eax
je 0x427280
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x427282
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ac1
leave
ret

Function at 0x429680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4296a7
call fcn.00416643
mov dword [eax], esi
call fcn.00416630
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041bf89
mov eax, esi
jmp 0x4296fc
test dword [ebp + 0xc], 0xfffffff9
jne 0x42968d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4296d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416656
pop ecx
call fcn.00416630
mov eax, dword [eax]
jmp 0x4296fc
test al, 0x10
jne 0x4296fa
test al, 1
je 0x4296fa
test byte [ebp + 0xc], 2
je 0x4296fa
call fcn.00416643
mov dword [eax], 5
call fcn.00416630
mov dword [eax], 0xd
jmp 0x4296cb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4022c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x4022e0
Capabilities:
Inspect section memory permissions

Disassembly:
xchg edi, eax
pop ecx
insd dword es:[edi], dx
lea eax, [ebp - 0x84]
push eax
call fcn.00401e0b
push eax
push esi
push dword [ebp + 8]
call fcn.00401dc0
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x4025f4
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00401d6c
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x40236b
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00401d6c
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x402338
call fcn.00401dfb

Function at 0x402370
Capabilities:
Inspect section memory permissions

Disassembly:
push cs
and al, 0xf1
and cl, byte [ebx - 0x1fcc382]
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x4025ea
add eax, esi
mov dword [ebp - 0x44], eax

Function at 0x4023a0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne fcn.004023a0
cmp dword [eax + 0xc], ebx
je 0x402443
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00401dfb
cmpsd dword [esi], dword es:[edi]
cmc
loop 0x402431
cmp dword [ebp + 0xc], ebx
jne 0x4023cf
push edi
invalid
xchg ebp, eax

Function at 0x4026d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
invalid
movsd dword es:[edi], dword [esi]
cmp al, 0xfc

Function at 0x402a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401dc0
add esp, 0xc
invalid
invalid

Function at 0x406dc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e268]
jne 0x406dca
repz ret
jmp fcn.0040b6e2
Function at 0x415f6e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c48b
and dword [ebp - 4], 0
cmp dword [0x43fc18], 0
mov ebx, eax
jne 0x41601f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4160d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4160d0
push eax
call fcn.0040c419
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fc18], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fc1c], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fc20], eax
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc28], eax
test eax, eax
je 0x41601f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc24], eax
mov eax, dword [0x43fc24]
cmp eax, ebx
je 0x416077
cmp dword [0x43fc28], ebx
je 0x416077
push eax
call fcn.0040c494
push dword [0x43fc28]
mov esi, eax
call fcn.0040c494
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416077
test edi, edi
je 0x416077
call esi
test eax, eax
je 0x41606e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41606e
test byte [ebp - 0xc], 1
jne 0x416077
or dword [ebp + 0x10], 0x200000
jmp 0x4160b0
mov eax, dword [0x43fc1c]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4160b0
mov eax, dword [0x43fc20]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fc18]
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4160d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4186c0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433986
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x43e268]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x41872f
mov dword [ebp - 0x28], 1
push 0x43c1f0
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041221f
lea edx, [ebp - 0x18]
push edx
push 0x43b5e0
push 1
push 0
push 0x43b5d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x418765
mov dword [ebp - 0x2c], 2
push 0x43c1f0
lea eax, [ebp - 0x2c]
push eax
call fcn.0041221f
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x41879b
mov dword [ebp - 0x30], 3
push 0x43c1f0
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041221f
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jge 0x4187d1
mov dword [ebp - 0x34], 4
push 0x43c1f0
lea edx, [ebp - 0x34]
push edx
call fcn.0041221f
jmp 0x4187e6
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x418801
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
cmp dword [ebp - 0x18], 0
je 0x418815
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00409828
mov dword [eax], 0
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x1334
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x135c]
push edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x1367]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x4409f4]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x135c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00409828
mov dword [eax], esi
call fcn.00409828
cmp dword [eax], 0
jne 0x419f85
mov edx, dword [ebp + 8]
cmp dword [edx + 0x135c], 0
jg 0x419f89
xor eax, eax
jmp 0x419f93
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x135c]
pop esi
pop ebp
ret
Function at 0x41a280
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a36c
push 4
push str.RTLDHCPService
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41a2e2
push str.Service_Already_Exists.._n
call fcn.00409d25
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41a362
push 0x105
lea edx, [ebp - 0x118]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x41a362
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 2
push 0x10
push 0xf01ff
push str.Realtek_DHCP_Service
push str.RTLDHCPService
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x41a355
push str.Successfully_installed..___n
call fcn.00409d25
add esp, 4
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41a362
push str.Installation_Failed.._n
call fcn.00409d25
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret

Function at 0x41a380
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
je 0x41a42f
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
je 0x41a42f
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push str.Stopping_Service.
call fcn.00409d25
add esp, 4
mov dword [ebp - 0x20], 0
jmp 0x41a3d7
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x64
jge 0x41a41e
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x41a404
push str.Stopped_n
call fcn.00409d25
add esp, 4
mov al, 1
jmp 0x41a431
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x436e00
call fcn.00409d25
add esp, 4
jmp 0x41a3ce
push str.Failed_n
call fcn.00409d25
add esp, 4
xor al, al
jmp 0x41a431
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41a4d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x41a5f4
cmp dword [ebp - 4], 0
je 0x41a5f4
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov dword [ebp - 0x14], 0xffffffff
push str.SoftwareRtWLan
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a0d0
add esp, 8
test eax, eax
jne 0x41a5a7
push 0x4403f8
mov edx, dword [ebp + 8]
push edx
push 0x435d90
lea eax, [ebp - 0x118]
push eax
call fcn.00407379
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x118]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41a5a7
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x41a5f4
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret

Function at 0x41a610
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x461e80
call fcn.00407492
add esp, 0xc
push 0x461e80
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41a880
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.00407838
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x1000
mov edx, dword [ebp - 0xc]
push edx
call fcn.00407838
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 1], 0
mov dword [0x43fd58], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41a9d7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push 0x14
push 0
mov ecx, dword [0x43fd58]
imul ecx, ecx, 0x14
add ecx, 0x44b440
push ecx
call fcn.00409ed0
add esp, 0xc
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x199]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x198]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x197]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x196]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x195]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x194]
push ecx
push str._02X:_02X:_02X:_02X:_02X:_02X
mov edx, dword [0x43fd58]
imul edx, edx, 0x14
add edx, 0x44b440
push edx
call fcn.00407379
add esp, 0x20
push str.GetAdapterMACInfo
push 0x43b404
call fcn.0041a610
add esp, 8
mov eax, dword [0x43fd58]
imul eax, eax, 0x14
add eax, 0x44b440
push eax
push str.Detect_Server_NIC_MAC_:__s_n
call fcn.0041a610
add esp, 8
mov ecx, dword [0x43fd58]
add ecx, 1
mov dword [0x43fd58], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00409ed0
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x41a8fc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040a158
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040a158
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x41aa00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xa1], 0
push 0x14
push 0
lea eax, [ebp - 0xc0]
push eax
call fcn.00409ed0
add esp, 0xc
mov dword [ebp - 0xac], 0x14
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0xc0]
push edx
push 1
push str.PROCESSOR_ARCHITECTURE
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
call fcn.0041a4d0
add esp, 0x14
push 0x43b38c
lea eax, [ebp - 0xc0]
push eax
call fcn.0040a0d0
add esp, 8
test eax, eax
jne 0x41aa7a
mov byte [ebp - 0xa1], 0
jmp 0x41aa81
mov byte [ebp - 0xa1], 1
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x41aabd
cmp dword [ebp - 0x9c], 5
jne 0x41aabd
cmp dword [ebp - 0x98], 1
jb 0x41aabd
mov al, 1
jmp 0x41aabf
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret
Function at 0x41ada0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.00414360
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1118]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41addd
xor eax, eax
jmp 0x41ae99
mov dword [ebp - 0x211c], 0
jmp 0x41adf8
mov edx, dword [ebp - 0x211c]
add edx, 1
mov dword [ebp - 0x211c], edx
mov eax, dword [ebp - 0x1118]
shr eax, 2
cmp dword [ebp - 0x211c], eax
jge 0x41ae97
mov ecx, dword [ebp - 0x211c]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1004], eax
lea eax, [ebp - 0x1114]
push eax
push 0x1000
lea ecx, [ebp - 0x2118]
push ecx
mov edx, dword [ebp - 0x1004]
push edx
call sub.PSAPI.DLL_EnumProcessModules
push 0x104
lea eax, [ebp - 0x1110]
push eax
mov ecx, dword [ebp - 0x2118]
push ecx
mov edx, dword [ebp - 0x1004]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExA
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1110]
push ecx
call fcn.00401040
add esp, 8
test eax, eax
je 0x41ae92
mov edx, dword [ebp - 0x211c]
mov eax, dword [ebp + edx*4 - 0x1000]
jmp 0x41ae99
jmp 0x41ade9
xor eax, eax
mov ecx, dword [ebp - 0x1008]
xor ecx, ebp
call fcn.00406dc0
mov esp, ebp
pop ebp
ret