joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41012b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410159
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x410160
cmp ebx, dword [eax + 4]
jae 0x410160
xor eax, eax
jmp 0x410350
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410171
xor eax, eax
inc eax
jmp 0x41034f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410187
cmp ecx, edx
jae 0x4102cc
cmp dword [eax + 4], 0
je 0x410190
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410178
cmp dword [ebp + 8], 0
je 0x4101b2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4102cc
cmp eax, esi
jae 0x4102cc
mov eax, dword [0x4160e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4101d7
cmp dword [esi*4 + 0x4160f0], edi
je 0x4102d0
inc esi
cmp esi, eax
jl 0x4101c5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41034c
cmp dword [ebp - 8], 0x1000000
jne 0x41034c
test byte [ebp - 0xc], 0xcc
je 0x410255
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41034c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41034c
cmp word [eax + 0x18], 0x10b
jne 0x41034c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41034c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410255
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410255
test byte [ecx + 0x27], 0x80
jne 0x4102cc
push 1
push 0x416130
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410169
mov ecx, dword [0x4160e8]
test ecx, ecx
mov edx, ecx
jle 0x410289
lea eax, [ecx*4 + 0x4160ec]
cmp dword [eax], edi
je 0x410289
dec edx
sub eax, 4
test edx, edx
jg 0x41027d
test edx, edx
jne 0x4102ba
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410296
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4102ae
lea eax, [edx*4 + 0x4160f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41029c
cmp ecx, 0x10
jge 0x4102ba
inc ecx
mov dword [0x4160e8], ecx
push 0
push 0x416130
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410169
xor eax, eax
jmp 0x41034f
test esi, esi
jle 0x410169
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x416130
call ebx
test eax, eax
jne 0x410169
cmp dword [esi*4 + 0x4160f0], edi
je 0x410326
mov eax, dword [0x4160e8]
lea esi, [eax - 1]
test esi, esi
jl 0x410314
cmp dword [esi*4 + 0x4160f0], edi
je 0x410310
dec esi
jns 0x410304
test esi, esi
jge 0x410324
cmp eax, 0x10
jge 0x41031f
inc eax
mov dword [0x4160e8], eax
lea esi, [eax - 1]
jmp 0x410326
je 0x41033e
xor ecx, ecx
test esi, esi
jl 0x41033e
lea eax, [ecx*4 + 0x4160f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41032c
push 0
push 0x416130
call ebx
jmp 0x410169
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41072b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41613c], ebx
push esi
push edi
jne 0x4107ab
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4107e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413a3c
push edi
call esi
test eax, eax
mov dword [0x41613c], eax
je 0x4107e6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416140], eax
call esi
cmp dword [0x415f24], 2
mov dword [0x416144], eax
jne 0x4107ab
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41614c], eax
je 0x4107ab
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416148], eax
mov eax, dword [0x416148]
test eax, eax
je 0x4107f0
call eax
test eax, eax
je 0x4107d7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41614c]
test eax, eax
je 0x4107d7
test byte [ebp - 8], 1
jne 0x4107f0
cmp dword [0x415f30], 4
jb 0x4107ea
or byte [ebp + 0x12], 0x20
jmp 0x41080f
xor eax, eax
jmp 0x41081f
or byte [ebp + 0x12], 4
jmp 0x41080f
mov eax, dword [0x416140]
test eax, eax
je 0x41080f
call eax
mov ebx, eax
test ebx, ebx
je 0x41080f
mov eax, dword [0x416144]
test eax, eax
je 0x41080f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41613c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410d73
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d2a0
mov eax, dword [0x4150b4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040f509
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x410ea6
push 2
push esi
push dword [ebp + 8]
call fcn.0040f509
add esp, 0xc
cmp eax, ebx
je 0x410ea6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410e46
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040ee20
push 0x8000
push dword [ebp + 8]
call fcn.004110f1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x410dfc
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040f628
add esp, 0xc
cmp eax, 0xffffffff
je 0x410e1c
sub edi, eax
test edi, edi
jg 0x410df4
jmp 0x410e34
call fcn.0040a76f
cmp dword [eax], 5
jne 0x410e31
call fcn.0040a766
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004110f1
pop ecx
pop ecx
jmp 0x410e8e
jge 0x410e8e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f509
push dword [ebp + 8]
call fcn.0040fd55
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x410e8e
call fcn.0040a766
mov dword [eax], 0xd
call fcn.0040a76f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040f509
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410ea8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00409941
leave
ret
Function at 0x410eb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x411088
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4164c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x411088
test cl, 0x48
je 0x410f1f
cmp byte [eax + 5], 0xa
je 0x410f1f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x410f59
call fcn.0040a766
mov dword [eax], 9
call fcn.0040a76f
mov dword [eax], esi
jmp 0x410f69
cmp eax, 0x6d
je 0x411088
push eax
call fcn.0040a778
pop ecx
or eax, 0xffffffff
jmp 0x41108a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x411083
test eax, eax
je 0x410f98
cmp byte [ebx], 0xa
jne 0x410f98
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x410fa1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41107d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41106d
cmp al, 0xd
je 0x410fd3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41105f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x410fed
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x410fe8
add dword [ebp + 0x10], 2
jmp 0x411041
mov dword [ebp + 0x10], eax
jmp 0x41105b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411015
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41105b
cmp dword [ebp - 0xc], 0
je 0x41105b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x411036
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x411041
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41105e
cmp ebx, dword [ebp + 0xc]
jne 0x411046
cmp byte [ebp - 1], 0xa
jne 0x411046
mov byte [ebx], 0xa
jmp 0x41105e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f509
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41105f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x410fb7
jmp 0x41107d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41107d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41108a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0
mov dword [ebp - 0x38], ebx
call esi
mov edi, eax
push 1
mov dword [ebp - 0x28], edi
call esi
mov dword [ebp - 0x30], eax
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push esi
push edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.GDI32.dll_SelectObject]
xor esi, esi
cmp dword [ebp - 0x28], esi
jle 0x40119b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
nop dword [eax + eax]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
test eax, eax
jle 0x40118d
lea eax, [esi + 2]
lea ecx, [eax + 0x62]
add eax, 0x60
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
nop dword [eax]
mov dword [ebp - 0x10], ebx
add ebx, 2
push 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ecx
lea eax, [ebx + 0x62]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 2]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x60]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [ebp - 0x18], eax
call ebx
and eax, 0x800000ff
jns 0x4010fc
dec eax
or eax, 0xffffff00
inc eax
movzx edi, al
shl edi, 8
call ebx
and eax, 0x800000ff
jns 0x401112
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, al
or ebx, edi
shl ebx, 8
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x40112e
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
or eax, ebx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
lea eax, [ebp - 0x24]
push edi
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
push 0xcc0020
push ebx
push esi
push edi
push 0x64
push 0x64
push ebx
push esi
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
add ebx, 0x64
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x34], ebx
cmp ebx, eax
jl 0x4010a0
mov ecx, dword [ebp - 0x28]
add esi, 0x64
cmp esi, ecx
jl 0x401080
mov ebx, dword [ebp - 0x38]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
jmp 0x401048
Function at 0x4010a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42d364
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4010e5
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esi + 0xbfacc], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
mov dword [esi + 0xbfabc], eax
jne 0x4010ec
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x10
ret
mov edx, dword [esi + 0xbfacc]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbfabc]
cmp byte [eax], 0x24
jne 0x40112a
mov ecx, dword [esi + 0xbfacc]
sub ecx, 0x10
push ecx
add eax, 0x10
push eax
call fcn.0041df20
add esp, 8
mov eax, 1
pop edi
add esp, 0x10
ret

Function at 0x401140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42d370
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x401185
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esi + 0xbfac8], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
mov dword [esi + 0xbfab8], eax
jne 0x40118c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x10
ret
mov edx, dword [esi + 0xbfac8]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbfab8]
cmp byte [eax], 0x24
jne 0x4011ca
mov ecx, dword [esi + 0xbfac8]
sub ecx, 0x10
push ecx
add eax, 0x10
push eax
call fcn.0041df20
add esp, 8
mov eax, 1
pop edi
add esp, 0x10
ret

Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42d378
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x401225
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esi + 0xbfac0], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
mov dword [esi + 0xbfab0], eax
jne 0x40122c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x10
ret
mov edx, dword [esi + 0xbfac0]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbfab0]
cmp byte [eax], 0x24
jne 0x40126a
mov ecx, dword [esi + 0xbfac0]
sub ecx, 0x10
push ecx
add eax, 0x10
push eax
call fcn.0041df20
add esp, 8
mov eax, 1
pop edi
add esp, 0x10
pushal
call fcn.0042be83
popal
ret
Function at 0x401280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42d384
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4012c5
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esi + 0xbfac4], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
mov dword [esi + 0xbfab4], eax
jne 0x4012cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x10
ret
mov edx, dword [esi + 0xbfac4]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbfab4]
cmp byte [eax], 0x24
jne 0x40130a
mov ecx, dword [esi + 0xbfac4]
sub ecx, 0x10
push ecx
add eax, 0x10
push eax
call fcn.0041df20
add esp, 8
mov eax, 1
pop edi
add esp, 0x10
push ax
call fcn.0042b7c6
pop ax
ret

Function at 0x402750
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push edi
push eax
lea eax, [esp + 0x18]
push 0x42d44c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
jne 0x4027c6
lea eax, [esp + 0x14]
push eax
push 0x42d454
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
push 0x114
push 0
push esi
call fcn.00422b50
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 0x14
test eax, eax
mov dword [esi + 0xc8], eax
jne 0x402823
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 0x42d46c
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x120
ret
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 4]
mov eax, dword [esi + 0xc8]
je 0x402878
push eax
call dword [sym.imp.PAL.dll_PalMemoryFree]
lea ecx, [esp + 0x18]
push ecx
push 0x42d488
push 0
push 0
mov dword [esi + 0xc8], 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x14
jmp 0x4028aa
mov edx, dword [esp + 0x12c]
mov dword [esi], edx
mov dword [esi + 0xcc], ecx
mov dword [esi + 4], 1
mov ecx, dword [eax + ecx - 4]
mov dword [esi + 0xd0], ecx
cmp dword [ecx + eax], 0xfc
jne 0x4028aa
push esi
call fcn.00402090
add esp, 4
mov ecx, dword [esp + 0x120]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x120
ret
Function at 0x402a10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 8]
push eax
push 0x42d524
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x402a5c
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 4], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x402a63
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x10
ret
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 4]
jne 0x402a5c
mov ecx, dword [esi]
cmp dword [ecx], 0x30327653
jne 0x402a5c
add dword [esi + 8], 8
mov eax, dword [esi + 8]
mov ecx, dword [eax + ecx]
add eax, 4
mov edx, ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 8], edx
mov eax, 1
pop edi
add esp, 0x10
ret

Function at 0x4032d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, eax
test esi, 0x10000000
je 0x40330d
call dword [sym.imp.PAL.dll_PalTaskGetSubTaskData]
and esi, 0xefffffff
imul esi, esi, 0xff
lea eax, [esi + eax + 0xc5528]
lea edx, [edi + 4]
mov dword [edi], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4032ff
pop esi
ret
mov eax, dword [edx + 0x14]
push ebx
lea ebx, [esi + ecx]
cmp eax, ebx
pop ebx
jae 0x40331c
sub eax, esi
xchg ecx, eax
jmp 0x42b730
mov eax, dword [edx + 4]
push ecx
add eax, esi
push eax
push edi
call fcn.00423750
add esp, 0xc
Function at 0x403750
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x160
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
xor eax, eax
push esi
push 0x436f38
push 0x437244
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push 0x42d614
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x68]
push ecx
call fcn.0041e370
add esp, 0x14
cmp eax, 1
jne 0x4037cb
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x160
ret
xor eax, eax
push 0x7f00
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], 0x437140
mov dword [esp + 0x18], 0x4034b0
mov dword [esp + 0x14], 3
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 5
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0x1e
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4037b1
push 0x96
lea eax, [esp + 0x54]
push 0x12c
push eax
call dword [sym.imp.PAL.dll_PalWindowGetPosCenter]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
add esp, 0xc
push 0
push edi
push 0
push 0
push 0x96
push 0x12c
push ecx
push edx
push 0x400000
push 0x437140
push 0x437140
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x4037b1
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea ebx, [ebx]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
je 0x4038d0
lea ecx, [esp + 0x34]
push ecx
push esi
call ebp
test eax, eax
jne 0x4038d0
cmp dword [esp + 0x38], 0x12
je 0x40390e
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4038d0
push edi
push 0x437140
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov ecx, dword [esp + 0x164]
mov eax, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041eaa8
add esp, 0x160
ret