joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9eaef8
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov ecx, 0x10
mov esi, 0x50f2d8
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
or ecx, 0xffffffff
shr eax, 0x1f
movsb byte es:[edi], byte [esi]
add edx, eax
mov edi, 0x50f2d4
xor eax, eax
shl edx, 2
repne scasb al, byte es:[edi]
not ecx
mov esi, edx
dec ecx
imul ecx, esi
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
lea ecx, [esi + ecx + 3]
push ecx
call fcn.00a2154c
mov esi, eax
mov eax, 0x55555556
imul ebp
mov ebx, dword [esp + 0x64]
mov eax, edx
shr eax, 0x1f
xor ecx, ecx
add edx, eax
add esp, 4
xor edi, edi
cmp edx, ecx
mov dword [esp + 0x10], ecx
jle 0x9eb037
mov dword [esp + 0x14], edx
jmp 0x9eaf87
mov ebx, dword [esp + 0x60]
xor eax, eax
xor edx, edx
mov al, byte [edi + ebx]
mov dl, byte [edi + ebx + 1]
inc edi
mov ebp, edx
inc edi
xor edx, edx
mov dl, byte [edi + ebx]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
and eax, 3
shl eax, 4
mov bl, byte [esp + ebx + 0x18]
inc edi
mov byte [ecx + esi], bl
mov ebx, ebp
sar ebx, 4
and ebx, 0xf
inc ecx
or ebx, eax
and ebp, 0xf
shl ebp, 2
mov al, byte [esp + ebx + 0x18]
mov byte [ecx + esi], al
mov eax, edx
sar eax, 6
and eax, 3
inc ecx
or eax, ebp
and edx, 0x3f
inc ecx
mov al, byte [esp + eax + 0x18]
mov dl, byte [esp + edx + 0x18]
mov byte [ecx + esi - 1], al
mov eax, dword [esp + 0x6c]
mov byte [ecx + esi], dl
mov edx, dword [esp + 0x10]
inc ecx
add edx, 4
test eax, eax
mov dword [esp + 0x10], edx
je 0x9eb020
mov eax, edx
cmp eax, 0x49
jl 0x9eb020
mov al, byte [0x50f2d4]
mov byte [ecx + esi], al
mov al, byte [0x50f2d5]
inc ecx
test al, al
je 0x9eb018
mov byte [ecx + esi], al
inc ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x9eaf83
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov eax, ebp
mov ebp, 3
cdq
idiv ebp
sub edx, 0
je 0x9eb0df
dec edx
je 0x9eb094
dec edx
jne 0x9eb0fd
xor edx, edx
xor eax, eax
mov dl, byte [edi + ebx]
mov al, byte [edi + ebx + 1]
mov ebp, edx
sar edx, 2
and edx, 0x3f
and ebp, 3
shl ebp, 4
mov dl, byte [esp + edx + 0x18]
mov byte [ecx + esi], dl
mov edx, eax
sar edx, 4
and edx, 0xf
inc ecx
or edx, ebp
inc ecx
and eax, 0xf
mov dl, byte [esp + edx + 0x18]
mov al, byte [esp + eax*4 + 0x18]
mov byte [ecx + esi - 1], dl
mov byte [ecx + esi], al
jmp fcn.009eb0bc
xor eax, eax
mov al, byte [edi + ebx]
mov edx, eax
and eax, 3
sar edx, 2
and edx, 0x3f
inc ecx
shl eax, 4
mov dl, byte [esp + edx + 0x18]
mov al, byte [esp + eax + 0x18]
mov byte [ecx + esi - 1], dl
mov byte [ecx + esi], al
inc ecx
mov byte [ecx + esi], 0x3d
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x9eb0fd
mov al, byte [0x50f2d4]
mov byte [ecx + esi], al
mov al, byte [0x50f2d5]
inc ecx
test al, al
je 0x9eb0fd
Function at 0x9eb668
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.009eb218
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.009eb298
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.009eb298
lea ecx, [esi + 0xc]
call fcn.00a21796
lea ecx, [esi + 0x10]
call fcn.00a21796
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.009ec838
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.009ec838
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.009ec838
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00a2180b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00a2180b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x9fba78
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x55b244]
xor edx, edx
cmp eax, edx
jne 0x9fba9e
xor eax, eax
mov byte [eax + 0x55b144], al
inc eax
cmp eax, 0x100
jl 0x9fba86
mov dword [0x55b244], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x55b144
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x9fbb2f
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x9fbb02
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x9fbad0
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x9fbb38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x9fbb8b
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x9fbb72
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa02528
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2abe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00a02e48
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4f05cc
call fcn.00a2154c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0xa025bb
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00a2154c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0xa025b4
push 0
mov ecx, eax
call fcn.009f96b8
mov dword [esi + 0xc], eax
jmp 0xa025bd
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0xa025bd
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0xb6ac51
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jle 0xb6ac86
push dword [ebp + 8]
call fcn.00b66401
mov dword [ebp - 0x10], eax
cmp word [ebp - 0x10], 0x5a4d
jne 0xb6ac86
xor eax, eax
jmp 0xb6ac8b
mov eax, 1
test eax, eax
je 0xb6ac9d
mov eax, 0
jmp 0xb6ae66
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x43ca03]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00b61378
push eax
call fcn.00b62196
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00b61378
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00b62196
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4550
jne 0xb6ad56
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x43ca1b]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00b61378
push eax
call fcn.00b66401
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 0x2000
mov eax, dword [ebp - 0x24]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00c23fe2
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0xb6ad56
xor eax, eax
jmp 0xb6ad5b
mov eax, 1
test eax, eax
je 0xb6ad6d
mov eax, 0
jmp 0xb6ae66
fild dword [ebp - 4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x43ca2b]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00b61378
push eax
call fcn.00b62196
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
push 1
push 0
push 1
push 0
push 1
push 0
fld qword [ebp - 0x30]
call fcn.00b61378
push eax
call fcn.00b66dd1
lea eax, [ebp + 8]
push eax
call fcn.00b6661d
jmp 0xb6ae66
mov esp, ebp
pop ebp
ret 4
Function at 0x402570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x5aa0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 0x810], eax
mov eax, dword [ebx + 0xc0]
push edi
mov dword [ebp - 0x80c], eax
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x810]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
dec eax
je 0x40272c
mov eax, dword [ebx + 0x8cc]
test eax, eax
je 0x40272c
lea ecx, [ebp - 0x814]
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCommMask]
test eax, eax
je 0x402713
cmp dword [ebp - 0x814], 0xc1
jne 0x402713
push 0
lea eax, [ebp - 0x81c]
push eax
mov eax, dword [ebx + 0x8cc]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [ebp - 0x814]
test al, 0x40
je 0x402627
mov eax, dword [ebx + 0x8cc]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
mov eax, dword [ebp - 0x814]
test al, 1
je 0x4025a0
nop
mov edi, dword [ebx + 0x8cc]
mov dword [ebp - 0x818], 0xffffffff
cmp dword [edi + 0x1c], 0xffffffff
je 0x40268b
lea eax, [ebp - 0x808]
test eax, eax
je 0x40268b
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea eax, [ebp - 0x818]
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x818]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x402702
jmp 0x40268e
or edi, 0xffffffff
mov ecx, dword [ebx + 0x8c8]
lea eax, [ecx + edi]
cmp eax, 0x800
ja 0x4026bf
push edi
lea eax, [ebp - 0x808]
push eax
lea eax, [ebx + 0xc8]
add eax, ecx
push eax
call fcn.0052c650
add esp, 0xc
add dword [ebx + 0x8c8], edi
jmp 0x4026fb
lea ecx, [ebx + 0xc8]
mov eax, 0x800
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00529f60
push edi
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
sub eax, edi
add eax, 0x8c8
push eax
call fcn.0052c650
add esp, 0x18
mov dword [ebx + 0x8c8], 0x800
mov ecx, ebx
call fcn.00402420
cmp edi, 0x800
je 0x402630
jmp 0x4025a0
mov eax, dword [ebx + 0x8cc]
push 0xc1
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
jmp 0x4025a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005290f9
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5522e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5aa0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
call fcn.0041676b
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4027bd
push 0x80004005
call fcn.004051d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0
push 1
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0xbc], eax
test eax, eax
je 0x4028ef
push 0x20
call fcn.004060c9
mov edi, eax
add esp, 4
test edi, edi
je 0x402814
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.CSerialPort.0
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x402816
xor edi, edi
mov dword [ebx + 0x8cc], edi
test edi, edi
je 0x4028ef
push 0
push 0
push 0x147
push dword [ebx + 0x8f0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [eax + ebx + 0x9c3]
movzx eax, al
push eax
lea eax, [ebp - 0x10]
push str.COM_d
push eax
call fcn.004052a0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x8cc]
add esp, 0xc
push 0
push 0
push 8
push 0x1c200
push esi
call fcn.00405ee0
test eax, eax
je 0x4028ef
push 0
push 0
push ebx
push 0x402740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xc4], eax
test eax, eax
je 0x4028ef
push 0x800
lea eax, [ebx + 0xc8]
push 0
push eax
call fcn.0052c260
mov eax, dword [ebx + 0x8cc]
mov edi, dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
add esp, 0xc
mov dword [ebx + 0x8c8], 0
push 5
push dword [eax + 0x1c]
mov dword [ebp - 0x14], 1
call edi
mov eax, dword [ebx + 0x8cc]
push 3
push dword [eax + 0x1c]
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x8cc]
push 6
push dword [eax + 0x1c]
call edi
jmp 0x40293d
mov ecx, dword [ebx + 0x8cc]
test ecx, ecx
je 0x402909
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x8cc], 0
mov eax, dword [ebx + 0xbc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402926
push eax
call edi
mov dword [ebx + 0xbc], 0
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x40293d
push eax
call edi
mov dword [ebx + 0xc4], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40295e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0xc4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [esi + 0x8cc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4029e6
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4029cc
cmp eax, 0xffffffff
je 0x4029cc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0x1c]
call ebx
mov dword [edi + 0x1c], 0xffffffff
mov ecx, dword [esi + 0x8cc]
test ecx, ecx
je 0x4029dc
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x8cc], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4029fd
push eax
call ebx
mov dword [esi + 0xc4], 0
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x402a20
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0xbc]
call ebx
mov dword [esi + 0xbc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4044b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004134fb

Function at 0x404a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404a85
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ac4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404ac0
lea ebx, [ebx]
cmp esi, edx
jae 0x404ac4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404ab0
cmp esi, edx
jb 0x404ac9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4056b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x552530
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5aa0d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x5aa0d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CBitmap.0
mov dword [esp + 0x38], 0
call fcn.00420772
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadBitmapW]
push 0x82
push eax
call edi
push eax
lea ecx, [esp + 0x24]
call fcn.004171df
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [ebx + 0x9c]
call fcn.004171df
call fcn.00420772
mov eax, dword [eax + 8]
push 0x85
push eax
call edi
mov esi, eax
push 0x3f3
mov ecx, ebx
mov dword [ebx + 0xa8], esi
call fcn.0041fa9d
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0xf7
push dword [eax + 0x20]
call ebx
call fcn.00420772
mov eax, dword [eax + 8]
push 0x87
push eax
call edi
mov edi, dword [esp + 0x14]
mov esi, eax
push 0x3f4
mov ecx, edi
mov dword [edi + 0xa4], esi
call fcn.0041fa9d
push esi
push 0
push 0xf7
push dword [eax + 0x20]
call ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CFont.0
push 0
push 0x586e9c
push 0xb4
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.00422e42
push 0x3f1
mov ecx, edi
call fcn.0041fa9d
push 0x3f2
mov ecx, edi
mov esi, eax
call fcn.0041fa9d
push 1
push dword [esp + 0x20]
push 0x30
push dword [esi + 0x20]
call ebx
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CFont.0
call fcn.004052c0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.004052c0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005290f9
mov esp, ebp
pop ebp
ret
Function at 0x407923
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x40796d
call fcn.00420772
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40796a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4079a6
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x40798f
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x40798f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x4079a4
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413557
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00420772
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41358e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004135ad
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41aacb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5aa0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5ad358]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x41ab17
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ab34
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5ad358], eax
jmp 0x41ab20
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41ab34
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41aba1
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41ab4f
xor eax, eax
jmp 0x41aba1
lea eax, [ebp - 0x210]
push eax
call fcn.0052bc8f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41ab80
push 0x556280
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052bc23
add esp, 0xc
test eax, eax
jne 0x41ab4b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052bc23
add esp, 0xc
test eax, eax
jne 0x41ab4b
lea eax, [ebp - 0x210]
push eax
call fcn.0041f751
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005290f9
leave
ret