joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505560
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x56b912
call fcn.0053fce5
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.00522a6d
push 0x1c4
call fcn.0041578d
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x5055a3
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.005230a0
jmp 0x5055a5
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00521ee8
call fcn.00425c78
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.0053fd90
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x5057c2
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x5057bc
xor esi, esi
mov dword [ebp - 0x120], esi
cmp dword [ebx + 4], eax
jle 0x5057bc
call fcn.00416b7a
push eax
lea ecx, [ebp - 0x118]
call fcn.004159f0
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x50579a
push 0x584614
mov esi, 0x584618
lea ecx, [ebp - 0x118]
push esi
call fcn.00458e78
push esi
push 0x57c2b0
lea ecx, [ebp - 0x118]
call fcn.00458e78
push esi
push 0x584614
lea ecx, [ebp - 0x118]
call fcn.00458e78
call fcn.00416b7a
push eax
lea ecx, [ebp - 0x124]
call fcn.004159f0
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x5056c6
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.10__s
push eax
call fcn.004064e0
add esp, 0xc
jmp 0x5056f8
jge 0x5056e6
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x124]
push 0x57d14c
push eax
call fcn.004064e0
add esp, 0x10
jmp 0x5056f8
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x124]
call fcn.00405a20
push 0x1c4
call fcn.0041578d
pop ecx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x505722
mov ecx, eax
call fcn.004b0607
mov ecx, eax
mov dword [ebp - 0x11c], eax
jmp 0x50572a
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x124]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.00424054
mov ecx, dword [ebp - 0x11c]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00521ee8
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.00402990
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00402990
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebx + 4]
jl 0x50561b
call fcn.0053fc94
ret
call fcn.0053cc4e
int3
Function at 0x5576f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c7ed0]
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.00548985
mov dword [ebp - 0x14], eax
cmp dword [0x5d5834], esi
jne 0x5577e4
push 0x800
push esi
push 0x5a28f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x557771
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5578c4
push esi
push esi
push 0x5a28f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5578c4
push 0x5a2908
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5578c4
push eax
call ebx
push 0x5a2914
push edi
mov dword [0x5d5834], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a2924
push edi
mov dword [0x5d5838], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a2938
push edi
mov dword [0x5d583c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d5844], eax
test eax, eax
je 0x5577e1
push 0x5a2954
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d5840], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x557809
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5577fc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x55781e
push 4
pop eax
jmp 0x5578c6
cmp dword [ebp - 0x14], esi
je 0x55781e
push dword [0x5d5834]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x557803
mov eax, dword [0x5d5840]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x55787c
cmp dword [0x5d5844], edi
je 0x55787c
push eax
call ebx
push dword [0x5d5844]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x55787c
test eax, eax
je 0x55787c
call ecx
test eax, eax
je 0x557871
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 0x557871
test byte [ebp - 8], 1
jne 0x55787c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5578ac
mov eax, dword [0x5d5838]
cmp eax, edi
je 0x5578a9
push eax
call ebx
test eax, eax
je 0x5578a9
call eax
mov esi, eax
test esi, esi
je 0x5578a9
mov eax, dword [0x5d583c]
cmp eax, edi
je 0x5578a9
push eax
call ebx
test eax, eax
je 0x5578a9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5d5834]
call ebx
test eax, eax
je 0x5578c4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5578c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bf68
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4055e0
push 0x68
push esi
call edi
push 0x64
push 0x405648
push 0x70
push esi
call edi
xor eax, eax
push 0x7f00
push eax
mov dword [0x4031bf], esi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6e
push esi
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [ebp - 0x38]
push 0x6c
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0x6e
mov dword [ebp - 0x24], str.Clariot
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], 0x401470
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.004013e0
add esp, 8
test eax, eax
jne 0x40122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401283
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4012c8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4012c0
cmp al, 0x22
jne 0x4012b4
cmp byte [esi], 0x22
jne 0x4012d2
inc esi
jmp 0x4012d2
cmp al, 0x20
jle 0x4012d2
inc esi
cmp byte [esi], 0x20
jg 0x4012cc
mov al, byte [esi]
test al, al
je 0x4012dc
cmp al, 0x20
jle 0x4012c5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d36
push 0x403004
push section..data
call fcn.00401d1c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40130c
movzx eax, word [ebp - 0x14]
jmp 0x40130f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401d4e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4031bf], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401427
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40150b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
pushal
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 8]
push 0x84
push ebx
call sub.kernel32.dll_RtlZeroMemory
cmp dword [ebp + 0x18], 0
je 0x40152f
or dword [ebx + 4], 8
push dword [ebp + 0xc]
pop dword [ebx]
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x18]
push eax
push 0x18
push dword [ebp + 0x10]
call sub.gdi32.dll_GetObjectA
or eax, eax
jne 0x401556
inc dword [ebp - 0x1c]
jmp 0x4016be
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
cmp eax, 3
jle 0x40154e
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x20], eax
cmp eax, 3
jle 0x40154e
push eax
shl eax, 2
mov dword [ebx + 0x2c], eax
pop eax
lea eax, [eax + eax*2]
add eax, 3
and eax, 0xfffffffc
mov dword [ebx + 0x28], eax
push dword [ebp + 0xc]
call sub.user32.dll_GetDC
mov esi, eax
push esi
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebx + 8], eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebx + 0xc], eax
push eax
push dword [ebx + 8]
call sub.gdi32.dll_SelectObject
mov eax, dword [ebx + 0x2c]
mul dword [ebx + 0x24]
mov edi, eax
push edi
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebx + 0x18], eax
push edi
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x28]
mul dword [ebx + 0x24]
mov edi, eax
push edi
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebx + 0x10], eax
push edi
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x58], 0x28
push dword [ebx + 0x20]
pop dword [ebx + 0x5c]
mov eax, dword [ebx + 0x24]
neg eax
mov dword [ebx + 0x60], eax
inc word [ebx + 0x64]
mov word [ebx + 0x66], 0x18
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
push esi
call sub.gdi32.dll_CreateCompatibleDC
push eax
push dword [ebp + 0x10]
push eax
call sub.gdi32.dll_SelectObject
push esi
push dword [ebp + 0xc]
call sub.user32.dll_ReleaseDC
pop eax
mov esi, eax
push 0
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0x24]
push 0
push dword [ebp + 0x10]
push esi
call sub.gdi32.dll_GetDIBits
push 0
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x24]
push 0
push dword [ebp + 0x10]
push esi
call sub.gdi32.dll_GetDIBits
push esi
call sub.gdi32.dll_DeleteDC
cmp dword [ebx + 0x18], 0
je 0x401682
cmp dword [ebx + 0x1c], 0
je 0x401682
cmp dword [ebx + 0x10], 0
je 0x401682
cmp dword [ebx + 0x14], 0
je 0x401682
cmp dword [ebx + 8], 0
jne 0x40168b
push ebx
call fcn.00401498
inc dword [ebp - 0x1c]
push 0x401332
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
call sub.user32.dll_SetTimer
or dword [ebx + 4], 3
push ebx
call fcn.00401156
push dword [ebx]
call sub.user32.dll_GetDC
push 1
push eax
push ebx
call fcn.00401255
push eax
push dword [ebx]
call sub.user32.dll_ReleaseDC
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x14
Function at 0x4025ea
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.user32.dll_SetWindowLongA
mov dword [0x40696d], 0
jmp 0x402650
push 2
push dword [0x40696d]
push 0
push dword [ebp + 8]
call sub.user32.dll_SetLayeredWindowAttributes
push 0xf
call sub.kernel32.dll_Sleep
add dword [0x40696d], 5
push dword [0x406971]
call sub.user32.dll_SetCursor
push dword [ebp + 8]
call sub.user32.dll_UpdateWindow
push 5
push dword [ebp + 8]
call sub.user32.dll_ShowWindow
cmp dword [0x40696d], 0xf0
jb 0x402613
leave
ret 4

Function at 0x402810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x406940
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x402837
push 2
call sub.kernel32.dll_SetLastError
xor eax, eax
leave
ret 8
mov dword [ebp - 4], eax
push eax
push dword [ebp + 8]
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40286d
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004028a2
jmp 0x402876
push 2
call sub.kernel32.dll_SetLastError
xor eax, eax
leave
ret 8
Function at 0x402d0c
Capabilities:
Create thread

Disassembly:
ret
call fcn.00402e04
pop eax
pop edx
pop dword [0x409034]
pop ecx
test edx, edx
push eax
je 0x402d0b
push ebx
push esi
push edi
push ebp
mov ebx, 0x407024
mov ebp, 0x409048
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x402b10
jne 0x402d47
test cl, 2
lea esi, [esi + 0xc]
jne 0x402d47
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x402d66
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x402af8
push 0xffffffffffffffff
push ebx
call dword [sym.imp.winmm.dll_waveOutOpen]
call dword [sym.imp.kernel32.dll_HeapCreate]
test eax, eax
mov dword [ebx - 8], eax
je 0x402d98
mov dword [ebp - 0xc], esi
call dword [ebp]
call fcn.0040359b
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x402e08
mov esi, 0x419058
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x409058
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutPrepareHeader]
xor edi, edi
call fcn.00402ecd
cmp dword [ebx + 4], edi
jne 0x402dc2
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutWrite]
test eax, eax
jne 0x402e08
push ebp
push edi
push edi
push 0x402e77
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [ebx - 4], eax
je 0x402e08
push 0xf
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x407020
mov eax, dword [ebp]
test eax, eax
je 0x402e26
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x402e54
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x419058
push edi
push edi
call dword [sym.imp.winmm.dll_waveOutReset]
call dword [sym.imp.winmm.dll_waveOutUnprepareHeader]
call dword [sym.imp.winmm.dll_waveOutClose]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402e72
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.kernel32.dll_HeapDestroy]
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x419078
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402df6
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00402fa6
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x402ef4
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402e97
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x402eda
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x402eae
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x402ec9
test al, 0x40
je 0x402ec0
mov ecx, dword [edi + 0x20]
jmp 0x402ec7
test al, 0x80
je 0x402eda
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x402eda
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x402e66
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41bf00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49531b
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.00489afe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41bf82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004875ff
mov eax, dword [eax]
push 0x1032cfc
push eax
call fcn.00479f84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00489d89
test bl, bl
je 0x41bf82
push 0x1032cfc
lea ecx, [esp + 0xc]
call fcn.0048a119
push 0x1032d08
lea ecx, [esp + 0xc]
call fcn.0048a119
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 0x41bfbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00489d89
jmp 0x41c089
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 0x41c042
lea edx, [esp + 0x7c]
push 0x1032d04
push edx
call fcn.00479f84
add esp, 8
test eax, eax
je 0x41c042
lea eax, [esp + 0x7c]
push 0x1032d00
push eax
call fcn.00479f84
add esp, 8
test eax, eax
je 0x41c042
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 0x41bfd2
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.00489d89
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 0x41c890
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 0x41c8f2
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 0x41c900
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49539b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x103c75c]
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 0x41ca38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41c966
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489d89
xor eax, eax
jmp 0x41caaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489ec6
push esi
lea ecx, [esp + 0xc]
call fcn.0048a155
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 0x41ca8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0041c890
test eax, eax
jne 0x41ca8d
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 accept
mov ecx, edi
call fcn.0041c890
test eax, eax
jne 0x41ca8d
lea eax, [esp + 0x14]
push 0x1032d18
push eax
call fcn.0047b000
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ca6c
lea ecx, [esp + 0x14]
push 0x1032d14
push ecx
call fcn.0047af80
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ca6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ca6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00489e76
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41c97e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489d89
xor eax, eax
jmp 0x41caaf
mov byte [esi], 0
push 0x1032d10
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.00489d89
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