joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
mov ebx, 8
or ebx, 0x20019
or ebx, 0x20006
lea eax, [ebp - 8]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10002f1c
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryInfoKeyA
or eax, eax
jne 0x10002f1c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10002f14
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
jne 0x10002f01
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10002e58
jmp 0x10002ecf
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegDeleteKeyA
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
pop dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0xffffffff
je 0x100033de
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10003b6d
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.100032f9
cmp eax, 1
jne 0x100033d6
push dword [ebp + 8]
call fcn.100031ee
or edx, edx
je 0x100033d6
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_ReadFile
push 1
pop dword [ebp - 0xc]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x1000341c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
pop dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
je 0x1000346c
cmp dword [ebp + 0x10], 4
jne 0x10003441
push 2
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_SetFilePointer
push dword [ebp + 8]
call fcn.100031ee
or edx, edx
je 0x10003464
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_WriteFile
push 1
pop dword [ebp - 4]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x10004548
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x10009341
call sub.kernel32.dll_GetModuleHandleA
cmp eax, 0
je 0x10004739
mov dword [ebp - 4], eax
push str.ZwQuerySystemInformation
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009364], eax
push str.ZwQueryInformationProcess
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009382], eax
push 0x100093a7
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093a3], eax
push str.LdrGetDllHandle
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093b2], eax
push str.LdrGetProcedureAddress
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093c6], eax
push str.RtlInitUnicodeString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093e1], eax
push str.RtlUnicodeStringToAnsiString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093fa], eax
push str.RtlFreeAnsiString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000941b], eax
push str.ZwQueueApcThread
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000947d], eax
push str.ZwQueryInformationThread
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000939f], eax
push str.ZwTerminateProcess
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009492], eax
push str.ZwResumeThread
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094a9], eax
push str.RtlInitString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009431], eax
push str.RtlAnsiStringToUnicodeString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009443], eax
push str.RtlFreeUnicodeString
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009464], eax
push str.ZwProtectVirtualMemory
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094bc], eax
push str.RtlCreateUserThread
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094d7], eax
push str.ZwClose
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094ef], eax
mov eax, 1
leave
ret
mov eax, 0
leave
ret
Function at 0x10004978
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x40
push 0x3000
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call sub.kernel32.dll_VirtualAllocEx
or eax, eax
je 0x100049b1
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x100049b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10004978
or eax, eax
je 0x10004ad6
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call fcn.10004924
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004978
or eax, eax
je 0x10004ad6
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push 0
push dword [ebp + 8]
call sub.kernel32.dll_CreateRemoteThread
or eax, eax
je 0x10004ad6
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 2
jne 0x10004a31
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0xc]
jmp 0x10004ad6
cmp dword [ebp + 0x18], 0
jne 0x10004a42
push dword [ebp - 0x10]
pop dword [ebp - 0xc]
jmp 0x10004ad6
cmp dword [ebp + 0x18], 1
jne 0x10004a95
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_GetExitCodeThread
or eax, eax
jne 0x10004a67
push 0
pop dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
jmp 0x10004ad6
cmp dword [ebp + 0x18], 3
jne 0x10004ad6
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 1
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
leave
ret 0x14
Function at 0x10004e07
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0
pop dword [ebp - 4]
push 0x30
lea eax, [ebp - 0x54]
push eax
call fcn.100010ec
push 0x10000000
pop dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10002493
cmp eax, 0
je 0x10004fe4
push dword [eax + 0x1c]
pop dword [ebp - 0xc]
push dword [eax + 0x38]
pop dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, 0x10000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push 0x40
push 0x3000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10004e9b
push 0x8000
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0x30000000
jae 0x10004eac
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x10004e45
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x10004fe4
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.10005312
cmp eax, 0
je 0x10004fe4
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 0
je 0x10004fe4
push 0x10005000
call fcn.10004924
push eax
push 0x10005000
push dword [ebp + 8]
call fcn.10004978
cmp eax, 0
je 0x10004fe4
mov dword [ebp - 0x48], eax
push 0x10005233
call fcn.10004924
push eax
push 0x10005233
push dword [ebp + 8]
call fcn.10004978
cmp eax, 0
je 0x10004fe4
mov dword [ebp - 0x44], eax
push dword [0x100093a3]
pop dword [ebp - 0x40]
push dword [0x100093b2]
pop dword [ebp - 0x3c]
push dword [0x100093c6]
pop dword [ebp - 0x38]
push dword [0x10009431]
pop dword [ebp - 0x34]
push dword [0x10009443]
pop dword [ebp - 0x30]
push dword [0x10009464]
pop dword [ebp - 0x2c]
push dword [0x100094bc]
pop dword [ebp - 0x28]
cmp dword [ebp + 0xc], 0
je 0x10004fcc
push 0x10004d83
call fcn.10004924
push eax
push 0x10004d83
push dword [ebp + 8]
call fcn.10004978
cmp eax, 0
je 0x10004fe4
mov dword [ebp - 0x20], eax
push 0x30
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call fcn.10004978
cmp eax, 0
je 0x10004fe4
mov dword [ebp - 0x1c], eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.10004791
mov dword [ebp - 4], eax
jmp 0x10004fe4
push 3
push 0x30
lea eax, [ebp - 0x54]
push eax
push 0x10004d83
push dword [ebp + 8]
call fcn.100049b5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x54], 0
je 0x10004ff9
push 0x8000
push 0
push dword [ebp - 0x54]
call sub.kernel32.dll_VirtualFree
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x1000547d
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push 0
pop dword [ebp - 0x28]
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebp - 0x2c], eax
push 0
push 4
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x10005524
mov dword [ebp - 4], eax
mov eax, 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_Thread32First
or eax, eax
je 0x10005517
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jne 0x10005506
cmp ebx, dword [ebp - 0x2c]
je 0x10005506
push dword [ebp - 0x1c]
push 0
push 2
call sub.kernel32.dll_OpenThread
or eax, eax
je 0x10005506
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x100054f0
push dword [ebp - 8]
call sub.kernel32.dll_SuspendThread
jmp 0x100054fe
cmp dword [ebp + 0xc], 1
jne 0x100054fe
push dword [ebp - 8]
call sub.kernel32.dll_ResumeThread
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_Thread32Next
cmp eax, 0
jne 0x100054bd
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
leave
ret 8

Function at 0x10005578
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0
pop dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push 0
pop dword [eax]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0xa
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtect
or eax, eax
je 0x10005651
push 5
push dword [ebp + 8]
call fcn.10005547
mov dword [ebp - 4], eax
or eax, eax
je 0x10005640
mov eax, 0xa
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
push 0x40
push 0x1000
push dword [ebp - 0x18]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x10005640
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 8]
pop dword [esi]
add esi, 4
mov eax, dword [ebp - 4]
mov byte [esi], al
inc esi
push 0
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call fcn.10001104
add esi, dword [ebp - 4]
mov al, 0xe9
mov byte [esi], al
inc esi
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 8]
sub eax, 0xa
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov al, 0xe9
mov byte [esi], al
inc esi
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sub eax, 5
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
add ebx, 5
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
push 1
pop dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 0xa
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x14]
leave
ret 0xc
Function at 0x1000569f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
push ebx
push ecx
push edx
push 0
pop dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x10005717
mov eax, dword [ebp + 8]
sub eax, 5
mov dword [ebp - 4], eax
mov bl, byte [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
movzx eax, bl
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
or eax, eax
je 0x100056f6
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10001104
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
push 0x8000
push 0
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
mov eax, dword [ebp - 0x18]
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x100057cc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
push ecx
push 0
pop dword [ebp - 4]
push 0x10
push dword [ebp + 0xc]
call fcn.100010ec
push dword [ebp + 8]
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp dword [esi], 0
je 0x10005829
push 0
push 0
push 0
push 4
push dword [esi]
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x10005829
mov esi, dword [ebp + 0xc]
push dword [eax]
pop dword [esi + 0xc]
add eax, 4
push dword [eax]
pop dword [esi + 8]
add eax, 4
mov dword [esi + 4], eax
push 1
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x10005881
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push esi
push ecx
push edi
push ebx
push edx
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x100059ae
mov dword [ebp - 0x12c], eax
push 0x128
pop dword [ebp - 0x128]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.kernel32.dll_Process32First
or eax, eax
je 0x100059a3
mov eax, 0
or eax, eax
jne 0x10005988
mov eax, dword [ebp - 0x120]
cmp dword [0x10009523], eax
je 0x10005988
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x120]
push 0x1934
call fcn.10002909
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.10002a72
or eax, eax
je 0x10005988
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x120]
push 0x1401
call fcn.10002909
lea eax, [ebp - 0x174]
push eax
call fcn.10002a2b
or eax, eax
jne 0x1000597c
push dword [ebp - 0x120]
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
or eax, eax
je 0x1000597c
mov dword [ebp - 0x130], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push dword [ebp - 0x130]
call fcn.10004e07
push dword [ebp - 0x130]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x134]
push eax
call fcn.10002a4e
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.kernel32.dll_Process32Next
cmp eax, 0
jne 0x100058cc
push dword [ebp - 0x12c]
call sub.kernel32.dll_CloseHandle
pop edx
pop ebx
pop edi
pop ecx
pop esi
leave
ret 8
Function at 0x10003230
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5e25
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10105ec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10003110
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100032c3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [edi + 8], 0xccccccc
je 0x1000341f
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.100ab2ad
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100e0720]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100e0720]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100033c1
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.100bc500
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.100ab660
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x100033a3
cmp ebx, 0x200
jae 0x100033a1
shl ebx, 3
cmp ebx, ecx
jae 0x100033a3
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10005af0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10003110
mov edx, dword [eax]
jmp 0x100033c4
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x100033ef
mov dword [ecx + eax*8], esi
jmp 0x100033fe
cmp edi, edx
jne 0x100033f8
mov dword [ecx + eax*8], esi
jmp 0x10003402
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10003402
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
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
push str.unordered_map_set_too_long
call fcn.10093db1
int3
Function at 0x10003c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10105ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call fcn.100ac960
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.100b79a6
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x10003d0b
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003d01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003d63
push ecx
push edx
call fcn.100ab2dd
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10006b10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100bc431
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x1010af38
push 0x1f8
push eax
push dword [0x10105278]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab605
mov esp, ebp
pop ebp
ret
call fcn.100b73df
int3

Function at 0x10003de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10105ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x1010aebc]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10003e4c
xorps xmm0, xmm0
mov eax, ebx
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
pop edi
mov dword [ebx + 0x14], 0xf
pop esi
mov byte [ebx], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab605
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10003e14
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call fcn.100acc80
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.10003080
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.100ab605
mov esp, ebp
pop ebp
ret