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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1004618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x504955
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x504959
xor eax, eax
jmp 0x5049ae
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00427d90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00427e70
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0x5049c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402640
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x5105d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x510653
mov dword [ebp - 8], 0
mov byte [ebp - 0xc], 0
xor edx, edx
mov byte [ebp - 0xb], dl
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], 2
jne 0x51063e
movzx ecx, byte [ebp - 0xc]
cmp ecx, 0xff
jne 0x51063e
movzx edx, byte [ebp - 0xb]
cmp edx, 0xfe
jne 0x51063e
jmp 0x510653
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov esp, ebp
pop ebp
ret
Function at 0x510660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0xffffffff
jne 0x510716
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0
jne 0x5106cd
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 1
jmp 0x510701
cmp dword [ebp - 4], 2
jne 0x5106f7
movzx ecx, byte [ebp - 0x10]
cmp ecx, 0xff
jne 0x5106f7
movzx edx, byte [ebp - 0xf]
cmp edx, 0xfe
jne 0x5106f7
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 1
jmp 0x510701
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x533590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x53af30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427f80
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00428010
mov esp, ebp
pop ebp
ret 4

Function at 0x53b1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x53b204
xor eax, eax
jmp 0x53b21f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00566724
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53b230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x53b244
xor eax, eax
jmp 0x53b25f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00566ba4
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x54236e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x542392
cmp dword [edi + 0x54], 0
jne 0x542392
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0054d82c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0054232f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x547e88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x547ecf
call fcn.0054d82c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x547ecf
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x547eeb
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00547a00
mov esi, eax
test edi, edi
je 0x547ee9
test ebx, ebx
je 0x547ee9
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x548d37
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ae9bc
call fcn.0056a011
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x548d5c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x548da2
lea ecx, [ebp - 0x10]
call fcn.004025e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005485a6
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040db60
mov eax, esi
call fcn.0056a0e9
ret 8

Function at 0x54c484
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x54c4cc
call fcn.0054d82c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x54c4cc
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x54c50f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x54c4f8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x54c4f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x54c50c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x560705
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004618]
jne 0x56070f
repz ret
jmp fcn.0056d0dc
Function at 0x57bd69
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57bd9a
call fcn.00566e87
mov dword [eax], esi
call fcn.00566e74
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00561124
add esp, 0x14
push 0x16
pop eax
jmp 0x57bdef
test dword [ebp + 0xc], 0xfffffff9
jne 0x57bd76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57bdc7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00566e9a
pop ecx
call fcn.00566e74
mov eax, dword [eax]
jmp 0x57bdef
test al, 0x10
jne 0x57bded
test al, 1
je 0x57bded
test byte [ebp + 0xc], 2
je 0x57bded
call fcn.00566e87
mov dword [eax], 5
call fcn.00566e74
mov dword [eax], 0xd
jmp 0x57bdbe
xor eax, eax
pop esi
pop ebp
ret

Function at 0x57fc30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056bd45
and dword [ebp - 4], 0
cmp dword [0x1062d24], 0
mov ebx, eax
jne 0x57fce1
push 0xfdb4e4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x57fd92
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xfdb4d8
push edi
call esi
test eax, eax
je 0x57fd92
push eax
call fcn.0056bcd3
mov dword [esp], 0xfdb4c8
push edi
mov dword [0x1062d24], eax
call esi
push eax
call fcn.0056bcd3
mov dword [esp], 0xfdb4b4
push edi
mov dword [0x1062d28], eax
call esi
push eax
call fcn.0056bcd3
mov dword [esp], 0xfdb498
push edi
mov dword [0x1062d2c], eax
call esi
push eax
call fcn.0056bcd3
pop ecx
mov dword [0x1062d34], eax
test eax, eax
je 0x57fce1
push 0xfdb480
push edi
call esi
push eax
call fcn.0056bcd3
pop ecx
mov dword [0x1062d30], eax
mov eax, dword [0x1062d30]
cmp eax, ebx
je 0x57fd39
cmp dword [0x1062d34], ebx
je 0x57fd39
push eax
call fcn.0056bd4e
push dword [0x1062d34]
mov esi, eax
call fcn.0056bd4e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x57fd39
test edi, edi
je 0x57fd39
call esi
test eax, eax
je 0x57fd30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x57fd30
test byte [ebp - 0xc], 1
jne 0x57fd39
or dword [ebp + 0x10], 0x200000
jmp 0x57fd72
mov eax, dword [0x1062d28]
cmp eax, ebx
je 0x57fd72
push eax
call fcn.0056bd4e
pop ecx
test eax, eax
je 0x57fd72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x57fd72
mov eax, dword [0x1062d2c]
cmp eax, ebx
je 0x57fd72
push eax
call fcn.0056bd4e
pop ecx
test eax, eax
je 0x57fd72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1062d24]
call fcn.0056bd4e
pop ecx
test eax, eax
je 0x57fd92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x57fd94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x407175
cmp dword [esp + 0x54], 0x40
jne 0x407175
cmp word [esp + 0x10], 0x5a4d
jne 0x407175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x407175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x40d960
push esi
call ebx
test eax, eax
je 0x407175
cmp dword [esp + 0x54], 0xf8
jne 0x407175
cmp dword [0x40d960], 0x4550
jne 0x407175
mov eax, dword [0x40d976]
test ah, 0x20
jne 0x407175
mov edx, dword [0x40da80]
xor eax, eax
mov ax, word [0x40d966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x40da58], eax
je 0x407175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x40da6c], eax
xor eax, eax
mov ax, word [0x40d966]
mov edx, dword [0x40da58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x407175
cmp dword [esp + 0x54], edi
jne 0x407175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x40da80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x40d9b4]
cmp edx, eax
ja 0x407175
mov edi, dword [0x40da58]
mov ecx, dword [0x40d988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x407175
xor eax, eax
push 2
mov ax, word [0x40d966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x407175
cmp dword [edi - 0x20], ebx
ja 0x407175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x409769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d190
cmp edx, dword [eax]
je 0x40978b
add eax, 8
inc ecx
cmp eax, 0x40d220
jl 0x40977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d190]
jne 0x4098b9
mov eax, dword [0x40dbb0]
cmp eax, 1
je 0x409893
test eax, eax
jne 0x4097bc
cmp dword [0x40d0e4], 1
je 0x409893
cmp edx, 0xfc
je 0x4098b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4097f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c45c
push edi
call fcn.0040af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a680
lea eax, [ebp - 0xa0]
push 0x40c43c
push eax
call fcn.0040a680
push dword [esi + 0x40d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae75
add esp, 0x2c
pop edi
jmp 0x4098b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40d194]
push 0
push eax
push dword [esi]
call fcn.0040a490
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 0x403231
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x403264
cmp ebp, 4
je 0x403264
cmp ebp, 8
je 0x403264
cmp ebp, 0x10
je 0x403264
cmp ebp, 0x18
je 0x403264
cmp ebp, 0x20
je 0x403264
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x403280
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x403295
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x403298
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041d0ce
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov word [edx + 0xc], 1
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x14], edi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0041d0ce
add esp, 8
cmp ebp, 8
mov dword [esi + 0xc], eax
ja 0x403371
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
cmp eax, ebx
mov dword [esi + 0x38], eax
jbe 0x403371
nop
mov edi, dword [esi + 0x38]
xor edx, edx
sub edi, 1
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
add ecx, 1
cmp ecx, dword [esi + 0x38]
jb 0x403330
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x404050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x495a33
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebp
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x40409c
xor edi, edi
jmp 0x4040a7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x4040ba
xor esi, esi
jmp 0x4040c5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call fcn.00406840
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x74]
mov dword [edx], esi
mov ecx, dword [esp + 0x84]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x60]
mov dword [edx], esi
mov ecx, dword [esp + 0x70]
mov dword [ecx], esi
mov edx, dword [esp + 0x80]
mov dword [edx], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xac], 0
call fcn.00406690
mov byte [esp + 0xa4], 1
mov edx, dword [ebp + 0x74]
mov edx, dword [edx + 0x40]
lea esi, [ebp + 0x74]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea edi, [ebp + 0xb0]
mov ebp, dword [edi]
push 0x20
mov ecx, esi
add ebp, 0x3c
call edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
mov ecx, edi
call eax
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x1c]
mov dword [esp + edx + 0x14], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x20], vtable.std::ios_base.0
call fcn.00454f6f
mov dword [esp + 0xa8], 0xffffffff
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
call fcn.00406940
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x98
ret 4
Function at 0x404730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x495ac7
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
push 0x30
push eax
push 0x84
mov ecx, ebx
call fcn.0042776a
push 0x4011e0
push 0x4011a0
push 0x18
push 8
lea ecx, [ebx + 0x88]
xor ebp, ebp
mov dword [esp + 0xb0], ebp
push ecx
mov dword [ebx], vtable.ButtonPage.0
call fcn.0043ae0d
mov dword [ebx + 0x160], ebp
mov dword [ebx + 0x164], ebp
mov dword [ebx + 0x168], ebp
push fcn.004012a0
push 0x401240
push 0x18
push 0x74
lea edx, [ebx + 0x16c]
push edx
mov byte [esp + 0xb4], 2
call fcn.0043ae0d
lea esi, [ebx + 0xc4c]
mov byte [esp + 0xa0], 3
call fcn.00403fb0
mov byte [esp + 0xa0], 4
mov eax, edi
mov dword [ebx + 0x148], edi
mov dword [ebx + 0xd38], ebp
call fcn.0041b750
cmp byte [0xefb774], 0
mov ecx, dword [eax]
mov dword [ebx + 0x14c], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x150], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x154], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x158], edx
jne 0x404960
mov dword [esp + 0x14], 0xefbb04
mov edi, 0x4c1ad0
jmp 0x404852
xor ebp, ebp
movzx eax, word [edi]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push eax
push ebp
call esi
cmp eax, ebp
je 0x40486f
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
movzx eax, word [edi]
push 0xa
push eax
push 0
call esi
test eax, eax
jne 0x404881
xor esi, esi
jmp 0x40488c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.00406840
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebp
mov dword [ecx], esi
mov edx, dword [esp + 0x3c]
mov dword [edx], esi
mov ecx, dword [esp + 0x4c]
lea eax, [esi + ebp]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x28]
mov dword [edx], esi
mov ecx, dword [esp + 0x38]
mov dword [ecx], esi
mov edx, dword [esp + 0x48]
mov dword [edx], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xa8], 5
call fcn.00406690
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
mov byte [esp + 0xa4], 6
call fcn.00403b00
mov byte [esp + 0xa0], 5
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x64]
mov dword [esp + ecx + 0x5c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.00454f6f
mov byte [esp + 0xa4], 4
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.ysl::storage::memory_streambuf.0
call fcn.00406940
add edi, 0xc
add esi, 0x3c
cmp edi, 0x4c1bf0
mov dword [esp + 0x14], esi
jl 0x404850
mov byte [0xefb774], 1
mov ecx, ebx
call fcn.004262ab
add eax, 4
and dword [eax], 0xffffffdf
mov eax, ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8