joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcab
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
mov eax, 0x414969
call fcn.00413240
sub esp, 0x230
mov eax, dword [0x4241a4]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x220], ebp
push ebx
push dword [ebp - 0x220]
push str.long___thiscall_CCmdReceiver::PreHandleCmdlineEx_wchar_t__int_bool__
call fcn.00407881
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov eax, 0x41b8e8
jne 0x40fd09
mov edi, eax
push ebx
push ebx
push ebx
push dword [ebp - 0x224]
lea ecx, [ebp - 0x23c]
push eax
push 0x41b8a0
push edi
call fcn.00409792
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40fd2d
push ebp
pop ebp
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 0xc], 2
mov edx, eax
mov dword [ebp - 0x220], edx
jl 0x40fe79
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x104
push dword [edx]
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe79
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x40fe79
mov edi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push eax
push str..dll
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40fe79
mov eax, dword [ebp - 0x220]
push dword [eax + 4]
push 0x41b878
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40fe79
lea eax, [ebp - 0x218]
push eax
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x41b86c
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40fe07
push ebx
call edi
mov ebx, eax
mov esi, 0x41b828
push esi
call fcn.00403aec
test eax, eax
pop ecx
jne 0x40fe75
push 1
push edi
push str.___function_:
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push str.__handle_:
push eax
push str.loaddll_path
push dword [ebp - 0x224]
push esi
call fcn.00408cd1
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040d585
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040d513
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040d513
mov ecx, eax
call fcn.0040e37d
mov esi, ebx
jmp 0x40fe8d
mov ecx, dword [ebp - 0x224]
push esi
push dword [ebp - 0x21c]
call fcn.0040f068
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00409a0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413159
leave
ret 0xc
Function at 0x41024e
Capabilities:
Check os version
Set current directory

Disassembly:
mov eax, 0x4149a9
call fcn.00413240
sub esp, 0x348
mov eax, dword [0x4241a4]
push ebx
xor eax, ebp
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x130], ebp
push 1
push dword [ebp - 0x130]
push str.void___cdecl_LoadJumplistModule_void_
call fcn.00407881
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov eax, 0x41bd88
jne 0x41029b
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x41bd60
push esi
lea ecx, [ebp - 0x148]
call fcn.00409792
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x4102ba
push ebp
pop ebp
mov esi, 0x11c
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 6
jne 0x4103d0
cmp dword [ebp - 0x124], 1
jne 0x4103d0
cmp byte [ebp - 0x12], 1
jne 0x4103d0
push str.XmpWin7Trait.dll
lea ecx, [ebp - 0x354]
call fcn.0040feb9
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov byte [ebp - 4], bl
cmp word [ebp - 0x350], bx
je 0x410336
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, ebx
je 0x4103d0
mov esi, 0x41bd14
push esi
call fcn.00403aec
test eax, eax
pop ecx
jne 0x41036c
push 1
push str.LoadLibrary_XmpJumplist.dll_Success_
push ebx
push esi
call fcn.00408cd1
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040e37d
push str.SetApplicationID
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jge 0x4103a7
push esi
call fcn.00403aec
test eax, eax
pop ecx
jne 0x4103a7
push 1
push str.XmpWin7Trait_Fail_in_Set_Application_ID_
push ebx
push esi
call fcn.00408cd1
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040e37d
push esi
call fcn.00403aec
test eax, eax
pop ecx
jne 0x4103d0
push 1
push str.XmpWin7Trait_Set_Application_ID_Success_
push ebx
push esi
call fcn.00408cd1
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e3a9
mov ecx, eax
call fcn.0040e37d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00409a0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413159
leave
ret
Function at 0x4114fd
Capabilities:
Create thread

Disassembly:
mov eax, 0x414afd
call fcn.00413240
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x10], ebp
push esi
push dword [ebp - 0x10]
push str.__w64_long___thiscall_CCmdReceiverWnd::OnCreate_unsigned_int___w64_unsigned_int___w64_long_int__
call fcn.00407881
mov edi, eax
add esp, 0xc
cmp edi, esi
mov eax, 0x41ca00
jne 0x411535
mov edi, eax
push esi
push esi
push esi
push ebx
push eax
push 0x41c9c4
push edi
lea ecx, [ebp - 0x28]
call fcn.00409792
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x411551
push ebp
pop ebp
push esi
push esi
push ebx
push 0x411587
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409a0c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10

Function at 0x41173a
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x41ce28
call fcn.004131d0
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x4117a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x41177e
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4117ac
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x411776
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x411776
mov al, 1
jmp 0x411778
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.0041320b
ret
Function at 0x4118ec
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x41190f
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x411912
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x411925
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x41192c
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4265c8]
test eax, eax
mov ecx, dword [0x4265c4]
jne 0x411946
test ecx, ecx
je 0x41195b
mov eax, ecx
mov dword [0x4265c8], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x41195b
cmp edx, dword [ebp - 4]
jb 0x41195b
cmp edx, dword [ebp - 8]
jbe 0x411a2f
mov eax, ecx
test ecx, ecx
jmp 0x41197f
test eax, eax
je 0x41197a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41197a
cmp ecx, dword [ebp - 4]
jb 0x41197a
cmp ecx, dword [ebp - 8]
jbe 0x411a2f
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4265c8], eax
jne 0x411961
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x411aca
cmp edi, 0x70000000
jb 0x4119af
cmp edi, 0x80000000
ja 0x4119af
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411aca
cmp dword [ebp - 0x30], ebx
jne 0x4119ce
cmp dword [ebp - 0x34], ebx
jae 0x4119e1
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41199a
jmp 0x411aca
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4265c8], eax
je 0x411aca
mov ecx, dword [0x4265c4]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x4265c4], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x411a21
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x411acf
cmp esi, dword [ebp - 8]
ja 0x411acf
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x411ad1
cmp esi, 0x70000000
jb 0x411a73
cmp esi, 0x80000000
ja 0x411a73
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411acf
cmp dword [ebp - 0x14], ebx
jne 0x411ac1
cmp dword [ebp - 0x18], ebx
jb 0x411ac1
mov ecx, esi
and ecx, 0xffff
je 0x411aa5
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4265c8], eax
jne 0x4119fd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x411a5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411af7
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x41ce38
call fcn.004131d0
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411b52
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x411b4e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x411b4e
cmp word [eax + 0x14], 0
jne 0x411b43
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x411b54
mov eax, ecx
jmp 0x411b3d
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0041320b
ret

Function at 0x411b78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4265d0], edi
jne 0x411b9b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4265d0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x411ba2
mov eax, 0x10dd
jmp 0x411be6
push esi
mov esi, dword [0x4265c4]
mov dword [0x4265cc], edi
mov dword [0x4265e0], edi
mov dword [0x4265dc], edi
mov dword [0x4265d4], edi
mov dword [0x4265d8], edi
jmp 0x411bdf
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x411bc9
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x411be9
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4265d0], eax
je 0x411bff
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4265e0]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x411c4a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x411c3b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x411c3b
call fcn.00411ad6
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x411c0e
mov dword [0x4265e0], ebx
call fcn.004118c5
mov esi, dword [0x4265dc]
cmp esi, ebx
je 0x411c77
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x411c5f
pop edi
pop esi
mov dword [0x4265dc], ebx
mov dword [0x4265d0], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x411eca
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4265d4]
test eax, eax
jne 0x411f3a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x411ee6
xor eax, eax
jmp 0x411f39
push esi
push 8
call fcn.00412ea4
mov esi, eax
test esi, esi
pop ecx
jne 0x411efa
push 8
pop edi
jmp 0x411f15
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x411f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4265d8], 0
mov dword [0x4265d4], edi
mov eax, edi
jmp 0x411f38
mov eax, dword [0x4265dc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4265dc], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x41217a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4265d0], eax
je 0x412196
mov eax, 0x10dd
jmp 0x412272
mov eax, dword [0x4265d4]
test eax, eax
jne 0x412272
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4121b3
push 6
pop eax
jmp 0x412271
cmp dword [edi], 0
push ebx
push esi
jne 0x4121c7
push 6
pop eax
mov dword [0x4265d4], eax
jmp 0x412269
push 0x18
call fcn.00412ea4
mov esi, eax
test esi, esi
pop ecx
jne 0x4121da
push 8
pop edi
jmp 0x412253
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00411b5a
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x412248
cmp ecx, 0x17
ja 0x412248
cmp dword [edi + 0x1c], eax
jne 0x412248
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41221e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x412253
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4265e0]
mov dword [esi], eax
mov dword [0x4265e0], esi
xor eax, eax
jmp 0x41226f
cmp dword [0x4265cc], edx
push 9
pop edi
jne 0x412259
mov dword [0x4265d4], edi
test esi, esi
je 0x412264
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4265d8], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4134f4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41e120
call fcn.004131d0
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x413534
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413534
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41354c
cmp eax, 0x20b
je 0x413539
mov dword [ebp - 0x1c], edi
jmp 0x413560
cmp dword [ecx + 0x84], 0xe
jbe 0x413534
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41355a
cmp dword [ecx + 0x74], 0xe
jbe 0x413534
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x42665c], 0xffffffff
or dword [0x426660], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x426654]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x426650]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426658], eax
call fcn.004137b2
call fcn.0041385b
cmp dword [0x4241c0], edi
jne 0x4135c0
push 0x413858
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00413840
push 0x424034
push 0x424030
call sub.MSVCR71.dll__initterm
push 0x4137f6
call fcn.0041332e
mov eax, dword [0x42664c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x426648]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x413614
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x42402c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41363e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4136f8
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4136ad
cmp ax, di
je 0x413654
cmp dword [ebp - 0x20], edi
jne 0x4136ad
mov ax, word [esi]
cmp ax, di
je 0x413669
cmp ax, 0x20
ja 0x413669
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x413654
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x413685
movzx eax, word [ebp - 0x54]
jmp 0x413688
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00410746
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4136a5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4136f2
cmp ax, 0x22
jne 0x4136be
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41363e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041320b
ret
Function at 0x40c230
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a60b
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.0045f3f3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c2b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d1aa
mov eax, dword [eax]
push 0x59d1f0
push eax
call fcn.0044fe74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f67e
test bl, bl
je 0x40c2b2
push 0x59d1f0
lea ecx, [esp + 0xc]
call fcn.0045fa0e
push 0x5a0d38
lea ecx, [esp + 0xc]
call fcn.0045fa0e
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 0x40c2ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f67e
jmp 0x40c3b9
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 0x40c372
lea edx, [esp + 0x7c]
push 0x5a0d34
push edx
call fcn.0044fe74
add esp, 8
test eax, eax
je 0x40c372
lea eax, [esp + 0x7c]
push 0x5a0d30
push eax
call fcn.0044fe74
add esp, 8
test eax, eax
je 0x40c372
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 0x40c302
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.0045f67e
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 0x40cbb0
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 0x40cc12
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 0x40cc20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5a728c]
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 0x40cd58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cc86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f67e
xor eax, eax
jmp 0x40cdcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f7bb
push esi
lea ecx, [esp + 0xc]
call fcn.0045fa4a
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 0x40cdad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040cbb0
test eax, eax
jne 0x40cdad
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 closesocket
mov ecx, edi
call fcn.0040cbb0
test eax, eax
jne 0x40cdad
lea eax, [esp + 0x14]
push 0x5a0d4c
push eax
call fcn.00450eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cd8c
lea ecx, [esp + 0x14]
push 0x5a0d48
push ecx
call fcn.00450e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cd8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cd8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f76b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cc9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f67e
xor eax, eax
jmp 0x40cdcf
mov byte [esi], 0
push 0x5a0d44
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.0045f67e
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