joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fb60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45fb77
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a5b4
mov eax, dword [0x491b44]
cmp word [eax + 2], 0
jne 0x45fb9f
mov eax, dword [0x491b44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461238
mov eax, dword [0x491c1c]
cmp word [eax + 2], 0
jne 0x45fbb9
mov eax, dword [0x491c1c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461430
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.004039b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.004039b8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cb38]
call fcn.0042453c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45fd40
mov eax, dword [0x491a50]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042490c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4619e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x491a50]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d1b0
test eax, eax
je 0x45fcae
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409238
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1d8
test eax, eax
je 0x45fcc2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049a8
mov eax, dword [0x4918f8]
cmp byte [eax], 0
jne 0x45fcf6
mov eax, ebx
call fcn.0045fe68
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00461bbc
mov eax, ebx
call fcn.00462580
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fd36
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4600e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x492be4]
cmp dword [eax + 0x30], 0
je 0x460192
cmp dword [ebx + 0x94], 0
jne 0x46018c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460078
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46018c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x460152
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46018c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414b28
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460161
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460cf4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460d29
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404828
jmp 0x460d36
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040478c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461d98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461dd9
mov eax, esi
call fcn.004484e8
test al, al
je 0x461dd9
mov eax, dword [ebx + 0x84]
call fcn.004481e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461dd9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004481e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x466bf0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x466c1e
mov eax, ebx
call fcn.004676a4
cmp dword [ebx + 0x40], 0
je 0x466c17
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x466c8f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x466c81
cmp dword [ebx + 8], 0
je 0x466c40
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x466c52
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x466c81
cmp dword [ebx + 8], 0
je 0x466c33
cmp eax, 3
je 0x466c65
dec eax
jne 0x466c33
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x466c33
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x466c33
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x466cad
cmp dword [ebx + 0x14], 0xcc
je 0x466cad
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00466cb8
pop ebx
ret
Function at 0x4773d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x477433
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47741b
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx]
cmp esi, eax
jge 0x477411
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x477425
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47743a
ret

Function at 0x478e78
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x479006
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push edx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x478fe4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
call fcn.004049f8
add eax, eax
inc eax
call fcn.00402724
mov ebx, eax
mov eax, esi
call fcn.004049f8
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.00405558
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov esi, eax
add esi, esi
push 4
push 0x1000
push esi
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
test edi, edi
je 0x478fcd
mov eax, dword [0x491b98]
mov eax, dword [eax]
mov edx, 0x479020
call fcn.0046299c
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x478fcd
cmp esi, dword [ebp - 0xc]
jne 0x478fcd
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x479060
push 0x479070
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress_1
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
push 0x479088
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00408b54
push dword [ebp - 0x18]
push 0x4790a0
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00408b04
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404ab8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x491b98]
mov eax, dword [eax]
call fcn.0046299c
test ebx, ebx
je 0x478fc7
mov byte [ebp - 1], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478feb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4790b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffc38
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x13c4], edx
mov dword [ebp - 0x13c8], edx
mov dword [ebp - 0x13c0], edx
mov dword [ebp - 0x13b8], edx
mov dword [ebp - 0x13bc], edx
mov dword [ebp - 0x13b0], edx
mov dword [ebp - 0x13b4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4792d5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4792ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x13ac]
mov ecx, 0x13ac
mov edx, ebx
call fcn.00407288
mov eax, dword [ebx + 0x29]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x13b4]
mov eax, 2
call fcn.00408b54
mov ecx, dword [ebp - 0x13b4]
lea eax, [ebp - 0x13b0]
mov edx, 0x4792ec
call fcn.00404a44
mov edx, dword [ebp - 0x13b0]
mov eax, dword [0x491b98]
mov eax, dword [eax]
call fcn.0046299c
lea edx, [ebx + 0x21]
lea eax, [ebp - 0x138b]
mov ecx, 0x10
call fcn.00407288
mov eax, dword [ebp - 0x1383]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x13bc]
mov eax, 2
call fcn.00408b54
mov ecx, dword [ebp - 0x13bc]
lea eax, [ebp - 0x13b8]
mov edx, 0x47930c
call fcn.00404a44
mov edx, dword [ebp - 0x13b8]
mov eax, dword [0x491b98]
mov eax, dword [eax]
call fcn.0046299c
mov edx, 0x13ac
mov eax, ebx
call fcn.00407290
lea edx, [ebp - 0x12fb]
lea eax, [ebx + 0xb1]
mov ecx, 0xca
call fcn.00407288
lea edx, [ebp - 0x55a]
lea eax, [ebx + 0xe52]
mov ecx, 0x19f
call fcn.00407288
mov eax, dword [ebp - 0x137b]
mov dword [ebx + 0x31], eax
mov eax, dword [ebp - 0x1377]
mov dword [ebx + 0x35], eax
lea eax, [ebp - 0x13c0]
call fcn.0047a0a4
mov edx, dword [ebp - 0x13c0]
mov eax, 0x479328
call fcn.00404d3c
test eax, eax
jle 0x479228
push 0x1015
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [ebp - 0x1383]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x13c8]
call fcn.00408b04
mov ecx, dword [ebp - 0x13c8]
lea eax, [ebp - 0x13c4]
mov edx, 0x479338
call fcn.00404a44
mov edx, dword [ebp - 0x13c4]
mov eax, dword [0x491b98]
mov eax, dword [eax]
call fcn.0046299c
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x479292
mov eax, dword [0x491b98]
mov eax, dword [eax]
mov edx, 0x47934c
call fcn.0046299c
jmp 0x4792a3
mov eax, dword [0x491b98]
mov eax, dword [eax]
mov edx, 0x479364
call fcn.0046299c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4792b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4792dc
lea eax, [ebp - 0x13c8]
mov edx, 7
call fcn.0040475c
ret
Function at 0x479778
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404be8
mov eax, dword [ebp - 8]
call fcn.00404be8
xor eax, eax
push ebp
push 0x479833
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x4797c0
lea eax, [ebp - 0xc]
mov edx, 0x479848
call fcn.004047d0
jmp 0x4797c8
lea eax, [ebp - 0xc]
call fcn.00404738
xor ecx, ecx
mov dl, 1
mov eax, dword [0x42cb70]
call fcn.0042d258
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0042cd50
mov eax, dword [ebp - 8]
push eax
push 0x479858
push dword [ebp - 0xc]
push 0x479890
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404ab8
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0042d3b8
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47983a
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040475c
ret
Function at 0x47c108
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c368
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47c16b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0047bbd0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cd24
cmp al, 1
jne 0x47c16b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0047bee8
test al, al
je 0x47c2f7
cmp dword [ebp - 8], 0
jge 0x47c189
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0047bbd0
mov eax, dword [ebp - 0x210]
call fcn.004049f8
cmp ebx, eax
jge 0x47c1d3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0047bbd0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x491d7c]
and eax, 0xff
bt dword [edx], eax
jae 0x47c1d3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47c1e7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047c0e4
cmp ebx, dword [ebp - 8]
je 0x47c2e9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47c213
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403be4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4918c4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x47c2d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403be4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4918c4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004481e4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403be4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4918c4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004481e4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c2dd
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47c34a
cmp dword [ebp - 8], 0
jge 0x47c302
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0047bbd0
mov eax, dword [ebp - 0x218]
call fcn.004049f8
cmp eax, dword [ebp - 8]
jg 0x47c33c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0047bbd0
mov eax, dword [ebp - 0x21c]
call fcn.004049f8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047c0e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c36f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040475c
ret
Function at 0x10002677
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.1000e74b
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.1000e74b
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x100026f3
mov eax, dword [0x1009b604]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 3
call fcn.1000e757
cmp dword [ebp - 0x18], esp
je 0x1000271f
push 6
call fcn.1000e751
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 8
call fcn.1000e757
cmp dword [ebp - 0x18], esp
je 0x1000274d
push 6
call fcn.1000e751
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 9
call fcn.1000e757
cmp dword [ebp - 0x18], esp
je 0x10002779
push 6
call fcn.1000e751
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xa
call fcn.1000e757
cmp dword [ebp - 0x18], esp
je 0x10002808
push 6
call fcn.1000e751
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0xb
call fcn.1000e757
cmp dword [ebp - 0x18], esp
je 0x1000282d
push 6
call fcn.1000e751
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x10002835
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.1000e745
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.1000e745
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10010580
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10072de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10097670]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.10010420
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10010622
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100106db
mov edx, dword [esi + 8]
push edx
call fcn.10019f60
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x10010672
cmp eax, 0x80000301
jne 0x10010640
mov eax, dword [esi]
jmp 0x1001064d
push 0
push esi
push 0x7d1
call fcn.1001f440
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100106d0
jmp 0x100106ca
cmp eax, 0x80000004
jne 0x100106a1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100106d0
jmp 0x100106ca
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x100106d0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100106d0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1006830d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10015d80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007315b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10068082
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10015e02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10065f94
mov eax, dword [eax]
push 0x1008dc80
push eax
call fcn.10058de4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006830d
test bl, bl
je 0x10015e02
push 0x1008dc80
lea ecx, [esp + 0xc]
call fcn.1006869d
push 0x1008dc8c
lea ecx, [esp + 0xc]
call fcn.1006869d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10015e3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006830d
jmp 0x10015f09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10015ec2
lea edx, [esp + 0x7c]
push 0x1008dc88
push edx
call fcn.10058de4
add esp, 8
test eax, eax
je 0x10015ec2
lea eax, [esp + 0x7c]
push 0x1008dc84
push eax
call fcn.10058de4
add esp, 8
test eax, eax
je 0x10015ec2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10015e52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1006830d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10016700
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10016762
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc