joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4540af
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.004544bd
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x28
lea eax, [ebp - 0x54]
push eax
lea esi, [ebx + 0x1c]
push esi
call fcn.0045a20d
add esp, 0xc
push 8
push 1
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebx + 0x10]
push eax
push 0
push 0
push dword [ebx + 0x80]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458e9f
leave
ret 4

Function at 0x454814
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, ecx
test ebx, ebx
je 0x454836
push 1
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx], eax
xor eax, eax
lea esi, [edi + 0x70]
push esi
push eax
push eax
push eax
push 2
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x45485c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
xor al, al
jmp 0x4548fb
push dword [esi]
call fcn.004590c6
mov esi, eax
pop ecx
cmp esi, dword [edi + 0x6c]
je 0x454874
push dword [edi + 0x6c]
call fcn.00458d46
pop ecx
push 0
mov dword [edi + 0x6c], esi
call fcn.00458d46
pop ecx
lea esi, [edi + 0x70]
push esi
push dword [edi + 0x6c]
push 0
push 0
push 2
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x45484c
push 0
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [edi + 0x70]
push eax
push dword [eax]
push dword [edi + 0x6c]
push dword [ebp + 8]
call esi
test byte [ebp + 0x10], 1
jne 0x4548e2
push 0
push dword [ebp + 8]
push 1
push 1
push 0x10001
push dword [edi + 0xc]
call dword [sym.imp.CRYPT32.dll_CertSaveStore]
test eax, eax
je 0x45484c
test ebx, ebx
je 0x4548f9
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [ebx]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x45528c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4552be
xor eax, eax
jmp 0x455370
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00458527
pop ecx
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x4552b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x2c]
call fcn.00455e76
lea esi, [edi + 0x20]
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.0043f835
mov eax, dword [esi]
push 0
push 0x4c0b60
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004051f0
mov esi, dword [ebp - 4]
mov ecx, edi
mov byte [esi + ebx], 0
mov dword [edi + 0x38], esi
call fcn.004550ce
push eax
push 0
mov ecx, edi
call fcn.00455377
test eax, eax
je 0x4552b7
mov ecx, edi
call fcn.004550ce
push eax
push 9
mov ecx, edi
call fcn.00455377
test eax, eax
je 0x4552b7
push edi
mov ecx, edi
call fcn.004558bd
test eax, eax
je 0x4552b7
push esi
call fcn.004593fa
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46d3a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046456f
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46d3dc
xor eax, eax
jmp 0x46d408
cmp esi, dword [ebp - 4]
je 0x46d405
cmp dword [ebp + 0xc], 0
je 0x46d405
push dword [edi + 0x9c]
call fcn.0046cfb2
push dword [edi + 0x9c]
mov esi, eax
call fcn.0045a1f4
pop ecx
pop ecx
cmp esi, eax
je 0x46d3d8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x474042
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00462022
mov dword [ebp - 0x14], eax
cmp dword [0x4d8a94], edi
jne 0x474133
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4740c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x474213
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x474213
push 0x4ba960
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x474213
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4d8a94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4d8a98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4d8a9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d8aa4], eax
test eax, eax
je 0x474130
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d8aa0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x474158
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47414b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x47416d
push 4
pop eax
jmp 0x474215
cmp dword [ebp - 0x14], edi
je 0x47416d
push dword [0x4d8a94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x474152
mov eax, dword [0x4d8aa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4741cb
cmp dword [0x4d8aa4], esi
je 0x4741cb
push eax
call ebx
push dword [0x4d8aa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4741cb
test eax, eax
je 0x4741cb
call ecx
test eax, eax
je 0x4741c0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4741c0
test byte [ebp - 8], 1
jne 0x4741cb
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4741fb
mov eax, dword [0x4d8a98]
cmp eax, esi
je 0x4741f8
push eax
call ebx
test eax, eax
je 0x4741f8
call eax
mov edi, eax
test edi, edi
je 0x4741f8
mov eax, dword [0x4d8a9c]
cmp eax, esi
je 0x4741f8
push eax
call ebx
test eax, eax
je 0x4741f8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4d8a94]
call ebx
test eax, eax
je 0x474213
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x474215
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458e9f
leave
ret
Function at 0x485080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a957f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [edi + 8], 0x4ac9c4
mov dword [edi + 0x30], 0x4ac9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], eax
mov dword [edi + 0x20], 7
mov dword [edi + 0x1c], 0
xor eax, eax
mov word [edi + 0xc], ax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
push dword [eax + edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.0048a1f0
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 1
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.0048a190
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 2
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
call fcn.0048a1c0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x58], 0
push 0
lea eax, [ebp - 0x71]
push eax
push str.uxtheme.dll
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x48], 1
mov byte [edi + 0x54], 0
mov dword [ebp - 0x40], 0x4c0f30
mov dword [ebp - 0x18], 0x4c0ed0
call fcn.00408f6d
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 5
call fcn.0044416b
add eax, 4
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4851b0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [edi + 0x58]
mov esi, eax
cmp ecx, esi
je 0x4851db
test ecx, ecx
je 0x4851d8
mov edx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edx, edx
je 0x4851d8
push ecx
call edx
mov dword [edi + 0x58], 0
mov dword [edi + 0x58], esi
lea ecx, [ebp - 0x70]
call fcn.00401b80
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [edi + 0x58]
test eax, eax
je 0x485203
push str.SetWindowTheme
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x5c], eax
jmp 0x48520a
mov dword [edi + 0x5c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458e9f
mov esp, ebp
pop ebp
ret
Function at 0x487c00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x9e
push eax
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], ebx
call fcn.00458f10
add esp, 0xc
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0xb4]
push eax
push dword [ebx]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
add dword [ebp - 0xb4], 0xa
sub dword [ebp - 0xac], 0xa
push 0xa0
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0xa4], 0
je 0x487dfa
push edi
push 0x4c0d0c
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xfffffffffffffff0
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
call esi
push 0xffffffffffffffec
push dword [ebp - 0xbc]
mov edi, eax
call esi
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xac]
push 0xffffffffffffffff
push dword [ebx]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0xb4]
sub eax, ecx
push eax
push edx
shr edi, 0x10
push ecx
and edi, 0xff7faffc
or edi, 0x50000000
push edi
lea eax, [ebp - 0xa4]
push eax
push str.STATIC
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x487df9
mov eax, dword [ebp - 0xb8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push dword [eax]
call esi
push 1
push eax
push 0x30
push ebx
mov dword [ebp - 0xc8], eax
call esi
push 0x48a000
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0xb8]
mov esi, dword [sym.imp.USER32.dll_SetPropW]
push str.PROP_STAT_PSKIN
push ebx
mov edi, eax
call esi
push edi
push str.PROP_STAT_OLDPROC
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
test esi, esi
je 0x487dc9
push dword [ebp - 0xc8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
push 2
push ecx
push eax
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push dword [ebp - 0xbc]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [eax + 0x14c]
push ebx
call fcn.00487850
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00458e9f
mov esp, ebp
pop ebp
ret
Function at 0x493a20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa17e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d5e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x80], 0
push 0x4c
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.00458f10
push 0x30
lea esi, [ebx + 0x4c]
push 0
push esi
call fcn.00458f10
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebx + 0x54], 1
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x64], 0x64
mov dword [ebx + 0x68], 0x64
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x34], 0x4000
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x48], eax
call fcn.00498930
mov dword [ebx + 0x58], eax
add esp, 0x1c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x495150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x49515c
pop ebp
ret
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00494060

Function at 0x496720
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d5e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
or esi, 0xffffffff
mov dword [ebp - 4], 0
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x4967d9
push edi
push edi
push edi
push 2
push edi
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4967d9
push 0
push 0
push 0
push 4
mov edi, eax
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x4967d9
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.004964c0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp + 0xb], 1
test eax, eax
je 0x4967dd
push ebx
call eax
jmp 0x4967dd
mov byte [ebp + 0xb], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4967ee
test ebx, ebx
je 0x4967ee
push edi
call ebx
cmp esi, 0xffffffff
je 0x4967fa
test ebx, ebx
je 0x4967fa
push esi
call ebx
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x498360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x30], eax
movzx eax, cx
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4983a1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49839a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.00496bc0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4983e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4983f3
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004988e0
movzx ebx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4bb5a8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x498442
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x49842a
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00498830
add esp, 8
mov dword [edi], eax
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov ebx, eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4984cf
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4984cf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4984c8
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
call fcn.004594d0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4984c1
push eax
push dword [ebp + 0x10]
call fcn.00498880
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x49ac18
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x7863513
call fcn.0049adb2
add esp, 0x10
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x49ad74
push edi
mov edi, dword [ebp + 0x18]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0049ad83
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49ad6c
push esi
push esi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x49ad60
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ecx
cmp esi, esi
jl 0x49ad3d
jg 0x49acdb
cmp ecx, esi
jbe 0x49ad3d
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov edi, esi
mov eax, esi
jmp 0x49acf0
mov ecx, dword [ebp - 0xc]
push edx
push ecx
push eax
push edi
call fcn.0049b090
mov ecx, dword [ebp - 8]
movzx eax, byte [eax + ecx]
push eax
movzx eax, byte [edi + ebx]
push eax
cmp dword [ebp + 0x14], esi
je 0x49ad12
call fcn.0049abfb
jmp 0x49ad17
call fcn.0049aae6
mov edx, dword [ebp - 0x14]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0x10]
add edi, 1
adc eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x49acf0
mov ecx, dword [ebp - 0x18]
jg 0x49ad3a
cmp edi, ecx
jb 0x49aced
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x49ad56
mov eax, dword [edi + 4]
test eax, eax
je 0x49ad56
push dword [edi + 8]
push esi
push ecx
push ebx
call eax
add esp, 0x10
mov dword [edi + 0xc], eax
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.004593fa
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x49adb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call fcn.00458527
mov esi, eax
xor eax, eax
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x49adf1
push ebx
mov ebx, dword [ebp + 8]
sub ebx, esi
lea ecx, [eax + esi]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jl 0x49add2
pop ebx
mov eax, esi
pop esi
leave
ret