joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2d10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004b8400
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4a2d41
cmp eax, 0x61
jne 0x4a2da4
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4a2da4
cmp word [ebx], 0
jne 0x4a2da4
cmp word [edx], 0
jne 0x4a2da4
cmp word [esi], 0
jne 0x4a2da4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a2d8b
cmp byte [edi + 0xea], 0
jne 0x4a2d8b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a2d89
mov ecx, esi
call fcn.004a38f0
test al, al
je 0x4a2d8b
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4a2d9b
test esi, esi
je 0x4a2d9b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4a2dc6
cmp word [ebx], ax
jne 0x4a2dc6
cmp word [edx], ax
jne 0x4a2dc6
cmp word [esi], ax
jne 0x4a2dc6
mov ecx, edi
call fcn.004a2eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0044a590
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004a3a70
test eax, eax
je 0x4a2e79
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4a2e82
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4a2e51
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a2e79
push dword [esp + 0x102c]
mov ecx, edi
call fcn.004a3960
test al, al
jne 0x4a2e4a
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a2e79
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x4a2e6a
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004a3f50
push 0
lea ecx, [esp + 0x14]
call fcn.004a4030
test eax, eax
jne 0x4a2e92
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4a2f30
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4a2e7b
test eax, eax
je 0x4a2e7b
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3f50
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4a4029
mov eax, dword [esi]
test eax, eax
je 0x4a4029
push edi
test al, 1
jne 0x4a3f7d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4a3f97
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a3f97
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a3fb4
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a3fef
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4a3fef
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0046f220
add esp, 8
test eax, eax
jne 0x4a3fef
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a4010
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi]
test eax, 0x100
je 0x4a4029
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4a4870
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004b8400
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a490b
lea ecx, [esp]
call fcn.0044a590
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4a4fb0
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4a490b
mov eax, dword [0x4e40f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a490b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e82ec], eax
je 0x4a48f8
mov eax, dword [0x4e40f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4e40f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004019f0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4bb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c70
call fcn.004b8400
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4a4d3d
push 0
call fcn.004a4d50
test eax, eax
jne 0x4a4be1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4e40f4]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004a4df0
mov edx, dword [0x4e82e4]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x10]
mov dword [0x4e82e4], edx
call fcn.0044a590
cmp byte [ebp + 8], 0
je 0x4a4c25
mov byte [esp + 0x183d], 0
test edx, edx
je 0x4a4c2d
mov byte [esp + 0x183d], 1
mov eax, dword [0x4e82e0]
mov dword [esp + 0x184c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x10]
push eax
push 0x4a4e80
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1844]
test eax, eax
je 0x4a4d10
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x4a37f0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4a4ca2
mov ecx, dword [esp + 0x1844]
call fcn.004a44d0
mov dword [esp + 0x1844], esi
jmp 0x4a4ca9
mov esi, dword [esp + 0x1844]
mov ecx, esi
call fcn.004a2800
mov ecx, dword [esp + 0x1844]
call fcn.004a44d0
mov eax, dword [0x4e40f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a4d3d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e82ec], eax
je 0x4a4cf0
mov eax, dword [0x4e40f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4e40f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004019f0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e82e4]
test eax, eax
je 0x4a4d3d
cmp eax, 1
mov dword [0x4e82e4], 0
setg al
test al, al
je 0x4a4d3d
mov ecx, ebx
call fcn.004a44d0
push 0
mov ecx, esi
call fcn.004a4bb0
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x24f31b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x24f3308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x24f31de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x24f31ca
add dl, dl
jne 0x24f31e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x24f323c
xor eax, eax
add dl, dl
jne 0x24f31f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x24f32dd
add dl, dl
jne 0x24f3205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24f3210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24f321b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24f3226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x24f3232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x24f31d5
mov eax, 1
add dl, dl
jne 0x24f324a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x24f3255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x24f3241
sub eax, ebx
mov ebx, 1
jne 0x24f3288
mov ecx, 1
add dl, dl
jne 0x24f326e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x24f3279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x24f3265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x24f31d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x24f329f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x24f32aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x24f3296
cmp eax, 0x7d00
jae 0x24f32cd
cmp eax, 0x500
jb 0x24f32c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x24f31d5
cmp eax, 0x7f
ja 0x24f32d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x24f31d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x24f32fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x24f31d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4041c4
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov dword [ebp - 4], eax
mov edi, 0xc6ef3720
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0x20
mov ecx, eax
shl ecx, 4
add ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
lea ecx, [edi + eax]
shr eax, 5
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], eax
push ecx
lea eax, [ebp + 8]
push eax
mov dword [0x8c8c9c], 0xffcf03fc
call fcn.00403b1b
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 8]
and dword [0x8c8c9c], 0
sub esi, eax
mov dword [ebp + 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add dword [ebp + 8], eax
or dword [0x8c8ca4], 0xffffffff
mov eax, esi
shr eax, 5
add eax, dword [ebp - 0x18]
lea ecx, [edi + esi]
xor dword [ebp + 8], ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push eax
mov dword [0x8c8ca0], 0xff6b3619
call fcn.00403b1b
mov eax, dword [ebp + 8]
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add edi, 0x61c88647
dec dword [ebp - 8]
jne 0x4041fe
pop edi
mov dword [ebx + 4], esi
pop esi
mov dword [ebx], eax
pop ebx
leave
ret 8
Function at 0x4042c4
Capabilities:
Create directory
Get common file path
Get geographical location
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf28
cmp dword [0x8cbf04], 0x37
jne 0x4043ae
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x401230
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push esi
push esi
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFlags]
push esi
push 0x401260
push 0x4012c8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
push esi
lea eax, [ebp - 0xf28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x401310
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x8cc318]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x8c8c98]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x409cd9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x79e978]
jne 0x409ce3
repz ret
jmp fcn.0040e6cc

Function at 0x41041b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x79e978]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409ce8
and dword [ebp - 0x14], 0
cmp dword [0x8cd0e8], 0
mov dword [ebp - 0x18], eax
jne 0x4104ce
push 0x4036a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410576
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403694
push ebx
call edi
test eax, eax
je 0x410576
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403684
push ebx
mov dword [0x8cd0e8], eax
call edi
push eax
call esi
push 0x403670
push ebx
mov dword [0x8cd0ec], eax
call edi
push eax
call esi
push 0x403654
push ebx
mov dword [0x8cd0f0], eax
call edi
push eax
call esi
mov dword [0x8cd0f8], eax
test eax, eax
je 0x4104ce
push 0x40363c
push ebx
call edi
push eax
call esi
mov dword [0x8cd0f4], eax
mov eax, dword [0x8cd0f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410527
cmp dword [0x8cd0f8], ecx
je 0x410527
push eax
call esi
push dword [0x8cd0f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410527
test ebx, ebx
je 0x410527
call edi
test eax, eax
je 0x41051e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41051e
test byte [ebp - 8], 1
jne 0x410527
or dword [ebp + 0x10], 0x200000
jmp 0x41055a
mov eax, dword [0x8cd0ec]
cmp eax, dword [ebp - 0x18]
je 0x41055a
push eax
call esi
test eax, eax
je 0x41055a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41055a
mov eax, dword [0x8cd0f0]
cmp eax, dword [ebp - 0x18]
je 0x41055a
push eax
call esi
test eax, eax
je 0x41055a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8cd0e8]
call esi
test eax, eax
je 0x410576
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410578
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409cd9
leave
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4001064a
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4a272206
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40100a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4024d0
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ecx, dword [esi + 0x1c]
add ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x24]
add ecx, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x402526
mov ebp, eax
mov eax, dword [ebp]
add eax, edi
push eax
call fcn.004010e6
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x40252e
mov eax, dword [esi + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jb 0x402505
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx + ebx*2]
mov eax, dword [eax + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401064
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x402250
sub esp, 8
mov eax, dword [esp + 0x14]
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 8], ebp
jbe 0x40237e
mov ecx, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [0x4b8a0c]
xor edx, edx
lea eax, [esi + 1]
div edi
mov esi, edx
xor edx, edx
mov bl, byte [esi + ecx]
mov eax, ebx
mov byte [esp + 0x1c], bl
and eax, 0xff
add eax, ebp
div edi
mov eax, dword [0x4b8a24]
mov edi, dword [0x4b8a18]
mov ebp, edx
lea edx, [eax - 1]
imul edx, dword [0x4b8a20]
add edx, 2
imul edx, dword [0x4b8a1c]
add edi, edx
lea eax, [edi + eax*2]
add eax, ebp
mov dl, byte [eax + ecx]
mov byte [esi + ecx], dl
mov byte [ecx + ebp], bl
mov edx, dword [0x4b8a28]
mov eax, dword [0x4b8a24]
imul edx, dword [0x4b8a18]
imul edx, dword [0x4b8a20]
sub edx, eax
mov edi, dword [0x4b8a20]
imul edx, dword [0x4b8a1c]
imul edi, eax
sub edx, eax
mov ebx, dword [0x4b8a28]
sub edx, 2
add ebx, ebx
imul edx, dword [0x4b8a18]
sub edx, ebx
mov ebx, dword [0x4b8a20]
sub edx, edi
sub edx, ebx
mov ebx, dword [esp + 0x10]
sub edx, eax
add edx, ebx
mov ebx, dword [esp + 0x20]
add edx, ebx
mov dword [esp + 0x14], edx
mov edx, esi
sub edx, eax
xor eax, eax
mov al, byte [edx + ecx]
mov edx, dword [esp + 0x1c]
and edx, 0xff
add eax, edx
xor edx, edx
div dword [0x4b8a0c]
mov eax, dword [0x4b8a18]
mov ebx, eax
imul ebx, eax
mov eax, dword [0x4b8a28]
sub edx, ebx
sub edx, edi
mov edi, dword [0x4b8a1c]
sub edx, edi
add edx, eax
mov eax, dword [esp + 0x14]
mov dl, byte [edx + ecx]
mov bl, byte [eax]
xor bl, dl
mov edx, dword [esp + 0x24]
mov byte [eax], bl
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x40226f
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
Function at 0x4030dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x40311a
call fcn.0045655e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40311a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403131
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x403131
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4143c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c60b0
cmp edx, dword [eax]
je 0x4143eb
add eax, 8
inc ecx
cmp eax, 0x4c6140
jl 0x4143dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c60b0]
jne 0x414519
mov eax, dword [0x4ca03c]
cmp eax, 1
je 0x4144f3
test eax, eax
jne 0x41441c
cmp dword [0x4c5bb8], 1
je 0x4144f3
cmp edx, 0xfc
je 0x414519
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414453
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414730
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414496
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414730
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47012c
push edi
call fcn.00418530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414650
lea eax, [ebp - 0xa0]
push 0x47010c
push eax
call fcn.00414650
push dword [esi + 0x4c60b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004184a5
add esp, 0x2c
pop edi
jmp 0x414519
lea eax, [ebp + 8]
lea esi, [esi + 0x4c60b4]
push 0
push eax
push dword [esi]
call fcn.00414730
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 0x421070
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.0040ebe0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42113b
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 0x42113b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4210ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4210f9
or bh, 8
and edi, 0x8000000
je 0x421114
mov eax, dword [0x4cbe5c]
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 0x42113b
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