joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dcf0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1004dd10
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004dd23
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1004dd30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1004de18
mov ecx, dword [edi]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ecx
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ebp, esi
call fcn.100063d4
cmp eax, 0xea
jne 0x1004ddb4
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
push str.ProgramFilesDir
lea ecx, [esp + 0x24]
call fcn.100063d4
test eax, eax
jne 0x1004ddbe
test ebp, ebp
jne 0x1004ddf4
jmp 0x1004ddc3
cmp eax, 0x7a
jne 0x1004ddf0
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
je 0x1004ddd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10050837
add esp, 0x20
ret
test eax, eax
jne 0x1004de18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004de03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10050837
add esp, 0x20
ret
mov ecx, dword [0x100774b4]
mov ebp, dword [edi]
mov edx, dword [str._PROGRAMFILES_]
mov eax, dword [0x100774b0]
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dx, word [0x100774b8]
mov dword [esp + 0x24], eax
mov al, byte [0x100774ba]
push esi
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x34], dx
mov byte [esp + 0x36], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebp
jbe 0x1004de85
test ebx, ebx
mov dword [edi], eax
mov byte [esi], 0
je 0x1004de6d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10050837
add esp, 0x20
ret
test eax, eax
jbe 0x1004dea9
test ebx, ebx
je 0x1004de94
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10050837
add esp, 0x20
ret
test ebx, ebx
je 0x1004deb4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x490
call fcn.10050837
add esp, 0x20
ret
Function at 0x1004ded0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 0
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1004df2b
pop edi
mov eax, 0x490
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10050837
add esp, 0x108
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
cmp byte [eax], 0
je 0x1004df54
add eax, 1
sub ecx, 1
jne 0x1004df35
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004df61
mov eax, 0x7a
jmp 0x1004df76
test ecx, ecx
je 0x1004df42
mov esi, 0x105
sub esi, ecx
jmp 0x1004df44
cmp eax, 0x7fffffff
ja 0x1004df74
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call fcn.1000a41a
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.10050837
add esp, 0x108
ret

Function at 0x1004dfc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 0x105
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1004e015
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10050837
add esp, 0x10c
ret
mov ecx, 0x105
lea eax, [esp + 8]
push esi
nop
cmp byte [eax], 0
je 0x1004e03f
add eax, 1
sub ecx, 1
jne 0x1004e020
xor esi, esi
mov eax, dword [edi]
add esi, 1
cmp eax, esi
jae 0x1004e04c
mov eax, 0x7a
jmp 0x1004e061
test ecx, ecx
je 0x1004e02d
mov esi, 0x105
sub esi, ecx
jmp 0x1004e02f
cmp eax, 0x7fffffff
ja 0x1004e05f
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call fcn.1000a41a
xor eax, eax
mov ecx, dword [esp + 0x114]
mov dword [edi], esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.10050837
add esp, 0x10c
ret

Function at 0x1004e080
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 3
ja case.default.0x1004e089
jmp dword [eax*4 + 0x1004e0dc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004dd30
add esp, 8
ret
mov dword [esp + 4], 2
jmp fcn.1004ded0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.1004df90
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.1004dfc0
add esp, 8
ret
mov eax, 0xa0
ret
Function at 0x1004e2d0
Capabilities:
Get http content length
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20000005
push esi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1004e321
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.100504d9
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x1004e339
push 0x201
mov dword [esp + 0x14], 0x200
call fcn.100504d9
mov dword [esp + 0x18], eax
mov ebx, eax
mov ebp, dword [esp + 0x14]
add esp, 4
push 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
mov edi, ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1004e40b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004e41f
cmp eax, ebp
jbe 0x1004e3ca
mov ecx, dword [esp + 0x10]
sub eax, ebp
lea esi, [ecx + ecx]
add eax, ecx
cmp esi, eax
jae 0x1004e386
nop
add esi, esi
cmp esi, eax
jb 0x1004e380
lea ecx, [esi + 1]
push ecx
call fcn.100504d9
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub edx, ebp
push edx
push eax
push ebx
call fcn.10052150
mov eax, dword [esp + 0x24]
sub edi, eax
mov ecx, esi
sub ecx, edi
push eax
mov ebp, ecx
call fcn.10050771
mov eax, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
add edi, ebx
lea edx, [esp + 0x28]
push edx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004e402
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
push 0
add edi, eax
sub ebp, eax
push 0
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1004e360
jmp 0x1004e40b
push ebx
call fcn.10050771
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
call esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1004e440
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov byte [edi], 0
pop edi
pop esi
mov dword [ecx], ebx
pop ebp
mov dword [edx], eax
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x1c
ret 0xc
push ebx
call fcn.10050771
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [ecx], 0
mov dword [edx], 0
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x1004e510
Capabilities:
Create http request

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp ebx, edi
mov byte [esi + 5], 0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov byte [esi + 0x50], 0
je 0x1004e54f
mov ecx, SysReAllocString
mov eax, ebx
cmp byte [eax], 0
je 0x1004e544
add eax, 1
sub ecx, 1
jne 0x1004e535
jmp 0x1004e54f
cmp ecx, edi
je 0x1004e54f
mov edi, SysReAllocString
sub edi, ecx
lea ebp, [edi + 2]
push ebp
call fcn.100504d9
add esp, 4
cmp ebp, 0x7fffffff
mov dword [esi], eax
ja 0x1004e576
cmp edi, 0x7fffffff
ja 0x1004e576
push edi
push ebx
push ebp
push eax
call fcn.100195ac
mov al, byte [esp + 0x18]
push 0x200
mov byte [esi + 4], al
mov dword [esi + 0xc], 0x3c
call fcn.100504d9
xor ecx, ecx
cmp byte [esi + 4], cl
push 0x200
setne cl
mov dword [esi + 0x10], eax
add ecx, 3
mov dword [esi + 0x18], ecx
call fcn.100504d9
push 0x200
mov dword [esi + 0x1c], eax
call fcn.100504d9
push 0x200
mov dword [esi + 0x28], eax
call fcn.100504d9
push 0x800
mov dword [esi + 0x30], eax
call fcn.100504d9
push 0x800
mov dword [esi + 0x38], eax
call fcn.100504d9
mov edx, dword [esi]
add esp, 0x18
push 0
push 0
push 0
push 0
push edx
mov dword [esi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1004e600
Capabilities:
Parse url

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x1004e61e
mov edx, SysReAllocString
mov eax, edi
cmp byte [eax], 0
je 0x1004e659
add eax, 1
sub edx, 1
jne 0x1004e611
xor eax, eax
mov esi, 0x800
mov dword [ecx + 0x44], esi
mov dword [ecx + 0x3c], esi
lea esi, [ecx + 0xc]
push esi
push 0
mov edx, 0x200
push eax
push edi
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x1004e666
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc
test edx, edx
je 0x1004e61e
mov eax, SysReAllocString
sub eax, edx
jmp 0x1004e620
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1004e688
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e688
push eax
push ecx
push SysReAllocString
push esi
call dword [sym.imp.WININET.dll_InternetCreateUrlA]
test eax, eax
je 0x1004e64e
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1004e8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
movzx edi, ax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004e911
and edi, 0x3ff
push edi
mov edi, dword [esp + 0x20]
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004e911
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1004e911
pop edi
pop esi
pop ebp
mov eax, 0x490
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1004e929
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x24]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x20]
mov dword [edx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x7fffbffb
pop ebp
add eax, 0x80004005
pop ebx
ret

Function at 0x1004f860
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x60
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x74]
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], vtable.CMD5Checksum.0
call fcn.10051b30
mov ecx, dword [esp + 0x7c]
add esp, 0xc
push ecx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
call fcn.1004f6d0
push edi
lea ecx, [esp + 0xc]
call fcn.1004f780
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.10050837
add esp, 0x60
ret

Function at 0x1004ffa6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100a4210], 0
push esi
jne 0x1004ff19
call fcn.1004fe44
test eax, eax
je 0x1004ff5c
mov eax, dword [0x100a4210]
cmp eax, 1
jne 0x1004ff3a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004ff5c
pop esi
ret
push eax
call dword [0x100a4218]
test eax, eax
jne 0x1004ffa4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1004ff60
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100a4210]
call dword [0x100a4218]
mov edi, eax
test edi, edi
je 0x1004ff87
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1004ffa3
lea edi, [esi + 0xff0]
push esi
push dword [0x100a4210]
call dword [0x100a4214]
add esi, 0x10
cmp esi, edi
jb 0x1004ff8d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1004ff06
Function at 0x10050837
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008f414]
jne 0x10050841
repz ret
jmp fcn.10059801

Function at 0x10059a86
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1008fe50]
je 0x10059aa1
inc edi
cmp edi, 0x17
jb 0x10059a92
cmp edi, 0x17
jae 0x10059c21
push ebp
push 3
call fcn.1006319c
cmp eax, 1
pop ecx
je 0x10059bed
push 3
call fcn.1006319c
test eax, eax
pop ecx
jne 0x10059ad5
cmp dword [0x100a4268], 1
je 0x10059bed
cmp ebx, 0xfc
je 0x10059c20
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100a45d0
push ebp
call fcn.10050f70
add esp, 0xc
test eax, eax
je 0x10059b0b
push esi
push esi
push esi
push esi
push esi
call fcn.10051313
add esp, 0x14
push 0x104
mov esi, 0x100a45e9
push esi
push 0
mov byte [0x100a46ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10059b4f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10050f70
add esp, 0xc
test eax, eax
je 0x10059b4f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10051313
add esp, 0x14
push esi
call fcn.10051760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10059b94
push esi
call fcn.10051760
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100a48e4
push 0x10077f9c
sub ecx, eax
push ecx
push eax
call fcn.10055217
add esp, 0x14
test eax, eax
je 0x10059b94
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10051313
add esp, 0x14
jmp 0x10059b96
xor esi, esi
push 0x10077f98
push ebx
push ebp
call fcn.10053c7e
add esp, 0xc
test eax, eax
je 0x10059bb6
push esi
push esi
push esi
push esi
push esi
call fcn.10051313
add esp, 0x14
push dword [edi*8 + 0x1008fe54]
push ebx
push ebp
call fcn.10053c7e
add esp, 0xc
test eax, eax
je 0x10059bd8
push esi
push esi
push esi
push esi
push esi
call fcn.10051313
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10062fdf
add esp, 0xc
jmp 0x10059c20
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10059c20
cmp ebp, 0xffffffff
je 0x10059c20
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008fe54]
push dword [esi]
call fcn.10051760
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10062fdf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10059d39
xor ebx, ebx
cmp dword [0x100a4d18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100630b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10063195
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10078908
push edi
call esi
cmp eax, ebx
je 0x10063195
push eax
call fcn.10059ccb
mov dword [esp], 0x100788f8
push edi
mov dword [0x100a4d18], eax
call esi
push eax
call fcn.10059ccb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100a4d1c], eax
call esi
push eax
call fcn.10059ccb
mov dword [0x100a4d20], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1005bde4
test eax, eax
pop ecx
pop ecx
je 0x10063083
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10051313
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100630b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10059ccb
cmp eax, ebx
pop ecx
mov dword [0x100a4d28], eax
je 0x100630b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10059ccb
pop ecx
mov dword [0x100a4d24], eax
mov eax, dword [0x100a4d24]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1006313a
cmp dword [0x100a4d28], ecx
je 0x1006313a
push eax
call fcn.10059d42
push dword [0x100a4d28]
mov esi, eax
call fcn.10059d42
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1006313a
cmp edi, ebx
je 0x1006313a
call esi
cmp eax, ebx
je 0x10063107
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10063107
test byte [ebp - 0x18], 1
jne 0x1006313a
lea eax, [ebp - 0x10]
push eax
call fcn.1005be1b
test eax, eax
pop ecx
je 0x10063122
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10051313
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10063131
or dword [ebp + 0x10], 0x200000
jmp 0x10063175
or dword [ebp + 0x10], 0x40000
jmp 0x10063175
mov eax, dword [0x100a4d1c]
cmp eax, dword [ebp - 8]
je 0x10063175
push eax
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063175
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10063175
mov eax, dword [0x100a4d20]
cmp eax, dword [ebp - 8]
je 0x10063175
push eax
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063175
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100a4d18]
call fcn.10059d42
cmp eax, ebx
pop ecx
je 0x10063195
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10063197
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100112cc]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
jne 0x10001065
push eax
mov dword [0x10012c54], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x100134d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
push 0x18e
push eax
mov word [esp + 8], ax
lea eax, [esp + 0xa]
push eax
call fcn.10009c10
add esp, 0xc
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
jmp 0x1000108c
cmp dword [ebp + 0xc], 0
jne 0x1000108c
push 0x100134d8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push closesocket
push 0
push 0
push 0
call sym.Service.dll_StopRoutineW
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
inc eax
call fcn.1000406a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100010a3
Capabilities:
Create tcp socket

Disassembly:
push 0xc
push 0x1000f688
call fcn.10005e18
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [0x10012dcc], ebx
je 0x10001165
mov eax, dword [0x10012dd0]
cmp eax, ebx
je 0x10001165
mov dword [ebp - 0x1c], eax
push 0x48
pop ecx
mov esi, eax
mov edi, 0x10012c90
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x120]
mov edi, 0x10012c58
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x1c]
call fcn.10002246
call fcn.10001ef1
push 1
push ebx
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [0x10012164], eax
cmp eax, 0xffffffff
je 0x10001146
mov esi, 0x10012c6c
call fcn.1000212b
test eax, eax
je 0x10001146
cmp dword [ebp + 0x14], 0x7fffffff
je 0x10001146
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push dword [0x10012c70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xfffffffe
call fcn.100011a8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10005e5d
ret 0x10
push str.Global1B4BAB0F_4544_4c13_90E9_622E2EE1411B
push 0x1000
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x10012dcc], eax
cmp eax, ebx
je 0x100011a3
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10012dd0], eax
cmp eax, ebx
jne 0x100010d0
mov dword [ebp - 0x1c], ebx
jmp 0x10001146
Function at 0x10001d64
Capabilities:
Modify service

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1000b6c0
push 0xfffffffffffffffe
push 0x1000f608
push 0x10005e80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100112cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x28], eax
mov edi, ecx
xor ebx, ebx
mov byte [ebp + 0x800], bl
mov esi, 0x7ff
push esi
push ebx
lea eax, [ebp + 0x801]
push eax
call fcn.10009c10
mov byte [ebp], bl
push esi
push ebx
lea eax, [ebp + 1]
push eax
call fcn.10009c10
mov dword [ebp - 0x1c], ebx
push 2
push dword [edi + 8]
push dword [ebp - 0x28]
lea eax, [ebp]
push eax
call fcn.100026e2
mov edi, dword [edi + 0x10]
push 0x800
lea eax, [ebp + 0x800]
push eax
push edi
lea eax, [ebp]
push eax
call fcn.10003da4
add esp, 0x38
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x10001e5d
push 2
lea ecx, [ebp + 0x800]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x10001e5d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x904]
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x10001e64
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.10001e9d
xor eax, eax
cmp dword [ebp - 0x1c], ebx
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1000406a
add ebp, 0x1004
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
jmp 0x10001fac
mov eax, dword [ebp + 0xc]
push 0
push edi
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10001fb0
add esi, eax
sub edi, eax
test edi, edi
jg 0x10001f92
xor eax, eax
cmp esi, dword [ebp + 0x10]
pop edi
sete al
pop esi
pop ebp
ret

Function at 0x10001fbc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [0x10012164]
test ebx, ebx
jle 0x10001fe9
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10001ff3
add esi, eax
cmp esi, ebx
jl 0x10001fca
xor eax, eax
cmp ebx, esi
sete al
pop edi
pop esi
ret
xor eax, eax
jmp 0x10001ff0