joyce8/EMBER2024-capa huggingface dataset:
Function at 0x533320
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [0x59bd48]
xor ecx, ecx
mov dl, 4
mov ebx, 8
push ebp
lea eax, [ecx + ecx*2]
shl eax, 2
cmp ecx, 0x21
lea ebp, [ecx + 0x3e8]
mov dword [eax + 0x5b2ff8], ecx
mov dword [eax + 0x5b2ffc], ebp
mov byte [eax + 0x5b3000], dl
mov byte [eax + 0x5b3001], 0
ja case.0x533363.2
movzx ebp, byte [ecx + 0x533524]
jmp dword [ebp*4 + 0x533514]
test esi, esi
je case.0x533363.0
mov byte [eax + 0x5b3000], bl
jmp case.0x533363.0
mov dword [eax + 0x5b2ff8], 0xffffffff
mov byte [eax + 0x5b3001], 1
inc ecx
cmp ecx, 0x22
jl 0x533332
call fcn.005332a0
test eax, eax
pop ebp
je 0x5333d0
mov eax, dword [0x5b4310]
mov ecx, dword [0x5b4314]
push 0
push eax
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x583b74
push str.Mirc_Toolbar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x5b3198], eax
jne 0x5333d5
pop esi
xor eax, eax
pop ebx
ret
movzx edx, word [0x5b4310]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
or edx, 0x1b0000
push edx
push 0x22
push 0x413
push eax
mov dword [0x5b31c0], eax
mov dword [0x5b32d8], eax
call esi
mov eax, dword [0x5b3198]
push 0x5b2ff8
push 0x22
push 0x414
push eax
call esi
call fcn.00531b70
mov eax, dword [0x5b3198]
test eax, eax
je 0x533484
mov eax, dword [0x5ae60c]
test eax, eax
jne 0x53343c
mov eax, dword [0x5ae608]
test eax, eax
jne 0x53343c
mov eax, dword [0x5ae610]
test eax, eax
mov edx, ebx
je 0x533441
mov edx, 9
mov ecx, ebx
call fcn.00531b10
test eax, eax
je 0x533453
mov ecx, ebx
call fcn.00531ac0
mov eax, dword [0x5b3198]
test eax, eax
je 0x533484
mov ebx, dword [0x5a7cb4]
xor edx, edx
test ebx, ebx
setne dl
mov ecx, 0xe
add edx, 0xe
call fcn.00531b10
test eax, eax
je 0x533484
mov ecx, 0xe
call fcn.00531ac0
call fcn.00531c60
mov eax, dword [0x5b3198]
test eax, eax
je 0x5334e8
mov edx, 0x18
mov ecx, edx
call fcn.00531b10
test eax, eax
je 0x5334ac
mov ecx, 0x18
call fcn.00531ac0
mov eax, dword [0x5b3198]
test eax, eax
mov dword [0x5b3404], 0
je 0x5334e8
mov edx, 0x1a
mov ecx, edx
call fcn.00531b10
test eax, eax
je 0x5334d9
mov ecx, 0x1a
call fcn.00531ac0
mov eax, dword [0x5b3198]
mov dword [0x5b3408], 0
mov ecx, dword [0x59bd80]
test ecx, ecx
je 0x533503
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b3198]
pop esi
pop ebx
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b3198]
pop esi
pop ebx
ret
Function at 0x53a000
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0x584d78
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMirc
push reloc.WSOCK32.dll_bind
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x53a03f
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53a044
sub eax, edx
mov edx, dword [esp + 8]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x53a780
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword [0x5b4310]
sub esp, 0x88
push esi
push 0xa
push 0x2b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x53a887
mov ecx, dword [0x5b4310]
push ebx
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x5b4310]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x53a885
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x53a885
push edi
push 0x5aa640
push 0x180
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x5aa640
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53a7f1
mov eax, dword [str.miunst_.exe]
mov ecx, dword [0x58b7f0]
mov edx, dword [0x58b7f4]
mov dword [edi], eax
push 0x1001
lea eax, [esp + 0x14]
push eax
mov dword [edi + 4], ecx
push 0x5aa640
mov dword [edi + 8], edx
mov byte [esp + 0x1c], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
pop edi
je 0x53a885
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 0x5aa640
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53a850
push 0x5aaa28
sub eax, edx
push 0x5a9798
lea ecx, [eax + 0x5aa640]
push 0x58b7e4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x5aa640
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
pop ebx
pop esi
add esp, 0x88
ret
Function at 0x401540
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
push edi
push esi
mov edi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x3000
mov dword [esp + 4], 0
lea ebp, [eax + eax + 2]
mov dword [esp], ebx
mov dword [esp + 8], ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x14
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
test eax, eax
je 0x401680
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
sub esp, 0x1c
mov edi, eax
test eax, eax
je 0x401700
mov dword [esp + 4], 0x2710
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4016d0
cmp eax, 0x103
je 0x4016d0
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, eax
sub esp, 0x10
xor eax, eax
test edx, edx
je 0x401710
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.Failed_to_write_process_memory__pDllPath_
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f460
call fcn.00401510
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.VanillaFixes
mov dword [esp + 4], 0x40f460
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.DLL_entry_point_returned_an_error___ld_._r_n_r_nMake_sure_you_have_a_compatible_game_client.
mov dword [esp + 4], 0x200
mov dword [esp], 0x40f460
call fcn.00401510
jmp 0x40169c
mov dword [esp + 8], str.Failed_to_create_remote_thread
jmp 0x401688
mov dword [esp + 8], str.Failed_to_clean_up_process_memory__pDllPath_
jmp 0x401688
Function at 0x4033f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00409580
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00409580
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x403450
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41008c]
test esi, esi
jle 0x403570
mov eax, dword [0x410090]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x403484
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x403507
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403470
mov dword [esp], ebx
call fcn.00403e40
mov edi, eax
test eax, eax
je 0x403597
mov eax, dword [0x410090]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403f80
mov edx, dword [0x410090]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403577
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x403500
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x403510
add dword [0x41008c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x410090]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004033f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40348e
mov eax, dword [0x410090]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004033f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004033f0
lea esi, [esi]
nop
Function at 0x403ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4100a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4100a0]
sub esp, 4
test ebx, ebx
je 0x403b05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403afe
test esi, esi
je 0x403afe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403ae0
mov dword [esp], 0x4100a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403e40
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403e65
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403e70
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403e65
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x403eb8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x403eae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x403eba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403ea0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x3503bf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x350a846]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.03502b49
and dword [ebp - 0x14], 0
cmp dword [0x350b972], 0
mov dword [ebp - 0x18], eax
jne 0x3503ca5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3503d4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3503d4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x350b972], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x350b976], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x350b97a], eax
call edi
push eax
call esi
mov dword [0x350b982], eax
test eax, eax
je 0x3503ca5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x350b97e], eax
mov eax, dword [0x350b97e]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3503cfe
cmp dword [0x350b982], ecx
je 0x3503cfe
push eax
call esi
push dword [0x350b982]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3503cfe
test ebx, ebx
je 0x3503cfe
call edi
test eax, eax
je 0x3503cf5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3503cf5
test byte [ebp - 8], 1
jne 0x3503cfe
or dword [ebp + 0x10], 0x200000
jmp 0x3503d31
mov eax, dword [0x350b976]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3503d31
mov eax, dword [0x350b97a]
cmp eax, dword [ebp - 0x18]
je 0x3503d31
push eax
call esi
test eax, eax
je 0x3503d31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x350b972]
call esi
test eax, eax
je 0x3503d4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3503d4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03503f5d
leave
ret

Function at 0x3503f5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x350a846]
jne 0x3503f67
repz ret
jmp fcn.035051cd

Function at 0x404c17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
movzx esi, word [esp + 0xc]
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404c5e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404c5e
push eax
call fcn.00404be4
add esp, 4
cmp ax, 0x10
je 0x404c62
xor eax, eax
jmp 0x404c6b
push 0
push esi
push edi
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x41b109e5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x29077247
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4326a0
Capabilities:
Terminate process

Disassembly:
push esi
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, 1
mov dword [esp + 0xc], eax
mov dx, word [0x49dd46]
mov ax, dx
add eax, 0x8bb5858e
mov dx, ax
mov word [0x49dd46], dx
mov eax, dword [0x4a0e58]
mov esi, esp
mov dword [esi], eax
mov dword [esp + 8], ecx
call fcn.004091a0
mov ecx, dword [0x4998f4]
add ecx, 0xa1988d28
mov dword [0x4998f4], ecx
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.00456918
int3
Function at 0x441d80
Capabilities:
Hash data with md5

Disassembly:
push esi
sub esp, 8
mov eax, 0x63636bf0
mov dword [esp + 4], ecx
mov edx, ecx
mov esi, dword [0x497b68]
add esi, 0xe13e074e
mov dword [0x497b68], esi
mov dword [ecx], 0
mov ecx, dword [0x49a234]
and ecx, 0x6e070b9f
cmp eax, ecx
mov dword [esp], edx
je 0x441dce
mov eax, dword [0x497998]
imul eax, eax, 0x970b1b98
mov dword [0x497998], eax
mov eax, dword [esp]
mov dword [eax + 4], 0
mov ecx, dword [0x4971c4]
sar ecx, 1
add ecx, 0x8eae3cbe
mov edx, dword [0x49c6c4]
or edx, ecx
mov dword [0x49c6c4], edx
mov dword [eax + 8], 0x67452301
mov word [0x49d9a0], 0x67f4
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [0x498800]
and ecx, 0xf6ff
xor ecx, 0xc021
mov si, word [0x49d15a]
mov dx, si
or edx, ecx
mov si, dx
mov word [0x49d15a], si
mov dword [eax + 0x10], 0x98badcfe
mov ecx, dword [0x49caa4]
mov edx, dword [0x49ada4]
inc edx
mov dword [0x49ada4], edx
imul ecx, edx
mov edx, dword [0x49969c]
and edx, ecx
mov dword [0x49969c], edx
mov dword [eax + 0x14], 0x10325476
mov si, word [0x4a08f6]
movsx ecx, si
sar ecx, 0xa
or ecx, 0x2dbb155a
mov edx, dword [0x495f50]
sub edx, ecx
mov dword [0x495f50], edx
add esp, 8
pop esi
ret
Function at 0x471afb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x494790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00460c11
mov dword [ebp - 0x14], eax
cmp dword [0x4a21ac], esi
jne 0x471bee
push 0x800
push esi
push 0x4880d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x471b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x471cce
push esi
push esi
push 0x4880d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x471cce
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471cce
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a21ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a21b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a21b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a21bc], eax
test eax, eax
je 0x471beb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a21b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x471c13
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471c06
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x471c28
push 4
pop eax
jmp 0x471cd0
cmp dword [ebp - 0x14], esi
je 0x471c28
push dword [0x4a21ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x471c0d
mov eax, dword [0x4a21b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x471c86
cmp dword [0x4a21bc], edi
je 0x471c86
push eax
call ebx
push dword [0x4a21bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x471c86
test eax, eax
je 0x471c86
call ecx
test eax, eax
je 0x471c7b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x471c7b
test byte [ebp - 8], 1
jne 0x471c86
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x471cb6
mov eax, dword [0x4a21b0]
cmp eax, edi
je 0x471cb3
push eax
call ebx
test eax, eax
je 0x471cb3
call eax
mov esi, eax
test esi, esi
je 0x471cb3
mov eax, dword [0x4a21b4]
cmp eax, edi
je 0x471cb3
push eax
call ebx
test eax, eax
je 0x471cb3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a21ac]
call ebx
test eax, eax
je 0x471cce
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x471cd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004630bb
mov esp, ebp
pop ebp
ret
Function at 0x407150
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x493a5b
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.004889aa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4071d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004868bc
mov eax, dword [eax]
push 0x4b1c40
push eax
call fcn.00478af4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00488c35
test bl, bl
je 0x4071d2
push 0x4b1c40
lea ecx, [esp + 0xc]
call fcn.00488fc5
push 0x4b1c4c
lea ecx, [esp + 0xc]
call fcn.00488fc5
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 0x40720e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00488c35
jmp 0x4072d9
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 0x407292
lea edx, [esp + 0x7c]
push 0x4b1c48
push edx
call fcn.00478af4
add esp, 8
test eax, eax
je 0x407292
lea eax, [esp + 0x7c]
push 0x4b1c44
push eax
call fcn.00478af4
add esp, 8
test eax, eax
je 0x407292
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 0x407222
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.00488c35
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 0x407ad0
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 0x407b32
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