joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov byte [ebp - 0x815], 0
test esi, esi
je 0x406250
test ebx, ebx
je 0x406250
cmp word [esi], 0
je 0x406250
cmp word [ebx], 0
je 0x406250
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40623b
lea eax, [ebp - 0x81c]
push eax
push 0x44332c
push 1
push 0
push 0x44333c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x406235
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.00429770
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.00427fa6
add esp, 0x20
xor eax, eax
jmp 0x406170
movzx ecx, word [ebp + eax - 0xc]
mov word [ebp + eax - 0x214], cx
add eax, 2
test cx, cx
jne 0x406170
lea eax, [ebp - 0x414]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406190
push edi
lea edi, [ebp - 0x214]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4061b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4061b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x81c]
and ecx, 3
lea edx, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
lea edx, [ebp - 0x820]
push edx
push 0x44334c
push eax
mov eax, dword [ecx]
call eax
pop edi
test eax, eax
js 0x406227
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 0
push ebx
push eax
call edx
test eax, eax
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
sete byte [ebp - 0x815]
call edx
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 0x815]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004267a3
mov esp, ebp
pop ebp
ret
Function at 0x40f3f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f74b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00429770
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov esi, 0x100
add esp, 0xc
mov ecx, section..data
mov dword [ebp - 0x218], esi
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.SYSTEMCurrentControlSetControlLsaFipsAlgorithmPolicy
lea ecx, [ebp - 0x21c]
push ecx
mov ebx, 0x38
mov dword [ebp - 4], 0
call fcn.00416d10
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x214]
push edx
push 0x2011f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f56b
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x224]
push eax
push 0
push str.Enabled
mov dword [ebp - 0x218], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40f507
mov eax, dword [ebp - 0x214]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push str.Enabled
push 0x4498c4
push eax
mov dword [ebp - 0x220], 0
call ebx
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x224]
push eax
push 0
push str.MDMEnabled
push ecx
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
jne 0x40f55e
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push str.MDMEnabled
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x214]
push 0x4498c4
push eax
call ebx
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret
Function at 0x417240
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f36b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004266b3
push 4
mov dword [ebp - 4], 0
call fcn.00426ee8
mov edi, eax
add esp, 4
test edi, edi
je 0x4172bc
call fcn.00425ee8
mov dword [edi], eax
call fcn.00425ca7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00425bdc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4172b2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00425c04
jmp 0x4172be
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x419810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x419828
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41985a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x419856
cmp esi, eax
jae 0x41985a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x419848
cmp esi, eax
jb 0x419860
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x419b20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440b79
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x88], ebx
mov byte [ebp - 4], 3
push 0x30
mov dword [esi + 0x90], ebx
call fcn.00426ee8
add esp, 4
cmp eax, ebx
je 0x419c03
mov dword [esi + 0x8c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x8c]
mov dword [eax + 4], eax
push 2
mov byte [ebp - 4], 4
push 0x4499ec
lea ecx, [esi + 0x38]
mov byte [esi + 0x60], bl
call fcn.00416f20
mov eax, 1
mov dword [esi + 0x54], eax
mov byte [esi + 0x61], al
mov word [esi + 0x58], 0x101
mov byte [esi + 0x5a], bl
mov dword [esi + 0x5c], 0x64
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 + 0x68], ebx
mov dword [esi + 0x6c], 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
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0042683a
push 0x44c38c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0042b93b
int3

Function at 0x419c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov ecx, 0xf
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x22c], al
mov dword [ebp - 4], eax
cmp dword [ebx], eax
jne 0x419cd0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
jmp 0x419d13
mov ecx, dword [ebx]
push ecx
push 0x200
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.0042779a
mov edi, eax
add esp, 0x10
push edi
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x22c]
call fcn.004144d0
cmp edi, 0x200
je 0x419cd0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x22c]
mov byte [esi], 0
call fcn.00415dd0
cmp dword [ebp - 0x218], 0x10
jb 0x419d39
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00426798
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret
Function at 0x41acc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440a48
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], ebx
jne 0x41ad08
cmp dword [ebp + 0x1c], 0x10
jb 0x41ae4f
mov eax, dword [ebp + 8]
push eax
jmp 0x41ae47
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00419da0
push 1
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp + 8]
push edx
xor eax, eax
mov byte [ebp - 0x4c], 0x2f
call fcn.00416120
mov edi, eax
cmp edi, 0xffffffff
je 0x41ae3d
push edi
xor ecx, ecx
lea esi, [ebp - 0x2c]
lea edx, [ebp + 8]
call fcn.00414600
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
jbe 0x41adfe
push 0xffffffffffffffff
push ebx
mov eax, esi
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], 0
call fcn.00416e30
mov eax, dword [ebp - 0x68]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jae 0x41ad88
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne bl
cmp dword [ebp - 0x54], esi
jb 0x41ada5
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00426798
add esp, 4
test bl, bl
jne 0x41ae05
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41adb4
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
test al, al
jne 0x41ae05
cmp dword [ebp - 0x18], esi
jb 0x41add7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00426798
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x41adfa
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426798
add esp, 4
xor al, al
jmp 0x41ae51
mov esi, 0x10
jmp 0x41ae07
xor ebx, ebx
push 1
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp + 8]
lea eax, [edi + 1]
push ecx
mov byte [ebp - 0x4c], 0x2f
call fcn.00416120
mov byte [ebp - 4], 1
mov edi, eax
cmp dword [ebp - 0x18], esi
jb 0x41ae34
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00426798
add esp, 4
cmp edi, 0xffffffff
jne 0x41ad41
cmp dword [ebp + 0x1c], 0x10
jb 0x41ae4f
mov edx, dword [ebp + 8]
push edx
call fcn.00426798
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret
Function at 0x41c410
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x41c430
lea eax, [edi - 0x10]
push eax
mov edx, 6
mov ecx, str.log4z_already_start__r_n
call fcn.0041bc90
xor al, al
pop edi
ret
push esi
push 0
push 0x40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
lea esi, [edi - 0x10]
push esi
push 0x419b00
push 0
push 0
mov dword [edi + 0xc], eax
call fcn.00427bd3
xor ecx, ecx
mov edx, eax
and edx, ecx
add esp, 0x18
cmp edx, 0xffffffff
je 0x41c48d
mov edx, eax
or edx, ecx
je 0x41c48d
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0xc]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41c49a
pop esi
mov eax, 1
pop edi
ret
push str.log4z:_create_log4z_thread_error___r_n
call fcn.00428d88
add esp, 4
pop esi
xor eax, eax
pop edi
ret
Function at 0x421610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440773
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x4216b0
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.00416f20
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 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d73
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x450398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov byte [ebp - 4], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x4461ad
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.00416f20
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x421d1b
cmp byte [esi + 0x44], bl
jne 0x421d13
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421cf7
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00416f20
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 4
mov edi, dword [esi + 0x18]
test edi, edi
je 0x421d33
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x421d22
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004272db
push ebx
call fcn.004274eb
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004272db
add esp, 0x1c
test ebx, ebx
jg 0x421da6
cmp byte [esi + 0x44], 0
jne 0x421d9e
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421d85
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00416f20
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 4
lea ecx, [ebx + 1]
push ecx
call fcn.00426317
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.0042779a
add esp, 0x14
cmp eax, 1
je 0x421dfe
push edi
call fcn.00426f68
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x421d13
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421df2
jmp 0x421cfe
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x421e2c
jmp 0x421e10
mov dl, byte [eax]
cmp dl, 0xd
jne 0x421e23
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x421e27
jmp 0x421e26
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x421e10
push 0
mov byte [ecx], 0
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.00426f68
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 4

Function at 0x4267a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450398]
jne 0x4267ad
repz ret
jmp fcn.0042c75b
Function at 0x43ca9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450398]
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.004307da
and dword [ebp - 0x14], 0
cmp dword [0x452b90], 0
mov dword [ebp - 0x18], eax
jne 0x43cb4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43cbf6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x43cbf6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x452b90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x452b94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x452b98], eax
call edi
push eax
call esi
mov dword [0x452ba0], eax
test eax, eax
je 0x43cb4e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x452b9c], eax
mov eax, dword [0x452b9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43cba7
cmp dword [0x452ba0], ecx
je 0x43cba7
push eax
call esi
push dword [0x452ba0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43cba7
test ebx, ebx
je 0x43cba7
call edi
test eax, eax
je 0x43cb9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43cb9e
test byte [ebp - 8], 1
jne 0x43cba7
or dword [ebp + 0x10], 0x200000
jmp 0x43cbda
mov eax, dword [0x452b94]
cmp eax, dword [ebp - 0x18]
je 0x43cbda
push eax
call esi
test eax, eax
je 0x43cbda
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43cbda
mov eax, dword [0x452b98]
cmp eax, dword [ebp - 0x18]
je 0x43cbda
push eax
call esi
test eax, eax
je 0x43cbda
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x452b90]
call esi
test eax, eax
je 0x43cbf6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43cbf8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004267a3
leave
ret
Function at 0x40563b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
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.00402fd6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405796
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405796
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405747
cmp dword [0x40b7e8], ecx
je 0x405747
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405747
test ebx, ebx
je 0x405747
call edi
test eax, eax
je 0x40573e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40573e
test byte [ebp - 8], 1
jne 0x405747
or dword [ebp + 0x10], 0x200000
jmp 0x40577a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40577a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405796
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040239a
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x43590c74
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x57677ceb
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219