joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
mov edx, 0x82
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x420]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
xor esi, esi
push str.SOFTWARECanonCNAB4MonitorsCNAB4_Monitor
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
push str.LP_Window_handle
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 1
lea eax, [ebp - 0x218]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40107b
xor eax, eax
jmp 0x4010b5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4010b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x4011b9
cmp dword [ebp + 0x10], ebx
je 0x4011b9
cmp dword [ebp + 0x14], ebx
je 0x4011b9
mov eax, dword [ebp + 0x18]
mov edx, 0x104
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x824]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
push eax
call esi
cmp word [ebp - 0x414], bx
lea eax, [ebp - 0x414]
pop edi
je 0x401142
cmp word [eax], 0x5c
jne 0x401136
mov word [eax], 0x2c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], bx
jne 0x40112b
lea eax, [ebp - 0x824]
push str.SOFTWARECanonCNAB4_
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x824]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011b9
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x1c]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4011bb
xor eax, eax
pop esi
pop ebx
leave
ret 0x1c
Function at 0x4011c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x4012d9
cmp dword [ebp + 0x10], ebx
je 0x4012d9
cmp dword [ebp + 0x14], ebx
je 0x4012d9
mov edx, 0x104
push edi
push dword [ebp + 0xc]
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x830]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x420]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x420]
push eax
call esi
cmp word [ebp - 0x420], bx
lea eax, [ebp - 0x420]
je 0x40123d
cmp word [eax], 0x5c
jne 0x401231
mov word [eax], 0x2c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], bx
jne 0x401226
lea eax, [ebp - 0x830]
push str.SOFTWARECanonCNAB4_
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x830]
push eax
call esi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0xc
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20006
push ebx
push 0x40c1f8
lea eax, [ebp - 0x830]
push ebx
push eax
mov dword [ebp - 8], ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
jne 0x4012d9
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4012db
xor eax, eax
pop esi
pop ebx
leave
ret 0x1c
Function at 0x401f01
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x401f8a
cmp dword [ebp + 8], edi
je 0x401f8a
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401f86
cmp dword [ebp - 0x104], 2
jne 0x401f6d
cmp dword [ebp - 0x110], 5
jb 0x401f6d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 7
cmp eax, dword [ebp + 0x10]
jge 0x401f86
push 1
pop edi
push esi
push str.Global_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x401f86
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, dword [ebp + 0x10]
jge 0x401f86
push 1
pop edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, edi
jmp 0x401f8c
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x40230c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 1
pop edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARECanonCNAB4MonitorsCNAB4_Monitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40236a
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402361
cmp dword [ebp - 0xc], eax
je 0x402361
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4
Function at 0x402cc9
Capabilities:
Check mutex on windows
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop esi
xor ebx, ebx
stosd dword es:[edi], eax
push str.CNAB4_rpc_mutex
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402d1b
mov eax, esi
jmp 0x402e3d
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.CNAB4SM_EVENT_RPC_START
mov edi, 0x1f0003
push ebx
push edi
call esi
push str.CNAB4SM_EVENT_RPC_STOP
push ebx
push edi
mov dword [ebp - 0x24], eax
call esi
push str.CNAB4SM_EVENT_RPC_TERMINATE
push ebx
push edi
mov dword [ebp - 0x20], eax
call esi
cmp dword [0x40c200], ebx
mov dword [ebp - 0x1c], eax
jne 0x402e3b
mov esi, dword [sym.imp.RPCRT4.dll_RpcEpUnregister]
mov edi, dword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push ebx
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x402dae
dec eax
je 0x402d7d
dec eax
je 0x402dd8
jmp 0x402dce
cmp dword [0x40c1fc], ebx
je 0x402dce
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
jne 0x402da5
push ebx
push dword [ebp - 4]
push dword [0x4096a8]
call esi
lea eax, [ebp - 4]
push eax
call edi
push ebx
call dword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
jmp 0x402dce
cmp dword [0x40c1fc], ebx
jne 0x402dce
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x402e44
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40c204], eax
cmp dword [0x40c200], ebx
jne 0x402e3b
jmp 0x402d62
cmp dword [0x40c1fc], ebx
je 0x402e07
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
jne 0x402e00
push ebx
push dword [ebp - 4]
push dword [0x4096a8]
call esi
lea eax, [ebp - 4]
push eax
call edi
push ebx
call dword [sym.imp.RPCRT4.dll_RpcMgmtStopServerListening]
mov eax, dword [0x40c204]
cmp eax, ebx
je 0x402e31
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x402e31
push ebx
push dword [0x40c204]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x40c200], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x404fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b9a8
cmp edx, dword [eax]
je 0x404ff2
add eax, 8
inc ecx
cmp eax, 0x40ba38
jl 0x404fe3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b9a8]
jne 0x405120
mov eax, dword [0x40c210]
cmp eax, 1
je 0x4050fa
test eax, eax
jne 0x405023
cmp dword [0x409804], 1
je 0x4050fa
cmp edx, 0xfc
je 0x405120
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40505a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405d90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40509d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405d90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407660
push edi
call fcn.00406310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405cb0
lea eax, [ebp - 0xa0]
push 0x407640
push eax
call fcn.00405cb0
push dword [esi + 0x40b9ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406282
add esp, 0x2c
pop edi
jmp 0x405120
lea eax, [ebp + 8]
lea esi, [esi + 0x40b9ac]
push 0
push eax
push dword [esi]
call fcn.00405d90
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]
pop esi
leave
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x813cd8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813cd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813cdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813ce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ce8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ce4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x813cd8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x813ce4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x813ce8], edi
je 0x40d429
push eax
call ebx
push dword [0x813ce8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
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 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x813cdc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x813ce0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813cd8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x40b666
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40b6b0
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40b67f
jmp 0x40b6b0
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40b6a0
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40c5d3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c608
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c632
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c632
test edi, edi
je 0x40c5ff
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c5ff
test edi, edi
je 0x40c63a
mov eax, edi
jmp 0x40c601
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c601
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410178
add esp, 0xc
int3
Function at 0x4101ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestRollingMean.exe_gMozillaPoisonSize], eax
call fcn.0040c5d3
pop ecx
mov ecx, dword [sym.TestRollingMean.exe_gMozillaPoisonSize]
mov dword [sym.TestRollingMean.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4101e4
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestRollingMean.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4031f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x403248
cmp byte [esi + ebx - 1], 0xa
je 0x40321c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x409100], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x404290
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x813ff8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813ff8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813ffc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814008], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814004], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x813ff8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x814004]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x814008], edi
je 0x40d429
push eax
call ebx
push dword [0x814008]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
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 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x813ffc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x814000]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813ff8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x446880
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496978
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c6e28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
mov dword [esi], 0x4ace34
call dword [0x49cb44]
xor ebx, ebx
lea ecx, [esi + 0x48]
mov dword [ebp - 4], ebx
call dword [0x49cb44]
push 0x49d164
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 8], ebx
call dword [0x49cb24]
push 0x49d164
lea ecx, [esi + 0x48]
mov dword [esi + 0x10], ebx
call dword [0x49cb24]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], 0x18
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x14], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46eff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4991d4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c6e28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
call dword [0x49cb44]
xor ebx, ebx
lea ecx, [esi + 0x50]
mov dword [ebp - 4], ebx
call dword [0x49cb44]
lea ecx, [esi + 0x5c]
call dword [0x49cb44]
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
push 0x49d164
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call dword [0x49cb24]
xor eax, eax
or ecx, 0xffffffff
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], edx
mov byte [esi + 0x14], 1
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x6c], bl
mov dword [esi + 0x84], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret