joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489110
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x489144
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x5c3150]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x489120
pop edi
pop esi
pop ebx
ret

Function at 0x4a6cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4a6cf1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4a6ce0
pop esi
pop ebx
ret

Function at 0x4a84d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4a84f4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4a85ba
mov esi, esi
xor eax, eax
push 0x4a859b
push ebp
push 0x414120
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040cdb0
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x577388
call fcn.004343d0
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004a8750
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004a87c0
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004a8830
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4a8590
cmp dword [ebp - 4], 0
je 0x4a8590
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4a85ba
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x4b0eb8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x4b0f66
mov esi, esi
xor eax, eax
push 0x4b0f47
push ebp
push 0x414120
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x4b0f1c
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00432530
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4b0f3c
cmp dword [ebp - 8], 0
je 0x4b0f3c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4b0f66
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2bd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4b2c04
mov eax, esi
call fcn.004b7150
cmp byte [esi + 0x40], 0
je 0x4b2bfc
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4b2cb5
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4b2c94
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4b2c8c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b2c38
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4b2c50
xor bl, bl
jmp 0x4b2cb5
cmp edi, 2
je 0x4b2c8a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b2c28
cmp edi, 3
je 0x4b2c68
cmp edi, 1
jne 0x4b2c28
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4b2c28
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4b2c28
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4b2cac
cmp dword [esi + 0x14], 0xcc
je 0x4b2cac
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004b2ff0
lea esi, [esi]
mov eax, esi
call fcn.004b2cc0
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4cf730
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x24], 0
je 0x4cf778
mov eax, dword [0x5550c0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
jne 0x4cf778
mov eax, dword [0x5550c0]
cmp byte [eax + 0x11c], 0
jne 0x4cf778
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
nop
mov ebx, dword [ebp - 4]
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x4cf86e
mov eax, dword [0x5550c0]
cmp byte [eax + 0x11c], 0
jne 0x4cf86e
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0053df10
mov eax, dword [0x5550c0]
cmp dword [eax + 0x170], 0
je 0x4cf834
push 0x10
push 0
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
call fcn.004eec60
test al, al
je 0x4cf834
push 0
mov eax, dword [0x5550c0]
call fcn.00420320
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5550c0]
call fcn.00423520
jmp 0x4cf904
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4cf8c2
mov eax, dword [ebp - 4]
mov edx, dword [0x5550c0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x4cf8c2
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5550c0]
call fcn.00423520
jmp 0x4cf904
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4cf904
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x4cf904
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x4cf9e0
mov eax, dword [0x5550c0]
cmp byte [eax + 0x11c], 0
jne 0x4cf9e0
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x5550c0]
cmp dword [eax + 0x170], 0
je 0x4cf9d4
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
call fcn.004eec60
test al, al
je 0x4cf9d4
mov eax, dword [0x5550c0]
mov eax, dword [eax + 0x170]
mov edx, dword [0x5550c0]
mov edx, dword [edx + 0x170]
mov edx, dword [edx]
call dword [edx + 0x344]
test al, al
je 0x4cf9cc
push 8
mov eax, dword [0x5550c0]
call fcn.00420320
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
call fcn.0053dfe0
lea esi, [esi]
mov eax, dword [0x5550c0]
call fcn.00423560
jmp 0x4cfa44
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4cfa09
mov eax, dword [ebp - 4]
mov edx, dword [0x5550c0]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x4cfa09
mov eax, dword [0x5550c0]
call fcn.00423560
jmp 0x4cfa44
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4cfa44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x4cfa44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [0x5554a0]
mov edx, dword [0x5554a0]
mov edx, dword [edx]
call dword [edx + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d5000
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.004d37a0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00412cb0
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x5c12d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4d5058
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x4d50d4
or dword [ebp - 0x30], 0x800
cmp dword [0x56e490], 6
jb 0x4d50ac
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4d6170
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
je 0x4d6208
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jle 0x4d6208
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004d6150
push ebp
push 0x413da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004d6150
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d68b0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004d6890
push ebp
push 0x413da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4d697c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00463c80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.00463bd0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00464390
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00465840
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4d69d3
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004d6870
push ebp
push 0x413da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004d6870
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004d6890
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff0f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x4ff118
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x4ff1ce
mov esi, esi
xor eax, eax
push 0x4ff1af
push ebp
push 0x414120
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040cdb0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4ff1a4
cmp dword [ebp - 8], 0
je 0x4ff1a4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x4ff1ce
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53e330
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0053e310
push ebp
push 0x413da0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a630
cmp dword [ebp - 0xc], 0
jle 0x53e398
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x53e38c
mov eax, 0x5c12f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a630
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040ad70
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x53e3c1
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x53e3cd
mov eax, 0x5c12f0
call fcn.0042ac10
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0053e310
mov esp, ebp
pop ebp
ret
Function at 0x53f750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edx, 0x5b7a78
call fcn.0040e4c0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0053f740
push ebp
push 0x413da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
add eax, 0x34
xor edx, edx
call fcn.004088b0
mov eax, dword [ebp - 0xc]
mov edx, fcn.004d37a0
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.00409200
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.004088b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0053da40
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0053fdc0
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
jne 0x53f86c
mov eax, dword [ebp - 4]
call fcn.004f3750
test al, al
jne 0x53f86c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0053f740
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push esi
push edi
push 0x4322a0
call fcn.00401280
push eax
call fcn.0041c738
add esp, 8
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004013e0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.004020e0
mov al, byte [ebp + 0x10]
add esp, 8
cmp al, 2
jne 0x4023bc
push esi
push 3
push 1
push 0x44965c
call fcn.0041c600
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00404ca0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 0x18
test eax, eax
jle 0x4023b1
push esi
dec eax
push eax
push 1
push edi
call fcn.0041c600
add esp, 0x10
push edi
call fcn.0041bdc3
add esp, 4
jmp 0x402415
cmp al, 1
je 0x402415
test al, al
jne 0x4023e7
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404c60
mov edx, dword [ebp - 0x18]
push esi
push edx
mov edi, eax
push 1
push edi
call fcn.0041c600
push edi
call fcn.0041bdc3
add esp, 0x18
jmp 0x402415
cmp al, 3
jne 0x402415
push esi
push 2
push 1
push 0x449658
call fcn.0041c600
mov eax, dword [ebp - 0x18]
add esp, 0x10
push esi
push eax
push 2
lea ecx, [ebp - 0x1c]
call fcn.00401280
push eax
call fcn.0041c600
add esp, 0x10
push esi
call fcn.0041c435
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.004058f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4037f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x43235c
call fcn.00401280
push eax
call fcn.0041c738
push 2
mov ebx, eax
push 0
push ebx
call fcn.0041d102
push ebx
call fcn.0041d013
push 0
push 0
push ebx
mov esi, eax
call fcn.0041d102
push esi
call fcn.0041bdfd
push ebx
push 1
mov edi, eax
push esi
push edi
call fcn.0041ce62
add esp, 0x38
mov byte [ebp - 0xd], 0
cmp esi, 2
jb 0x40389a
mov ax, word [0x449658]
cmp al, byte [edi]
jne 0x403872
cmp ah, byte [edi + 1]
jne 0x403872
mov byte [ebp - 0xd], 3
jmp 0x40389a
cmp esi, 3
jb 0x40389a
mov al, byte [0x44965c]
cmp al, byte [edi]
jne 0x40389a
mov cl, byte [0x44965d]
cmp cl, byte [edi + 1]
jne 0x40389a
mov dl, byte [0x44965e]
cmp dl, byte [edi + 2]
jne 0x40389a
mov byte [ebp - 0xd], 2
lea ecx, [ebp - 0x1c]
call fcn.004013e0
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0
cmp al, 2
jne 0x4038c3
push 0xfde9
lea eax, [ebp - 0x1c]
push eax
add esi, 0xfffffffd
push esi
lea ecx, [edi + 3]
push ecx
jmp 0x4038fa
cmp al, 3
jne 0x4038ee
add esi, 0xfffffffe
shr esi, 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401f10
mov ecx, dword [ebp - 0x1c]
lea edx, [esi + esi]
push edx
lea eax, [edi + 2]
push eax
push ecx
call fcn.0041b2b0
add esp, 0xc
mov dword [ebp - 0x18], esi
jmp 0x403902
test al, al
jne 0x403902
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
push edi
call fcn.00405830
add esp, 0x10
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.00403710
push edi
call fcn.0041bdc3
push ebx
call fcn.0041c435
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.004058f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
xor eax, eax
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407e60
sub ecx, edi
je 0x407e83
jmp 0x407e70
mov edx, eax
shl eax, 7
shr edx, 0x19
xor edx, eax
movsx eax, byte [esi]
add eax, edx
inc esi
dec ecx
jne 0x407e70
pop edi
pop esi
pop ebp
ret

Function at 0x407f80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
push 4
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x407fa1
call esi
xor ecx, ecx
mov word [ebp - 0x200], cx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x407fca
test eax, eax
je 0x407fe3
push 0xff
lea edx, [ebp - 0x200]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x407fe3
lea edx, [ebp - 0x200]
mov eax, ecx
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407fd4
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x200]
push eax
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov esp, ebp
pop ebp
ret