joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001eaa0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x674]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.100503b0
add esp, 0xc
xor eax, eax
test esi, esi
je 0x1001ec13
test ebx, ebx
je 0x1001ec13
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call edi
test eax, eax
je 0x1001ec10
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x1001ec10
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001ec10
nop dword [eax + eax]
push dword [ebp - 0x67c]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001ebdb
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001ebdb
test dword [ebp - 0x674], 0x10
jne 0x1001eba2
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001dd40
jmp 0x1001ebdb
cmp word [ebp - 0x648], 0x2e
jne 0x1001ebc8
mov ax, word [ebp - 0x646]
test ax, ax
je 0x1001ebdb
cmp ax, 0x2e
jne 0x1001ebc8
cmp word [ebp - 0x644], 0
je 0x1001ebdb
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001eaa0
lea ecx, [ebp - 0x674]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001eb50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001ec30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3278
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], esi
test ebx, ebx
je 0x1001ed5f
push 1
push edi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1001ec9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1001ed5f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edi
mov edi, 0x1ffe
mov dword [ebp - 0x54], edi
xor esi, esi
mov dword [ebp - 0x5c], esi
cmp esi, 2
jb 0x1001eccc
mov word [ebx + esi], 0
cmp edi, 0x1ffe
jne 0x1001ecd2
movzx edi, word [ebx]
mov dword [ebp - 0x54], edi
cmp edi, 0x1ffe
ja 0x1001ed47
cmp esi, edi
jge 0x1001ed47
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 2
jae 0x1001ed41
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp + eax*4 - 0x64]
je 0x1001ed47
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 1
je 0x1001ed47
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001ed41
add esi, eax
jmp 0x1001ecb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 2
jb 0x1001ed5a
movzx eax, word [ebx]
cmp esi, eax
jne 0x1001ed5a
mov esi, 1
jmp 0x1001ed5c
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.1001ed8e
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100209f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3258
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], edi
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x10020b15
push 2
push eax
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x10020a61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10020b15
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
movzx edi, word [edi]
xor esi, esi
mov dword [ebp - 0x5c], esi
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 2
jae 0x10020af4
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp + eax*4 - 0x64]
je 0x10020afa
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 2
je 0x10020afa
nop dword [eax]
cmp esi, edi
jge 0x10020afa
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x54]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10020ae3
add esi, eax
mov dword [ebp - 0x5c], esi
jmp 0x10020ac0
cmp esi, edi
jge 0x10020afa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10020a75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 2
jb 0x10020b10
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
cmp esi, eax
jne 0x10020b10
mov esi, 1
jmp 0x10020b12
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.10020b44
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10020f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x10020950
push 0
push 0
call fcn.10057c6e
add esp, 0x18
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10025540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084059
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ac1c4]
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, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
cmp byte [esi + 8], 0
je 0x10025586
call fcn.10025380
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x100255c2
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x100255a7
push eax
call fcn.1005a6e3
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x100255b2
mov eax, dword [eax]
push eax
call fcn.10059d4c
add esp, 4
mov ecx, esi
call fcn.10025380
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0x10]
push 0
add eax, eax
push eax
call fcn.10024130
mov edx, dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x2c], 1
test edx, edx
je 0x10025620
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x100255fe
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10013200
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x1002562b
mov ebx, dword [ebx]
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x10025642
push ecx
push ebx
push eax
call fcn.1005b019
add esp, 0xc
mov ebx, eax
jmp 0x10025645
or ebx, 0xffffffff
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005800
test ebx, ebx
jle 0x1002566b
add dword [esi + 4], ebx
jmp 0x1002567a
cmp dword [edi + 0x14], 8
jb 0x10025673
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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.10047acb
mov esp, ebp
pop ebp
ret 4
Function at 0x10027be0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084680
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10027c93
push dword [ebp - 0x18]
call fcn.10055f80
mov esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x14]
add ecx, ecx
push ecx
call fcn.10055f80
add esp, 8
mov edi, eax
mov dword [ebp - 0x20], edi
test esi, esi
je 0x10027cf0
test edi, edi
je 0x10027cf0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10027cf0
mov ebx, 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10027cb2
test edi, edi
je 0x10027cbf
push edi
call fcn.10055f63
add esp, 4
test ebx, ebx
jne 0x10027cd2
test esi, esi
je 0x10027cd7
push esi
call fcn.10055f63
add esp, 4
jmp 0x10027cd7
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
call fcn.1004f48a
int3
Function at 0x10028710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4ea8
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], 0xffffffff
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x250], edi
cmp edi, 0xffffffff
je 0x100287e1
push 0x22c
push ebx
lea eax, [ebp - 0x248]
push eax
call fcn.100503b0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100287e1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop
push dword [ebp - 0x254]
lea eax, [ebp - 0x224]
push eax
call esi
test eax, eax
je 0x100287d6
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100287b0
jmp 0x100287e1
mov ebx, 1
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10028817
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret
Function at 0x10028830
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100847f8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push dword [0x100ab0f4]
call fcn.10003cf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
push dword [0x100ab0fc]
call fcn.10003cf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.1002f1d0
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x230], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028920
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.10011da0
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x238]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028960
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028981
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100289a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x20119
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
push reloc.WS2_32.dll_bind
call fcn.10017e40
mov edi, dword [ebp - 0x248]
test eax, eax
jne 0x10028a30
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10028a30
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x10028a15
cmp eax, 2
jne 0x10028a30
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10028a84
test al, 1
jne 0x10028a30
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10028a8d
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10005880
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10028a5d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov eax, esi
mov dword [ebp - 0x244], 0
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.10047acb
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
jmp 0x10028a32
Function at 0x10028f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100848d2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ad9c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push 0x1008bfcc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100290a2
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100290bd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100290c7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100079e0
test al, al
jne 0x10029022
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029000
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000ffb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10007f90
add esp, 8
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029060
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1002907c
js 0x100290d1
cmp word [eax], 0x36
jb 0x1002907c
mov edi, 1
jmp 0x1002907e
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100290a0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80070057
call fcn.100079c0
int3
Function at 0x100292c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10029331
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100292ff
cmp eax, 2
jne 0x1002931b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1002932b
test ecx, ecx
je 0x10029326
test cl, 1
jne 0x1002931b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1002932b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10029380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100849c3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100ac1c4]
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 dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], 0
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x100294fc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
cmp edi, reloc.WS2_32.dll_accept
jne 0x1002945d
push dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push ebx
push edi
push eax
call fcn.10027d50
add esp, 0x10
mov dword [ebp - 4], 2
mov ecx, esi
push eax
call fcn.10014200
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100294de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100294de
cmp edi, reloc.WS2_32.dll_bind
jne 0x100294de
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100294c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000ffb0
mov eax, esi
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
int3
Function at 0x10029630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084a48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100ac1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x10029671
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push dword [ebp + 8]
call fcn.10027b40
test eax, eax
js 0x100296fd
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x100296b9
mov esi, dword [esi]
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100296d9
call fcn.100257d0
mov esi, eax
test esi, esi
js 0x100296f6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x100296f4
call fcn.100257d0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x100296ff
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x100296ff
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002971b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret