joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100085d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5672
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc40], esi
mov dword [ebp - 0xc38], 0
mov dword [ebp - 0xc3c], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x800
lea eax, [ebp - 0xc10]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0xc38], 1
call fcn.1008e0c0
lea eax, [ebp - 0xc28]
mov dword [ebp - 0xc30], 0x800
push 0x113
push eax
call fcn.1002eee0
add esp, 0x14
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 4], 1
jbe 0x1000868c
mov eax, dword [eax]
lea ecx, [ebp - 0xc34]
push ecx
push 0x101
push 0
push eax
push reloc.WS2_32.dll_bind
call fcn.100090c0
mov ecx, dword [ebp - 0xc14]
add esp, 0x14
mov byte [ebp - 4], 0
mov edi, eax
cmp ecx, 0xf
jbe 0x100086e8
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100086de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008835
push ecx
push edx
call fcn.1008c2e7
add esp, 8
test edi, edi
jne 0x10008818
lea eax, [ebp - 0xc28]
push 0x11a
push eax
call fcn.1002eee0
add esp, 8
cmp dword [eax + 0x14], 0xf
jbe 0x1000870c
mov eax, dword [eax]
lea ecx, [ebp - 0xc30]
push ecx
lea ecx, [ebp - 0xc10]
push ecx
push 0
push 0
push eax
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc14]
mov edi, eax
cmp ecx, 0xf
jbe 0x10008767
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000875d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000883a
push ecx
push edx
call fcn.1008c2e7
add esp, 8
test edi, edi
jne 0x1000880c
push 0x3ff
lea eax, [ebp - 0x40f]
push edi
push eax
call fcn.1008e0c0
mov edi, dword [ebp - 0xc30]
add esp, 0xc
xor esi, esi
mov byte [ebp - 0x410], 0
test edi, edi
jle 0x100087f8
nop word [eax + eax]
mov al, byte [ebp + esi - 0xc10]
mov cl, al
and al, 0xf
shr cl, 4
cmp cl, 9
ja 0x100087b8
add cl, 0x30
jmp 0x100087bb
add cl, 0x37
mov byte [ebp - 0xc2c], cl
cmp al, 9
ja 0x100087c9
add al, 0x30
jmp 0x100087cb
add al, 0x37
mov byte [ebp - 0xc2b], al
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x410]
mov byte [ebp - 0xc2a], 0
push 0x400
push eax
call fcn.100945b5
inc esi
add esp, 0xc
cmp esi, edi
jl 0x100087a0
mov esi, dword [ebp - 0xc3c]
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.10007730
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
call fcn.100917bf
int3
Function at 0x10009c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x20], 0xf
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push edx
push 0x20019
push 0
push eax
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009c8a
cmp dword [ebp + 0x38], 0xf
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 4
push ecx
push 0
lea eax, [ebp + 0x24]
cmova eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x10009cc7
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009cbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009d10
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp ecx, 0xf
jbe 0x10009d09
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009cff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009d10
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100917bf
int3
Function at 0x1000a030
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5815
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 0x44], 0
push 0x1c0
push eax
call fcn.1002eee0
add esp, 8
cmp dword [esi + 0x14], 0xf
mov eax, esi
mov ecx, dword [esi + 0x28]
mov dword [ebp - 4], 0
jbe 0x1000a085
mov eax, dword [esi]
push 0
push 0
push 0
push 1
push eax
call ecx
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov edx, dword [esi + 0x2c]
cmova ecx, dword [ebp - 0x40]
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push ecx
push eax
mov dword [esi + 0x1c], eax
call edx
mov edx, eax
mov dword [esi + 0x20], edx
test edx, edx
je 0x1000a0c1
mov byte [esi + 0x18], 1
cmp byte [esi + 0x18], 0
je 0x1000a1fe
mov ax, word [0x100b96cc]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x30]
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov al, byte [0x100b96ce]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
push 0
push 0x4883000
push 0
push 0
push str.HTTP_1.0
push 0x100b96f4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edx
call ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1000a153
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a149
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a24c
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x1000a1e4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 4
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi + 0x34]
push 0x1f
push edi
call eax
or dword [ebp - 0x48], 0x180
lea eax, [ebp - 0x48]
push 4
push eax
mov eax, dword [esi + 0x38]
push 0x1f
push edi
call eax
mov eax, dword [esi + 0x3c]
push 0
push 0
push 0
push 0
push edi
call eax
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], 4
push eax
mov eax, dword [esi + 0x4c]
push 0x20000013
push edi
call eax
mov eax, dword [ebp - 0x44]
mov ecx, 1
cmp dword [ebp - 0x4c], 0xc8
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x44]
push edi
call eax
cmp byte [esi + 0x18], 0
je 0x1000a1fe
push dword [esi + 0x20]
mov eax, dword [esi + 0x44]
call eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x44]
call eax
mov byte [esi + 0x18], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1000a22e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a251
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov al, byte [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
call fcn.100917bf
int3
Function at 0x1000d100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.10096dd4
add esp, 4
mov dword [ebp - 0x54], eax
mov edi, eax
mov ecx, edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], ecx
sub edi, 0xf53700
mov ebx, ecx
push eax
push 0x20119
push 0
push 0
push reloc.WS2_32.dll_bind
sbb ebx, 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d1fa
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push 0x111
push eax
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], 4
call fcn.1002f1d0
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x1000d19d
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push 0x197
push eax
call fcn.1002f1d0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1000d1b6
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push esi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100076d0
lea ecx, [ebp - 0x40]
call fcn.100076d0
test esi, esi
jne 0x1000d1fa
mov ecx, dword [ebp - 0x44]
xor eax, eax
add ecx, dword [ebp - 0x54]
push esi
adc eax, dword [ebp - 0x58]
push 2
push eax
push ecx
call fcn.1008c880
jmp 0x1000d1fe
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x1000ed90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.10010670
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.1000ed20
push edi
push ebx
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
call fcn.10012450
add esp, 0x20
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, 0xf
jbe 0x1000ee30
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ee26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ef45
push ecx
push edx
call fcn.1008c2e7
add esp, 8
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
je 0x1000ee97
mov ecx, dword [ebp - 0x4c]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1000ee97
mov esi, dword [ecx + 0x3c]
add esi, ecx
cmp dword [esi], 0x4550
jne 0x1000ee97
mov edx, dword [ebp - 0x48]
mov edi, dword [esi + 0xa8]
sub edx, ecx
mov ebx, dword [esi + 0xac]
cmp edi, edx
ja 0x1000ee97
lea eax, [ebx + edi]
cmp eax, edx
ja 0x1000ee97
push ebx
lea eax, [edi + ecx]
push 0
push eax
call fcn.1008e0c0
add esp, 0xc
mov dword [esi + 0xac], 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x50]
call fcn.10011550
mov edx, dword [ebp - 0x4c]
add esp, 0xc
mov bl, al
test edx, edx
je 0x1000eef1
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1000eed2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ef4a
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x1000ef27
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ef1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ef4a
push ecx
push edx
call fcn.1008c2e7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.100917bf
call fcn.100917bf
int3
Function at 0x10011550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b61bd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x10011592
xor al, al
jmp 0x10011629
push 0x100b9764
push ecx
lea eax, [ebp - 0x40]
xor bl, bl
push eax
call fcn.1000c0d0
push edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.1000e810
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.100076d0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001161f
mov edx, dword [esi]
lea eax, [ebp - 0x44]
mov ecx, dword [esi + 4]
push 0
push eax
sub ecx, edx
mov dword [ebp - 0x44], 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov eax, 1
sub ecx, dword [esi]
cmp dword [ebp - 0x44], ecx
movzx ebx, bl
cmove ebx, eax
lea ecx, [ebp - 0x28]
call fcn.100076d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x100121e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6295
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
test eax, eax
je 0x10012343
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10012343
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp - 0x34]
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012339
mov ecx, dword [esi + 0x3c]
add ecx, esi
je 0x10012339
movzx eax, word [ecx + 0x14]
xor ebx, ebx
add eax, 0x28
add eax, ecx
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x10012294
mov ebx, dword [eax + 4]
lea eax, [eax + 0x28]
add ebx, dword [eax - 0x28]
sub ecx, 1
jne 0x10012286
push esi
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
cmp byte [edi + 0x1c], 0
je 0x10012334
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1002eee0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10012dc0
add esp, 0x10
push ebx
sub esp, 0xc
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
je 0x1001231b
push eax
mov ecx, esi
call fcn.10002400
mov edi, dword [esi]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sub esi, eax
push esi
push eax
push edi
call fcn.1008db40
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + edi]
mov edi, dword [ebp - 0x38]
add esp, 0xc
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.10012b80
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.100024b0
lea ecx, [ebp - 0x28]
call fcn.100013f0
lea eax, [esi + ebx]
jmp 0x10012346
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10012f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x10012f3c
cmp dword [esi + 0x18], 0xf
lea eax, [esi + 4]
jbe 0x10012f1b
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x100130b2
mov ecx, esi
call fcn.100121e0
mov ecx, dword [esi]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jns 0x10012f5d
cmp ecx, 0xffffffff
je 0x100130b2
push ecx
jmp 0x100130a6
mov byte [ebp - 1], 0
cmp ecx, 0xffffffff
je 0x1001309e
push 0
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001309e
cmp dword [ebp - 8], 1
jne 0x1001309e
mov eax, dword [ebp + 8]
inc ebx
mov cl, byte [ebp - 1]
lea edx, [eax + 4]
push edi
movzx edi, cl
mov byte [eax], cl
inc edi
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ebp + 8], ecx
sub ecx, eax
sar ecx, 2
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], edx
cmp edi, ecx
jae 0x10012fd4
lea eax, [eax + edi*4]
mov dword [edx + 4], eax
jmp 0x1001300e
jbe 0x1001300e
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp edi, eax
jbe 0x10012ff0
lea eax, [ebp + 0xb]
mov ecx, edx
push eax
push edi
call fcn.10011a60
jmp 0x1001300e
sub edi, ecx
shl edi, 2
push edi
push 0
push dword [ebp + 8]
call fcn.1008e0c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ecx + 4], eax
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 8], 0
cmp eax, 0xffffffff
je 0x1001307a
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001307a
cmp dword [ebp + 8], 4
jne 0x1001307a
mov eax, dword [ebp - 0xc]
add ebx, 4
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax + edi*4], ecx
inc edi
movzx eax, byte [ebp - 1]
cmp edi, eax
jbe 0x10013010
mov bl, byte [ebp - 2]
pop edi
xor bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov bl, 1
cmp eax, 0xffffffff
je 0x10013090
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop edi
xor bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100130b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10026510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100dbe80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1008c2b7
mov edi, eax
add esp, 4
test edi, edi
je 0x100265ad
push 1
mov dword [ebp - 4], 0
call fcn.1008ae56
add esp, 4
mov dword [edi + 4], eax
jmp 0x100265af
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1001aca0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x1002660a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1002660a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x10026626
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10026649
cmp byte [ebp + 0xc], 0
je 0x10026635
push esi
call fcn.1008b361
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10026655
mov esi, str.ios_base::badbit_set
jmp 0x10026665
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10026690
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.1001be60
push 0x100d4508
lea eax, [ebp - 0x28]
push eax
call fcn.1008d716
int3
Function at 0x10029960
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
test edi, edi
je 0x100299fa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x1002999f
mov eax, dword [eax]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
mov eax, dword [ebp - 4]
test eax, eax
je 0x100299f3
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
test esi, esi
setne bl
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret