joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446238
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
sub esp, 8
mov dword [esi], vtable.TrButton.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x54], 0
push edx
push 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x28], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], edx
call fcn.00401f20
mov eax, dword [esi + 0x40]
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44631d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x58], 0xf
mov dword [edi + 0x54], 0
mov byte [edi + 0x44], 0
lea ebx, [edi + 0x5c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [edi + 0x88], 0xf
mov dword [edi + 0x84], 0
mov byte [edi + 0x74], 0
mov dword [edi + 0xa0], 0xf
mov dword [edi + 0x9c], 0
mov byte [edi + 0x8c], 0
mov byte [ebp - 4], 3
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
call fcn.004035a0
mov dword [edi + 0xa4], eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x8c]
push 0
push 0x450622
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00401710
lea esi, [edi + 0x74]
cmp esi, eax
je 0x402916
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401390
cmp ebx, esi
je 0x402926
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00401390
lea ecx, [edi + 0x44]
cmp ecx, ebx
je 0x402937
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401390
mov eax, edi
mov dword [edi + 0x40], 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 8
Function at 0x408ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408af9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408b34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408b30
lea ebx, [ebx]
cmp esi, edx
jae 0x408b34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408b20
cmp esi, edx
jb 0x408b3b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, edx
mov dword [eax], 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
movzx ecx, di
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409c8b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409c82
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0042ee20
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x409d0a
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x409d0c
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d40
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446998
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x453060
mov esi, eax
push 0xa7
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x409e83
sub esp, 0xc
lea ecx, [ebp - 0x1c]
mov edx, 0xa7
call fcn.00403620
add esp, 0xc
push eax
mov edx, 0x451e28
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
call fcn.00402d90
add esp, 4
push 0x451e18
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004010d0
add esp, 4
push 0x453060
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004010d0
add esp, 4
push edi
push 0x451e10
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409e0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409e2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409e4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x409e6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push ebx
push 0
push 4
push 0
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov edi, eax
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push dword [ebp - 0x1c]
mov esi, eax
push esi
call fcn.0042ee20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x18]
call esi
mov eax, 1
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 0x40a950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446af3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TrImage.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0040b080
mov dword [esi + 0x40], eax
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40c040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446c18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45a4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
push str.iPlayerSetup
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040f650
mov esi, eax
cmp dword [esi + 0x28], 0
je 0x40c0b1
mov esi, 1
jmp 0x40c1b4
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 2
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x34], 1
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c0ff
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x18
mov dword [esi + 0xc], eax
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x23
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.89_0D_00_04_D2_00_DD_D8_D9_44_24_74
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x11
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.DD_D8_D9_44_24_74
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x11
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.DD_D8_D9_44_24_74
mov byte [ecx], 0
call fcn.00401710
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.004026f0
push dword [esi + 0xc]
lea eax, [esi + 0x74]
push ecx
push 0xd20000
push eax
call fcn.00402960
sub esp, 0x10
lea eax, [ebp - 0x28]
push 1
push ecx
push 1
push eax
mov ecx, edi
call fcn.0040e4c0
mov esi, eax
test esi, esi
je 0x40c1b4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
jb 0x40c1c5
push dword [ebp - 0x28]
call fcn.0042d411
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.0042d416
mov esp, ebp
pop ebp
ret
Function at 0x40c880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446c18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45a4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xb
push 0x45222c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040f650
mov esi, eax
cmp dword [esi + 0x28], 0
je 0x40c8f1
mov esi, 1
jmp 0x40c9f4
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 2
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x34], 1
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c93f
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x18
mov dword [esi + 0xc], eax
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x2c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.85_C0_75_09_8B_73_10_89_35_00_04_1C_03_8B_13
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.85_C0_75_03_8B_73_10_8B_13
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.85_C0_75_03_8B_73_10_8B_13
mov byte [ecx], 0
call fcn.00401710
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.004026f0
push dword [esi + 0xc]
lea eax, [esi + 0x74]
push ecx
push 0x31c0000
push eax
call fcn.00402960
sub esp, 0x10
lea eax, [ebp - 0x28]
push 1
push ecx
push 1
push eax
mov ecx, edi
call fcn.0040e4c0
mov esi, eax
test esi, esi
je 0x40c9f4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
jb 0x40ca05
push dword [ebp - 0x28]
call fcn.0042d411
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.0042d416
mov esp, ebp
pop ebp
ret
Function at 0x413aa0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447818
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45a4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x18], 0
call fcn.00401240
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add esi, 0xfffffff0
or eax, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x413b0a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x413b32
mov ecx, dword [ebp + 8]
push str.Error:_Ini_File_Not_Exist
call fcn.004037e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
mov eax, 0x104
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041667e
add esp, 4
mov esi, eax
call fcn.00401c40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x413b6e
push 0x80004005
call fcn.004019f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 4], 0
push dword [edi]
push 0x104
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi]
push 0x104
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x103
jb 0x413c37
mov edi, 0x104
nop
mov eax, ebx
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x413bea
test dx, dx
je 0x413be6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x413bea
add ecx, 4
add eax, 4
test dx, dx
jne 0x413bc4
xor eax, eax
jmp 0x413bef
sbb eax, eax
or eax, 1
test eax, eax
je 0x413c37
push esi
call fcn.0042dce4
add edi, 0x104
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041667e
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax]
push edi
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x413bc0
test esi, esi
jne 0x413c3f
xor ecx, ecx
jmp 0x413c53
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413c44
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004087b0
push esi
call fcn.0042dce4
mov esi, dword [ebp - 0x10]
add esp, 4
add esi, 0xfffffff0
mov ecx, esi
call fcn.00401240
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413c99
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x441b31
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a4b8]
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.00431aad
mov dword [ebp - 0x14], eax
cmp dword [0x45d6ec], esi
jne 0x441c24
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x441bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x441d04
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x441d04
push 0x450320
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x441d04
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45d6ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45d6f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45d6f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45d6fc], eax
test eax, eax
je 0x441c21
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45d6f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x441c49
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x441c3c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x441c5e
push 4
pop eax
jmp 0x441d06
cmp dword [ebp - 0x14], esi
je 0x441c5e
push dword [0x45d6ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x441c43
mov eax, dword [0x45d6f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x441cbc
cmp dword [0x45d6fc], edi
je 0x441cbc
push eax
call ebx
push dword [0x45d6fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x441cbc
test eax, eax
je 0x441cbc
call ecx
test eax, eax
je 0x441cb1
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 0x441cb1
test byte [ebp - 8], 1
jne 0x441cbc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x441cec
mov eax, dword [0x45d6f0]
cmp eax, edi
je 0x441ce9
push eax
call ebx
test eax, eax
je 0x441ce9
call eax
mov esi, eax
test esi, esi
je 0x441ce9
mov eax, dword [0x45d6f4]
cmp eax, edi
je 0x441ce9
push eax
call ebx
test eax, eax
je 0x441ce9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45d6ec]
call ebx
test eax, eax
je 0x441d04
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x441d06
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d416
mov esp, ebp
pop ebp
ret
Function at 0x45ba9c
Capabilities:
Encode data using xor

Disassembly:
bt esp, edx
not al
cmp dh, bl
pushfd
mov byte [esp], dl
neg al
cmc
push dword [esp + 4]
xor al, 0x60
pushfd
mov byte [esp + 4], 1
clc
pushfd
mov byte [ecx], al
stc
add ecx, 1
mov byte [esp + 8], dl
test ah, ah
push edx
call fcn.0045c90e
add byte [eax], al
push ebx
je 0x45bb27
imul ebp, dword [esi + 0x64], 0x6554776f
js 0x45bb4d
inc ecx
add byte [ebx - 0x713b7dc], cl
cmp edx, dword [esi]
jl 0x45ba70
movsd dword es:[edi], dword [esi]
jge 0x45ba71
movsb byte es:[edi], byte [esi]
xchg ebx, eax
mov ecx, 0x5ac16ce1
push 0xb1c63942
or byte [ebx], dl
lodsb al, byte [esi]
or al, 0xf2
sbb dword [edx - 0x7f971b82], 0x78145c38
shl dword [esi], 1
invalid
xor al, byte [ecx]
lea esp, [ebp - 0x35]
clc
sbb al, 0x45
sbb al, 0xa4
add al, byte [ebp - 0x4f27bd1d]
sbb ah, byte [esi]
inc ecx
invalid
dec edi
jnp 0x45bbb8
and ebp, dword [edi]
xor al, dh
mov al, byte [0x8a29d480]
xchg ecx, eax
stosd dword es:[edi], eax
push ecx
mov cl, 0x22
cmp al, byte [edi]
xor al, 0x98
pop eax
jl 0x45bb29
fsubr qword [ecx + 0x3b55b468]
out 0x63, eax
sti
or byte [eax], bl
dec edi
xor byte [esi], ch
adc dl, byte [ebp + edi*2 + 0x7fdfc5ca]
lahf
mov bh, 0x17
imul ebp
test byte [ebx - 0x2f], dh
dec ebx
stosb byte es:[edi], al
pop es
pop ebx
inc esi
sal byte [ebp + eax - 0x74d2552b], 1
das
and ch, 0xe0
das
fstp dword es:[eax + 0x39]
adc byte [edx - 0x642cc42a], al
sub ecx, dword [edi + 0x4fae5db1]
lds ebx, [ebp + eax*4 + 0x5c]
les ecx, [eax]
xor al, byte [esi]
call 0xfede766c
push ecx
mov bh, 0xa
scasd eax, dword es:[edi]
pop esp
cli
lcall 0x3752, 0xbf6dca7d
push eax
cmp eax, dword [esi + 0x28]
jp 0x45bb9f
invalid
jge 0x45bb84
insd dword es:[edi], dx
mov edi, 0x3b503752
inc esi
sub byte [edx - 0x25], bh
jge 0x45bb50
cmpsd dword [esi], dword es:[edi]
les edx, [eax + 0x1f887fa6]
sub eax, 0x67c39f07
mov edi, 0xfbe057bf
retf