joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ba70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x13e7ed4]
xor edx, edx
cmp eax, edx
jne 0x48ba96
xor eax, eax
mov byte [eax + 0x13e7dd4], al
inc eax
cmp eax, 0x100
jl 0x48ba7e
mov dword [0x13e7ed4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x13e7dd4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48bb27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48bafa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x48bac8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48bba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x48bbf3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48bbda
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4925a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0dde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00492ec0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x13824a4
call fcn.004b18b5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x492633
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b18b5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49262c
push 0
mov ecx, eax
call fcn.004896a0
mov dword [esi + 0xc], eax
jmp 0x492635
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x492635
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b3f45
Capabilities:
Get graphical window text

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

Function at 0x4b5637
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 0x4b5679
call fcn.004bb27c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b5679
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b5670
xor eax, eax
jmp 0x4b5681
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b5687
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb7ac
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 0x4bb7da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb7f8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bb712
jmp 0x4bb7f8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bb7f8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bb712
test edi, edi
mov eax, edi
jne 0x4bb7e2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create process on windows
Delete file
Log keystrokes via application hook
Write and execute a file
Write file on windows

Disassembly:
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.tckdll.dll
call sub.KERNEL32.dll_CreateFileA
push eax
push 0
push 0x404540
push 0x1000
push section..data
push eax
call sub.KERNEL32.dll_WriteFile
pop eax
push eax
call sub.KERNEL32.dll_CloseHandle
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x404570], eax
push str.tckdll.dll
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x404530], eax
push str.TRAINER
push eax
call sub.KERNEL32.dll_GetProcAddress
push 0
push dword [0x404530]
push eax
push 2
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x404574], eax
push 0
push 0x4010d4
push 0
push 1
push dword [0x404570]
call sub.USER32.dll_DialogBoxParamA
mov bl, 0xa
dec bl
je 0x4010a2
push dword [0x404574]
call sub.USER32.dll_UnhookWindowsHookEx
cmp eax, 0
je 0x40108e
mov bl, 0xa
dec bl
je 0x4010b8
push dword [0x404530]
call sub.KERNEL32.dll_FreeLibrary
cmp eax, 0
je 0x4010a4
mov bl, 0xa
dec bl
je 0x4010d4
push str.tckdll.dll
call sub.KERNEL32.dll_DeleteFileA
cmp eax, 0
je 0x4010ba
push 0
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
push esi
push ecx
push edi
mov eax, dword [ebp + 0xc]
cwde
cmp eax, 0x110
jne 0x4011b0
push 1
push dword [0x404570]
call sub.USER32.dll_LoadIconA
push eax
push 1
push 0x80
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push 0
push dword [ebp + 8]
call sub.USER32.dll_GetSystemMenu
mov dword [0x404540], eax
mov dword [0x404544], 0x2c
mov dword [0x404548], 0x10
mov dword [0x40454c], 0x800
push 0x404544
push 1
push 0xffffffffffffffff
push dword [0x404540]
call sub.USER32.dll_InsertMenuItemA
mov dword [0x40454c], 0
mov dword [0x404568], 0x404000
mov dword [0x40456c], 1
push 0x404544
push 1
push 0xffffffffffffffff
push dword [0x404540]
call sub.USER32.dll_InsertMenuItemA
push str.smartmlp
push 0x66
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
push str.NFS:_Most_Wanted
push 0x67
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
push str.speed.exe
push 0x68
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextA
jmp 0x401246
cmp eax, 0x111
jne 0x401217
mov eax, dword [ebp + 0x10]
cmp ax, 2
jne 0x4011cc
push 0
push dword [ebp + 8]
call sub.USER32.dll_EndDialog
jmp 0x401213
cmp ax, 0x65
jne 0x4011e8
push 0x40
push str.Trainer_Creation_Kit
push 0x404104
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
jmp 0x401213
cmp ax, 1
jne 0x401213
push 1
push str.speed.exe
call sub.KERNEL32.dll_WinExec
cmp eax, 0x1f
ja 0x401246
push 0x10
push str.Error_
push str.Failed_to_Run__r_nMake_sure_this_is_in_the_game_dir.
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
jmp 0x401246
cmp eax, 0x112
jne 0x40123d
mov eax, dword [ebp + 0x10]
cmp ax, 0xf000
jae 0x40123d
push 0x40
push str.About...
push str.Trainer_Creation_Kit_r_n_r_n_C__1999_Teraphy___Phrozen_Crew_r_nhttp:__www.chez.com_teraphy
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
jmp 0x401246
xor eax, eax
pop edi
pop ecx
pop esi
leave
ret 0x10
mov eax, 1
pop edi
pop ecx
pop esi
leave
ret 0x10
Function at 0x401130
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x401170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa00
lea eax, [esp]
lea edx, [esp + 8]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0xa0c]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011c4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0xa0c]
call fcn.00417b55
mov eax, 1
add esp, 0xa00
ret 8
xor eax, eax
add esp, 0xa00
ret 8

Function at 0x4014b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x401505
dec eax
je 0x4014e0
dec eax
jne 0x401513
test esi, esi
jne 0x401513
pop edi
xor eax, eax
pop esi
ret 0x10
test esi, esi
jne 0x4014d9
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4014fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401513
pop edi
xor eax, eax
pop esi
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 0x10

Function at 0x401c10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401c60
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401c81
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40e621
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e528
cmp edx, dword [eax]
je 0x40e643
add eax, 8
inc ecx
cmp eax, 0x42e5b8
jl 0x40e634
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e528]
jne 0x40e771
mov eax, dword [0x4312c4]
cmp eax, 1
je 0x40e74b
test eax, eax
jne 0x40e674
cmp dword [0x42e034], 1
je 0x40e74b
cmp edx, 0xfc
je 0x40e771
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e6ab
lea eax, [ebp - 0x1a4]
push 0x426da4
push eax
call fcn.0040f660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f750
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e6ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f750
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426da0
push edi
call fcn.00411020
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x426d84
push eax
call fcn.0040f660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f670
lea eax, [ebp - 0xa0]
push 0x426d80
push eax
call fcn.0040f670
push dword [esi + 0x42e52c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f670
push 0x12010
lea eax, [ebp - 0xa0]
push 0x426d58
push eax
call fcn.00410f90
add esp, 0x2c
pop edi
jmp 0x40e771
lea eax, [ebp + 8]
lea esi, [esi + 0x42e52c]
push 0
push eax
push dword [esi]
call fcn.0040f750
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4163d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040bc80
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41649b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41649b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41644e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416459
or bh, 8
and edi, 0x8000000
je 0x416474
mov eax, dword [0x432a5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41649b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41689b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4168bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4168da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41b9ab
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 0x41b9ed
call fcn.0041fd85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41b9ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41b9e4
xor eax, eax
jmp 0x41b9f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041b9fb
pop edi
pop esi
pop ebx
ret 4
Function at 0x40efe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48450b
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.004747a3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471eea
mov eax, dword [eax]
push 0x4a31f0
push eax
call fcn.004640f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474a2e
test bl, bl
je 0x40f062
push 0x4a31f0
lea ecx, [esp + 0xc]
call fcn.00474e0a
push 0x4a6d6c
lea ecx, [esp + 0xc]
call fcn.00474e0a
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 0x40f09e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474a2e
jmp 0x40f169
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 0x40f122
lea edx, [esp + 0x7c]
push 0x4a6d68
push edx
call fcn.004640f4
add esp, 8
test eax, eax
je 0x40f122
lea eax, [esp + 0x7c]
push 0x4a6d64
push eax
call fcn.004640f4
add esp, 8
test eax, eax
je 0x40f122
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 0x40f0b2
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.00474a2e
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 0x40f960
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 0x40f9c2
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 0x40f9d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48458b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ada04]
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 0x40fb08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fa36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474a2e
xor eax, eax
jmp 0x40fb7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00474bb7
push esi
lea ecx, [esp + 0xc]
call fcn.00474e46
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 0x40fb5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040f960
test eax, eax
jne 0x40fb5d
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 SysReAllocString
mov ecx, edi
call fcn.0040f960
test eax, eax
jne 0x40fb5d
lea eax, [esp + 0x14]
push 0x4a6d80
push eax
call fcn.004651d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb3c
lea ecx, [esp + 0x14]
push 0x4a6d7c
push ecx
call fcn.00465150
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fb3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474b67
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fa4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474a2e
xor eax, eax
jmp 0x40fb7f
mov byte [esi], 0
push 0x4a6d78
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.00474a2e
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