joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005d30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc0
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
cmp ecx, 0x8d2
jne 0x10005e6d
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, 7
jne 0x10005f28
push ebx
call ebp
test eax, eax
je 0x10005ea3
push edi
push esi
push 0x10005bf0
xor edi, edi
push ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [esi + 0x10]
push ecx
call ebp
test eax, eax
je 0x10005f08
mov edx, dword [esi + 0x10]
push edx
mov ecx, esi
call fcn.100037e0
mov ebp, eax
cmp ebp, edi
je 0x10005f08
push 0x2a
lea ecx, [esp + 0x42]
xor eax, eax
push edi
push ecx
mov word [esp + 0x48], ax
call fcn.1007f650
push 0x2a
lea eax, [esp + 0x22]
xor edx, edx
push edi
push eax
mov word [esp + 0x28], dx
call fcn.1007f650
add esp, 0x18
lea ecx, [esp + 0x3c]
push ecx
push ebp
lea ecx, [esi + 0x18]
call fcn.10021e10
mov edi, eax
test edi, edi
je 0x10005f01
xor edx, edx
push 0x62
push edx
lea eax, [esp + 0x72]
push eax
mov word [esp + 0x74], dx
call fcn.1007f650
add esp, 0xc
push 0x32
lea ecx, [esp + 0x6c]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x3010
push 0x16
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.100034f0
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10005eb2
push 0x100bac1c
push 0x100bac18
push 0x16
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.100032e0
add esp, 0x14
jmp 0x10005ee9
cmp ecx, 0x113
jne 0x10005f2c
cmp dword [eax + 8], 0x7d6
jne 0x10005f2c
mov eax, dword [esi + 0xc]
push eax
call ebp
test eax, eax
jne 0x10005eaa
push 0x7d6
mov ecx, esi
call fcn.100038e0
mov dword [esi + 0xc], 0
mov eax, 1
jmp 0x10005f0e
mov ebx, dword [esi + 0xc]
jmp 0x10005d74
push 0x3010
push 0x16
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.100034f0
push 0x100bac1c
push 0x100bac18
push 0x16
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.100032e0
add esp, 0x24
push edi
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 7
mov ecx, esi
call fcn.10003990
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
pop edi
mov ecx, dword [esp + 0xc8]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0xc0
ret 4
xor eax, eax
jmp 0x10005f0e
xor eax, eax
cmp ecx, 0x113
setne al
jmp 0x10005f0e
Function at 0x10007c00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
mov esi, ecx
cmp eax, 0x800a
jne 0x10007c4d
push str.TChatSubmitButton
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1007fec9
add esp, 0x68
ret 0x18
cmp eax, 3
jne 0x10007c36
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.TskMultiChatForm.UnicodeClass
push edi
call ebp
test eax, eax
jne 0x10007cd5
lea edi, [esi + 0xc]
lea ebp, [eax + 1]
cmp word [edi], ax
jne 0x10007ca0
push edi
push ebx
mov ecx, esi
call fcn.10006a60
movzx eax, word [edi]
cmp ax, 3
jne 0x10007c8b
cmp word [esi + 0xe], 5
jbe 0x10007c9d
cmp ax, ax
jb 0x10007c9d
cmp word [esi + 0xe], 6
jb 0x10007c9d
mov dword [esi + 0x14], 2
jmp 0x10007ca0
mov dword [esi + 0x14], ebp
push 0x3e8
push 0x7d3
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.100038b0
push 4
push ebx
mov ecx, esi
call fcn.10003940
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1007fec9
add esp, 0x68
ret 0x18
push str.tSkMainForm.UnicodeClass
push edi
call ebp
test eax, eax
jne 0x10007c36
push 0x62
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.1007f650
add esp, 0xc
push 0x32
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x100bacdc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov edi, eax
test edi, edi
je 0x10007d38
push 0x100bacdc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [edi + eax*2]
push eax
lea ecx, [esi + 0x84]
call fcn.10001960
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1007fec9
add esp, 0x68
ret 0x18
Function at 0x10009b90
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x100b5078
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, 2
mov dword [esp + 0x14], 0x5c3a63
mov dword [esp + 0x1c], eax
add al, 0x41
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 2
jne 0x10009c97
mov ecx, dword [0x100d302c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x10009c38
lea eax, [esi + 0xd]
push eax
call fcn.10080587
add esp, 4
test eax, eax
je 0x10009c38
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
push esi
lea ecx, [esp + 0x18]
add eax, 0xc
push ecx
push eax
mov dword [esp + 0x24], eax
call fcn.1007f6e0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x34]
mov dword [esp + 0x2c], 0
call fcn.1001ec20
test eax, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
sete bl
mov dword [esp + 0x28], 0xffffffff
cmp ecx, dword [0x100d3028]
je 0x10009c87
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10009c87
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.1007fde4
add esp, 4
test bl, bl
je 0x10009c97
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10009b00
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x1a
mov dword [esp + 0x1c], eax
jl 0x10009bd0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10009ff0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x128]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x130]
push edi
mov dword [esp + 0x14], ecx
mov dword [esi + 0x100cc], edx
mov dword [esi + 0x100c8], eax
lea edi, [esi + 0x100c4]
test ebx, ebx
jne 0x1000a04f
xor ebp, ebp
jmp 0x1000a058
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
mov ecx, edi
call fcn.100096e0
test eax, eax
je 0x1000a07c
mov ecx, dword [edi]
push ebp
push ebx
push ecx
call fcn.1007f6e0
mov edx, dword [edi]
mov dword [edx - 8], ebp
mov eax, dword [edi]
add esp, 0xc
mov byte [eax + ebp], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x1000a088
xor eax, eax
jmp 0x1000a08f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
mov ecx, edi
call fcn.100098f0
push 1
lea ebx, [esi + 0x88]
mov esi, dword [esp + 0x1c]
push 0
push esi
push str.cmjFilemon
mov ecx, ebx
call fcn.1007d170
test eax, eax
je 0x1000a0cf
mov ecx, ebx
call fcn.1007c990
push 1
push 0
push esi
push str.cmjFilemon
mov ecx, ebx
call fcn.1007d170
mov ecx, ebx
call fcn.1007c840
test eax, eax
je 0x1000a0e1
xor eax, eax
jmp 0x1000a193
push 0
push 0
push 0x83000004
mov ecx, ebx
call fcn.1007c890
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.1007f650
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, 1
mov edx, dword [esp + 0x10]
test edx, esi
je case.0x1000a14b.62
lea eax, [edi + 0x41]
push eax
lea ecx, [esp + 0x20]
push str._c:_
push ecx
call fcn.100807c6
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call ebp
cmp eax, 6
ja case.0x1000a14b.62
jmp dword [eax*4 + 0x1000a1b0]
mov edx, esi
not edx
and dword [esp + 0x10], edx
jmp case.0x1000a14b.62
mov eax, esi
not eax
and dword [esp + 0x10], eax
jmp case.0x1000a14b.62
mov ecx, esi
not ecx
and dword [esp + 0x10], ecx
inc edi
rol esi, 1
cmp edi, 0x20
jb 0x1000a121
push 4
lea edx, [esp + 0x14]
push edx
push 4
mov eax, edx
push eax
push 0x83000000
mov ecx, ebx
call fcn.1007c910
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0x114
ret 0x14
Function at 0x1000a15c
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x128]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x130]
push edi
mov dword [esp + 0x14], ecx
mov dword [esi + 0x100cc], edx
mov dword [esi + 0x100c8], eax
lea edi, [esi + 0x100c4]
test ebx, ebx
jne 0x1000a04f
xor ebp, ebp
jmp 0x1000a058
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
mov ecx, edi
call fcn.100096e0
test eax, eax
je 0x1000a07c
mov ecx, dword [edi]
push ebp
push ebx
push ecx
call fcn.1007f6e0
mov edx, dword [edi]
mov dword [edx - 8], ebp
mov eax, dword [edi]
add esp, 0xc
mov byte [eax + ebp], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x1000a088
xor eax, eax
jmp 0x1000a08f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
mov ecx, edi
call fcn.100098f0
push 1
lea ebx, [esi + 0x88]
mov esi, dword [esp + 0x1c]
push 0
push esi
push str.cmjFilemon
mov ecx, ebx
call fcn.1007d170
test eax, eax
je 0x1000a0cf
mov ecx, ebx
call fcn.1007c990
push 1
push 0
push esi
push str.cmjFilemon
mov ecx, ebx
call fcn.1007d170
mov ecx, ebx
call fcn.1007c840
test eax, eax
je 0x1000a0e1
xor eax, eax
jmp 0x1000a193
push 0
push 0
push 0x83000004
mov ecx, ebx
call fcn.1007c890
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.1007f650
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, 1
mov edx, dword [esp + 0x10]
test edx, esi
je case.0x1000a14b.62
lea eax, [edi + 0x41]
push eax
lea ecx, [esp + 0x20]
push str._c:_
push ecx
call fcn.100807c6
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call ebp
cmp eax, 6
ja case.0x1000a14b.62
jmp dword [eax*4 + 0x1000a1b0]
mov edx, esi
not edx
and dword [esp + 0x10], edx
jmp case.0x1000a14b.62
mov eax, esi
not eax
and dword [esp + 0x10], eax
jmp case.0x1000a14b.62
mov ecx, esi
not ecx
and dword [esp + 0x10], ecx
inc edi
rol esi, 1
cmp edi, 0x20
jb 0x1000a121
push 4
lea edx, [esp + 0x14]
push edx
push 4
mov eax, edx
push eax
push 0x83000000
mov ecx, ebx
call fcn.1007c910
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007fec9
add esp, 0x114
ret 0x14
Function at 0x1000b8a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100b525e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.1000a6a0
xor ebx, ebx
lea ecx, [esi + 0x88]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.CaptureFile.0
mov dword [esi + 0x84], ebx
call fcn.1007c740
lea ecx, [esi + 0x100a8]
mov byte [esp + 0x18], 1
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x100a4], 5
call fcn.1000b790
mov eax, dword [0x100d302c]
mov dword [esi + 0x100c4], eax
mov dword [esi + 0x100c8], ebx
mov ecx, dword [0x100d302c]
mov dword [esi + 0x100d0], ecx
mov edx, dword [0x100d302c]
mov dword [esi + 0x100d4], edx
push fcn.10001b90
push 0x100095d0
push 4
push 4
lea eax, [esi + 0x102e4]
push eax
mov byte [esp + 0x2c], 5
mov dword [esi + 0x102e0], ebx
call fcn.10080978
push 0x104
lea ecx, [esi + 0x100d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [esi + 0x101dc], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1000fa00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100b5531
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call fcn.1007c740
mov eax, dword [0x100d302c]
mov dword [esp + 0x18], 0
mov dword [esi + 0x2c], eax
lea edx, [esp + 0xb]
push edx
lea eax, [esp + 0xf]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x20], 1
call fcn.1000ed50
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 2
call fcn.1000f560
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x100111a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jne 0x1001120d
cmp dword [esi + 0x24], 0
mov dword [esi + 0x28], 1
jne 0x100111c8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
mov ecx, esi
call fcn.1000c0c0
mov ecx, esi
call fcn.1000bff0
mov ecx, esi
call fcn.1000c070
test eax, eax
jne 0x100111e4
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x100110f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10011690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1001179e
mov eax, dword [esp + 0x1c]
push ebx
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001179d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x100116e3
cmp dword [esi], 0x28
je 0x100116f5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret 8
mov ecx, 0x4d42
push esi
mov word [esp + 0x10], cx
call fcn.10011670
movzx edi, ax
mov eax, dword [esi + 0x10]
add edi, dword [esi]
add esp, 4
cmp eax, 1
je 0x10011737
cmp eax, 2
je 0x10011737
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
add eax, eax
add eax, eax
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x1001173a
add edi, dword [esi + 0x14]
push ebp
xor eax, eax
xor ecx, ecx
lea edx, [edi + 0xe]
push esi
mov dword [esp + 0x16], edx
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], cx
call fcn.10011670
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
movzx edx, ax
mov eax, dword [esi]
add esp, 4
lea ecx, [edx + eax + 0xe]
push 0
lea edx, [esp + 0x2c]
push edx
push 0xe
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x2e], ecx
call ebp
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
push esi
push ebx
call ebp
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret 8

Function at 0x10014970
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10014860
mov eax, dword [0x100d302c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x34], eax
mov ecx, dword [0x100d302c]
xor eax, eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov word [esi + 0x30], ax
mov byte [esi + 0x18], 0x61
lea edi, [esi + 0x19]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], al
mov ebx, 3
mov dl, bl
lea eax, [esp + 0x10]
add dl, 0x60
push eax
mov byte [esp + 0x14], dl
call ebp
cmp eax, 1
je 0x100149dc
mov cl, byte [esp + 0x10]
mov byte [edi], cl
inc edi
inc ebx
cmp ebx, 0x1a
jl 0x100149c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10015e10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10015e4a
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10015e50
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push 0
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10015e9c
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret

Function at 0x10015eb0
Capabilities:
Terminate process

Disassembly:
call fcn.10015e10
mov eax, dword [esp + 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10015eda
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10015eda
mov al, 1
ret 4
xor al, al
ret 4

Function at 0x100162b0
Capabilities:
Query service status
Start service

Disassembly:
mov eax, dword [ecx]
sub esp, 0x1c
push ebx
xor bl, bl
test eax, eax
jne 0x100162c5
xor al, al
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
push esi
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x100162e7
pop esi
xor al, al
pop ebx
add esp, 0x1c
ret 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1001634e
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0xc]
push edx
push esi
call ebp
test eax, eax
je 0x10016345
cmp dword [esp + 0x10], 2
jne 0x10016345
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push edi
jmp 0x10016320
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
je 0x10016344
mov eax, dword [esp + 0x24]
cmp edi, eax
jae 0x10016344
cmp dword [esp + 0x14], 2
je 0x10016320
pop edi
cmp dword [esp + 0x10], 4
pop ebp
sete bl
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 4
Function at 0x100163c0
Capabilities:
Query service status
Stop service

Disassembly:
mov eax, dword [ecx]
sub esp, 0x1c
push ebx
xor bl, bl
test eax, eax
jne 0x100163d5
xor al, al
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
push edi
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x100163f7
pop edi
xor al, al
pop ebx
add esp, 0x1c
ret 4
lea edx, [esp + 8]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1001645e
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push edi
call ebp
test eax, eax
je 0x10016455
cmp dword [esp + 0x10], 3
jne 0x10016455
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push esi
mov edi, edi
mov ecx, dword [esp + 0x28]
push ecx
mov esi, eax
call ebx
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x10016454
mov eax, dword [esp + 0x24]
cmp esi, eax
jae 0x10016454
cmp dword [esp + 0x14], 3
je 0x10016430
pop esi
cmp dword [esp + 0x10], 1
pop ebp
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov al, bl
pop ebx
add esp, 0x1c
ret 4

Function at 0x10016470
Capabilities:
Modify service

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx]
push esi
push edi
push 0x13
push eax
push ecx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10016494
pop edi
xor al, al
pop esi
ret 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x100164b5
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
pop edi
setne al
pop esi
ret 4

Function at 0x10016570
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1007fec9
add esp, 0x194
ret
Function at 0x10016630
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x4cc
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebp
push esi
push edi
push 0x3ff
lea eax, [esp + 0xd9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0xe0], 0
call fcn.1007f650
add esp, 0xc
push 0x100bad1e
lea edi, [esi + 0x1c]
push edi
call fcn.10009570
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, al
je 0x10016707
push 0x63
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.1007f650
push 0x63
lea edx, [esp + 0x81]
push 0
push edx
mov byte [esp + 0x88], 0
call fcn.1007f650
mov eax, dword [esi + 0x20]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s:_s
push edx
call fcn.100807c6
add esp, 0x28
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x10]
push ecx
call ebp
push eax
lea edx, [esp + 0x14]
push edx
call section..text
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0xb4]
lea eax, [esp + 0x7c]
push eax
push ecx
push edx
lea eax, [esp + 0xec]
push str.CONNECT__s:_d_HTTP_1.1__r_nProxy_Authorization:_Basic__s__r_nProxy_Connection:_Keep_Alive__r_n
push eax
call fcn.100807c6
add esp, 0x20
jmp 0x10016727
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0xb4]
push ecx
push edx
lea eax, [esp + 0xdc]
push str.CONNECT__s:_d_HTTP_1.1_r_nProxy_Connection:_Keep_Alive_r_n
push eax
call fcn.100807c6
add esp, 0x10
push 0
lea ecx, [esp + 0xd8]
push ecx
call ebp
mov edi, dword [sym.imp.WS2_32.dll_send]
push eax
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0xdc]
push edx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push 0
push 2
push 0x100bb1ac
push ecx
call edi
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007fec9
add esp, 0x4cc
ret

Function at 0x10016920
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
call edx
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
jne 0x1001694b
mov dword [esi + 0x60], 1
xor eax, eax
cmp dword [esi + 0x60], eax
pop esi
sete al
ret