joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43527d
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push dword [0x50c02c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x435291
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push eax
push dword [0x50c02c]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret

Function at 0x4352a7
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4d1fd2
call fcn.00492ff0
push ecx
push ebx
push esi
push edi
push 1
mov esi, ecx
pop edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4db018
mov dword [esi + 4], edi
mov eax, dword [0x507494]
and dword [ebp - 4], 0
lea ebx, [esi + 0x18]
mov dword [ebx], eax
mov eax, dword [0x507494]
mov dword [esi + 0x1c], eax
push 0x258
lea eax, [esi + 0x48]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.00493250
and dword [esi + 8], 0
and dword [esi + 0x14], 0
add esp, 0xc
mov dword [esi], 0x4db634
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
cmp dword [0x50c03c], 2
jg 0x435323
push str.windib
mov ecx, ebx
call fcn.004bc165
push str.dsound
jmp 0x435334
push 0x5016a0
mov ecx, ebx
call fcn.004bc165
push str.winmm
lea ecx, [esi + 0x1c]
call fcn.004bc165
mov ecx, dword [ebp - 0xc]
xor eax, eax
or dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x28], 0x64
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43538e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d1ff4
call fcn.00492ff0
sub esp, 0xc
mov eax, dword [0x50c030]
push esi
mov esi, ecx
cmp dword [eax - 8], 0
je 0x4354af
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4354af
mov eax, dword [0x507494]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x4353e2
or esi, 0xffffffff
jmp 0x43549f
mov eax, dword [0x507494]
push edi
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x60], 0
mov byte [ebp - 4], 1
mov edi, 0x4f78b8
je 0x435426
push str.__play_window
lea ecx, [ebp - 0x10]
call fcn.004bc3bf
mov eax, dword [esi + 0x60]
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004b5f69
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bc3fb
push str.__callback_context
lea ecx, [ebp - 0x10]
call fcn.004bc3bf
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004b5f69
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bc3fb
mov eax, dword [0x507494]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [0x50c030]
push str.CMD__C____s___s_
push eax
call fcn.004b5f69
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004bbfce
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bbfce
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bbfce
mov eax, esi
jmp 0x4354b2
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4353a0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d1ff4
call fcn.00492ff0
sub esp, 0xc
mov eax, dword [0x50c030]
push esi
mov esi, ecx
cmp dword [eax - 8], 0
je 0x4354af
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4354af
mov eax, dword [0x507494]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x4353e2
or esi, 0xffffffff
jmp 0x43549f
mov eax, dword [0x507494]
push edi
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x60], 0
mov byte [ebp - 4], 1
mov edi, 0x4f78b8
je 0x435426
push str.__play_window
lea ecx, [ebp - 0x10]
call fcn.004bc3bf
mov eax, dword [esi + 0x60]
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004b5f69
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bc3fb
push str.__callback_context
lea ecx, [ebp - 0x10]
call fcn.004bc3bf
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004b5f69
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004bc3fb
mov eax, dword [0x507494]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [0x50c030]
push str.CMD__C____s___s_
push eax
call fcn.004b5f69
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004bbfce
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bbfce
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004bbfce
mov eax, esi
jmp 0x4354b2
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x436023
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d204c
call fcn.00492ff0
push ecx
push ecx
mov eax, dword [0x50c02c]
push esi
mov esi, ecx
cmp dword [eax - 8], 0
je 0x4360e9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4360e9
mov eax, dword [0x507494]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x436073
or esi, 0xffffffff
jmp 0x4360d9
mov eax, dword [0x507494]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
je 0x4360a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [0x50c02c]
push str.CMD__C____s___s____s__
push eax
call fcn.004b5f69
add esp, 0x14
jmp 0x4360be
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push dword [0x50c02c]
push str.CMD__C____s___s_
push eax
call fcn.004b5f69
add esp, 0x10
push dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
call dword [eax + 4]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004bbfce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004bbfce
mov eax, esi
jmp 0x4360ec
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x43626c
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4d2084
call fcn.00492ff0
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4362a9
lea eax, [ebp + 8]
push ebx
push eax
call fcn.00419516
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.004bbfce
lea eax, [ebp - 0x10]
push eax
call fcn.0041b674
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0041878e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004bbfce
push ebx
lea ecx, [esi + 0xc]
call fcn.004bc165
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x20]
lea ecx, [esi + 8]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.00436023
test eax, eax
je 0x4362fc
mov esi, eax
jmp 0x436334
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x20]
call dword [eax + 0x14]
test eax, eax
je 0x436316
or esi, 0xffffffff
jmp 0x436334
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x43632b
push ebx
call fcn.0041961e
mov dword [edi + 0x18], eax
pop ecx
mov dword [edi + 0x1c], edx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004187fb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x439410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d2488
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
push esi
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x439492
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4394b7
push ebp
push eax
lea ecx, [esp + 0x18]
call fcn.0043e1f0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.004395c0
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x34], 0xffffffff
call fcn.0043e240
mov al, bl
jmp 0x4394b9
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x4420e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.0043ab40
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x442112
mov dword [esp + 0x2c], 0
jmp 0x44212d
mov ecx, ebp
call fcn.0043ab40
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.0043ab40
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.0043ab50
cmp eax, esi
jae 0x44216d
mov ecx, ebp
call fcn.0043ab50
mov dword [esp + 0x10], eax
jmp 0x442171
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.0043a970
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4421dd
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4421d8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0043af20
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4421cb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0043b390
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x442198
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x442186
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4487f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x448820
push esi
call fcn.00448cf0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x448819
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4488a3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x44888f
mov eax, dword [esi + 8]
test eax, eax
je 0x448844
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44888b
cmp eax, 2
je 0x44888f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x448837
cmp eax, 3
je 0x44886a
cmp eax, 1
jne 0x448837
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x448837
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x448837
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004488d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4488c3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004488d0
add esp, 4
pop esi
ret
Function at 0x470770
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x47078a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x47078a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x494326
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x494346
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049723e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x494369
test byte [esp + 8], 2
je 0x494369
call fcn.004972b1
mov dword [eax], 0xd
call fcn.004972ba
mov dword [eax], 5
jmp 0x494342
xor eax, eax
ret
Function at 0x4b5020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00493320
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b50eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4b50eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b509e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b50a9
or bh, 8
and edi, 0x8000000
je 0x4b50c4
mov eax, dword [0x51013c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4b50eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b54c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b54eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4b550f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4b552a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b933e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b9376
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bc48c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bc463
jmp 0x4b9382
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4bac86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bacc8
call fcn.004cb63f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4bacc8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bacbf
xor eax, eax
jmp 0x4bacd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bacd6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c2abc
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4d4070
call fcn.00492ff0
push ecx
push ecx
push esi
push 0x10
call fcn.004b8458
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4c2b09
mov ecx, esi
call fcn.004bdce8
mov eax, dword [0x507494]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004bc165
jmp 0x4c2b0b
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4f0f88
push eax
mov dword [ebp - 0x10], esi
call fcn.0049464f
pop esi
Function at 0x4049c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4049df
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404a8b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x404a8b
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x404a17
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x404a82
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x404a82
movzx eax, word [esi + 0x46]
test ax, ax
je 0x404a82
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.0042c60b
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x404a5e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x406a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x406a8e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x406b6d
mov esi, edx
shr esi, 3
push edi
jmp 0x406ab0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4450e0]
add ecx, 8
sub edx, 8
dec esi
jne 0x406ab0
pop edi
test edx, edx
je 0x406b8a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4450e0]
inc ecx
dec edx
jne 0x406b71
not eax
pop esi
pop ebp
ret

Function at 0x406b90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4450e0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4450e0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x406be0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4450e0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4450e0]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x419380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eacb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45ae20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x44637c
call fcn.0042aa09
push 4
mov dword [ebp - 4], 0
call fcn.0042cde1
mov edi, eax
add esp, 4
test edi, edi
je 0x419400
call fcn.0042a6c7
mov dword [edi], eax
call fcn.0042a486
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042a3bb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4193f6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042a3e3
jmp 0x419402
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