joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a730
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a2a57
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a81c7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a971f
test eax, eax
je 0x46a84c
mov ecx, dword [esp + 0x3c]
call fcn.004a81f4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46a810
push edi
mov ecx, esi
call fcn.004a57b6
mov ecx, esi
call fcn.0046a9b0
cmp dword [esp + 0x38], 1
jne 0x46a845
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a5920
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46d280
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46d2b3
push esi
call fcn.00470370
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46d2ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46d339
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46d322
mov eax, dword [esi + 8]
test eax, eax
je 0x46d2d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46d31e
cmp eax, 2
je 0x46d322
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46d2ca
cmp eax, 3
je 0x46d2fd
cmp eax, 1
jne 0x46d2ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46d2ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46d2ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046d360
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46d348
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046d360
add esp, 4
pop esi
ret

Function at 0x47a790
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47a833
test eax, eax
jbe 0x47a833
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47a833
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47a7de
xor esi, esi
jmp 0x47a7e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47a80f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047c7f0
add esi, eax
push esi
mov ebx, esi
call fcn.0047c7f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47a7f0
pop ebp
test edi, edi
pop edi
jne 0x47a833
test ebx, ebx
je 0x47a833
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004920a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47a975
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47aa8d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47aa8d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a2ea9
mov esi, eax
test esi, esi
je 0x47aa8d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47aa8d
mov ecx, esi
call fcn.0047a8e0
cmp edi, eax
jge 0x47aa8d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47aa13
mov dword [esp + 0x34], 1
jmp 0x47aa6e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47aa8d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00479e80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x483580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4835cc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4835cc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4835b6
push eax
call ebp
test ax, ax
jl 0x4835c4
inc esi
add edi, 4
cmp esi, 6
jb 0x4835a8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00483280
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x487120
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x487180
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x487180
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x487180
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x487180
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x487190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4a384d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a3885
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a18d7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a18af
jmp 0x4a3891
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a4f3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a4f81
call fcn.004aadb1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4f81
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a4f78
xor eax, eax
jmp 0x4a4f89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4f8f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ab2e1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ab30f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ab32d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ab247
jmp 0x4ab32d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab32d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ab247
test edi, edi
mov eax, edi
jne 0x4ab317
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40d8b1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push eax
call fcn.00401447
add esp, 4
mov dword [ebp - 0x28], 3
mov dword [ebp - 0xc], 6
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x40da10
mov edx, dword [str.gowebs]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
and eax, 0xffff
test eax, eax
jne 0x40d92d
or eax, 0xffffffff
jmp 0x40d9d7
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0
push bind
push 0xa0880000
mov eax, dword [0x4586c4]
push eax
mov ecx, dword [str.gowebs]
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x460b84], eax
cmp dword [0x460b84], 0
jne 0x40d96f
or eax, 0xffffffff
jmp 0x40d9d7
push 0
mov edx, dword [0x460b84]
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40d9b0
push 0
push 0
push 0x800
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.About_WebServer
push 0xf200
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 1
mov edx, dword [0x460b84]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x460b84]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x460b88], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42ed20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42ed41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x42ed48
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x42ed5f
mov edx, dword [ebp - 4]
push edx
call fcn.00433b20
add esp, 4
or eax, 0xffffffff
jmp 0x42ed61
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x444d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x444d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x444d44
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x444d5b
mov ecx, dword [ebp - 4]
push ecx
call fcn.00433b20
add esp, 4
or eax, 0xffffffff
jmp 0x444d5d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4469a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4469cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433b20
add esp, 4
or eax, 0xffffffff
jmp 0x4469fa
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x4469f8
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x4469f8
mov dword [0x460db4], 0xd
mov dword [0x460db8], 5
or eax, 0xffffffff
jmp 0x4469fa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100010b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11a]
mov word [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
mov dword [esp + 0x10], 0
push eax
push 0x10015420
push 0x80000002
mov dword [esp + 0x18], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100011b2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x118]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x100154d0
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x118]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0x100154d0
push edx
call esi
test eax, eax
jne 0x100011b2
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x128]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x324]
lea edx, [esp + 0x14]
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x100011aa
mov byte [eax], cl
inc eax
dec esi
jne 0x1000119b
jmp 0x100011ae
test esi, esi
jne 0x100011af
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x318
ret
Function at 0x10002450
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp + 4], 3
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsCacheSpecial_PathsLZPath
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100024d4
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push eax
mov eax, dword [esp + 0x18]
push str.AgentDir
push eax
call edi
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push str.AgentDir
push eax
call edi
test eax, eax
je 0x100024c1
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
add esp, 0xc
ret
Function at 0x100031f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsCacheSpecial_PathsLZPath
push 0x80000002
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100032c7
lea ecx, [esp + 8]
push ebx
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.ConnectStatus
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100032bb
mov eax, dword [esp + 4]
test eax, eax
je 0x100032bb
push 0x88
call fcn.1000efe0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100032bb
push esi
mov esi, dword [esp + 0x1c]
push edi
mov ecx, 0x22
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea edi, [ebx + 4]
mov ecx, 0x20
mov dword [ebx + 0x84], 1
mov dword [ebx], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1001e568]
push ebx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.1000f009
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0x10
ret

Function at 0x10003790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100155f8
push 0x10004610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [0x1001e568]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [0x1001e568]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
push 0
push 0
push 0
push 0x10003640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e4c0
Capabilities:
Acquire debug privileges
Create thread
Enumerate pe sections
Terminate thread

Disassembly:
sub esp, 0x42c
mov ecx, 8
xor eax, eax
push ebx
push esi
push edi
mov esi, str.SeDebugPrivilege
lea edi, [esp + 0x230]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x79
lea edi, [esp + 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000e6a0
add esp, 8
test eax, eax
jne 0x1000e517
pop edi
pop esi
pop ebx
add esp, 0x42c
ret 8
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
call fcn.1000e710
test eax, eax
je 0x1000e68e
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push 0x1001e3d0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x1000e565
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x42c
ret 8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.1000e800
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, 4
push eax
push edi
push esi
call fcn.1000e8f0
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x14], ebx
jbe 0x1000e687
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
mov cl, byte [esp + 0x13]
mov al, byte [edi + 4]
cmp al, cl
jne 0x1000e66a
mov eax, dword [edi]
mov ecx, dword [esp + 0x440]
cmp eax, ecx
jne 0x1000e66a
xor edx, edx
mov dx, word [edi + 6]
push edx
push eax
call fcn.1000e9a0
add esp, 8
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 0
push 0
push eax
push 0x1000ea50
push 0
push 0
call ebp
mov esi, eax
push 0x64
push esi
call ebx
cmp eax, 0x102
jne 0x1000e60a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1000e66a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea edx, [esp + 0x2c]
push str.msg2.0.db
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1000e663
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000e663
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1000e663
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, dword [esp + 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x1000e5a9
mov esi, dword [esp + 0x20]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x42c
ret 8
Function at 0x402ad0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040f8
test esi, esi
jne 0x402b06
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041e8
jmp 0x402b24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e4
mov edi, eax
test esi, esi
je 0x402b24
cmp dword [ebx], 0
je 0x402b24
dec esi
jmp 0x402b0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d9c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4da008], 0x8088405
inc edx
mov dword [ebx + 0x4da008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403218
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4da024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403290
xor eax, eax
push ebp
push 0x403289
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403290
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4da024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4da024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dd04c], 0
je 0x403fdd
cmp word [0x4dd220], 0xd7b2
jne 0x403fa5
cmp dword [0x4dd228], 0
jbe 0x403fa5
mov eax, 0x4dd21c
call dword [0x4dd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4da070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404004
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4da034], 0
jne 0x403ff9
push 0
push 0x4da068
push 0x4da070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret