joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a350
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10c
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0x108], eax
call fcn.0040a880
test eax, eax
js 0x40a518
push esi
push edi
push 0x24
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x40a43e
mov ecx, dword [0x413e1c]
mov dword [esi + 4], 0
pxor xmm0, xmm0
movq qword [esi + 8], xmm0
movq qword [esi + 0x10], xmm0
movq qword [esi + 0x18], xmm0
mov byte [esi + 0x20], 0
mov dword [esi], vtable.ATL::CComObject_class_CNumaNode_.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
mov edi, esi
call ecx
lea edx, [esp + 8]
push edx
push 0x40e5e4
push 4
push 0
push 0x40ee0c
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x40a442
push esi
lea eax, [esp + 0x14]
push str.CTerNumaHostModule::PreMessageLoop___CoCreateInstance_of_DspParent_failed_with_error_code__X_n
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 8]
test eax, eax
je 0x40a419
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test edi, edi
je 0x40a425
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040be38
add esp, 0x10c
ret
xor edi, edi
jmp 0x40a3c3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [esp + 8]
mov esi, eax
xor eax, eax
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x40a474
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x40e5d4
push ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push esi
push eax
call edx
mov esi, eax
test esi, esi
jns 0x40a4e8
push esi
lea eax, [esp + 0x14]
push str.CTerNumaHostModule::PreMessageLoop___AddNumaNode_failed_with_error_code__X_n
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a4b3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40a4c3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x40a4cf
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040be38
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a4f8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40a508
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x40a514
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040be38
add esp, 0x10c
ret
Function at 0x40a530
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x413034]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x40a58c
push esi
lea eax, [esp + 8]
push str.CTerNumaHostModule::InitializeCom___CoInitializeEx_failed_with_error_code__X_n
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040be38
add esp, 0x104
ret
push 0
push 0x20
push 0
push 3
push 2
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x40a5e1
push esi
lea edx, [esp + 8]
push str.CTerNumaHostModule::InitializeCom___CoInitializeSecurity_failed_with_error_code__X_n
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040be38
add esp, 0x104
ret
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040be38
add esp, 0x104
ret

Function at 0x40a7d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x413eb8], 0
je 0x40a7df
or eax, 0xffffffff
pop ecx
ret
push esi
call fcn.0040a530
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
jns 0x40a80b
cmp esi, 0x80010106
jne 0x40a86f
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40a812
mov eax, esi
pop esi
pop ecx
ret
mov byte [0x413eb6], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 4]
push ecx
push eax
call fcn.0040a980
cmp al, 1
jne 0x40a85c
call fcn.0040a350
test eax, eax
jne 0x40a837
call fcn.0040abe0
jmp 0x40a839
js 0x40a858
call fcn.0040b8b0
cmp byte [0x413eb4], 0
mov esi, eax
je 0x40a856
mov edx, dword [0x413eb0]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
mov esi, eax
jmp 0x40a860
mov esi, dword [esp + 4]
cmp byte [0x413eb6], 0
je 0x40a86f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40a930
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x413ea8], eax
test eax, eax
jne 0x40a94a
pop ecx
ret
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x413e78
push 0x40aba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40a979
mov ecx, dword [0x413ea8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40be38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413034]
jne 0x40be42
repz ret
jmp fcn.0040c380
Function at 0x401a60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401aab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401aa4
test esi, esi
je 0x401aa4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401a80
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401dd4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d3e
cmp eax, 4
jne 0x401d60
test esi, esi
je 0x401d52
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d44
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401d9f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401d91
cmp ecx, 0x40
je 0x401d52
cmp ecx, 4
je 0x401d52
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
lea esi, [esi]
Function at 0x4015ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x47f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x218], eax
test esi, esi
je 0x401718
xor eax, eax
cmp word [esi], ax
je 0x401718
push edi
push 4
push 0x419bbc
push esi
call fcn.00407714
test eax, eax
lea edi, [esi + 8]
push 2
cmovne edi, esi
push 0x419bc8
push edi
call fcn.00407714
push 0x20a
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004038b0
test esi, esi
lea ecx, [edi + 4]
push 0x104
cmovne ecx, edi
lea eax, [ebp - 0x210]
push ecx
push 0x105
push eax
call fcn.0040781c
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004035f7
add esp, 0x3c
mov esi, eax
pop edi
test esi, esi
je 0x4016cb
xor eax, eax
mov word [esi], ax
inc esi
add esi, 1
je 0x4016cb
push str.HTML
push esi
call fcn.0040588f
pop ecx
pop ecx
test eax, eax
je 0x4016cb
push 0x419bdc
push esi
call fcn.0040588f
pop ecx
pop ecx
test eax, eax
je 0x4016cb
push esi
jmp 0x4016cd
push 0x17
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401718
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401718
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
je 0x401718
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
test eax, eax
je 0x401718
mov al, 1
jmp 0x40171a
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040241b
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push esi
mov dword [0x480520], eax
call fcn.004013d1
push 0xf
push 8
xor esi, esi
mov eax, dword [eax + 0x54]
push esi
call eax
call fcn.004013d1
push 1
push 0xa
push esi
mov eax, dword [eax + 0x54]
call eax
call fcn.004013d1
push 1
push 0xb
push esi
mov eax, dword [eax + 0x54]
call eax
call fcn.004013d1
call dword [eax + 4]
mov dword [ebp - 4], 0x47d0c4
call fcn.004013d1
push 0x401427
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x80]
push esi
call eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x48]
mov dword [0x480518], eax
call fcn.0040180d
cmp dword [ebp - 0x40], esi
je 0x401f6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], eax
call fcn.004013d1
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x48]
mov eax, dword [eax + 0x2b0]
push ecx
call eax
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x401f65
cmp dword [ebp - 0x24], 0x12
je 0x401f6f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401f11
push 0x10
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401f11
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x402d50
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402d8f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402d8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402d8f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402d8f
cmp dword [ecx + 0x74], 0xe
jbe 0x402d8f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ac3d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40ac88
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040add8
test al, al
jne 0x40ac82
sub edx, 2
cmp edx, edi
jne 0x40ac68
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40acaa
lea eax, [edi + 2]
cmp edx, eax
je 0x40acaa
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040ab89
add esp, 0x10
jmp 0x40ada4
push esi
lea ecx, [ebp - 0x255]
call fcn.0040add8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aced
push dword [ebp - 0x25c]
jmp 0x40ac9a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40ad2a
cmp word [ebp - 0x226], 0
je 0x40ad4b
cmp word [ebp - 0x226], ax
jne 0x40ad2a
cmp word [ebp - 0x224], 0
je 0x40ad4b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040ab89
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40ad97
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40ad04
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40ad7f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40ada4
push 0x40a9b9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040f3e0
add esp, 0x10
jmp 0x40ad74
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040241b
leave
ret

Function at 0x40c529
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4163fc
push 0x4163f4
push str.FlsAlloc
push 0x1f
call fcn.0040c464
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c55d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4141a8]
call esi
jmp 0x40c563
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40c5a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41640c
push 0x416404
push str.FlsGetValue
push 0x21
call fcn.0040c464
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c5de
push dword [ebp + 8]
mov ecx, esi
call dword [0x4141a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c5e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416414
push 0x41640c
push str.FlsSetValue
push 0x22
call fcn.0040c464
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c620
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4141a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4132bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4132bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x416846
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41efb0
call fcn.00416c09
push 1
call fcn.004168c9
pop ecx
test al, al
jne 0x4166ef
push 7
call fcn.00416f9a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00416894
mov byte [ebp - 0x24], al
mov eax, dword [0x425b2c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4166e8
test eax, eax
jne 0x416759
mov dword [0x425b2c], ecx
push 0x41a360
push 0x41a34c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41673c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x416840
push 0x41a348
push 0x41a324
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x425b2c], 2
jmp 0x41675e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00416a26
pop ecx
call fcn.00416f8e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41678e
push esi
call fcn.00416999
pop ecx
test al, al
je 0x41678e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004171c9
call esi
call fcn.00416f94
mov esi, eax
cmp dword [esi], edi
je 0x4167ac
push esi
call fcn.00416999
pop ecx
test al, al
je 0x4167ac
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004170af
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004170e2
test al, al
jne 0x4167e5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4167ee
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00416a43
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x416840
call fcn.00416c4f
ret
call fcn.00416555
jmp 0x4166d0

Function at 0x401996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c010]
test eax, eax
je 0x4019d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40233f
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4051f8
call fcn.00402861
push 1
call fcn.004023c2
pop ecx
test al, al
jne 0x4021e8
push 7
call fcn.00402a74
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040238d
mov byte [ebp - 0x24], al
mov eax, dword [0x40633c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021e1
test eax, eax
jne 0x402252
mov dword [0x40633c], ecx
push 0x40429c
push 0x404284
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402235
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402339
push 0x404280
push 0x40426c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40633c], 2
jmp 0x402257
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040251f
pop ecx
call fcn.00402a68
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402287
push esi
call fcn.00402492
pop ecx
test al, al
je 0x402287
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402ca3
call esi
call fcn.00402a6e
mov esi, eax
cmp dword [esi], edi
je 0x4022a5
push esi
call fcn.00402492
pop ecx
test al, al
je 0x4022a5
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402b89
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00402bbc
test al, al
jne 0x4022de
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022e7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040253c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402339
call fcn.004028a7
ret
call fcn.00402059
jmp 0x4021c9

Function at 0x402a81
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402a88
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402a85
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402a85
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402aae
lea edx, [eax + ecx]
jmp 0x402ab0
xor edx, edx
test edx, edx
je 0x402a85
lea eax, [edx + 8]
test eax, eax
je 0x402a85
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402adf
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402adf
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402ae1
xor eax, eax
test eax, eax
je 0x402a85
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret
Function at 0x40f500
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48362b
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.00475cb6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f582
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047349a
mov eax, dword [eax]
push 0x4e21f0
push eax
call fcn.00464c74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00475f41
test bl, bl
je 0x40f582
push 0x4e21f0
lea ecx, [esp + 0xc]
call fcn.0047631d
push 0x4e5d6c
lea ecx, [esp + 0xc]
call fcn.0047631d
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 0x40f5be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00475f41
jmp 0x40f689
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 0x40f642
lea edx, [esp + 0x7c]
push 0x4e5d68
push edx
call fcn.00464c74
add esp, 8
test eax, eax
je 0x40f642
lea eax, [esp + 0x7c]
push 0x4e5d64
push eax
call fcn.00464c74
add esp, 8
test eax, eax
je 0x40f642
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 0x40f5d2
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.00475f41
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 0x40fe80
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 0x40fee2
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