joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50cb32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0050bec1
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x50cb72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x50cb72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x50cb76
xor eax, eax
jmp 0x50cbf3
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.004f5012
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x50cba4
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x50cb93
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0050c776
push edi
mov ebx, eax
call fcn.004f503d
test ebx, ebx
pop ecx
je 0x50cbe6
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0050c9b8
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0050ca3f
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x50cd01
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x566450]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x50cd5f
push 0x53ec98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004dd98c
add esp, 0x10
cmp eax, 0xffffffff
je 0x50cd73
cmp eax, esi
jae 0x50cd73
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x50cd75
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x50cd2a
jmp 0x50cd76
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004da561
leave
ret
Function at 0x50cd96
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x50ce38
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x50cf3a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x50cee8
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.ODBC32.dll_SQLAllocConnect
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50cf3b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50cedd
cmp dword [ebp - 0x24], 1
jne 0x50cedd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x52ce14
push eax
call fcn.004dcf46
add esp, 0xc
cmp eax, 1
jne 0x50cedd
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50cf3b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x50cf3b
lea ecx, [ebp - 0x18]
push ecx
push 0x50cd80
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x50cf3b
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x50cf61
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0050cd01
cmp eax, ebx
pop ecx
pop ecx
jne 0x50cf63
inc edi
cmp edi, esi
jl 0x50cf4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004da561
leave
ret 4
Function at 0x50cf72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x56528c
je 0x50d02e
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.ODBC32.dll_SQLAllocConnect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50d016
mov esi, dword [ebx + 4]
jmp 0x50d010
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50d000
cmp dword [ebp - 0xc], 4
jne 0x50d000
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x50cff8
or dword [eax + 0x9c], ecx
jmp 0x50d000
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x50cfc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x50cfa7
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x50d8a6
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x5292d2
call fcn.004da3b8
sub esp, 0x11c
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x50d99f
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x50d973
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402e71
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0050d8a6
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401a56
test bl, bl
jne 0x50d973
or dword [ebp - 4], 0xffffffff
jmp 0x50d8e4
cmp esi, 0x103
je 0x50d983
cmp esi, 0x3f2
jne 0x50d993
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004da561
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50dd3a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x529374
call fcn.004da3b8
mov eax, 0x1014
call fcn.004da570
mov eax, dword [0x566450]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x50de35
push dword [ebp + 0xc]
call fcn.0050dc8b
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x50dd83
push dword [ebp + 0x14]
jmp 0x50de66
push esi
call fcn.004f5862
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x50de00
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00401fcb
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.004bd470
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x50de23
lea eax, [ebp + 0xc]
push eax
call fcn.0043bad0
jmp 0x50de2b
push dword [ebp + 0x14]
call fcn.00402e71
lea ecx, [ebx - 0x10]
call fcn.00401a56
jmp 0x50de6e
cmp dword [ebp + 0x14], edi
jne 0x50de41
mov dword [ebp + 0x14], 0x52d8f8
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402e71
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004da561
leave
ret 0x10

Function at 0x50eb94
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x50ebc9
cmp edi, dword [esi + 0xc]
jge 0x50ebc9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x50ebc9
cmp edi, dword [eax + 8]
jge 0x50ebc9
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x50ebcb
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x50eccf
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x50ed03
jmp fcn.004edbf5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x50ed74
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x50ee6d
cmp eax, dword [edi + 0xc]
jge 0x50ee6d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x50edc5
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x50ee56
cmp dword [ebp + 0xc], ebx
je 0x50ee56
jmp 0x50edef
push 0x10
call fcn.0050ea60
cmp eax, ebx
je 0x50eddb
mov ecx, eax
call fcn.0050ecc6
mov esi, eax
jmp 0x50eddd
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x50ee06
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x50ee16
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x50ee28
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004edbf5
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004dc410
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x50ee68
cmp ecx, dword [esi + 8]
jge 0x50ee68
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x50ee6e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x50ef11
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 0x50ef3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x50ef5d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050ee7b
jmp 0x50ef5d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50ef5d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0050ee7b
test edi, edi
mov eax, edi
jne 0x50ef47
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x982338]
test ecx, ecx
je 0x50f010
jmp 0x50ef10
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x76be2479
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x41012b65
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100023a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x1000f030], 8
jne 0x10002420
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100023d0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebx + 0x10], eax
sub esp, 8
test eax, eax
je 0x10002414
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x10002414
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebx + 0xc], eax
sub esp, 4
test eax, eax
jne 0x100023bc
mov eax, 0x88760b59
jmp 0x100023be
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x10011017
mov dword [esp + 8], str.resourcedataloader_Load
mov dword [esp + 4], 0x1000f030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100023b5

Function at 0x10003870
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x10003984
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov dword [esi], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x1000398b
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x10003940
mov eax, dword [ebp - 0x10]
cmp dword [esi], eax
jne 0x10003940
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1000f030], 4
jne 0x1000395e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x80004005
jmp 0x10003932
mov dword [esp + 0xc], str.Failed_to_read_file_contents._n
mov dword [esp + 8], str.load_file
mov dword [esp + 4], 0x1000f030
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x10003949
mov eax, 0x88790002
jmp 0x10003932
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
mov eax, 0x8007000e
jmp 0x10003932
Function at 0x10003a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [esp + 8], 0xa
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10003ab0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edx, dword [ebp + 0x14]
sub esp, 8
mov dword [edx], eax
test eax, eax
je 0x10003ae0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x10003ae0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, dword [ebp + 0x10]
sub esp, 4
mov dword [edx], eax
test eax, eax
je 0x10003ae0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 2
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10003a5f
test byte [0x1000f030], 4
jne 0x10003ae7
lea esi, cs:[esi]
nop
mov eax, 0x88760b59
jmp 0x10003aa3
mov dword [esp + 0xc], str.Failed_to_find_resource._n
mov dword [esp + 8], str.load_resource_initA
mov dword [esp + 4], 0x1000f030
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x10003ae0

Function at 0x10003b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [esp + 8], 0xa
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10003b90
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edx, dword [ebp + 0x14]
sub esp, 8
mov dword [edx], eax
test eax, eax
je 0x10003bc0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x10003bc0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, dword [ebp + 0x10]
sub esp, 4
mov dword [edx], eax
test eax, eax
je 0x10003bc0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 2
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10003b3f
test byte [0x1000f030], 4
jne 0x10003bc7
lea esi, cs:[esi]
nop
mov eax, 0x88760b59
jmp 0x10003b83
mov dword [esp + 0xc], str.Failed_to_find_resource._n
mov dword [esp + 8], str.load_resource_initW
mov dword [esp + 4], 0x1000f030
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x10003bc0
Function at 0x100045d0
Capabilities:
Create thread
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x4c
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x40], eax
test byte [0x1000f030], 8
jne 0x10004780
mov eax, ebx
or eax, esi
cmp eax, 0x3ff
ja 0x10004748
test ebx, ebx
mov eax, 1
cmovne eax, ebx
mov dword [ebp - 0x38], eax
test esi, esi
je 0x100047b8
mov eax, dword [ebp - 0x38]
mov dword [esp], 1
add esi, eax
lea eax, [esi*4 + 0x48]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x100047cf
mov dword [eax], sym._thread_pump_QueryInterface_12
lea eax, [eax + 0xc]
mov edi, dword [sym.imp.kernel32.dll_InitializeSRWLock]
mov dword [eax - 8], 1
mov dword [esp], eax
call edi
lea eax, [ebx + 0x10]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
mov dword [ebp - 0x3c], eax
call eax
lea eax, [ebx + 0x18]
lea ecx, [ebx + 0x20]
movd xmm0, eax
sub esp, 4
punpckldq xmm0, xmm0
movq qword [ebx + 0x18], xmm0
mov dword [esp], ecx
call edi
lea ecx, [ebx + 0x24]
sub esp, 4
mov dword [esp], ecx
mov eax, dword [ebp - 0x3c]
call eax
lea eax, [ebx + 0x2c]
movd xmm0, eax
sub esp, 4
lea eax, [ebx + 0x34]
punpckldq xmm0, xmm0
movq qword [ebx + 0x2c], xmm0
mov dword [esp], eax
call edi
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x44], esi
movd xmm0, eax
sub esp, 4
punpckldq xmm0, xmm0
movq qword [ebx + 0x3c], xmm0
test esi, esi
je 0x10004762
xor esi, esi
mov edi, sym._proc_thread_4
mov eax, esi
mov esi, ebx
mov ebx, eax
jmp 0x100046f8
add ebx, 1
cmp ebx, dword [esi + 0x44]
jae 0x10004760
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
cmp ebx, eax
mov eax, sym._io_thread_4
mov dword [esp + 0xc], esi
cmovae eax, edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + ebx*4 + 0x48], eax
sub esp, 0x18
test eax, eax
jne 0x100046f0
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, 0x80004005
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov ebx, esi
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.io_threads__u__proc_threads__u__pump__p._n
mov dword [esp + 8], str.D3DX10CreateThreadPump
mov dword [esp + 4], 0x1000f030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100045fc
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x20]
sub esp, 4
jmp 0x10004620
mov eax, 0x8007000e
jmp 0x10004769