joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407177
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x40716a
cmp ecx, 0x2e4
je 0x40716a
cmp ecx, 0x4c7
je 0x40716a
shr eax, 0x10
xor edx, edx
cmp edx, eax
sbb eax, eax
not eax
and eax, ecx
cmp dword [esi + 4], 8
ja 0x407177
movzx eax, ax
add eax, 0x10000
mov dword [esi + 4], eax
jmp 0x407177
cmp dword [esi + 4], 8
ja 0x407177
mov dword [esi + 4], 0x3f5
mov eax, dword [edi + 0x38]
test eax, eax
je 0x40719d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [edi + 0x38]
call dword [0x45403c]
cmp dword [esi + 4], 8
ja 0x4071a9
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x1000101a
mov ecx, dword [esp + 8]
mov al, 0x11
nop
mov dl, byte [ecx]
xor al, dl
mov byte [ecx], al
inc ecx
dec esi
jne 0x10001010
pop esi
ret
Function at 0x10026690
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x534
mov eax, dword [0x100542d0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x544]
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x42c], 0
mov byte [esp + 0x428], 0
mov byte [esp + 0x31e], 0
mov byte [ecx + edx], 1
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x53c], eax
mov eax, dword [esp + 0x548]
mov byte [ecx + edx + 2], 0
movzx ecx, byte [eax]
sub ecx, 0x61
cmp ecx, 0x19
push edi
ja 0x10026772
mov ebx, dword [esp + 0x10]
jmp 0x10026700
movzx ecx, byte [ecx + 0x10027070]
jmp dword [ecx*4 + 0x1002704c]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
mov ecx, dword [esp + 0x530]
call fcn.10049461
add esp, 0x534
ret
Function at 0x10039a80
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
pop ecx
ret

Function at 0x10039ab0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x10039ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
jmp 0x10039af0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039af0
push 0
lea ecx, [esp + 8]
push ecx
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x10039d00
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10039d22
cmp byte [edi], 0
je 0x10039d22
push edi
call fcn.10039810
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x10039d45
push edi
jmp 0x10039d3b
push str.c:_trace.txt
call fcn.10039810
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x10039d45
push str.c:_trace.txt
call fcn.10039990
add esp, 4
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
jle 0x10039d70
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 2
push 0x1004f818
push esi
call edi
mov ecx, dword [0x10056104]
dec ecx
push esi
mov dword [0x10056104], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x1003a4c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push eax
call fcn.100398d0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x1003a4db
or eax, eax
pop edi
pop ecx
ret
push esi
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [0x100600c4]
mov edx, dword [0x10056108]
mov esi, eax
lea eax, [esi + 1]
add ecx, eax
push eax
inc edx
push 8
mov dword [0x100600c4], ecx
mov dword [0x10056108], edx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test esi, esi
mov edx, dword [esp + 0x14]
mov dword [edx], eax
je 0x1003a532
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x10056104]
dec ecx
push edi
mov dword [0x10056104], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ecx
ret
Function at 0x100431e0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x4210
call fcn.100497b0
mov eax, dword [0x100542d0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4220]
mov dword [esp + 0x4218], eax
xor eax, eax
cmp esi, 0xffffffff
sete al
xor ebx, ebx
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x18], 0xfeff
mov dword [esp + 0x14], eax
je 0x10043229
push ebx
push ebx
push esi
call fcn.10039b20
add esp, 0xc
jmp 0x1004323b
mov ecx, dword [esp + 0x422c]
push ecx
call fcn.10039990
add esp, 4
mov esi, eax
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.10039ab0
mov ecx, dword [esp + 0x423c]
add esp, 0xc
cmp ecx, ebx
je 0x100432ad
cmp byte [ecx], bl
je 0x100432ad
mov eax, ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10043260
sub eax, edi
inc eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push ebx
push 0x4e4
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov word [esp + eax*2 + 0x1c], 0x30
lea eax, [esp + 0x1c]
push eax
call fcn.100499e9
shl eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.10039ab0
push 4
push 0x1004fb24
push esi
call fcn.10039ab0
add esp, 0x1c
mov ebp, dword [esp + 0x4228]
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, ebx
jle 0x10043365
lea edx, [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x224]
push eax
push ebx
push 0x1000
lea ecx, [esp + 0x2230]
push ecx
push edi
push ebp
mov word [esp + 0x23c], bx
mov dword [esp + 0x30], ebx
call fcn.10042e90
movzx edx, word [esp + 0x30]
add esp, 0x20
mov word [esp + edx*2 + 0x21c], bx
cmp word [esp + 0x21c], bx
je 0x10043328
lea eax, [esp + 0x21c]
push eax
call fcn.100499e9
shl eax, 1
push eax
lea ecx, [esp + 0x224]
push ecx
jmp 0x10043340
lea edx, [esp + 0x221c]
push edx
call fcn.100499e9
shl eax, 1
push eax
lea eax, [esp + 0x2224]
push eax
push esi
call fcn.10039ab0
add esp, 0x10
push 4
push 0x1004fb24
push esi
call fcn.10039ab0
mov eax, dword [ebp + 0xc]
add esp, 0xc
inc edi
cmp edi, eax
jl 0x100432c1
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
cmp dword [esp + 0x14], ebx
je 0x1004337b
push esi
call fcn.10039a60
add esp, 4
mov ecx, dword [esp + 0x421c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.10049461
add esp, 0x4210
ret
Function at 0x100433a0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x500c
call fcn.100497b0
mov eax, dword [0x100542d0]
push ebx
push ebp
mov dword [esp + 0x5010], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x501c]
cmp edi, 0xffffffff
sete al
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [esp + 0x10], eax
je 0x100433e0
push ebx
push ebx
push edi
call fcn.10039b20
add esp, 0xc
jmp 0x100433f2
mov ecx, dword [esp + 0x5024]
push ecx
call fcn.10039990
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x5028]
cmp eax, ebx
je 0x10043416
cmp byte [eax], bl
je 0x10043416
push eax
push edi
call fcn.10039ae0
push 0x1004f818
push edi
call fcn.10039ae0
add esp, 0x10
mov edx, dword [esp + 0x5020]
mov eax, dword [edx + 0xc]
xor ebp, ebp
cmp eax, ebx
jle 0x1004351b
push esi
jmp 0x10043430
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x5028]
push 0x1000
lea ecx, [esp + 0x1020]
push ecx
push ebx
push 0x1000
lea edx, [esp + 0x302c]
push edx
push ebp
push eax
mov word [esp + 0x1038], bx
mov dword [esp + 0x30], ebx
call fcn.10042e90
movzx ecx, word [esp + 0x30]
add esp, 0x20
mov word [esp + ecx*2 + 0x1018], bx
cmp word [esp + 0x1018], bx
je 0x1004349a
lea edx, [esp + 0x1018]
push edx
call fcn.100499e9
lea edx, [esp + 0x101c]
jmp 0x100434ae
lea eax, [esp + 0x3018]
push eax
call fcn.100499e9
lea edx, [esp + 0x301c]
add esp, 4
push ebx
push ebx
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
push ebx
push 0x4e4
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, ebx
jne 0x100434d4
call dword [sym.imp.kernel32.dll_GetLastError]
movzx eax, si
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100434e2
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10039ab0
push 2
push 0x1004f818
push edi
call fcn.10039ab0
mov edx, dword [esp + 0x503c]
mov eax, dword [edx + 0xc]
add esp, 0x18
inc ebp
cmp ebp, eax
jl 0x10043430
pop esi
push edi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
cmp dword [esp + 0x10], ebx
je 0x10043531
push edi
call fcn.10039a60
add esp, 4
mov ecx, dword [esp + 0x5014]
pop edi
pop ebp
mov eax, 1
pop ebx
call fcn.10049461
add esp, 0x500c
ret
Function at 0x1004b158
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100504e0
call fcn.1004ab88
push 8
call fcn.10013420
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10056f34], esi
jne 0x1004b18c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x10056f30], esi
mov al, byte [ebp + 0x10]
mov byte [0x10056f2c], al
cmp dword [ebp + 0xc], edi
jne 0x1004b1d6
cmp dword [0x100613e8], edi
je 0x1004b1c6
mov eax, dword [0x100613e4]
sub eax, 4
mov dword [0x100613e4], eax
cmp eax, dword [0x100613e8]
jb 0x1004b1c6
mov eax, dword [eax]
cmp eax, edi
je 0x1004b1a7
call eax
jmp 0x1004b1a7
push 0x10052020
mov eax, 0x1005201c
call fcn.1004b0d6
pop ecx
push 0x10052028
mov eax, 0x10052024
call fcn.1004b0d6
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1004b207
cmp dword [ebp + 0x10], edi
jne 0x1004b215
mov dword [0x10056f34], esi
push dword [ebp + 8]
call fcn.1004b094
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1004b214
push 8
call fcn.10013420
pop ecx
ret
call fcn.1004abc3
ret

Function at 0x1004bc99
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100542d0]
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 + 0x100546b0]
je 0x1004bcce
inc eax
cmp eax, 0x13
jb 0x1004bcbf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100546b0]
jne 0x1004bdf4
mov eax, dword [0x10056e74]
cmp eax, 1
je 0x1004bdcc
cmp eax, edx
jne 0x1004bcfe
cmp dword [0x10056e78], 1
je 0x1004bdcc
cmp ecx, 0xfc
je 0x1004bdf4
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 0x1004bd34
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1004c6e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1004ceb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004bd68
mov eax, edi
push eax
call fcn.1004ceb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004fde4
push edi
call fcn.1004c830
add esp, 0x10
push edi
call fcn.1004ceb0
push dword [esi + 0x100546b4]
mov ebx, eax
call fcn.1004ceb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100497b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1004c6e0
push edi
push ebx
call fcn.1004c6f0
push 0x1004fde0
push ebx
call fcn.1004c6f0
push dword [esi + 0x100546b4]
push ebx
call fcn.1004c6f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10013420
add esp, 0x2c
jmp 0x1004bdf4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100546b4]
push dword [esi]
call fcn.1004ceb0
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.10049461
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4013bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x4046658], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x4013f3
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4182e8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4182ec]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013b3
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x4046658], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4046654]
cmove eax, edx
xor edx, edx
cmp dword [0x4046658], 0x3eb
mov dword [0x4046654], eax
mov eax, dword [0x4042a5c]
cmove eax, edx
add ecx, ebx
mov dword [0x4042a5c], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x4046658]
xor eax, edx
mov dword [0x4046650], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401527
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x4046658]
sub edi, eax
cmp ecx, 0xc
jne 0x401535
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013ba
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401581
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401431
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d322
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417794]
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.00408717
mov dword [ebp - 0x14], eax
cmp dword [0x457478], esi
jne 0x40d415
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4f5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4f5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4f5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x457478], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45747c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x457480], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457488], eax
test eax, eax
je 0x40d412
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457484], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d43a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d42d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d44f
push 4
pop eax
jmp 0x40d4f7
cmp dword [ebp - 0x14], esi
je 0x40d44f
push dword [0x457478]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d434
mov eax, dword [0x457484]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4ad
cmp dword [0x457488], edi
je 0x40d4ad
push eax
call ebx
push dword [0x457488]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4ad
test eax, eax
je 0x40d4ad
call ecx
test eax, eax
je 0x40d4a2
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 0x40d4a2
test byte [ebp - 8], 1
jne 0x40d4ad
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4dd
mov eax, dword [0x45747c]
cmp eax, edi
je 0x40d4da
push eax
call ebx
test eax, eax
je 0x40d4da
call eax
mov esi, eax
test esi, esi
je 0x40d4da
mov eax, dword [0x457480]
cmp eax, edi
je 0x40d4da
push eax
call ebx
test eax, eax
je 0x40d4da
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x457478]
call ebx
test eax, eax
je 0x40d4f5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040406e
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e840
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x429080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004066c1
mov edi, eax
add esp, 4
test edi, edi
je 0x40182d
push 1
mov dword [ebp - 4], 0
call fcn.00405d57
add esp, 4
mov dword [edi + 4], eax
jmp 0x40182f
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.00402cc0
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [esi + 0x18]
mov byte [esi + 0x48], 0
lea edi, [esi + 0x24]
mov byte [esi + 0x3d], 0
lea ebx, [esi + 0x28]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x429fac]
mov ecx, dword [0x429fb0]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov dword [esi + 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 0x404da0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x404dc1
jl 0x404db7
test esi, esi
jne 0x404dc1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x404e74
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00402bb0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x404e31
jg 0x404df9
test esi, esi
je 0x404e31
cmp ebp, eax
jg 0x404e09
jl 0x404e03
cmp edi, esi
jae 0x404e09
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.00407ae0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x404e50
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x404e60
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x404de0
jl 0x404e60
test edi, edi
jne 0x404de0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x404eb9
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x404ec0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.00407ae0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x404ec0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x404f29
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404eea
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x404f14
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.0040bcd3
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404f29
cmp edi, eax
ja 0x404ef2
test edi, edi
je 0x404f29
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.0040bcd3
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc