joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0041dc90
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x462573
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462573
test al, 0x10
je 0x462573
mov bl, 1
jmp 0x462575
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4625ab
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4625a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625bc
push edx
push ecx
call fcn.00473d9c
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00474009
mov esp, ebp
pop ebp
ret
call fcn.0047f349
int3

Function at 0x462ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x463011
cmp dword [ecx + 0x14], 8
jb 0x462ffe
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x463011
test al, 0x10
je 0x463011
mov al, 1
ret
xor al, al
ret
Function at 0x463990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5308
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ec05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x463b31
mov esi, dword [ebp + 0xc]
jg 0x4639ed
test esi, esi
je 0x463b31
cmp dword [ebx], 0xffffffff
je 0x463b31
push esi
lea ecx, [ebp - 0x1c]
call fcn.00463bb0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x463a30
lea ebx, [edi + esi]
jmp 0x463a60
jbe 0x463a63
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x463a50
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042e0d0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x463a63
sub esi, ecx
push esi
push 0
push ebx
call fcn.00476450
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x463aee
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x463ab9
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x463b5c
push eax
call fcn.00473d6c
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x463b61
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x463acd
test ecx, ecx
je 0x463acb
push ecx
call fcn.00473d6c
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x463acd
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.00475ed0
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x463b1b
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x463b11
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463b61
push ecx
push edi
call fcn.00473d9c
add esp, 8
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 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 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 0xc
call fcn.004025a0
call fcn.0047f349
int3
Function at 0x465750
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5749
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ec05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00460710
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00460710
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00460710
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.00460710
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.00460710
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.00460710
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.00460710
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.00460710
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.00460710
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.00460710
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.00460710
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.00460710
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.00460710
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.00460710
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.00460710
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.00460710
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.00460710
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.00460710
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46cc20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6657
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ec05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.0046da20
test al, al
jne 0x46cc68
or ebx, 0xffffffff
jmp 0x46cdce
cmp dword [edi + 0xc], 0
jne 0x46ccb1
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push 0x46df80
push 0
push 0
mov dword [ebp - 0x10], 0
call fcn.0048d887
add esp, 0x18
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x10]
call fcn.0046e860
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x20
mov byte [ebp - 4], 1
call fcn.00473d6c
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x46ccef
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.0046bd30
mov ebx, eax
jmp 0x46ccf1
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x10
mov byte [ebp - 4], 3
call fcn.00473d6c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
je 0x46cd24
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_struct_KIC::Event_.0
mov dword [esi + 0xc], ebx
jmp 0x46cd26
xor esi, esi
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
je 0x46cd5d
push 4
call fcn.00473d6c
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x46cd60
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0x20]
cmp edx, dword [edi + 0x24]
je 0x46cd82
mov dword [edx + 4], esi
xor esi, esi
mov dword [edx], ebx
mov dword [edx + 8], ecx
add dword [edi + 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
jmp 0x46cd92
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.0046c370
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 0x10]
call fcn.0046e870
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor ebx, ebx
test esi, esi
je 0x46cdce
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x46cdce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x46cdce
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea ecx, [ebp + 8]
call fcn.0040a050
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x471750
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x471767
cmp esi, 0x20
jne 0x47193b
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x47193a
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x4717d2
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x4717a5
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x4718ba
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x471850
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x4cb9a8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x47189d
cmp esi, 6
jbe 0x47189d
cmp edx, 4
jne 0x47189d
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x4717f0
xor esi, esi
sub ecx, 1
js 0x471939
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x471929
cmp ecx, 4
jb 0x471929
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4cada8]
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4cb1a8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4ca9a8]
movzx eax, bl
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x4cb5a8]
mov eax, dword [ebp + 8]
jmp 0x47192b
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x4718c7
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x471d70
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x10]
add eax, 3
shr eax, 2
lea eax, [eax + eax*2]
push eax
call fcn.00473daa
mov ecx, ebx
add esp, 4
mov esi, eax
cmp dword [ecx + 0x14], 0x10
jb 0x471d9c
mov ecx, dword [ecx]
mov ebx, dword [ebx + 0x10]
lea eax, [ebx - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x471db9
lea esp, [esp]
lea eax, [eax - 1]
dec ebx
cmp byte [eax], 0x3d
je 0x471db0
push edi
xor edi, edi
test ebx, ebx
je 0x471e56
mov eax, 1
mov dword [ebp + 8], 2
sub eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 8], eax
lea eax, [ebx - 1]
shr eax, 2
inc eax
mov dword [ebp - 4], eax
movsx eax, byte [edx - 1]
mov ch, byte [eax + 0x4cba10]
movsx eax, byte [edx - 2]
mov cl, byte [eax + 0x4cba10]
mov al, ch
sar al, 4
and al, 3
shl cl, 2
or cl, al
mov eax, dword [ebp + 8]
mov byte [edi + esi], cl
inc edi
cmp eax, ebx
jae 0x471e47
movsx eax, byte [edx]
shl ch, 4
mov cl, byte [eax + 0x4cba10]
mov al, cl
sar al, 2
and al, 0xf
or al, ch
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 8]
add eax, edx
cmp eax, ebx
jae 0x471e44
movsx eax, byte [edx + 1]
shl cl, 6
mov al, byte [eax + 0x4cba10]
and al, 0x3f
or al, cl
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp + 8]
add eax, 4
add edx, 4
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x471de2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471e5f
mov dword [eax], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x471e82
lea eax, [ebp + 8]
cmp ecx, eax
je 0x471e82
mov edx, dword [ecx]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
test edx, edx
je 0x471e82
push edx
call fcn.00473db3
add esp, 4
test edi, edi
pop edi
setne bl
test esi, esi
je 0x471e95
push esi
call fcn.00473db3
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49283c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049238f

Function at 0x4955b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049542f

Function at 0x4a2230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7043
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ec05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x4bc2c0
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0040d800
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a9340
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b74f7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ec05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x4a9395
mov dword [ebx], 0x4d9020
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.004a9170
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00473d6c
mov esi, eax
add esp, 4
test esi, esi
je 0x4a93f2
push 1
mov byte [ebp - 4], 2
call fcn.0047296a
add esp, 4
mov dword [esi + 4], eax
jmp 0x4a93f4
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], 0
mov dword [edx], 0
and ecx, 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
or edx, 8
mov dword [esi + 0x38], 0
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d99
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42907c]
jne 0x401da3
repz ret
jmp fcn.004026dd

Function at 0x40844c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42907c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406114
and dword [ebp - 0x14], 0
cmp dword [0x42be70], 0
mov dword [ebp - 0x18], eax
jne 0x4084ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4085a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4085a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42be70], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42be74], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42be78], eax
call edi
push eax
call esi
mov dword [0x42be80], eax
test eax, eax
je 0x4084ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42be7c], eax
mov eax, dword [0x42be7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408558
cmp dword [0x42be80], ecx
je 0x408558
push eax
call esi
push dword [0x42be80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408558
test ebx, ebx
je 0x408558
call edi
test eax, eax
je 0x40854f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40854f
test byte [ebp - 8], 1
jne 0x408558
or dword [ebp + 0x10], 0x200000
jmp 0x40858b
mov eax, dword [0x42be74]
cmp eax, dword [ebp - 0x18]
je 0x40858b
push eax
call esi
test eax, eax
je 0x40858b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40858b
mov eax, dword [0x42be78]
cmp eax, dword [ebp - 0x18]
je 0x40858b
push eax
call esi
test eax, eax
je 0x40858b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be70]
call esi
test eax, eax
je 0x4085a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4085a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d99
leave
ret
Function at 0x4043f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, ecx
je 0x404403
mov dword [edi], 0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x404413
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x404423
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
jne 0x404433
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
lea ebx, [esp + 0x14]
push 0
push ebx
push edx
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404473
mov al, byte [esi + 0xc]
test al, al
je 0x404464
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
mov ecx, dword [esi + 8]
mov bl, 1
test ecx, ecx
je 0x4044ac
lea edx, [esp + 0x18]
mov byte [esp + 0x18], 0
push edx
push eax
call fcn.00417200
mov al, byte [esp + 0x18]
test al, al
je 0x4044a8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4044a6
mov eax, dword [ecx]
push str.Aborted_by_application
call dword [eax + 0x14]
xor bl, bl
mov eax, dword [esp + 0x14]
test edi, edi
je 0x4044b2
mov dword [edi], eax
mov ecx, dword [esi + 4]
pop edi
add ecx, eax
mov al, bl
mov dword [esi + 4], ecx
pop esi
pop ebx
ret 0x10

Function at 0x405230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a81b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00417600
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.00417650
test al, al
je 0x405295
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.00404850
jmp 0x4052e9
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4052d5
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.00404850
jmp 0x4052e9
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00404910
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417640
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret