joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463be0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x463c2a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x463c59
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x463c9b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x48a890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a75c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0047f486
mov eax, dword [0x4b8ae0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0047f3b8
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0048b380
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x48a937
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48a92e
cmp al, 0xff
je 0x48a92e
dec al
mov byte [ecx], al
jmp 0x48a937
push ecx
call fcn.0049467f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x48a968
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48a95f
cmp al, 0xff
je 0x48a95f
dec al
mov byte [ecx], al
jmp 0x48a968
push ecx
call fcn.0049467f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x496d05
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496d3d
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.00494dbc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00494d94
jmp 0x496d49
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4983f3
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 0x498435
call fcn.0049e3a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498435
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49842c
xor eax, eax
jmp 0x49843d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498443
pop edi
pop esi
pop ebx
ret 4

Function at 0x49e8d2
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 0x49e900
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e91e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e838
jmp 0x49e91e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e91e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e838
test edi, edi
mov eax, edi
jne 0x49e908
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x585f7961
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7e1a79e1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1001766
Capabilities:
Create process on windows
Create process suspended
Create thread
Get common file path
Resume thread
Terminate process
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x100413c]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push esi
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x624], esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
cmp eax, esi
mov dword [ebp - 0x628], eax
je 0x100193b
push ebx
push eax
call fcn.010015cb
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x62c], eax
je 0x1001932
lea ecx, [ebp - 0x644]
push ecx
push 4
push eax
push 0x100161c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 0x620], eax
je 0x100192a
push edi
xor eax, eax
mov dword [ebp - 0x63c], esi
lea edi, [ebp - 0x638]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x688], esi
lea edi, [ebp - 0x684]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001913
push 0x1001280
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1001913
push dword [ebp - 0x640]
lea eax, [ebp - 0x61c]
push 0x400
push 0x1001218
push 0x208
push eax
call fcn.01001738
add esp, 0x14
test eax, eax
jl 0x1001913
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x688]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x688], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001913
push dword [ebp - 0x63c]
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x10018ed
push dword [ebp - 0x638]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x624], 1
call edi
push dword [ebp - 0x620]
call edi
cmp dword [ebp + 0xc], esi
je 0x10018fb
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 0x620]
push esi
call fcn.01002bc4
jmp 0x10018fb
push 5
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x63c]
call ebx
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x624], esi
jne 0x1001921
push 5
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x620]
call ebx
pop edi
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x628]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop esi
call fcn.01002aac
leave
ret 8
Function at 0x1001953
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100413c]
and dword [ebp - 0x24c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xe
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push 0x43
lea edi, [ebp - 0x248]
rep stosd dword es:[edi], eax
mov esi, 0x106
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_Ordinal_653]
cmp eax, 0xffffffff
jne 0x10019b1
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01001495
test eax, eax
jl 0x1001a57
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov esi, eax
xor edi, edi
cmp word [esi], di
je 0x10019cb
mov word [esi - 2], di
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov dword [ebp - 0x238], esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x24c], 0x3c
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x248], 0x40
je 0x1001a16
mov dword [ebp - 0x248], 0x440
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1001a57
cmp dword [ebp - 0x214], edi
je 0x1001a53
cmp dword [ebp + 0x10], edi
je 0x1001a47
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 0x214]
push edi
call fcn.01002bc4
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1001a59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002aac
leave
ret 0xc
Function at 0x1001df1
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ax, word [esi]
xor ebx, ebx
cmp ax, bx
push edi
mov dword [ebp - 4], ebx
je 0x1001f10
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp ax, 0x2d
je 0x1001e2a
cmp ax, 0x2f
je 0x1001e2a
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x1001e14
cmp word [esi], bx
je 0x1001f10
inc esi
push 0x10013c0
inc esi
push esi
call edi
test eax, eax
je 0x1001e8c
push 0x10013a4
push esi
call edi
test eax, eax
je 0x1001ea7
push 0x1001394
push esi
call edi
test eax, eax
je 0x1001eea
movzx eax, word [esi]
sub eax, 0x62
je 0x1001e79
sub eax, 0x10
je 0x1001e73
dec eax
jne 0x1001e7d
or dword [ebp - 4], 4
jmp 0x1001e7d
or dword [ebp - 4], 1
jmp 0x1001e7d
or dword [ebp - 4], 2
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x1001e14
jmp 0x1001f10
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1001f10
push ebx
push 0x1001d9d
push 3
push 0x10012a0
jmp 0x1001f03
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1001f10
push 0x1001378
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x1001f10
push 0x1001364
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001ee1
push ebx
push ebx
push ebx
push ebx
call eax
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001f10
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1001f10
push ebx
push 0x1001d9d
push 8
push 0x1001308
push 0x80000002
call fcn.01001ab8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100201e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01002a39
jmp fcn.01001f8d

Function at 0x100202d
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1002062
push 0x10013d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1002069
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x100413c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x634], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10013f8
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10021e8
push edi
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x630]
push ecx
push eax
lea ecx, [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [ebp - 0x620]
mov edi, 0x104
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x628], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10021db
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x630], 1
jne 0x1002184
push 0x314
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 0x108]
push eax
call esi
push ebx
push 0
push 0x180
push dword [ebp - 0x634]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x100217d
cmp eax, 0xfffffffe
jne 0x1002184
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x624]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], edi
push dword [ebp - 0x620]
mov dword [ebp - 0x628], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1002127
pop esi
pop ebx
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01002aac
leave
ret 4
Function at 0x10021fb
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, word [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push eax
mov ebx, 0x186
push ebx
push dword [ebp + 8]
call esi
movzx eax, word [ebp + 0xc]
push edi
push eax
push 0x199
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10022b5
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 5
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push 0x200
push edi
push edi
push edi
add eax, 0x108
push eax
push edi
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x38], 4
mov word [ebp - 0x32], di
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10022b5
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10022bd
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x1002bc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
add eax, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jne 0x1002bf0
or eax, 0xffffffff
cmp ecx, eax
je 0x1002c75
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x1002c5b
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x1002c31
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x20], 0x20
jne 0x1002c27
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1002c31
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x1002c02
cmp dword [ebp + 0x10], 0xffffffff
je 0x1002c58
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 4], ecx
jmp 0x1002c5b
mov ecx, dword [ebp - 4]
push dword [ebp + 0x14]
xor ebx, ebx
cmp dword [ebp + 0xc], edi
push ecx
setne bl
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
call esi
cmp eax, ebx
je 0x1002bfa
pop esi
pop ebx
pop edi
leave
ret 0x10
Function at 0x4079f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46deab
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.00460c81
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407a72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e737
mov eax, dword [eax]
push 0x4b91d0
push eax
call fcn.00451484
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00460f0c
test bl, bl
je 0x407a72
push 0x4b91d0
lea ecx, [esp + 0xc]
call fcn.004612e8
push 0x4bcd20
lea ecx, [esp + 0xc]
call fcn.004612e8
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 0x407aae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00460f0c
jmp 0x407b79
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 0x407b32
lea edx, [esp + 0x7c]
push 0x4bcd1c
push edx
call fcn.00451484
add esp, 8
test eax, eax
je 0x407b32
lea eax, [esp + 0x7c]
push 0x4bcd18
push eax
call fcn.00451484
add esp, 8
test eax, eax
je 0x407b32
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 0x407ac2
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.00460f0c
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 0x408370
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 0x4083d2
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
Function at 0x4083e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46df2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c3bf0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408518
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408446
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460f0c
xor eax, eax
jmp 0x40858f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461095
push esi
lea ecx, [esp + 0xc]
call fcn.00461324
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40856d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00408370
test eax, eax
jne 0x40856d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.00408370
test eax, eax
jne 0x40856d
lea eax, [esp + 0x14]
push 0x4bcd34
push eax
call fcn.00452560
mov esi, eax
add esp, 8
test esi, esi
jne 0x40854c
lea ecx, [esp + 0x14]
push 0x4bcd30
push ecx
call fcn.004524e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40854c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40854f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461045
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40845e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460f0c
xor eax, eax
jmp 0x40858f
mov byte [esi], 0
push 0x4bcd2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00460f0c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4