joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d4b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0x200
mov ebx, 1
cmp dword [0x441fd0], 0
jne 0x417e36
cmp dword [0x448462], 1
jne 0x417d9f
push 0
push 0x4000000
push 0
push 0
push 0
push 0xc0000000
push 0x442022
call sub.KERNEL32.dll_CreateFileA
mov dword [0x441fd0], eax
jmp 0x417e0c
push 0x44202d
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a2d8
add esp, 8
test di, di
jne 0x417dc8
push 0x442032
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a270
add esp, 8
jmp 0x417dd9
push 0x442035
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a270
add esp, 8
mov dword [ebp - 0x18], 0xc
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
lea eax, [ebp - 0x18]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [0x441fd0], eax
cmp dword [0x441fd0], 0xffffffff
jne 0x417e23
xor eax, eax
mov dword [0x441fd0], eax
xor eax, eax
jmp 0x417eff
push 0x90018
push dword [0x441fd0]
call fcn.00417b2c
add esp, 8
cmp dword [0x448462], 1
jne 0x417ec7
lea eax, [ebp - 0xb]
push eax
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 9]
push eax
mov ax, word [ebp + 0x14]
push eax
call fcn.00417b55
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
movzx eax, di
xor edx, edx
mov dl, byte [ebp - 0xa]
shl edx, 8
or eax, edx
mov dword [ebp - 0x54], eax
xor eax, eax
mov al, byte [ebp - 9]
shl eax, 8
xor edx, edx
mov dl, byte [ebp - 0xb]
or eax, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x201
mov dword [ebp - 0x40], 1
push 0
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x58]
push eax
push 0x1c
lea eax, [ebp - 0x58]
push eax
push 4
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x417ec0
test byte [ebp - 0x40], 1
jne 0x417ec0
mov byte [esi], 0
jmp 0x417efd
xor ebx, ebx
mov byte [esi], 0x80
jmp 0x417efd
xor eax, eax
mov dword [ebp - 0x20], eax
movzx eax, word [ebp + 0x14]
shl eax, 9
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [0x441fd0]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x417efd
xor ebx, ebx
mov byte [esi], 0x80
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4181a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, 1
cmp dword [0x448462], 1
jne 0x418267
push esi
push edi
mov esi, 0x441fd4
lea edi, [ebp - 0x28]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x1c
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042a240
add esp, 0xc
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
push esi
call fcn.00417b55
add esp, 0x10
xor eax, eax
mov al, byte [ebp + 0x14]
or eax, 0x300
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
xor eax, eax
mov al, byte [ebp - 5]
shl eax, 8
xor edx, edx
mov dl, byte [ebp - 7]
or eax, edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 6]
shl eax, 8
xor edx, edx
mov dl, byte [ebp + 8]
dec edx
or eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 1
push 0
lea eax, [ebp - 4]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 4
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x418263
test byte [ebp - 0x10], 1
je 0x4182ad
xor ebx, ebx
jmp 0x4182ad
movzx eax, word [ebp + 0x14]
shl eax, 9
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x30], eax
shl esi, 9
mov dword [ebp - 0x34], esi
xor eax, eax
mov dword [ebp - 0x2c], eax
push 1
call sub.KERNEL32.dll_SetErrorMode
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [0x441fd0]
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x4182a7
xor ebx, ebx
push esi
call sub.KERNEL32.dll_SetErrorMode
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4182b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
mov ebx, 1
movzx eax, si
shl eax, 9
cmp eax, dword [ebp + 0x10]
jle 0x4182d9
xor eax, eax
jmp 0x4183da
cmp dword [0x448462], 1
jne 0x41838e
push esi
mov esi, 0x441ff0
lea edi, [ebp - 0x28]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x1c
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042a240
add esp, 0xc
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
mov ax, word [ebp + 0x14]
push eax
call fcn.00417b55
add esp, 0x10
mov eax, esi
and eax, 0xff
or eax, 0x200
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
mov al, byte [ebp - 5]
shl eax, 8
xor edx, edx
mov dl, byte [ebp - 7]
or eax, edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 6]
shl eax, 8
xor edx, edx
mov dl, byte [ebp + 8]
dec edx
or eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 1
push 0
lea eax, [ebp - 4]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 4
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x41838a
test byte [ebp - 0x10], 1
je 0x4183d8
xor ebx, ebx
jmp 0x4183d8
movzx edi, si
shl edi, 9
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
shl eax, 9
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
push 1
call sub.KERNEL32.dll_SetErrorMode
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [0x441fd0]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x4183d2
xor ebx, ebx
push esi
call sub.KERNEL32.dll_SetErrorMode
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
test esi, esi
je 0x41866e
push 0x443c31
push esi
call fcn.0042c768
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4185c8
xor eax, eax
jmp 0x418573
xor edx, edx
mov dl, al
cmp byte [esi + edx], 0x2e
je 0x41857d
inc eax
xor edx, edx
mov dl, al
cmp byte [esi + edx], 0
jne 0x418568
and eax, 0xff
cmp byte [esi + eax], 0
jne 0x4185c8
push 0xfa
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0042a3d8
add esp, 0xc
push 0x443c34
lea eax, [ebp - 0x108]
push eax
call fcn.0042a270
add esp, 8
push 0x443c39
lea eax, [ebp - 0x108]
push eax
call fcn.0042c768
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x418665
push 0
push 0
push dword [ebp - 8]
call fcn.0042ca64
add esp, 0xc
push 0x2000
call fcn.0042eca4
pop ecx
mov esi, eax
test esi, esi
je 0x418653
push dword [ebp - 8]
push 0x2000
push 1
push esi
call fcn.0042c9d4
add esp, 0x10
mov edx, eax
test edx, edx
je 0x41863a
xor eax, eax
cmp edx, eax
jle 0x418621
mov cl, byte [esi + eax]
xor cl, byte [0x443c30]
add bl, cl
inc eax
cmp edx, eax
jg 0x418611
push dword [ebp - 8]
push 0x2000
push 1
push esi
call fcn.0042c9d4
add esp, 0x10
mov edx, eax
test edx, edx
jne 0x41860b
mov eax, dword [ebp - 8]
test byte [eax + 0x12], 0x10
je 0x41864a
mov dword [ebp - 4], 8
push esi
call fcn.0042eb68
pop ecx
jmp 0x41865a
mov dword [ebp - 4], 7
push dword [ebp - 8]
call fcn.0042c448
pop ecx
jmp 0x418675
mov dword [ebp - 4], 9
jmp 0x418675
mov dword [ebp - 4], 0xa
test bl, bl
je 0x418680
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421675
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp word [ebx + 0x14], 0xffff
je 0x4216e2
mov eax, dword [ebx + 0x14]
shr eax, 0x10
test ax, 0xffff
je 0x42169b
push dword [ebx + 0x14]
call fcn.0042f02c
pop ecx
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextLengthA
mov esi, eax
test esi, esi
jge 0x4216bd
push 0
push 0x445472
call fcn.00429deb
add esp, 8
mov dword [ebx + 0x14], eax
jmp 0x4216e2
lea eax, [esi + 1]
push eax
call fcn.0042f17c
pop ecx
mov edi, eax
mov dword [ebx + 0x14], edi
mov byte [edi], 0
mov byte [edi + esi], 0
lea eax, [esi + 1]
mov edx, edi
push eax
push edx
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextA
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4247fb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x44628d
call fcn.0042c028
cmp esi, dword [0x445708]
jne 0x42482d
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4249b2
push 0
push edi
call fcn.0042048f
add esp, 8
mov dword [ebp - 0x28], eax
push 0
push 0x424f4d
push 0x42964e
cmp dword [ebp - 0x28], 0
je 0x424855
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
jmp 0x424857
xor eax, eax
push eax
push dword [ebp - 0x28]
call fcn.0042becc
add esp, 0x14
mov ebx, eax
mov eax, dword [0x446158]
test eax, eax
je 0x424895
test ebx, ebx
jne 0x424895
cmp esi, 0x1f
je 0x424895
cmp esi, 0xa
je 0x424895
mov edx, dword [eax]
mov dword [edx + 0x10], edi
push edx
call fcn.0041f7e2
pop ecx
mov ebx, dword [0x446158]
xor eax, eax
mov dword [0x446158], eax
test ebx, ebx
jne 0x4248aa
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4249b2
cmp byte [0x446208], 0
jne 0x4248e2
inc byte [0x446208]
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x4248d8
call sub.KERNEL32.dll_GetVersion
and eax, 0xff
cmp eax, 4
jae 0x4248d8
xor eax, eax
jmp 0x4248dd
mov eax, 1
mov dword [0x446204], eax
cmp dword [0x446204], 0
je 0x42490b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
mov eax, dword [ebx + 0xc]
call dword [eax + 4]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4249b2
mov word [ebp - 0x14], 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
mov eax, dword [ebx + 0xc]
call dword [eax + 4]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4249b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424c88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push dword [ebx + 0x10]
mov eax, dword [ebx]
push dword [eax + 0x10]
push 0x7ff8
push eax
call fcn.00421498
add esp, 0x10
test eax, eax
je 0x424cbb
test eax, eax
setg al
and eax, 1
jmp 0x424d74
mov esi, 1
cmp dword [ebx + 0x10], 0
je 0x424d72
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], edi
push 0xf0
push dword [ebp - 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x6c]
push dword [eax + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x424d72
mov dword [ebp - 8], edi
push dword [ebp - 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x6c]
push dword [eax + 0xc]
call sub.KERNEL32.dll_LoadResource
test eax, eax
je 0x424d72
push eax
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x424d67
jmp 0x424d5e
mov ax, word [edi]
add edi, 2
mov word [ebp - 0xa], ax
mov ax, word [edi]
add edi, 2
mov word [ebp - 0xc], ax
mov eax, dword [edi]
add edi, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0xa]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ebx]
push dword [eax + 0x10]
call sub.USER32.dll_SendDlgItemMessageA
inc eax
jne 0x424d5b
xor esi, esi
add edi, dword [ebp - 0x10]
test esi, esi
je 0x424d67
cmp byte [edi], 0
jne 0x424d14
mov eax, dword [ebx]
push dword [eax + 0x68]
call fcn.00422c57
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425144
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, 0x44648c
call fcn.0042c028
cmp dword [ebx + 8], 0
jne 0x425180
mov al, byte [ebx + 0x1e]
shl eax, 0x1e
sar eax, 0x1f
je 0x425176
push dword [ebx]
call sub.KERNEL32.dll_LockResource
mov dword [ebx + 8], eax
jmp 0x425180
push dword [ebx]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
cmp dword [eax], 0xc
jne 0x42518e
or byte [ebx + 0x1e], 1
jmp 0x4251dc
mov eax, dword [ebx + 8]
cmp dword [eax], 0x28
jne 0x42519c
and byte [ebx + 0x1e], 0xfe
jmp 0x4251dc
push dword [ebx]
call sub.KERNEL32.dll_GlobalUnlock
push 0
push 0
push 0
push 1
push 0x42597f
push 0
mov word [ebp - 0x1c], 8
push 0
push 0x7fdc
lea eax, [ebp - 0xc]
push eax
call fcn.0041ca5d
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x425927
call fcn.0042adf8
add esp, 0x20
mov al, byte [ebx + 0x1e]
shl eax, 0x1f
sar eax, 0x1f
je 0x425213
mov eax, dword [ebx + 8]
mov ax, word [eax + 0xa]
push eax
call fcn.0041a334
pop ecx
mov esi, eax
mov dword [ebx + 0x10], esi
lea eax, [esi + esi*2]
mov edx, dword [ebx + 8]
movzx edx, word [edx + 4]
mov dword [ebx + 0x14], edx
mov edx, dword [ebx + 8]
movzx edx, word [edx + 6]
mov dword [ebx + 0x18], edx
jmp 0x42523d
mov eax, dword [ebx + 8]
mov ax, word [eax + 0xe]
push eax
call fcn.0041a334
pop ecx
mov esi, eax
mov dword [ebx + 0x10], esi
mov eax, esi
shl eax, 2
mov edx, dword [ebx + 8]
mov edx, dword [edx + 4]
mov dword [ebx + 0x14], edx
mov edx, dword [ebx + 8]
mov edx, dword [edx + 8]
mov dword [ebx + 0x18], edx
mov edx, dword [ebx + 8]
add eax, dword [edx]
add eax, edx
mov dword [ebx + 0xc], eax
mov word [ebx + 0x1c], 0
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4259f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x446500
call fcn.0042c028
push ebx
call fcn.0041c8f8
pop ecx
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
and byte [ebx + 0x1e], 0xfe
and byte [ebx + 0x1e], 0xfd
mov dword [ebp - 0x78], 0x28
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
push dword [ebp + 0x14]
call fcn.0041a366
pop ecx
mov word [ebp - 0x6a], ax
mov word [ebp - 0x6c], 1
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
xor edx, edx
mov dword [ebp - 0x54], edx
xor edx, edx
mov dword [ebp - 0x68], edx
movzx edx, word [ebp - 0x6a]
imul edx, esi
add edx, 0x1f
test edx, edx
jns 0x425a7f
add edx, 0x1f
sar edx, 5
shl edx, 2
imul edx, edi
mov dword [ebp - 0x64], edx
shl eax, 2
mov esi, dword [ebp - 0x78]
add esi, eax
add esi, edx
push esi
push 2
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x425ad5
push 0
push 0
push 0
push 1
push 0x425ccd
push 0
mov word [ebp - 0x40], 8
lea eax, [ebp - 0xc]
push eax
call fcn.0041b8c9
pop ecx
lea eax, [ebp - 0xc]
push eax
push 0x425c75
call fcn.0042adf8
add esp, 0x20
push dword [ebx]
call sub.KERNEL32.dll_GlobalLock
mov esi, eax
mov dword [ebx + 8], esi
push esi
mov edi, esi
lea esi, [ebp - 0x78]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.00425144
pop ecx
mov ax, word [ebp + 0x18]
mov word [ebx + 0x1c], ax
cmp ax, 1
jne 0x425b1b
xor eax, eax
jmp 0x425b11
mov ecx, dword [ebx + 8]
mov word [ecx + edx*2 + 0x28], ax
inc eax
movzx edx, ax
cmp edx, dword [ebp + 0x14]
jl 0x425b08
jmp 0x425b87
mov word [ebp - 0x40], 0x14
lea eax, [ebp - 0x30]
push eax
call fcn.00421e7f
pop ecx
mov eax, dword [ebx + 8]
add eax, 0x28
push eax
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x30]
call sub.GDI32.dll_GetSystemPaletteEntries
xor eax, eax
cmp eax, dword [ebp + 0x14]
jge 0x425b72
mov ecx, eax
shl ecx, 2
add ecx, dword [ebx + 8]
mov edx, ecx
add edx, 0x28
mov esi, ecx
add esi, 0x2a
mov cl, byte [edx]
xor byte [esi], cl
mov cl, byte [esi]
xor byte [edx], cl
mov dl, byte [edx]
xor byte [esi], dl
mov edx, dword [ebx + 8]
mov byte [edx + eax*4 + 0x2b], 0
inc eax
cmp eax, dword [ebp + 0x14]
jl 0x425b46
mov eax, dword [0x4487a8]
dec dword [eax]
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00421e30
add esp, 8
mov eax, dword [0x4487a8]
inc dword [eax]
mov eax, dword [ebp - 0x50]
mov dword fs:[0], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4265be
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xfffffffffffffff0
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowLongA
test al, 4
je 0x4265e4
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x42660e
test esi, esi
jne 0x4265f3
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextLengthA
mov esi, eax
inc esi
push esi
call fcn.0042f17c
pop ecx
mov edi, eax
mov eax, esi
mov edx, edi
push eax
push edx
push dword [ebx + 0x10]
call sub.USER32.dll_GetWindowTextA
mov eax, edi
jmp 0x42663b
push 0
push 0
push 0xbd
push ebx
call fcn.004202cc
add esp, 0x10
test esi, esi
je 0x426635
push 0x42
push esi
push eax
call sub.KERNEL32.dll_LocalReAlloc
test eax, eax
jne 0x426635
xor eax, eax
jmp 0x42663b
push eax
call sub.KERNEL32.dll_LocalLock
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x428e96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
shr eax, 4
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 6
push dword [ebp - 0xc]
push dword [esi + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x428f45
mov dword [ebp - 0x10], edi
push dword [ebp - 0x10]
push dword [esi + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
test eax, eax
je 0x428f45
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x428f35
mov eax, dword [ebp + 0xc]
and eax, 0xf
jmp 0x428ef6
add ebx, ebx
add edi, ebx
mov bx, word [edi]
add edi, 2
movzx ebx, bx
mov edx, eax
add eax, 0xffffffff
test edx, edx
jne 0x428ef2
test ebx, ebx
je 0x428f35
cmp ebx, dword [ebp + 0x14]
jb 0x428f15
mov ebx, dword [ebp + 0x14]
dec ebx
mov eax, ebx
jmp 0x428f26
mov dl, byte [edi]
add edi, 2
mov ecx, dword [ebp + 0x10]
inc dword [ebp + 0x10]
mov byte [ecx], dl
mov edx, eax
add eax, 0xffffffff
test edx, edx
jne 0x428f19
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
test ebx, ebx
je 0x428f45
mov eax, ebx
jmp 0x428f70
mov eax, dword [0x446e88]
cmp esi, eax
je 0x428f62
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00428e96
add esp, 0x10
jmp 0x428f70
cmp dword [ebp + 0x14], 0
je 0x428f6e
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov eax, 0x446be9
call fcn.0042c028
xor ebx, ebx
mov word [ebp - 0x14], 8
lea eax, [ebp - 4]
push eax
call fcn.00430074
pop ecx
mov eax, dword [ebp + 0x10]
shr eax, 4
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push 6
push dword [ebp - 0x30]
push dword [esi + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x42909b
mov dword [ebp - 0x34], edi
push dword [ebp - 0x34]
push dword [esi + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 0x28], eax
test eax, eax
je 0x42909b
push dword [ebp - 0x28]
call sub.KERNEL32.dll_LockResource
mov edi, eax
test edi, edi
je 0x429055
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x38], eax
jmp 0x428ffc
add ebx, ebx
add edi, ebx
mov bx, word [edi]
add edi, 2
movzx ebx, bx
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 0xffffffff
test eax, eax
jne 0x428ff8
test ebx, ebx
je 0x429055
push ebx
lea eax, [ebp - 4]
push eax
call fcn.004302f8
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
jmp 0x42904a
mov eax, dword [ebp - 0x3c]
inc dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
lea eax, [ebp - 4]
push eax
call fcn.004302b0
add esp, 8
mov dl, byte [edi]
add edi, 2
mov byte [eax], dl
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 0xffffffff
test eax, eax
jne 0x42902b
push dword [ebp - 0x28]
call sub.KERNEL32.dll_FreeResource
test ebx, ebx
je 0x42909b
mov word [ebp - 0x14], 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004300e8
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x20
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.00430348
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x429117
mov ebx, dword [0x446e88]
cmp esi, ebx
je 0x4290df
mov word [ebp - 0x14], 0x2c
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00428f77
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x38
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.00430348
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x429117
mov word [ebp - 0x14], 0x44
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004300e8
add esp, 8
mov eax, dword [ebp + 8]
mov word [ebp - 0x14], 0x50
push eax
push 2
lea eax, [ebp - 4]
push eax
call fcn.00430348
add esp, 8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e3a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42e3c4
call fcn.0042e2cc
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x42e3df
test bl, 1
je 0x42e3df
mov dword [0x447f60], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret