joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465010
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4866d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4c5344]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.00477dd9
push str..
lea ecx, [esp + 0x10]
call fcn.0047802c
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4650b3
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00477c9c
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00477c9c
xor eax, eax
jmp 0x4651f8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x4c52dc
push edx
call fcn.00467954
add esp, 8
test eax, eax
je 0x4651a9
lea eax, [esp + 0x48]
push 0x4c52d8
push eax
call fcn.00467954
add esp, 8
test eax, eax
je 0x4651a9
test ebp, ebp
jne 0x465115
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00467a03
add esp, 8
test eax, eax
je 0x4651a9
push esi
lea ecx, [esp + 0x14]
call fcn.00477dd9
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00478053
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0047802c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x465155
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x465177
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00465010
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4651a9
test edi, edi
je 0x46519e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00467a03
add esp, 8
test eax, eax
jne 0x46519e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.00465220
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4650c3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00477c9c
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00477c9c
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x465220
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4866eb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00468170
mov eax, dword [0x4c5344]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.00477dd9
push 0x5c
lea ecx, [esp + 8]
call fcn.00478053
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0047802c
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4652c6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00477c9c
xor eax, eax
jmp 0x465343
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x465321
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x465313
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4652ed
jmp 0x465321
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00477c9c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x47a040
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a078
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004780f7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004780cf
jmp 0x47a084
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47b732
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b774
call fcn.0048122d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b774
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47b76b
xor eax, eax
jmp 0x47b77c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b782
pop edi
pop esi
pop ebx
ret 4
Function at 0x48175d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48178b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4817a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004816c3
jmp 0x4817a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4817a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004816c3
test edi, edi
mov eax, edi
jne 0x481793
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100010b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0x64
jge 0x100010f3
jmp 0x100012ad
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x10012200]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10001091
push eax
call fcn.100012c3
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001091
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x40
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10001171
push 6
call fcn.1000d87e
add esp, 4
test eax, eax
je 0x100011e7
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x1bc
call fcn.1000dc10
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100011ae
push ebx
call fcn.1000d872
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000005
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ebx, 0xc
mov eax, 0x100102e0
call fcn.1000db70
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x40
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.100012e1
cmp dword [ebp - 8], 0
je 0x10001235
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push 4
push 0xf8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10001221
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x10001235
mov eax, 1
jmp 0x10001237
xor eax, eax
test eax, eax
je 0x100012ad
push 0x80000301
push 0
push 0xf8
push 1
mov ebx, 0x1bc
call fcn.1000dc10
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001274
push ebx
call fcn.1000d872
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000005
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ebx, 0xc
mov eax, 0x100102e0
call fcn.1000db70
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0xf8
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.100012e1
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100012bd
push ebx
call fcn.1000d872
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x10001538
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
ret
Function at 0x100015c8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], esp
push 0x10012228
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x100015f5
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push str.memcpy
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000161f
push 6
call fcn.1000d87e
add esp, 4
mov dword [ebp - 0x10], eax
push 5
push dword [ebp - 0x10]
call fcn.10001736
mov dword [0x10012b0e], eax
mov dword [ebp - 4], esp
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x10001658
push 6
call fcn.1000d87e
add esp, 4
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0x24
mov eax, 0x100103c0
call fcn.1000db70
add esp, 0x1c
mov dword [0x10012b12], eax
push 0x1000cd41
call fcn.10001757
mov dword [ebp - 4], eax
push 1
push 0x10012b0e
push 0
push 0
push 0
push dword [ebp - 4]
push 0
push 0
call fcn.10001796
mov dword [ebp - 4], esp
push str.MyShareMemoryFile
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x100016ef
push 6
call fcn.1000d87e
add esp, 4
mov dword [0x10012b16], eax
mov dword [ebp - 4], esp
push 0
push 0
push 0
push 4
push dword [0x10012b16]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1000172d
push 6
call fcn.1000d87e
add esp, 4
mov dword [0x10012b1a], eax
mov esp, ebp
pop ebp
ret
Function at 0x4014ba
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4014d4
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x401500
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40150b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401f23
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x401f61
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x401f61
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x401f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0x401fc9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
jne 0x401f83
mov eax, 0x80070005
jmp 0x401fc8
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0x401fc8
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402117
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x427300]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.00401485
cmp eax, esi
jne 0x40219f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402168
lea eax, [ebp - 0x70]
push eax
call fcn.00402117
cmp eax, esi
jne 0x40219e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x40215b
call fcn.00401420
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401420
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.004177b3
add ebp, 0x194
leave
ret 4

Function at 0x402584
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push dword [ebp + 0xc]
mov ebx, ecx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4025af
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0x40260f
push edi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4025cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0x40260e
push edi
mov ecx, ebx
call fcn.00402073
test eax, eax
jne 0x4025e0
mov eax, 0x8007000e
jmp 0x40260e
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4025c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x402600
mov eax, 0x80070005
jmp 0x40260e
push edi
push eax
push dword [ebx]
call fcn.00417990
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402d0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x427300]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0x104
mov dword [ebp - 4], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [edi + eax*2 - 2], 0x5c
je 0x402d3e
mov word [edi + eax*2], 0x5c
inc eax
xor esi, esi
mov word [edi + eax*2], si
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x422904
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [0x429600]
lea eax, [ebp - 0x20c]
push 0x4228fc
push 0xc9
push eax
call fcn.00401f23
add esp, 0x10
test eax, eax
je 0x402d85
mov eax, 0x80004005
jmp 0x402e51
push esi
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x42844c
call fcn.0040b6cb
push 0x14
lea ecx, [ebx + 0x48]
call fcn.0040bb67
cmp dword [ebx + 0x74], esi
jne 0x402e40
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], esi
call fcn.00402615
cmp eax, esi
jne 0x402e51
mov esi, dword [ebp - 0x210]
push esi
lea ecx, [ebp + 8]
call fcn.00401a73
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x3c]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00417db6
lea eax, [ebp - 0x20c]
push eax
call fcn.00417d76
and word [edi + eax*2 - 6], 0
add esp, 0xc
push 1
mov word [edi + eax*2 - 8], 0x5c
and dword [ebx + 0x118], 0
push edi
mov ecx, 0x42844c
call fcn.0040b6cb
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [eax + 0x28]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x3c]
cmp dword [ebx + 0x74], 0
mov eax, dword [ebp + 8]
je 0x402e45
test eax, eax
je 0x402e40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x402e51
test eax, eax
je 0x402e4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004177b3
leave
ret 4
Function at 0x4044e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x429604]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40463b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40463b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40463b
call dword [0x427080]
mov dword [ebp + 8], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [ebp - 8], eax
je 0x40463b
inc edi
inc edi
mov ax, word [edi]
inc edi
inc edi
mov ecx, dword [edi]
add edi, 4
cmp ax, 0x403
mov dword [ebp - 0x10], ecx
jne 0x4045b5
test edi, edi
jne 0x404573
xor eax, eax
jmp 0x4045ab
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00417cd0
mov ebx, esp
xor eax, eax
cmp ebx, eax
je 0x4045ab
push esi
push ebx
push 0xffffffffffffffff
push edi
push eax
push dword [ebp + 8]
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
push eax
push 0
push 0x143
jmp 0x404614
cmp ax, 0x1234
jne 0x40462e
or dword [ebp - 0x30], 0xffffffff
test edi, edi
mov dword [ebp - 0x34], 1
jne 0x4045ce
xor eax, eax
jmp 0x404606
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00417cd0
mov ebx, esp
xor eax, eax
cmp ebx, eax
je 0x404606
push esi
push ebx
push 0xffffffffffffffff
push edi
push eax
push dword [ebp + 8]
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x40b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x40462e
and dword [ebp - 4], 0
add edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
jne 0x404545
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x427300]
push ebx
push esi
push edi
mov dword [ebp + 0x398], eax
mov esi, ecx
call dword [0x427080]
xor ebx, ebx
push 2
push ebx
push dword [ebp + 0x3a4]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x74], edi
jne 0x407db6
call fcn.00401197
mov esi, eax
jmp 0x407e47
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x407e1d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x407e1d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + edi]
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004024f1
cmp dword [ebp - 0x6c], ebx
jne 0x407e03
mov esi, 0x8007000e
jmp 0x407e3e
call dword [0x427080]
push edi
push dword [ebp - 0x6c]
push edi
push dword [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x407e24
call fcn.00401197
jmp 0x407e3c
mov eax, dword [ebp - 0x6c]
push dword [ebp + 0x3b0]
mov word [esi + eax], bx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
call fcn.004040b6
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x407e57
lea ecx, [ebp - 0x6c]
call fcn.00401ef5
lea ecx, [ebp - 0x70]
call fcn.00401a5a
mov ecx, dword [ebp + 0x398]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004177b3
add ebp, 0x39c
leave
ret 0x10
Function at 0x408f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00408e05
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x409010
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x408f96
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x408ff4
push eax
call ebx
mov edi, eax
test edi, edi
je 0x408ff4
push ebp
push edi
call fcn.00401c46
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x408fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x408ffe
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x408ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x409010
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret