joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a6a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x49f02c
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
lea eax, [ebp - 0x198]
push eax
mov dl, 2
mov al, 2
call fcn.00407290
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49f0e8
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49f0e1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
je 0x49f0c5
mov word [ebp - 0x1a8], 2
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0x1a4], eax
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
push 0x10
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x49f0c5
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2740
jne 0x49f0c5
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f0e8
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001010
Capabilities:
Enumerate gui resources
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1003acb0]
xor eax, esp
mov dword [esp + 0x108], eax
mov ax, word [0x1003650c]
mov cl, byte [0x1003650e]
push esi
push 0xfd
lea edx, [esp + 0x13]
push 0
push edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
call fcn.1000d430
add esp, 0xc
lea eax, [esp + 4]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x80000001
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 8]
push edx
push 0x10021a28
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x10021a28
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
push 0x10021a28
push 0x10021a28
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.1000c4d8
add esp, 0x10c
ret

Function at 0x1000c4d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003acb0]
jne 0x1000c4e2
repz ret
jmp fcn.1000f9aa
Function at 0x1001743f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000fb11
xor ebx, ebx
cmp dword [0x10021974], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10017514
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001747f
xor eax, eax
jmp 0x100175d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10017478
push eax
call fcn.1000faae
mov dword [esp], 0x10035a38
push edi
mov dword [0x10021974], eax
call esi
push eax
call fcn.1000faae
mov dword [esp], 0x10035a24
push edi
mov dword [0x10021978], eax
call esi
push eax
call fcn.1000faae
mov dword [0x1002197c], eax
lea eax, [ebp - 8]
push eax
call fcn.1000cfd3
test eax, eax
pop ecx
pop ecx
je 0x100174e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012906
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10017514
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000faae
cmp eax, ebx
pop ecx
mov dword [0x10021984], eax
je 0x10017514
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000faae
pop ecx
mov dword [0x10021980], eax
mov eax, dword [0x10021980]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001758d
cmp dword [0x10021984], esi
je 0x1001758d
push eax
call fcn.1000fb1a
pop ecx
call eax
cmp eax, ebx
je 0x1001755a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10021984]
call fcn.1000fb1a
pop ecx
call eax
test eax, eax
je 0x1001755a
test byte [ebp - 0x18], 1
jne 0x1001758d
lea eax, [ebp - 0xc]
push eax
call fcn.1000d00a
test eax, eax
pop ecx
je 0x10017575
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012906
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10017584
or dword [ebp + 0x10], 0x200000
jmp 0x100175be
or dword [ebp + 0x10], 0x40000
jmp 0x100175be
mov eax, dword [0x10021978]
cmp eax, esi
je 0x100175be
push eax
call fcn.1000fb1a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100175be
mov eax, dword [0x1002197c]
cmp eax, esi
je 0x100175be
push dword [ebp - 4]
push eax
call fcn.1000fb1a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10021974]
call fcn.1000fb1a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100029e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x10002a1e
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x10002a57
mov edx, dword [ebp - 4]
test edi, edi
jne 0x10002a2b
test esi, esi
jmp 0x10002a45
test esi, esi
je 0x10002a4e
cmp edx, 1
je 0x10002a39
cmp edx, 2
jne 0x10002a4e
mov ecx, dword [edi]
cmp ecx, 2
jb 0x10002a47
cmp word [ecx + esi - 2], bx
je 0x10002a4e
mov eax, 0x8000ffff
jmp 0x10002a57
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10002a57
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x10006c5d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x10001a44], eax
je 0x10006c7f
cmp dword [0x10001a44], ebx
jne 0x10006d18
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x10001a44
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x10001a44], esi
test esi, esi
jne 0x10006cee
mov dword [0x10001a44], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x10001a44
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x10001a44]
not eax
mov dword [0x100094f0], eax
pop esi
pop ebx
leave
ret

Function at 0x10006d1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10001a44]
jne fcn.10007a7b
ret
Function at 0x10006fca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10001434
push 0x80000000
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10007068
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000705e
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x10001a84
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000705e
cmp dword [ebp + 8], esi
jne 0x1000705e
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x1000705e
cmp dword [ebp - 4], ebx
je 0x10007050
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x1000705a
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x10007074
cmp dword [ebp - 4], ebx
je 0x10007068
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x10007072
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x4090d0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x11c
call esi
test eax, eax
jne 0x40106a
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x114
call esi
test eax, eax
jne 0x40106a
mov eax, 7
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x40115d
dec eax
je 0x4010f7
dec eax
jne 0x401053
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40109a
xor eax, eax
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4010da
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4010be
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jb 0x401053
mov eax, 2
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jbe 0x401053
mov eax, 2
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x401053
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401121
mov eax, 3
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40113d
mov eax, 4
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x401053
mov eax, 5
mov ecx, dword [esp + 0x12c]
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
mov eax, 6
call fcn.004028f4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4043e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4094ac], esi
push edi
jne 0x404404
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4094a8], esi
mov byte [0x4094a4], al
jne 0x40446a
mov ecx, dword [0x409888]
test ecx, ecx
je 0x40444b
mov eax, dword [0x409884]
sub eax, 4
cmp eax, ecx
jmp 0x404444
mov eax, dword [eax]
test eax, eax
je 0x404436
call eax
mov eax, dword [0x409884]
sub eax, 4
cmp eax, dword [0x409888]
mov dword [0x409884], eax
jae 0x40442e
mov eax, 0x40901c
mov esi, 0x409020
cmp eax, esi
mov edi, eax
jae 0x40446a
mov eax, dword [edi]
test eax, eax
je 0x404463
call eax
add edi, 4
cmp edi, esi
jb 0x40445b
mov eax, 0x409024
mov esi, 0x40902c
cmp eax, esi
mov edi, eax
jae 0x404489
mov eax, dword [edi]
test eax, eax
je 0x404482
call eax
add edi, 4
cmp edi, esi
jb 0x40447a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4044a3
push dword [ebp + 8]
mov dword [0x4094ac], 1
call fcn.0040434a
pop ebp
ret

Function at 0x4044e5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4090d0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409120]
je 0x40451a
inc eax
cmp eax, 0x13
jb 0x40450b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409120]
jne 0x404640
mov eax, dword [0x40943c]
cmp eax, 1
je 0x404618
cmp eax, edx
jne 0x40454a
cmp dword [0x4090ec], 1
je 0x404618
cmp ecx, 0xfc
je 0x404640
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404580
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405bb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004030d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4045b4
mov eax, edi
push eax
call fcn.004030d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073f4
push edi
call fcn.00405f40
add esp, 0x10
push edi
call fcn.004030d0
push dword [esi + 0x409124]
mov ebx, eax
call fcn.004030d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405bb0
push edi
push ebx
call fcn.00405bc0
push 0x4073f0
push ebx
call fcn.00405bc0
push dword [esi + 0x409124]
push ebx
call fcn.00405bc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405e42
add esp, 0x2c
jmp 0x404640
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409124]
push dword [esi]
call fcn.004030d0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004028f4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404b15
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4096c4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x404b5e
call ebp
mov esi, eax
cmp esi, ebx
je 0x404b44
mov dword [0x4096c4], 1
jmp 0x404b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x404b59
push 2
pop eax
mov dword [0x4096c4], eax
jmp 0x404b5e
mov eax, dword [0x4096c4]
cmp eax, 1
jne 0x404bbb
cmp esi, ebx
jne 0x404b76
call ebp
mov esi, eax
cmp esi, ebx
jne 0x404b76
xor eax, eax
jmp 0x404c62
cmp word [esi], bx
mov eax, esi
je 0x404b8b
inc eax
inc eax
cmp word [eax], bx
jne 0x404b7d
inc eax
inc eax
cmp word [eax], bx
jne 0x404b7d
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00403098
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x404bae
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x404c62
push ebp
push esi
push edi
call fcn.00403160
add esp, 0xc
jmp 0x404ba0
cmp eax, 2
je 0x404bc4
cmp eax, ebx
jne 0x404b6f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x404b6f
cmp byte [ebp], bl
mov esi, ebp
je 0x404bfa
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x404b6f
push esi
add edi, eax
call fcn.004030d0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x404bd7
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00403098
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x404c73
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x404c54
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x404c69
push edi
call fcn.004030d0
push esi
lea edi, [edi + eax + 1]
call fcn.004028ad
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x404c1a
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00403989
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x404b6f
Function at 0x404c7f
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4096c8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x404cbf
call esi
test eax, eax
je 0x404ca4
mov dword [0x4096c8], 1
jmp 0x404cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x404cbb
mov dword [0x4096c8], 2
jmp 0x404ccd
xor eax, eax
jmp 0x404d1b
cmp eax, 1
jne 0x404cc8
call esi
jmp 0x404d1b
cmp eax, 2
jne 0x404cbb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x404d13
lea eax, [esi + esi]
push eax
call fcn.00403098
mov ebp, eax
test ebp, ebp
pop ecx
je 0x404d13
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x404d17
push ebp
call fcn.00403989
pop ecx
xor eax, eax
jmp 0x404d19
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x405e42
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4096d0], ebx
push esi
push edi
jne 0x405ec2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405efd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4096d0], eax
je 0x405efd
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4096d4], eax
call esi
cmp dword [0x40946c], 2
mov dword [0x4096d8], eax
jne 0x405ec2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4096e0], eax
je 0x405ec2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4096dc], eax
mov eax, dword [0x4096dc]
test eax, eax
je 0x405f07
call eax
test eax, eax
je 0x405eee
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4096e0]
test eax, eax
je 0x405eee
test byte [ebp - 8], 1
jne 0x405f07
cmp dword [0x409478], 4
jb 0x405f01
or byte [ebp + 0x12], 0x20
jmp 0x405f26
xor eax, eax
jmp 0x405f36
or byte [ebp + 0x12], 4
jmp 0x405f26
mov eax, dword [0x4096d4]
test eax, eax
je 0x405f26
call eax
mov ebx, eax
test ebx, ebx
je 0x405f26
mov eax, dword [0x4096d8]
test eax, eax
je 0x405f26
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4096d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406064
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406092
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406099
cmp ebx, dword [eax + 4]
jae 0x406099
xor eax, eax
jmp 0x406289
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4060aa
xor eax, eax
inc eax
jmp 0x406288
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4060c0
cmp ecx, edx
jae 0x406205
cmp dword [eax + 4], 0
je 0x4060c9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4060b1
cmp dword [ebp + 8], 0
je 0x4060eb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406205
cmp eax, esi
jae 0x406205
mov eax, dword [0x4096e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406110
cmp dword [esi*4 + 0x4096f0], edi
je 0x406209
inc esi
cmp esi, eax
jl 0x4060fe
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406285
cmp dword [ebp - 8], 0x1000000
jne 0x406285
test byte [ebp - 0xc], 0xcc
je 0x40618e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406285
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406285
cmp word [eax + 0x18], 0x10b
jne 0x406285
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406285
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40618e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40618e
test byte [ecx + 0x27], 0x80
jne 0x406205
push 1
push 0x409730
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4060a2
mov ecx, dword [0x4096e8]
test ecx, ecx
mov edx, ecx
jle 0x4061c2
lea eax, [ecx*4 + 0x4096ec]
cmp dword [eax], edi
je 0x4061c2
dec edx
sub eax, 4
test edx, edx
jg 0x4061b6
test edx, edx
jne 0x4061f3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4061cf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4061e7
lea eax, [edx*4 + 0x4096f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4061d5
cmp ecx, 0x10
jge 0x4061f3
inc ecx
mov dword [0x4096e8], ecx
push 0
push 0x409730
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4060a2
xor eax, eax
jmp 0x406288
test esi, esi
jle 0x4060a2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409730
call ebx
test eax, eax
jne 0x4060a2
cmp dword [esi*4 + 0x4096f0], edi
je 0x40625f
mov eax, dword [0x4096e8]
lea esi, [eax - 1]
test esi, esi
jl 0x40624d
cmp dword [esi*4 + 0x4096f0], edi
je 0x406249
dec esi
jns 0x40623d
test esi, esi
jge 0x40625d
cmp eax, 0x10
jge 0x406258
inc eax
mov dword [0x4096e8], eax
lea esi, [eax - 1]
jmp 0x40625f
je 0x406277
xor ecx, ecx
test esi, esi
jl 0x406277
lea eax, [ecx*4 + 0x4096f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406265
push 0
push 0x409730
call ebx
jmp 0x4060a2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push 0x101050ae
push 0x64
mov edi, edx
call fcn.100eeb98
mov esi, eax
add esp, 8
test esi, esi
je 0x10003fdc
push 0x64
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov byte [esi], 1
lea eax, [esi + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 4], 2
mov dword [esi + 0x30], 0
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 4
mov dword [0x10277be8], esi
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [esi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push 0x10106238
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10002e60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10252ab8
mov dword [0x10277bec], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10003ebd
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x10252ae4]
cmp eax, 0x7fffffff
jne 0x10003ed7
dec eax
push 6
mov dword [0x10252ae4], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test edi, edi
je 0x10003eec
movups xmm0, xmmword [edi]
movups xmmword [0x10277ad0], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10003ef6
xorps xmm0, xmm0
movups xmmword [0x10277ad0], xmm0
movq qword [0x10277ae0], xmm0
xorps xmm0, xmm0
push 0x10252ab8
movups xmmword [0x10277cf0], xmm0
movq qword [0x10277d00], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x1027bd0c], 0
jne 0x10003fe6
mov eax, 0x10106238
mov dword [0x1027bf10], 0x10252ab0
mov esi, 1
mov edx, 0x1027bf20
sub esi, eax
lea ecx, [eax + esi]
cmp ecx, 0x40
jae 0x10003f59
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0
jne 0x10003f46
mov esi, dword [0x10277be8]
mov al, 1
mov byte [edx], 0
mov dword [0x1027bd0c], 0x1027bf10
mov dword [0x1027bf18], 0x100043f0
mov dword [0x1027bf1c], 0x10004400
xchg byte [esi], al
push 4
call fcn.100eeb68
add esp, 4
lea ecx, [ebp - 4]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10004800
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10003fcd
cmp dword [esi + 0x60], 0
je 0x10003fbe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x10277be8], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret