joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461d9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x618840
cmp edx, dword [eax]
je 0x461dc1
add eax, 8
inc ecx
cmp eax, 0x6188d0
jl 0x461db2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x618840]
jne 0x461eef
mov eax, dword [0x626df0]
cmp eax, 1
je 0x461ec9
test eax, eax
jne 0x461df2
cmp dword [0x617ec4], 1
je 0x461ec9
cmp edx, 0xfc
je 0x461eef
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x461e29
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045a600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045ad10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x461e6c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045ad10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5c9fa4
push edi
call fcn.0045a6f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045a600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045a610
lea eax, [ebp - 0xa0]
push 0x5c9f84
push eax
call fcn.0045a610
push dword [esi + 0x618844]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045a610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00465065
add esp, 0x2c
pop edi
jmp 0x461eef
lea eax, [ebp + 8]
lea esi, [esi + 0x618844]
push 0
push eax
push dword [esi]
call fcn.0045ad10
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 0x468330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ac1fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push 0x624d1c
lea ecx, [esi + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call fcn.00585c2f
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.00468ed0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x70], 0x5ca96c
mov dword [esi + 0x74], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x78], edi
mov dword [esi], 0x5ca958
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4683e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ac239
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5ca958
mov dword [esp + 0x14], 2
call fcn.00468470
lea eax, [esi + 0x70]
mov dword [esp + 8], eax
mov dword [eax], 0x5ca96c
mov eax, dword [eax + 4]
mov byte [esp + 0x14], 3
test eax, eax
je 0x468434
push eax
call fcn.005861f7
add esp, 4
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00468f50
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00585bc1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46e050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ac557
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
or ecx, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], al
mov byte [esi + 0x11], al
mov byte [esi + 0x12], al
mov byte [esi + 0x13], al
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov byte [esi + 0x16], al
mov edx, dword [0x616c44]
mov dword [esp + 4], esi
mov dword [esi + 0x18], edx
mov edx, dword [0x616c44]
mov dword [esp + 0x10], eax
mov dword [esi + 0x1c], edx
mov edx, dword [0x616c44]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 0x5cb094
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0xa
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 3
call fcn.00475e60
mov ecx, esi
mov byte [esp + 0x10], 4
mov dword [esi], 0x5cb034
call fcn.0046e220
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x47bd40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ad259
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0058541f
mov eax, dword [0x616c44]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x616c44]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x68], 0x5ccb78
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x5ccb20
call fcn.005a3e45
lea edx, [esi + 0x40]
or eax, 0xffffffff
push edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], edi
call dword [0x6231d4]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47fd20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ad609
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00581d2c
mov eax, dword [0x616c44]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x616c44]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov eax, dword [0x616c44]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 3
mov dword [esi], 0x5cce9c
mov dword [esi + 0x48], edx
call fcn.00585d4a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x4c], edx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.00585b4c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x64], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c

Function at 0x47fd36
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ad609
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00581d2c
mov eax, dword [0x616c44]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x616c44]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov eax, dword [0x616c44]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 3
mov dword [esi], 0x5cce9c
mov dword [esi + 0x48], edx
call fcn.00585d4a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x4c], edx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.00585b4c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x64], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x4877f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5adec3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0058541f
xor edi, edi
mov dword [esi + 0x20], 0x5cda28
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x5cd9b8
call fcn.005a3e45
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x48b6f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xe4]
push edi
and esi, 0xffff
call fcn.00488830
test esi, esi
jne 0x48b718
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.0059ed95
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x48b72d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x48b745
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48b758
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x48b76c
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.005861ce
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x48b7af
mov ebp, eax
mov ecx, esi
call fcn.0048b840
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebp], ecx
mov dx, word [esi + 6]
add ebp, 4
cmp edi, edx
jl 0x48b78d
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.0048b4a0
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48b820
mov ecx, ebx
call fcn.0049e1b0
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
xor edx, edx
mov dx, word [esi + 6]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.004987b0
test eax, eax
jne 0x48b7fd
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x48b820
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xf4], ecx
mov dword [ebx + 0xf8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.005861f7
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x492520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x619df4
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x492552
pop esi
pop ecx
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x492561
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
lea ecx, [esp + 4]
xor eax, eax
mov esi, dword [ecx]
cmp edx, esi
pop esi
sete al
pop ecx
ret

Function at 0x492580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x492599
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4925a7
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4925b4
pop esi
ret
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x4928a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ae6c8
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4928e7
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x492906
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x492926
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], 0
imul ebx, dword [ebp + 4]
shl ebx, 2
cmp word [ebp + 0xe], 0x20
jne 0x492a2b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebx + 0x28]
cmp eax, ecx
jb 0x492a2b
lea ecx, [esp + 0x14]
call fcn.0058a7d7
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0058a88e
push 0x34
call fcn.0045b05a
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x4929b3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0058a90c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, 0xa
mov esi, ebp
mov edi, edx
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
neg eax
mov dword [edx + 0x14], ebx
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x3c]
sbb eax, eax
push 0
push ecx
and eax, esi
push 0
push edx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x492a0d
mov edi, dword [esp + 0x38]
test edi, edi
je 0x492a0d
mov ecx, ebx
lea esi, [ebp + 0x28]
mov edx, ecx
mov dword [esp + 0x34], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.0045af53
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0058a90c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x494e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.0058a7d7
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0058a88e
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00494cf0
add esp, 0x14
test eax, eax
jne 0x494ec9
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0058a90c
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push edi
and eax, edx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp edi, ebx
je 0x494f17
cmp ebp, ebx
je 0x494f17
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x494f2c
push eax
call fcn.0045af53
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x494f41
push eax
call fcn.0045af53
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x494f4f
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0058a90c
mov ecx, dword [esp + 0x2c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4976d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
and edi, 0xffff
jne 0x4976e5
pop edi
xor eax, eax
pop esi
ret 0x10
call fcn.0059ed95
mov esi, dword [eax + 0xc]
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x497703
pop edi
pop esi
ret 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x497714
pop edi
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x497726
pop edi
pop esi
ret 0x10
xor eax, eax
push ebx
mov ax, word [esi + 6]
push ebp
shl eax, 2
push eax
call fcn.005861ce
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor edi, edi
add esp, 4
mov dword [ebp], eax
mov dword [ebx], 0
cmp word [esi + 6], di
jbe 0x497786
mov ecx, esi
call fcn.0048b840
cmp word [eax + edi*2], 0
je 0x49777b
mov ecx, esi
call fcn.0048b840
mov edx, dword [ebx]
xor ecx, ecx
mov cx, word [eax + edi*2]
mov eax, dword [ebp]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
xor ecx, ecx
inc edi
mov cx, word [esi + 6]
cmp edi, ecx
jl 0x497753
mov edx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi + 2]
xor ecx, ecx
mov cx, word [esi + 4]
pop ebp
pop ebx
mov dword [edx], eax
pop edi
mov dword [edx + 4], ecx
mov eax, 1
pop esi
ret 0x10
Function at 0x497ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5aebc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x70]
push 0xe
push edi
mov dword [esp + 0x18], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x497bee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x497c61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x497c61
xor ebx, ebx
cmp word [ebp + 4], bx
jbe 0x497bcf
lea ecx, [esp + 0x14]
call fcn.00494130
mov eax, ebx
xor edx, edx
and eax, 0xffff
mov dword [esp + 0x64], 0
lea ecx, [eax*8]
sub ecx, eax
mov dl, byte [ebp + ecx*2 + 7]
lea eax, [ebp + ecx*2]
xor ecx, ecx
mov edi, edx
mov cl, byte [eax + 6]
mov esi, ecx
mov ecx, dword [esp + 0x78]
cmp ecx, esi
jne 0x497b69
cmp dword [esp + 0x7c], edi
je 0x497b75
test ecx, ecx
jne 0x497bb3
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x497bb3
xor edx, edx
push 0
mov dx, word [eax + 0x12]
mov eax, dword [esp + 0x70]
push edi
push esi
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.004947b0
test eax, eax
je 0x497bd9
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push esi
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00497850
test eax, eax
je 0x497bd9
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.00494430
inc ebx
cmp bx, word [ebp + 4]
jb 0x497b27
mov eax, 1
jmp 0x497c61
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.00494430
xor eax, eax
jmp 0x497c61
lea ecx, [esp + 0x38]
call fcn.00494130
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
push 0
push ebx
push ebp
push edi
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 1
call fcn.004947b0
test eax, eax
jne 0x497c2f
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0xffffffff
call fcn.00494430
xor eax, eax
jmp 0x497c61
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00497850
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x64], 0xffffffff
call fcn.00494430
mov eax, esi
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x18
Function at 0x497d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5aebf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x1c], ecx
je 0x497d8f
mov eax, dword [ebx + 4]
test eax, eax
jne 0x497d96
xor eax, eax
jmp 0x497ee5
mov edi, dword [esp + 0x6c]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test edi, edi
jne 0x497db5
mov ecx, dword [esp + 0x68]
test ecx, ecx
jne 0x497db5
push eax
call esi
mov dword [esp + 0x6c], eax
mov edi, eax
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x497e06
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x497e06
test edi, edi
jle 0x497e06
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
call dword [0x623300]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, ebp
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov ecx, dword [ebx + 4]
push ecx
call esi
xor edx, edx
cmp eax, edi
sete dl
xor ebx, ebx
mov dword [esp + 0x18], edx
test edi, edi
mov dword [esp + 0x14], ebx
jle 0x497ee0
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x497e4a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x497e4a
mov ecx, dword [esp + 0x10]
cmp dword [ecx], 0
je 0x497ec4
mov edx, dword [esp + 0x64]
push 0
push ebx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
test esi, esi
je 0x497d8f
mov eax, dword [esp + 0x68]
test eax, eax
je 0x497e75
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
jmp 0x497e79
mov edi, dword [esp + 0x14]
push 1
push esi
lea ecx, [esp + 0x38]
call fcn.00494140
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ebp
push edx
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x70], 0
call fcn.00497850
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00494430
push esi
call dword [0x623234]
mov edi, dword [esp + 0x6c]
inc ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x497e31
mov eax, 1
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18