joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4742e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov ebx, dword [esp + 0x220]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push esi
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
mov dword [esp], 0
push 0xfffffffffffffff5
call edi
mov edi, eax
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, esp
push 0
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x474367
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, str.WaitForSingleObject___failed_or_timeout
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 4]
lea ebx, [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
jmp 0x47439a
push edi
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 1
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x47434c
mov dword [esp + 4], 0
push edi
push 1
push ebx
push esi
call ebp
test eax, eax
je 0x4743c4
cmp word [esp + 0xc], 1
jne 0x474380
movzx eax, word [esp + 0x1a]
cmp eax, 0xd
je 0x474380
cmp eax, 0xa
je 0x474380
mov dword [esp], 0
push 0
lea eax, [esp + 4]
push eax
push 0x1ff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [esp]
test eax, eax
je 0x474419
mov byte [esp + eax + 0xc], 0
lea eax, [esp + 0x228]
mov dword [esp + 4], eax
push eax
push dword [esp + 0x228]
push ebx
call fcn.00405ea0
add esp, 0xc
xor eax, eax
jmp 0x47435c
mov eax, str.ReadFile___failed
jmp 0x47435c

Function at 0x474430
Capabilities:
Get routing table

Disassembly:
push ebx
push edi
push esi
push eax
mov dword [esp], 0
mov edi, esp
push 1
push edi
push 0
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x47446d
push dword [esp]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push 1
push edi
push eax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
sete bl
je 0x474471
test esi, esi
jne 0x4744a6
xor ebx, ebx
jmp 0x4744af
mov eax, dword [esi]
test eax, eax
je 0x4744a6
mov ecx, dword [esp + 0x18]
mov edx, esi
add edx, 0x14
jmp 0x474496
add edx, 0x38
dec eax
je 0x4744a6
cmp dword [edx - 0x10], 0
jne 0x474490
cmp dword [edx - 0xc], 0
jne 0x474490
mov eax, dword [edx]
mov dword [ecx], eax
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x474a50
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea eax, [esi + 4]
mov ecx, esp
lea edx, [esp + 4]
push ecx
push 1
push edx
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x474adb
mov edi, dword [esp + 0x1c]
test ebx, ebx
je 0x474a99
lea eax, [esp + 0x20]
push 4
push eax
push 0x1006
push 0xffff
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
add eax, edx
not edx
add edx, ecx
test ecx, ecx
cmove edx, ecx
push 0
push edx
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x474ac9
add eax, dword [edi + 4]
mov dword [edi + 4], eax
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [edi + 4], 0x11
jae 0x474ae7
xor eax, eax
jmp 0x474b16
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x474b16
mov eax, dword [edi + 8]
movdqu xmm0, xmmword [eax]
movzx eax, byte [eax + 0x10]
movd xmm1, eax
pcmpeqb xmm0, xmmword [0x4f7950]
pcmpeqb xmm1, xmmword [0x4f7960]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
sete al
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x478910
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp], 0
mov esi, esp
push esi
push 0
push 0
push 8
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, str.NtQuerySystemInformation_SystemProcessorPerformanceInformation__NULL__failed
cmp eax, 0xc0000004
jne 0x478a57
mov edi, dword [esp]
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
push esi
push edi
push eax
push 8
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x478a3d
mov eax, dword [esp]
xor edi, edi
cmp eax, 0x30
jb 0x478a42
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
add ebx, 0x20
xor esi, esi
jmp 0x4789bf
lea ecx, [edx + 1]
mov dword [ebp + 8], ecx
imul edx, dword [ebp + 4]
mov dword [eax + edx + 4], esi
mov dword [eax + edx], edi
mov ecx, dword [esp + 0xc]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + edx + 8], ecx
mov esi, dword [esp + 0x14]
inc esi
mov eax, dword [esp + 4]
mov ecx, 0xaaaaaaab
mul ecx
shr edx, 5
add ebx, 0x30
cmp esi, edx
jae 0x478a48
mov dword [esp + 0x14], esi
mov edi, dword [ebx]
mov ecx, dword [ebx - 0x20]
mov ebp, dword [ebx - 0x1c]
mov eax, dword [ebx - 0x14]
mov edx, dword [ebx - 0x18]
sub edx, ecx
sbb eax, ebp
add edi, dword [ebx - 8]
mov esi, dword [ebx + 4]
adc esi, dword [ebx - 4]
add edi, edx
adc esi, eax
mov dword [ebx - 0x18], edi
mov dword [ebx - 0x14], esi
add edi, dword [ebx - 0x10]
adc esi, dword [ebx - 0xc]
add ecx, edi
adc ebp, esi
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
jne 0x478980
lea ecx, [edx + edx]
test edx, edx
mov edx, 0x10
cmove ecx, edx
mov dword [ebp + 0xc], ecx
imul ecx, dword [ebp + 4]
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [ebp], eax
mov edx, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [esp + 4], ecx
jmp 0x478980
mov edi, str.NtQuerySystemInformation_SystemProcessorPerformanceInformation__size__failed
test ebx, ebx
jne 0x478a4e
jmp 0x478a57
xor edi, edi
mov ebx, dword [esp + 8]
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x478a70
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x18]
lea edi, [esi + 0x18]
mov eax, esp
push edi
push eax
push str.Control_PanelCursors
push 0x80000001
call fcn.00485300
add esp, 0x10
test al, al
je 0x478aea
push edi
push esi
push 0
push dword [esp + 0xc]
call fcn.00485460
add esp, 0x10
test al, al
je 0x478aea
mov eax, dword [esp]
mov dword [esp + 8], 4
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0x18
push str.CursorBaseSize
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x478aea
add esi, 0xc
push dword [esp + 4]
push 0x4f9648
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp]
test eax, eax
je 0x478af8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
pop esi
pop edi
ret
Function at 0x482870
Capabilities:
Get file version info

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, ecx
lea eax, [esp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x482902
mov ebx, eax
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push eax
push ebx
push dword [esp + 0x10]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4828f5
mov eax, esp
lea ecx, [esp + 4]
push eax
push ecx
push 0x4fb174
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4828f5
cmp dword [esp], 0
je 0x4828f5
mov eax, dword [esp + 4]
cmp dword [eax], 0xfeef04bd
jne 0x4828f5
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
movzx edx, cx
shr ecx, 0x10
movzx edi, ax
shr eax, 0x10
push edi
push eax
push edx
push ecx
push 0x4fb178
push 0x505e28
call fcn.00472860
add esp, 0x18
test esi, esi
je 0x482902
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
add esp, 0xc
pop esi
pop edi
pop ebx
ret
Function at 0x483e00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x430
call fcn.00481920
mov edi, dword [eax + 0x4c]
test edi, edi
je 0x483e3f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test eax, eax
jne 0x483e49
call ebx
cmp eax, 0x18
je 0x483e20
mov edi, str.CreateToolhelp32Snapshot_TH32CS_SNAPMODULE__pid__failed
jmp 0x483fef
mov edi, str.Unable_to_find_a_GUI_program
jmp 0x483ffe
mov eax, dword [0x5052b4]
test eax, eax
je 0x483eb9
mov edi, str.ffInitCom___failed
cmp byte [eax], 0
jne 0x483fef
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x483f87
sub esp, 0x24
movaps xmm0, xmmword [0x4fc360]
movups xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [0x4fc370]
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x483f93
push 0x4852f0
call fcn.00401320
add esp, 4
mov dword [0x5052b4], 0
mov dword [esp + 8], 0x428
lea edi, [esp + 8]
push edi
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x483fed
lea ebp, [esp + 0x28]
jmp 0x483eef
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
push edi
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x483fed
push str.wbhelp64.dll
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
add esp, 8
test eax, eax
je 0x483f13
push str.wbhelp.dll
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
add esp, 8
test eax, eax
jne 0x483ee0
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [0x4fc458]
push 0
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x483ee0
mov ebx, dword [esp + 4]
mov dword [esp], 0
mov eax, dword [ebx]
mov ecx, esp
push ecx
push dword [0x4fc45c]
push ebx
call dword [eax + 0x44]
test eax, eax
js 0x483eda
mov ebp, edi
mov edi, dword [esp]
push str.WindowBlinds_Helper_DLL
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
add esp, 8
test eax, eax
je 0x483fa5
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov edi, ebp
lea ebp, [esp + 0x28]
jmp 0x483ee0
mov eax, str.CoInitializeEx___failed
mov dword [0x5052b4], eax
jmp 0x483fef
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, str.CoInitializeSecurity___failed
mov dword [0x5052b4], eax
jmp 0x483fef
mov ebp, dword [esp + 0x444]
cmp dword [ebp], 0
je 0x483fcb
mov dword [ebp + 4], 0
mov dword [ebp], 0
push dword [ebp + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [ebp], 0
mov dword [ebp + 4], 0xc
mov dword [ebp + 8], str.WindowBlinds
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
xor edi, edi
mov eax, esi
inc eax
cmp eax, 2
jb 0x483ffe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x485b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp], 0
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
lea ebp, [esp + 0x30]
mov dword [esp + 0x14], ebp
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x485bb9
test edi, edi
je 0x485ca5
mov eax, dword [edi]
mov ebx, dword [edi + 4]
test eax, eax
je 0x485b79
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 0x1d
jae 0x485c42
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [ebx + 0x1e]
nop word [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x485b90
test eax, eax
je 0x485c47
push ebp
push dword [edi + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
mov dword [edi + 8], eax
mov ebx, dword [edi + 4]
jmp 0x485c7b
mov eax, dword [esp]
lea ecx, [eax + 1]
mov dword [esp], ecx
lea eax, [eax*2 + 2]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete bl
je 0x485c1b
test edi, edi
je 0x485c12
push ebp
push str.RegEnumKeyExW_hKey___u__failed
push edi
call fcn.00472860
add esp, 0xc
test esi, esi
jne 0x485c37
jmp 0x485ca5
mov edi, dword [esp + 0x20]
test esi, esi
je 0x485c68
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push esi
push eax
push edi
call fcn.00485cd0
add esp, 0xc
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x485ca7
mov esi, dword [edi + 8]
jmp 0x485c7d
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test ebx, ebx
je 0x485c75
lea eax, [ebx + 1]
push eax
push dword [edi + 8]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x485c78
cmp dword [edi], 0
je 0x485cb1
mov eax, dword [edi + 8]
mov byte [eax], 0
jmp 0x485cb9
mov byte [esi], 0
mov dword [edi + 8], esi
mov dword [edi], ebp
movups xmm0, xmmword [0x4fcc9b]
movups xmmword [esi + ebx + 0xd], xmm0
movups xmm0, xmmword [str.RegQueryInfoKeyW_hKey__failed]
movups xmmword [esi + ebx], xmm0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [eax + 0x1d]
mov dword [edi + 4], edx
mov byte [ecx + eax + 0x1d], 0
xor ebx, ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5052b0]
mov dword [edi + 8], eax
mov dword [edi + 4], 0
mov bl, 1
jmp 0x485ca7
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x39112102
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x675e06fe
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4012a4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5b0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5b4]
mov dword [ebp - 0x34], eax
call fcn.0040129d
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5b8]
add edi, 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5bc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d3866c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132d
push 0x418228
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d3866c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d38668]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d38668], eax
mov eax, dword [0x2d385c0]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d385c0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d38664], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4012f5
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d37c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.00404ce5
mov dword [ebp - 0x14], eax
cmp dword [0x43ed20], esi
jne 0x40d46f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d54f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d54f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d54f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ed20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ed24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ed28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ed30], eax
test eax, eax
je 0x40d46c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ed2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d494
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d487
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d4a9
push 4
pop eax
jmp 0x40d551
cmp dword [ebp - 0x14], esi
je 0x40d4a9
push dword [0x43ed20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d48e
mov eax, dword [0x43ed2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d507
cmp dword [0x43ed30], edi
je 0x40d507
push eax
call ebx
push dword [0x43ed30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d507
test eax, eax
je 0x40d507
call ecx
test eax, eax
je 0x40d4fc
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 0x40d4fc
test byte [ebp - 8], 1
jne 0x40d507
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d537
mov eax, dword [0x43ed24]
cmp eax, edi
je 0x40d534
push eax
call ebx
test eax, eax
je 0x40d534
call eax
mov esi, eax
test esi, esi
je 0x40d534
mov eax, dword [0x43ed28]
cmp eax, edi
je 0x40d534
push eax
call ebx
test eax, eax
je 0x40d534
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ed20]
call ebx
test eax, eax
je 0x40d54f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d551
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040404b
mov esp, ebp
pop ebp
ret
Function at 0x10008730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a920
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10035454
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001d56e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10072be0]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [0x10072be4]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
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 0x1000a320
Capabilities:
Create thread

Disassembly:
mov ecx, 0x1b58
call fcn.1001d170
jmp fcn.10002360