joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011673
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [0x10071afc], 0
mov eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jne 0x10011695
push 0xfffffffffffffffc
pop eax
jmp 0x100117d9
call fcn.10011842
test eax, eax
jne 0x100116a6
or eax, 0xffffffff
jmp 0x100117d9
push esi
push eax
push 0
push 0x440
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100116c3
push 0xfffffffffffffffe
pop eax
jmp 0x100117d8
push ebx
push edi
mov edi, 0x400
push edi
mov dword [ebp - 4], edi
call fcn.100396d2
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x100116ff
push ebx
cmp eax, 0xc0000004
jne 0x100117a2
call fcn.100396cd
mov eax, dword [ebp - 4]
add eax, edi
push eax
mov dword [ebp - 4], eax
call fcn.100396d2
pop ecx
mov ebx, eax
mov dword [ebp - 0x10], eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x33
push esi
call dword [0x10071af8]
test eax, eax
js 0x100116da
xor edi, edi
cmp dword [ebx], edi
jbe 0x100117cc
lea eax, [ebx + 8]
mov dword [ebp - 0xc], eax
push 2
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x100117bf
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10034cb0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x104
push eax
push dword [ebp - 8]
call dword [0x10071afc]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100117ad
test dx, dx
je 0x1001179e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100117ad
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001177c
xor eax, eax
jmp 0x100117b2
call fcn.100396cd
xor eax, eax
pop ecx
inc eax
jmp 0x100117d6
sbb eax, eax
or eax, 1
test eax, eax
je 0x100117dd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp - 0xc], 0x1c
inc edi
cmp edi, dword [ebx]
jb 0x10011725
push ebx
call fcn.100396cd
pop ecx
push 0xfffffffffffffffd
pop eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
push edi
push edi
mov ebx, eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.100396d2
mov ecx, dword [ebp - 0x18]
push edi
push esi
push eax
mov dword [ecx], eax
call fcn.100352b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 8]
call ebx
push dword [ebp - 0x10]
call fcn.100396cd
pop ecx
mov eax, edi
jmp 0x100117d6
Function at 0x100118cf
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011912
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
sete al
jmp 0x10011914
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011919
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011970
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
sete al
jmp 0x10011972
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10011976
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 0x100119d7
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]
mov ecx, edi
test esi, esi
jne 0x100119d9
lea eax, [ebp - 0x408]
push eax
jmp 0x100119de
mov ecx, edi
push 0x10062774
call fcn.100020bd
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100119eb
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011a4a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x100632dc
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 0x10011a4f
push 0x10068878
mov ecx, esi
call fcn.100042a7
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011a5d
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, 0x10062774
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10011abd
cmp dword [ebp - 4], eax
jbe 0x10011abd
push dword [ebp - 4]
call fcn.100396d2
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.10034cb0
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.100042a7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011ace
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011b3e
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 0x10011b3e
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.10006d61
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.10006de8
mov al, 1
jmp 0x10011b40
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011b45
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10011b95
push esi
lea ecx, [ebp + 0xc]
call fcn.100024c2
push eax
lea ecx, [ebp + 0xc]
call fcn.10001fce
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 0x10011b97
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.10002000
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011ba6
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 0x10011be4
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
sete al
jmp 0x10011be6
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10011bea
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 0x10011c3c
push esi
lea ecx, [ebp + 0xc]
call fcn.100024c2
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.10001f24
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 0x10011c3e
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.10001f29
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011c4d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10011c8f
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
sete al
jmp 0x10011c91
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10011c95
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 0x10011cd3
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
sete al
jmp 0x10011cd5
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10011cd9
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 0x10011d17
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
sete al
jmp 0x10011d19
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x10011d7f
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
je 0x10011d9b
xor al, al
jmp 0x10011dad
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret
Function at 0x10011db1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.10053620
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.10034cb0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x3fff
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10011e8f
test eax, eax
je 0x10011e8f
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x298]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10011e89
push 0x100684ec
lea ecx, [ebp - 0x34]
call fcn.100042a7
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.1000442d
pop ecx
push eax
mov ecx, 0x10072488
call fcn.1000334a
lea ecx, [ebp - 0x68]
call fcn.10001f29
lea ecx, [ebp - 0x34]
call fcn.10001f29
inc esi
cmp esi, dword [ebp - 4]
jb 0x10011e29
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10011fd1
xor esi, esi
test eax, eax
je 0x10011fd1
xor eax, eax
mov byte [ebp - 0x5c], 0
lea edi, [ebp - 0x5b]
mov dword [ebp - 0xc], 0x2710
stosd dword es:[edi], eax
mov dword [ebp - 8], 0x3fff
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xabb0], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2bb0]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xabb0]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10011fc7
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.1003ee5b
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x100684ec
call fcn.100042a7
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.1000442d
pop ecx
push eax
mov ecx, 0x100724a0
call fcn.1000334a
lea ecx, [ebp - 0x34]
call fcn.10001f29
lea ecx, [ebp - 0x80]
call fcn.10001f29
push 0x10062790
lea ecx, [ebp - 0x34]
call fcn.100020bd
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.10005425
pop ecx
push eax
mov ecx, 0x100724b8
call fcn.1000346f
lea ecx, [ebp - 0x80]
call fcn.10002000
lea ecx, [ebp - 0x34]
call fcn.10002000
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.100020bd
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.100020e4
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.10002f56
pop ecx
push eax
mov ecx, 0x10072550
call fcn.1000346f
lea ecx, [ebp - 0x80]
call fcn.10002000
lea ecx, [ebp - 0x34]
call fcn.10002000
lea ecx, [ebp - 0x98]
call fcn.10002000
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x10011ea4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012a28
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
push edi
push ecx
mov dword [ebp - 4], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10012aa8
cmp word [esi + 8], 2
jne 0x10012a8a
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x10012a8a
mov edi, dword [esi + 0xc]
jmp 0x10012a84
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.100129bf
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10012aa3
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x10012a60
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.1003bce3
add esp, 0x10
xor eax, eax
jmp 0x10012ac6
push 8
pop eax
jmp 0x10012ac6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x10012ac4
sub eax, 1
je 0x10012ad6
sub eax, 1
je 0x10012acf
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x10012ac6
mov eax, 0x2afa
jmp 0x10012ac6
Function at 0x100130be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x10073b0c], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x10012c76
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x10012ef6
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.10012c38
jne 0x10013220
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10013216
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.1003ea27
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.1003ea81
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x1001317d
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10013179
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x100131d7
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.1003ea27
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.1003ea81
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10013213
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100131d3
push esi
call ebx
mov esi, edi
test esi, esi
je 0x10013213
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x100131f4
inc ebx
cmp ebx, 3
jl 0x100131d9
jmp 0x100131fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x10013213
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x1006e9f8], eax
add edi, 8
cmp edi, 0x18
jl 0x10013201
pop edi
pop esi
pop ebx
mov dword [0x10073b0c], 1
mov eax, dword [0x1006e9f8]
mov esp, ebp
pop ebp
ret
Function at 0x100157cd
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.10039a4f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.100042a7
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.100030df
pop ecx
lea ecx, [ebp - 0x30]
call fcn.10001f29
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x100686e0
lea ecx, [ebp - 0x30]
call fcn.1000b533
pop ecx
mov ecx, eax
call fcn.10001f24
push eax
push str.dxdiag
push 0x100627d8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.10001f29
lea ecx, [ebp - 0x18]
call fcn.1000210e
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.10001f24
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.1001a6ef
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.10006bc4
test al, al
je 0x10015874
cmp esi, 0x4b0
jl 0x10015845
lea ecx, [ebp - 0x18]
call fcn.10006bc4
test al, al
jne 0x10015904
lea ecx, [ebp - 0x48]
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.10004836
push ecx
lea ecx, [ebp - 0xc8]
call fcn.10004a0a
test al, al
je 0x100158f9
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
push 0x10071ec0
call fcn.10002ff0
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002fcc
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.10004be3
lea ecx, [ebp - 0x30]
call fcn.10002000
lea ecx, [ebp - 0xc8]
call fcn.10004f4b
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.10005009
lea ecx, [ebp - 0x18]
call fcn.10002000
lea ecx, [ebp - 0x48]
call fcn.10001f29
lea ecx, [ebp + 8]
call fcn.10002000
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016037
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 0x1006278c
call fcn.100020bd
push eax
push str.Temp
call fcn.10039a5a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.10005425
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.10002fcc
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.10002000
lea ecx, [ebp - 0x84]
call fcn.10002000
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.10001fce
push eax
lea ecx, [ebp - 0x138]
call fcn.1000e6de
lea ecx, [ebp - 0x138]
call fcn.10016274
test al, al
je 0x10016168
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.10016284
lea ecx, [ebp - 0x138]
call fcn.1000e68f
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.10001fce
movaps xmm0, xmmword [0x10069190]
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, 0x10062774
mov edi, 0x10072600
setne bl
cmp dword [ebp - 0x1c], 0
je 0x10016152
sub esp, 0x18
mov ecx, esp
push esi
call fcn.100020bd
push 0x70
mov ecx, edi
call fcn.10004be3
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.10001fce
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x10016183
sub esp, 0x18
mov ecx, esp
push esi
call fcn.100020bd
push 0x6e
mov ecx, edi
jmp 0x1001617e
sub esp, 0x18
mov ecx, esp
push 0x10062774
call fcn.100020bd
push 0x6f
mov ecx, 0x10072600
call fcn.10004be3
lea ecx, [ebp - 0x138]
call fcn.1000e23d
lea ecx, [ebp - 0x18]
call fcn.10002000
lea ecx, [ebp + 8]
call fcn.10002000
lea ecx, [ebp + 0x20]
call fcn.10002000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018d6a
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.10001f24
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x10018da2
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10018dc0
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.10001f29
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018dd1
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.10001f24
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x10018e0c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10018e5d
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10018e2d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x10018e5d
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x10018e2d
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 3
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.10001f29
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018e6e
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.10001f24
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x10018ea6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10018ec4
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.10001f29
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret