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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40f770
cmp byte [edi + 0x3d], 0
je 0x40f770
call fcn.004026da
mov edx, dword [edi]
mov esi, eax
push esi
mov ecx, edi
call dword [edx + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
call fcn.0040cd20
pop ecx
pop ecx
test al, al
jne 0x40f742
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0040d099
sub eax, 0
je 0x40f746
sub eax, 1
je 0x40f74a
dec eax
sub eax, 1
je 0x40f770
xor al, al
jmp 0x40f772
mov byte [edi + 0x3d], 0
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
sub esi, eax
je 0x40f767
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0043f068
add esp, 0x10
cmp esi, eax
jne 0x40f742
cmp byte [edi + 0x3d], 0
sete al
jmp 0x40f772
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x410769
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp]
mov edx, dword [ebp + 0x3c]
movzx ebx, word [esi + 0x14]
add ebx, esi
mov eax, dword [ebx + 0x20]
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
call fcn.004105a6
lea edx, [ebx + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebp
call fcn.004106b4
mov edi, dword [ebx + 0x3c]
add ebx, 0x40
and dword [esp + 0x34], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
xor eax, eax
inc eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], eax
cmp ax, word [esi + 6]
jae 0x410882
mov eax, dword [ebx + 8]
mov ecx, eax
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004105a6
mov edx, ebx
mov dword [esp + 0x10], eax
mov ecx, ebp
call fcn.004106b4
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x10]
je 0x410834
mov ecx, dword [esp + 0x18]
add ecx, edx
cmp ecx, dword [esp + 0x10]
ja 0x410834
lea edx, [esp + 0x24]
mov ecx, ebp
call fcn.004106d3
test eax, eax
je 0x410895
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
jmp 0x410860
mov eax, dword [ebx + 0x24]
mov ecx, 0x2000000
test ecx, eax
je 0x410848
test ecx, edi
je 0x410848
or edi, eax
jmp 0x410850
or edi, eax
and edi, 0xfdffffff
mov ecx, dword [esp + 0x1c]
sub esi, edx
add ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp]
add ebx, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x4107c6
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, ebp
call fcn.004106d3
test eax, eax
jne 0x410899
xor eax, eax
jmp 0x41089c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x411699
Capabilities:
Terminate process

Disassembly:
push ebx
push 0
push dword [0x471dac]
mov byte [0x471da9], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [0x471dac]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, bl
pop ebx
ret
Function at 0x41246e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4124b2
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4124b2
mov al, 1
jmp 0x4124b4
xor al, al
pop esi
leave
ret

Function at 0x4124b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41250f
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41250f
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x412513
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
xor esi, esi
mov edi, ecx
push esi
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412572
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412572
lea eax, [ebp - 0x408]
push eax
jmp 0x412577
push 0x465554
mov ecx, edi
call fcn.00401f66
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x412584
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
push 0x20019
push 0
push dword [ebp + 8]
mov esi, ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4125dd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x808]
push eax
jmp 0x4125e2
push 0x465900
mov ecx, esi
call fcn.00403b40
mov eax, esi
pop esi
leave
ret
Function at 0x4125ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push ebx
mov esi, 0x465554
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41264e
cmp dword [ebp - 4], eax
jbe 0x41264e
push dword [ebp - 4]
call fcn.0043a88c
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00436050
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, edi
call fcn.00403b40
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41265d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4126cd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4126cd
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00405f31
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00405fb6
mov al, 1
jmp 0x4126cf
xor al, al
pop esi
leave
ret

Function at 0x4126d2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x412722
push esi
lea ecx, [ebp + 0xc]
call fcn.004022f8
push eax
lea ecx, [ebp + 0xc]
call fcn.00401e8f
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x412724
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401eea
mov al, bl
pop ebx
leave
ret

Function at 0x412731
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412770
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x412770
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x412774
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4127c6
push esi
lea ecx, [ebp + 0xc]
call fcn.004022f8
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00401e07
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x4127c8
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00401e13
mov al, bl
pop ebx
leave
ret

Function at 0x4127d5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x412818
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x412818
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x41281c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41285b
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41285b
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x41285f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41289e
push esi
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41289e
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x41297a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4129a6
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4129a6
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x4129aa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0xabb4
call fcn.004564f0
push ebx
push ebp
push esi
push edi
push 0x208
xor ebp, ebp
lea eax, [esp + 0x2ac]
push ebp
push eax
mov ebx, ecx
call fcn.00436050
add esp, 0xc
mov dword [esp + 0x20], 0x104
lea eax, [esp + 0x58]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0x3fff
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2d0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412a9a
mov esi, ebp
lea eax, [esp + 0x58]
mov dword [esp + 0x24], 0xff
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xbc]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412a93
push 0x466398
lea ecx, [esp + 0x30]
call fcn.00403b40
push eax
lea edx, [esp + 0xac]
lea ecx, [esp + 0x7c]
call fcn.00403cbb
pop ecx
push eax
mov ecx, 0x4744c8
call fcn.00402de3
lea ecx, [esp + 0x78]
call fcn.00401e13
lea ecx, [esp + 0x2c]
call fcn.00401e13
inc esi
cmp esi, dword [esp + 0x10]
jb 0x412a2d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412bec
mov esi, ebp
xor eax, eax
mov dword [esp + 0x18], 0x2710
lea edi, [esp + 0x78]
mov dword [esp + 0x14], 0x3fff
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x2bc0], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4b4]
push eax
lea eax, [esp + 0x30]
push eax
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2bd4]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x412be1
push 0xa
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x30]
call fcn.00440c51
add esp, 0xc
lea ecx, [esp + 0x60]
push 0x466398
call fcn.00403b40
push eax
lea edx, [esp + 0x2bc4]
lea ecx, [esp + 0x30]
call fcn.00403cbb
pop ecx
push eax
mov ecx, 0x4744e0
call fcn.00402de3
lea ecx, [esp + 0x2c]
call fcn.00401e13
lea ecx, [esp + 0x60]
call fcn.00401e13
push 0x465570
lea ecx, [esp + 0x30]
call fcn.00401f66
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x64]
call fcn.00404c9e
pop ecx
push eax
mov ecx, 0x4744f8
call fcn.00402f08
lea ecx, [esp + 0x60]
call fcn.00401eea
lea ecx, [esp + 0x2c]
call fcn.00401eea
push str._regsplt_
lea ecx, [esp + 0x94]
call fcn.00401f66
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x4b8]
push eax
lea ecx, [esp + 0x38]
call fcn.00401f86
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0040275c
pop ecx
push eax
mov ecx, 0x474590
call fcn.00402f08
lea ecx, [esp + 0x60]
call fcn.00401eea
lea ecx, [esp + 0x2c]
call fcn.00401eea
lea ecx, [esp + 0x90]
call fcn.00401eea
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x412aa8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xabb4
ret
Function at 0x413796
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x413814
cmp word [esi + 8], 2
jne 0x4137f6
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x4137f6
mov edi, dword [esi + 0xc]
jmp 0x4137f0
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.0041372f
mov dword [ebp], eax
test eax, eax
je 0x41380f
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4137d0
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00440803
add esp, 0x10
xor eax, eax
jmp 0x41383b
push 8
pop eax
jmp 0x41383b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x413839
sub eax, 1
je 0x413832
sub eax, 1
jne 0x413839
lea eax, [ecx + 2]
jmp 0x41383b
mov eax, 0x2afa
jmp 0x41383b
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x413e37
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x475b6c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4139c7
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x413c67
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0041398c
jne 0x413f8e
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x413f84
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0044080e
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00440868
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test esi, esi
je 0x413ef7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x413ef3
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x413f48
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0044080e
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00440868
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413f80
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x413f44
push esi
call ebp
mov esi, edi
test esi, esi
je 0x413f80
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x413f65
inc ebx
cmp ebx, 3
jl 0x413f4a
jmp 0x413f6a
push esi
call ebp
mov esi, edi
test esi, esi
je 0x413f80
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x4709f8], eax
add edi, 8
cmp edi, 0x18
jl 0x413f6e
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x475b6c], 1
mov eax, dword [0x4709f8]
add esp, 0x22c
ret
Function at 0x4165fc
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
push str._sysinfo.txt
push str.temp
call fcn.0043ac0f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403b40
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004028cf
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401e13
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x46b9f8
lea ecx, [ebp - 0x30]
call fcn.0040b0dd
pop ecx
mov ecx, eax
call fcn.00401e07
push eax
push str.dxdiag
push 0x46559c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.00401e13
lea ecx, [ebp - 0x18]
call fcn.00401faa
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00401e07
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.0041b61a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00408339
test al, al
je 0x4166a3
cmp esi, 0x4b0
jl 0x416674
lea ecx, [ebp - 0x18]
call fcn.00408339
test al, al
jne 0x416733
lea ecx, [ebp - 0x48]
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.004040bb
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040428c
test al, al
je 0x416728
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
push 0x473ee8
call fcn.004027ec
pop ecx
mov edx, eax
mov ecx, esi
call fcn.004027cb
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.00404468
lea ecx, [ebp - 0x30]
call fcn.00401eea
lea ecx, [ebp - 0xc8]
call fcn.004047eb
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.004048a6
lea ecx, [ebp - 0x18]
call fcn.00401eea
lea ecx, [ebp - 0x48]
call fcn.00401e13
lea ecx, [ebp + 8]
call fcn.00401eea
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x416e27
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x84]
push ebx
push esi
push edi
push eax
push 0x46556c
call fcn.00401f66
push eax
push str.Temp
call fcn.0043ac1a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00404c9e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004027cb
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00401eea
lea ecx, [ebp - 0x84]
call fcn.00401eea
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00401e8f
push eax
lea ecx, [ebp - 0x138]
call fcn.0040e986
lea ecx, [ebp - 0x138]
call fcn.00417066
test al, al
je 0x416f58
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.00417076
lea ecx, [ebp - 0x138]
call fcn.0040e937
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
call fcn.00401e8f
movaps xmm0, xmmword [0x46c450]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
mov esi, 0x465554
mov edi, 0x474640
setne bl
cmp dword [ebp - 0x1c], 0
je 0x416f42
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00401f66
push 0x70
mov ecx, edi
call fcn.00404468
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00401e8f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x416f73
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00401f66
push 0x6e
mov ecx, edi
jmp 0x416f6e
sub esp, 0x18
mov ecx, esp
push 0x465554
call fcn.00401f66
push 0x6f
mov ecx, 0x474640
call fcn.00404468
lea ecx, [ebp - 0x138]
call fcn.0040e155
lea ecx, [ebp - 0x18]
call fcn.00401eea
lea ecx, [ebp + 8]
call fcn.00401eea
lea ecx, [ebp + 0x20]
call fcn.00401eea
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419c20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401e07
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419c58
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419c76
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401e13
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x419c85
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x11
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf003f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401e07
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419cc0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419d13
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x419ce1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x419d13
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x419ce1
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
neg ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb bl, bl
and bl, 0xfe
add bl, 3
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401e13
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x419d22
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x40
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401e07
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419d5a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x419d78
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00401e13
pop edi
pop esi
mov al, bl
pop ebx
leave
ret