joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ed50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
je 0x48ed80
mov ecx, dword [esp + 8]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4f988c]
xor eax, edx
inc ecx
dec esi
jne 0x48ed61
pop ebx
not eax
pop esi
ret

Function at 0x48fea0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 1
push edi
call fcn.0048fe40
mov ebp, dword [edi + 0x858]
add esp, 4
test ebp, ebp
jle 0x48fee0
lea esi, [edi + 4]
mov ebx, ebp
mov eax, dword [esi]
push eax
call fcn.00487ea0
mov dword [esi], 0
add esp, 4
add esi, 4
dec ebx
jne 0x48fec9
lea ecx, [ebp*4]
push ecx
call fcn.00487e70
add esp, 4
mov dword [edi + 0x850], eax
test eax, eax
jne 0x48ff08
call fcn.00485f20
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
xor ebx, ebx
test ebp, ebp
jle 0x48ff69
mov eax, 0xfffffffc
lea esi, [edi + 4]
sub eax, edi
mov dword [esp + 0x18], eax
push ebx
push edi
call fcn.0048f540
mov edx, dword [esi]
push edx
call fcn.00487f60
add esp, 0xc
test eax, eax
jne 0x48ff52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x48ff48
mov eax, dword [esi]
push eax
call fcn.00486880
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x48ff61
mov ecx, dword [edi + 0x850]
mov edx, dword [esp + 0x18]
add ecx, edx
mov dword [ecx + esi], eax
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x48ff1c
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x494f90
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0xcc]
push edi
push 0x80
push 8
push 8
push str.BurnBuffer
mov dword [esp + 0x28], eax
call fcn.004890c0
mov ecx, dword [0x594e3c]
add esp, 0x10
cmp dword [ecx + 0x3bbac], 3
jne 0x494fdc
mov ecx, dword [ebx + 0x376c]
test ecx, ecx
je 0x494fdc
cmp eax, 0x20
jge 0x494fdc
mov eax, 0x20
shl eax, 0xa
cdq
sub eax, edx
push 0x58
mov edi, eax
sar edi, 1
call fcn.00487e70
mov esi, eax
add esp, 4
test esi, esi
je 0x4950e7
mov ebp, dword [esp + 0x1c]
mov edx, edi
imul edx, ebp
push edx
call fcn.00487e70
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4950e7
push 0
push 0
push 0
push 0
call dword [0x534d5c]
test eax, eax
mov dword [esi + 0x20], eax
je 0x4950fe
lea eax, [esi + 0x24]
mov dword [esi + 0x14], ebp
push eax
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebp
mov ecx, dword [0x594e3c]
cmp dword [ecx + 0x3bbac], 3
jne 0x49505d
mov dword [esi + 0x54], ebp
mov eax, dword [esi + 0x54]
test eax, eax
je 0x495089
mov eax, dword [ebx + 0x376c]
test eax, eax
je 0x495089
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
xor edx, edx
push 0xffffffffffffffff
mov dl, byte [eax]
push 0xffffffffffffffff
push edx
push 0
push ecx
call fcn.004a0490
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x495120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4950fe
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 0x4c], ebp
push esi
call fcn.004953e0
add esp, 4
test eax, eax
je 0x4950cc
cmp dword [esi + 0x3c], ebp
je 0x4950cc
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4950d3
push 0x64
call edi
jmp 0x4950ad
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4950d8
cmp dword [esi + 0x3c], ebp
jne 0x4950fe
mov dword [esi + 0x50], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Out_of_memory._Program_abort.
push 0x64
call fcn.004a6ea0
push eax
push 1
call fcn.004a3640
add esp, 0x10
test esi, esi
je 0x49510b
push esi
call fcn.00495380
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x496510
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x512050]
mov cx, word [0x512054]
push ebx
push ebp
push esi
push edi
mov edi, 1
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov esi, 0x41
test dword [esp + 0x10], edi
je 0x49656e
lea edx, [esp + 0x14]
mov word [esp + 0x14], si
push edx
call dword [0x534d90]
cmp eax, 5
jne 0x49656e
push ebx
push ebp
push esi
call fcn.004962d0
add esp, 0xc
shl edi, 1
inc esi
cmp si, 0x5a
jbe 0x496548
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a2fa0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 1
call fcn.004d18e9
mov ecx, esi
call fcn.004a1ec0
mov word [0x594e30], ax
push 1
mov ecx, esi
mov dword [esi + 0x3bba8], 0
call fcn.004a3130
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x4a3010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x594e68], eax
jne 0x4a2ffe
push eax
mov ecx, esi
mov dword [esi + 0x3bba8], 1
call fcn.004a3130
pop esi
pop ecx
ret
Function at 0x4a34b0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4ee990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.004d4b3f
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0
call fcn.004d4b3f
mov eax, dword [edi + 0x1c]
mov byte [esp + 0x48], 1
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004d4be1
mov esi, eax
test esi, esi
jne 0x4a32f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], al
call fcn.004d4c5e
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.004d4c5e
pop edi
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ecx
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d4bf6
mov edx, dword [esi + 4]
push edx
call ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.004d4bf6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x14]
call fcn.004d564e
mov eax, dword [esi + 4]
push 0x30
push 0x32
push eax
mov byte [esp + 0x5c], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
je 0x4a3353
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
jmp 0x4a3355
xor ebp, ebp
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0x32
neg eax
sbb eax, eax
mov dword [esp + 0x34], 0x30
and eax, edx
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call fcn.004a3440
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x3bba4]
neg eax
mov edx, dword [edi + 0x3bba0]
push 0xcc0020
sbb eax, eax
push 0
and eax, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esi + 4]
push 0x30
push 0x32
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x4a33e1
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.004d55e8
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0
call fcn.004d4c5e
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
call fcn.004d4c5e
mov ecx, dword [esp + 0x48]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4a34fa
mov eax, dword [ecx + 0x3bb88]
test eax, eax
je 0x4a34fa
mov eax, dword [ecx + 0x3bba8]
test eax, eax
jne 0x4a34eb
mov edx, dword [ecx + 0x3bb84]
inc edx
mov eax, edx
mov dword [ecx + 0x3bb84], edx
cmp eax, 8
jl 0x4a34f5
mov dword [ecx + 0x3bb84], 0
jmp 0x4a34f5
mov dword [ecx + 0x3bb84], 8
jmp 0x4a3270
ret
Function at 0x4a39a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x4a39f2
mov dword [0x594e6c], 0
test esi, esi
mov eax, esi
jne 0x4a39c9
mov eax, 0x536054
mov ecx, dword [0x594e48]
cmp ecx, 3
mov ecx, dword [0x594cec]
jne 0x4a3a46
test ecx, ecx
push eax
je 0x4a3a25
push str.Simulation_of_writing_media...
push 0x5161cc
push 0
call fcn.004a38e0
jmp 0x4a3a71
cmp dword [0x594e48], 3
jne 0x4a39be
cmp dword [0x594e54], esi
je 0x4a3a8b
call edi
sub eax, dword [0x594e6c]
cmp eax, 0x3e8
jae 0x4a39be
mov eax, dword [0x594e54]
test eax, eax
je 0x4a39be
test esi, esi
jne 0x4a3a8b
jmp 0x4a39c4
push str.Start_writing_media_...
push 0x197
call fcn.004a6ea0
add esp, 8
push eax
push 0x5161cc
push 0
call fcn.004a38e0
jmp 0x4a3a71
test ecx, ecx
push eax
je 0x4a3a52
push str.Simulation_of_writing_media...
jmp 0x4a3a65
push str.Start_writing_media_...
push 0x197
call fcn.004a6ea0
add esp, 8
push eax
push 0x5161cc
push 0
call fcn.004a3640
add esp, 0x10
mov dword [0x594e48], 3
mov dword [0x594e54], esi
call edi
mov dword [0x594e6c], eax
pop edi
pop esi
ret

Function at 0x4a3a90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x4a3ae6
mov dword [0x594e70], 0
test esi, esi
mov eax, esi
jne 0x4a3ab9
mov eax, 0x536054
mov ecx, dword [0x594e48]
push eax
cmp ecx, 4
push str.Verifying
push 0x116
jne 0x4a3b15
call fcn.004a6ea0
add esp, 8
push eax
push str._s...__s
push 0
call fcn.004a38e0
jmp 0x4a3b2a
cmp dword [0x594e48], 4
jne 0x4a3aae
cmp dword [0x594e54], esi
je 0x4a3b44
call edi
sub eax, dword [0x594e70]
cmp eax, 0x3e8
jae 0x4a3aae
mov eax, dword [0x594e54]
test eax, eax
je 0x4a3aae
test esi, esi
jne 0x4a3b44
jmp 0x4a3ab4
call fcn.004a6ea0
add esp, 8
push eax
push str._s...__s
push 0
call fcn.004a3640
add esp, 0x10
mov dword [0x594e48], 4
mov dword [0x594e54], esi
call edi
mov dword [0x594e70], eax
pop edi
pop esi
ret
Function at 0x4a4db0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
xor ebp, ebp
call dword [0x534d60]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a4dde
xor ebx, ebx
jmp 0x4a4e48
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jle 0x4a4e48
cmp esi, 0x200000
jge 0x4a4e48
push esi
call fcn.004b7d85
mov edi, eax
add esp, 4
test edi, edi
je 0x4a4e48
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4e48
push esi
push edi
call fcn.004a49f0
add esp, 8
test eax, eax
je 0x4a4e48
push 0x218
call fcn.00487e70
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4a4e48
push esi
push edi
push ebp
call fcn.004a4aa0
add esp, 0xc
test eax, eax
jne 0x4a4e53
push ebp
call fcn.00487ea0
add esp, 4
xor ebp, ebp
push edi
call fcn.00487ea0
push ebx
call fcn.00487eb0
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a4f70
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eea58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x532c18]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor ebx, ebx
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x4a4fee
cmp word [eax], si
je 0x4a4fee
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push eax
call dword [0x534d60]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a4fd3
xor edi, edi
jmp 0x4a506e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jl 0x4a506a
cmp esi, 0x200000
jge 0x4a506a
push 0x218
call fcn.00487e70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a506a
push 0x4e200
mov dword [ebx + 0x210], 0x4e20
call fcn.00487e70
add esp, 4
mov dword [ebx + 0x208], eax
test eax, eax
je 0x4a506a
test esi, esi
jle 0x4a50b3
push esi
call fcn.00487e70
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4a506a
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a506a
push esi
push ebp
call fcn.004a49f0
add esp, 8
test eax, eax
je 0x4a506a
push esi
push ebp
push ebx
call fcn.004a4aa0
add esp, 0xc
test eax, eax
jne 0x4a50b3
test edi, edi
jne 0x4a507f
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push str.Open_Language_File__s_failed.
push eax
jmp 0x4a508e
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push 0x5302d0
push edx
call fcn.004cbb75
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push eax
call fcn.004d7952
test ebx, ebx
je 0x4a50b3
push ebx
call fcn.004a4a40
add esp, 4
xor ebx, ebx
push edi
call fcn.00487eb0
push ebp
call fcn.00487ea0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ce26c
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a6c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xb10
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x220], esi
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb24]
mov edx, dword [0x59ad54]
mov dword [esp + 0x120], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb28]
push 4
push ecx
push edx
call dword [0x534d78]
mov ebx, eax
cmp ebx, esi
je 0x4a6e03
mov eax, dword [0x59ad54]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4a6e03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x59ad54]
push ebx
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
xor edx, edx
mov bx, word [edi]
mov dx, word [edi + 2]
add eax, edi
cmp ebx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea edi, [edi + edx + 4]
je 0x4a6cbd
add edi, 4
cmp edi, eax
jae 0x4a6e03
test ebx, ebx
je 0x4a6cd8
mov ebp, dword [edi + 0xc]
add edi, 0xc
mov dword [esp + 0x14], ebp
add edi, 6
jmp 0x4a6cf6
mov ax, word [edi]
add edi, 2
test al, 0x10
mov dword [esp + 0x10], eax
jne 0x4a6cf2
xor eax, eax
mov ax, word [edi]
add edi, 2
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x320]
push edi
push eax
call fcn.004b71cd
add esp, 8
cmp word [edi], 0
je 0x4a6d16
add edi, 2
cmp word [edi], 0
jne 0x4a6d0d
add edi, 2
test ebx, ebx
je 0x4a6d4d
push ebp
call fcn.004a63d0
add esp, 4
test eax, eax
jne 0x4a6df9
mov edx, dword [esp + 0xb24]
lea ecx, [esp + 0x320]
push eax
push ecx
push ebp
push edx
call fcn.004a6980
add esp, 0x10
jmp 0x4a6df9
mov ecx, dword [esp + esi*4 + 0x20]
mov al, byte [esp + 0x10]
inc ecx
test al, 0x10
mov dword [esp + esi*4 + 0x20], ecx
mov ebx, ecx
je 0x4a6daa
mov ebp, dword [esp + esi*4 + 0x120]
lea eax, [esp + 0x320]
push 1
lea ecx, [ebx - 1]
push eax
push ecx
push ebp
call fcn.004a6980
mov edx, dword [esp + 0x20]
add esp, 0x10
and edx, 0x80
dec ebx
push ebx
push ebp
mov dword [esp + esi*4 + 0x228], edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + esi*4 + 0x124], eax
inc esi
mov dword [esp + esi*4 + 0x20], 0
jmp 0x4a6df5
push ebp
call fcn.004a63d0
add esp, 4
test eax, eax
jne 0x4a6dd1
mov ecx, dword [esp + 0xb24]
push eax
lea eax, [esp + 0x324]
push eax
push ebp
push ecx
call fcn.004a6980
add esp, 0x10
test byte [esp + 0x10], 0x80
je 0x4a6df5
dec esi
js 0x4a6e03
lea eax, [esp + esi*4 + 0x220]
cmp dword [eax], 0
je 0x4a6df1
dec esi
sub eax, 4
test esi, esi
jl 0x4a6e03
jmp 0x4a6de2
test esi, esi
jl 0x4a6e03
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
jb 0x4a6cc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
Function at 0x4b1600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [0x599a20]
mov ecx, 0x400
xor eax, eax
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x599a20]
push eax
push ecx
push edx
call fcn.0048c9d0
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4b16aa
mov eax, dword [0x599a20]
mov cl, byte [0x5999f8]
mov byte [eax + 3], cl
mov eax, 4
cmp esi, eax
jle 0x4b1674
push ebx
mov ecx, dword [0x599a20]
mov dl, byte [0x5999f8]
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
mov cl, byte [0x5999f8]
add cl, 0x11
inc eax
cmp eax, esi
mov byte [0x5999f8], cl
jl 0x4b164b
pop ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x599a20]
lea edi, [esi + 8]
push edi
push eax
mov eax, dword [0x599a18]
push ecx
push edx
push eax
call fcn.00488120
add esp, 0x14
cmp eax, edi
jne 0x4b16aa
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword [ecx], esi
pop esi
pop ebp
ret
call fcn.004b15c0
pop edi
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x4bb4cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x533f60
cmp edx, dword [eax]
je 0x4bb4ef
add eax, 8
inc ecx
cmp eax, 0x533ff0
jl 0x4bb4e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x533f60]
jne 0x4bb61d
mov eax, dword [0x59d028]
cmp eax, 1
je 0x4bb5f7
test eax, eax
jne 0x4bb520
cmp dword [0x5339ac], 1
je 0x4bb5f7
cmp edx, 0xfc
je 0x4bb61d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb557
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bff30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bded0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb59a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bded0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ff484
push edi
call fcn.004b87e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bff30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bff40
lea eax, [ebp - 0xa0]
push 0x4ff464
push eax
call fcn.004bff40
push dword [esi + 0x533f64]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bff40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bfea3
add esp, 0x2c
pop edi
jmp 0x4bb61d
lea eax, [ebp + 8]
lea esi, [esi + 0x533f64]
push 0
push eax
push dword [esi]
call fcn.004bded0
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 0x4c3d78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c3dd0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x534f70
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c3dc3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4c3dd2
xor eax, eax
pop esi
leave
ret 4
Function at 0x4c5720
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x534ce0]
mov dword [ebp - 4], eax
mov eax, dword [0x532b00]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4c574f
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x4c58dc
push dword [0x534aa8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x4c58dc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4c5787
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4c579f
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x4c57c0
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x4c57dd
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004c5683
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c5800
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c5814
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004c5683
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c5849
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4c585b
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.004c55b4
test eax, eax
pop esi
jne 0x4c589c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.004c55b4
test eax, eax
jne 0x4c58ca
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004c55b4
test eax, eax
jne 0x4c58dc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004c55b4
test eax, eax
je 0x4c58dc
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.004cb2f0
leave
ret
Function at 0x4ca5c0
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.004b7240
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ca68b
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 0x4ca68b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ca63e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ca649
or bh, 8
and edi, 0x8000000
je 0x4ca664
mov eax, dword [0x5e035c]
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 0x4ca68b
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