joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ba1f
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b19e0]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x43ba45
cmp dword [0x4b19d8], ebx
jne 0x43ba45
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x43bc04
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x43bb70
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x43ba63
xor eax, eax
jmp 0x43bc18
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x4b19b8
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x43bac2
push dword [0x4b19d8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
or dword [0x49d340], 0xffffffff
or dword [0x49d348], 0xffffffff
or dword [0x49d344], 0xffffffff
push ebx
push 1
mov dword [0x4b19d8], ebx
push dword [ebp + 0xc]
push edi
call fcn.0043a5cc
add esp, 0x10
jmp 0x43bb68
cmp dword [0x49d340], ebx
jne 0x43badf
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043adb6
jmp 0x43baf5
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043adf4
add esp, 0x14
cmp dword [0x49d348], eax
mov dword [0x49d344], eax
je 0x43bb63
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0043ae32
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.0043909f
add esp, 0x14
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x49d344]
mov dword [0x49d348], eax
xor eax, eax
pop esi
jmp 0x43bc18
cmp ecx, 0xfffd
jne 0x43bb9d
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4b19e0], eax
jmp 0x43ba5c
cmp ecx, 0xfffe
jne 0x43bc00
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043b001
mov eax, dword [0x49d34c]
add esp, 0x10
cmp eax, 0xffffffff
je 0x43ba5c
push ebx
push eax
push dword [0x4b19dc]
push dword [ebp + 0xc]
call fcn.0043abfe
add esp, 0x10
jmp 0x43ba5c
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x446373
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x481844
call fcn.004513c4
push ecx
push ebx
push esi
push edi
lea esi, [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041d6d5
mov al, byte [ebp + 0x1f]
xor esi, esi
lea ecx, [ebx + 0x30]
push esi
mov dword [ebp - 4], esi
mov byte [ecx], al
call fcn.0040c3d2
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
pop edi
mov dword [ebx], 0x488680
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x446d18
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.004456d7
test al, al
jne 0x446d49
cmp word [esi + 0x16], 8
jae 0x446d50
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.00451f60
pop ecx
pop ecx
xor al, al
jmp 0x446f1e
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.00440fc7
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x446dd2
cmp ax, 0x18
jne 0x446dd2
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x446e26
mov ecx, esi
call fcn.00440fc7
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x446df8
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00447260
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x446ee8
cmp word [esi + 0x16], 8
je 0x446ee8
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.00451d8d
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x446edf
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x446ebd
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.004410ef
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.00441514
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x446e6f
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x446e66
push edi
call fcn.00451d45
pop ecx
jmp 0x446f1b
cmp word [ebp - 0xa], di
jbe 0x446f1b
push edi
lea ecx, [ebp - 0x3c]
call fcn.0044728c
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x446eee
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45622d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49fb60
cmp edx, dword [eax]
je 0x45624f
add eax, 8
inc ecx
cmp eax, 0x49fbf0
jl 0x456240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49fb60]
jne 0x45637d
mov eax, dword [0x4b3aa0]
cmp eax, 1
je 0x456357
test eax, eax
jne 0x456280
cmp dword [0x49f3d8], 1
je 0x456357
cmp edx, 0xfc
je 0x45637d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4562b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00451f60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00451830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4562fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00451830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x48d524
push edi
call fcn.004513f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00451f60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00451f70
lea eax, [ebp - 0xa0]
push 0x48d504
push eax
call fcn.00451f70
push dword [esi + 0x49fb64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00451f70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045a52f
add esp, 0x2c
pop edi
jmp 0x45637d
lea eax, [ebp + 8]
lea esi, [esi + 0x49fb64]
push 0
push eax
push dword [esi]
call fcn.00451830
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x460270
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.00452ee0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46033b
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 0x46033b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4602ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4602f9
or bh, 8
and edi, 0x8000000
je 0x460314
mov eax, dword [0x4b529c]
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 0x46033b
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 0x460710
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 0x46073b
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 0x46075f
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 0x46077a
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 0x465521
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465559
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004639b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046398c
jmp 0x465565
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x467094
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 0x4670d6
call fcn.00477e8e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4670d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4670cd
xor eax, eax
jmp 0x4670de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004670e4
pop edi
pop esi
pop ebx
ret 4

Function at 0x468368
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x46838a
cmp dword [edi + 0x3c], 0
jne 0x46838a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00477e8e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004683b7
pop edi
pop esi
pop ebx
ret 8

Function at 0x468405
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00477e8e
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468436
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00468449
pop edi
pop esi
pop ebx
ret 8
Function at 0x468746
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x481be4
call fcn.004513c4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00477e8e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x468785
call fcn.00477e8e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x468793
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4687a1
or eax, 0xffffffff
jmp 0x468889
mov ecx, esi
call fcn.004686bc
mov dword [ebp - 0x14], eax
call fcn.00465071
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4687d8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4687d8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00465025
push dword [ebp - 0x14]
call fcn.00464b73
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00468449
cmp eax, edi
je 0x46884b
test byte [esi + 0x24], 0x10
je 0x468819
push 4
mov ecx, esi
pop ebx
call fcn.0046795d
test ah, 1
je 0x468811
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004672eb
cmp dword [esi + 0x1c], edi
je 0x46884b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00467ace
jmp 0x46884b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46885f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x468878
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x468878
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004686f6
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x478a1e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x478a4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x478a6a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478984
jmp 0x478a6a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x478a6a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478984
test edi, edi
mov eax, edi
jne 0x478a54
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010d5
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
push ebx
or dword [esi + 0x388], 0xffffffff
or dword [esi + 0x38c], 0xffffffff
or dword [esi + 0x390], 0xffffffff
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [esp + 0x2c]
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [esi + 0x108], ebx
mov byte [edi], bl
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov word [esi + 0x224], bx
mov word [esi + 0x226], bx
mov byte [esi + 0x22c], bl
mov word [esi + 0x3b6], 0xf
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x401160
xor eax, eax
jmp 0x40118f
push dword [esp + 0x14]
push edi
call fcn.00403ae0
push dword [esp + 0x1c]
lea eax, [esi + 0x110]
push eax
call fcn.00403ae0
add esp, 0x10
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
mov dword [esi + 0x108], eax
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x402710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0
push dword [esi + 0x38c]
call fcn.00403ccb
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push dword [esi + 0x38c]
mov dword [ebp - 4], eax
call fcn.00406511
add esp, 0x18
test eax, eax
jg 0x40274a
xor eax, eax
jmp 0x40278c
mov al, byte [ebx + edi - 1]
and byte [ebx + edi - 1], 0
push ebx
mov byte [ebp + 0xb], al
call fcn.00403d70
pop ecx
lea ecx, [eax + 1]
cmp ecx, edi
jl 0x40276a
cmp byte [ebp + 0xb], 0
jne 0x402746
mov ecx, dword [ebp - 4]
push 0
lea eax, [eax + ecx + 1]
push eax
push dword [esi + 0x38c]
call fcn.00403ccb
add esp, 0xc
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40294f
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x10
lea eax, [esi + 0x378]
push eax
push dword [esi + 0x38c]
call fcn.00406511
add esp, 0xc
cmp eax, 0x10
jne 0x4029c4
lea eax, [esi + 0x3b8]
push 0x100
push eax
push esi
call fcn.00402710
add esp, 0xc
test eax, eax
je 0x4029c4
push 1
push 0
push dword [esi + 0x38c]
call fcn.00403ccb
mov cx, word [esi + 0x380]
mov dword [esi + 0xac7], eax
lea eax, [esi + 0x380]
add esp, 0xc
cmp cx, 0xea60
jbe 0x4029bf
mov edx, 0xffff
sub edx, ecx
mov word [eax], dx
push 1
pop eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402d0d
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push dword [esi + 0x3ac]
push dword [esi + 0x34c]
push dword [esi + 0x388]
call fcn.00406511
add esp, 0xc
cmp dword [esi + 0x3ac], eax
jne 0x402de4
mov eax, dword [esi + 0x34c]
mov edi, dword [esp + 0x10]
movzx eax, word [eax + 4]
lea ecx, [eax + edi]
cmp ecx, dword [esi + 0x39c]
ja 0x402de4
push eax
mov eax, dword [esi + 0x340]
add eax, edi
push eax
push dword [esi + 0x388]
call fcn.00406511
mov ecx, dword [esi + 0x34c]
add esp, 0xc
movzx ecx, word [ecx + 4]
cmp ecx, eax
jne 0x402de4
push 1
push 0
push dword [esi + 0x388]
call fcn.00403ccb
mov ecx, dword [esi + 0x34c]
add esp, 0xc
mov dword [esi + 0xacb], eax
cmp dword [ecx], 0
je 0x402ddb
movzx eax, word [ecx + 4]
push 0
push eax
mov eax, dword [esi + 0x340]
add eax, edi
push eax
call fcn.00402f33
push eax
mov eax, dword [esi + 0x3ac]
sub eax, 4
push eax
mov eax, dword [esi + 0x34c]
add eax, 4
push eax
call fcn.00402f33
mov ecx, dword [esi + 0x34c]
add esp, 0x18
cmp eax, dword [ecx]
jne 0x402de4
add word [ecx + 4], di
push 1
pop eax
jmp 0x402de6
xor eax, eax
pop edi
pop esi
ret
Function at 0x402e96
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
mov ecx, dword [esi + 0x3a8]
mov dword [esi + 0x394], eax
imul ecx, eax
add ecx, dword [esi + 0x334]
push ecx
push dword [esi + 0x388]
call fcn.00403ccb
add esp, 0xc
cmp eax, 0xffffffff
je 0x402f2f
push dword [esi + 0x3a8]
push dword [esi + 0x348]
push dword [esi + 0x388]
call fcn.00406511
add esp, 0xc
cmp dword [esi + 0x3a8], eax
jne 0x402f2f
mov eax, dword [esi + 0x348]
push 0
push dword [eax]
push dword [esi + 0x388]
call fcn.00403ccb
add esp, 0xc
cmp eax, 0xffffffff
je 0x402f2f
mov eax, dword [esi + 0x348]
mov cx, word [eax + 4]
mov word [esi + 0x3b4], cx
mov ax, word [eax + 6]
push eax
push esi
call fcn.00402f9a
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402f33
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x402f73
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x402f51
and esi, 3
xor eax, eax
dec esi
je 0x402f8f
dec esi
je 0x402f88
dec esi
jne 0x402f94
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret

Function at 0x403336
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.00403deb
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x403362
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
jmp 0x40333d
pop esi
ret