joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100051c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x100092a8
call fcn.100081d4
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x100051f1
add eax, 0x78
jmp 0x100051f6
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x100052e4
cmp dword [eax + 4], edx
je 0x100052e4
cmp dword [esi + 0x1c], edx
je 0x100052e4
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x100052e4
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x100052d4
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x100052e4
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x10005265
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x10005296
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x10005283
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000529f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x10005296
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x2c]
call fcn.1000538d
xor ecx, ecx
cmp ecx, eax
jne 0x1000529f
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x100052be
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x100052e4
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x100052e4
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x10005246
mov dword [ebp - 0x20], eax
jmp 0x100052e4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.1000820f
ret 4

Function at 0x1000538d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x100053d2
or eax, 0xffffffff
test esi, esi
je 0x100053ce
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x10009258]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x10009258]
dec esi
inc edx
test esi, esi
jne 0x1000539c
pop edi
not eax
jmp 0x100053d4
xor eax, eax
not eax
pop esi
ret
Function at 0x100059a5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x100059d1
cmp dword [eax], 0x7373622e
jne 0x100059d1
mov ecx, eax
add eax, 0x28
dec esi
je 0x100059db
test ecx, ecx
je 0x100059c2
test ecx, ecx
je 0x100059f9
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100059f5
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x100059f5
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x100059fc
push 0xb
jmp 0x100059fb
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x10005ac8
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10001f62
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10005ac4
push dword [ebp - 4]
push edi
push ebx
call sub.ntdll.dll_memcpy
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10005a9e
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x1000b573]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c834]
push 1
push eax
mov eax, ebx
call fcn.10006a12
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10005a6a
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x14625bc8]
test eax, eax
jne 0x10005ab9
sub ebx, dword [ebp - 0x14]
mov dword [0x1000a2fc], ecx
mov dword [0x1000a300], ebx
jmp 0x10005ac7
push ebx
call fcn.10002d67
xor eax, eax
inc eax
jmp 0x10005ac7
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x10005ace
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1000a300]
and dword [ebp - 4], 0
push ebx
lea eax, [eax + 0x1000bc50]
push eax
mov dword [ebp - 0xc], 4
call fcn.1000546e
mov ebx, eax
test ebx, ebx
je 0x10005b60
mov eax, dword [0x1000a300]
push edi
lea eax, [eax + 0x1000bcac]
push eax
call fcn.1000546e
mov edi, eax
test edi, edi
je 0x10005b59
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005b53
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10005b4a
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.10002d67
push ebx
call fcn.10002d67
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x10005cf8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.10001f62
mov esi, eax
test esi, esi
je 0x10005dcd
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b722]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b84a]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x10005dc5
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b870]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x10005dc5
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b7fe]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x10005dc5
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b85a]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x10005dc5
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000b883]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10005dc5
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0x40
call fcn.100020df
mov dword [ebp - 4], eax
test eax, eax
jne 0x10005dc5
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x10005dd4
push esi
call fcn.10002d67
jmp 0x10005dd4
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10005dea
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x28]
push ebx
xor ebx, ebx
push edi
lea edi, [esi + 0x2c]
mov dword [ebp - 0xc], ebx
mov dword [edi], ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10005ee7
push ebx
push dword [esi + 0x18]
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10005ede
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push 0x20000013
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10005ede
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x16
push dword [esi + 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.10001f62
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10005ed5
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push 0x16
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10005ec2
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.10001f62
mov edi, eax
cmp edi, ebx
je 0x10005eb9
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [ebp - 0x10]
push edi
call sub.ntdll.dll_wcstombs
add esp, 0xc
mov dword [esi + 0xc], edi
jmp 0x10005ecb
mov dword [ebp - 8], 8
jmp 0x10005ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
call fcn.10002d67
jmp 0x10005ee7
mov dword [ebp - 8], 8
jmp 0x10005ee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x10006638
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1000a2c4], eax
test eax, eax
je 0x100066a7
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x10006664
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x10006666
cmp al, al
jbe 0x100066a2
mov dword [0x1000a2b4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x10047a
mov dword [0x1000a2b0], eax
mov dword [0x1000a2bc], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1000a2ac], eax
test eax, eax
jne 0x1000669e
or dword [0x1000a2ac], 0xffffffff
xor eax, eax
jmp 0x100066ad
push 0x32
pop eax
jmp 0x100066ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4
Function at 0x10006a5c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x10006ac0
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x10006ab0
mov eax, dword [0x1000a300]
lea eax, [eax + 0x1000beaa]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10006ab6
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10006a86
jmp 0x10006ab9
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10006e52
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 4]
push dword [ebp - 8]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 8], eax
mov eax, dword [0x1000a300]
lea ecx, [eax + 0x1000b657]
push ecx
lea eax, [eax + 0x1000b718]
push eax
lea eax, [ebp - 0x34]
push 0x16
push eax
mov dword [ebp - 4], edx
call sub.ntdll.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0x1000
push 0
push 4
push 0x1000a304
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x10006f07
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x10006ed5
push 2
pop edi
jmp 0x10006efe
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10006ef6
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x10006f0f
call edi
mov edi, eax
test edi, edi
je 0x10006f0f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x10007794
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push SysStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x1000789d
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.10001f62
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x10007893
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x10007845
cmp dword [ebp - 8], ebx
jbe 0x1000781d
inc dword [ebp - 4]
xor esi, esi
jmp 0x10007867
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x1000788b
push dword [ebp - 0x14]
call fcn.10002d67
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.10001f62
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10007819
push 8
pop esi
jmp 0x1000788b
cmp esi, edi
jne 0x10007881
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.100067e8
mov esi, eax
cmp esi, edi
jne 0x10007881
push edi
push dword [0x1000a2c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100077e7
jmp 0x1000788b
cmp esi, 0x103
jne 0x1000788b
xor esi, esi
push dword [ebp - 0x18]
call fcn.10002d67
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x10007bab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x10007be6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4060f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x406122
jl 0x406115
test ecx, ecx
jne 0x406122
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406209
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x406152
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x406154
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x4061a8
jg 0x406165
test esi, esi
je 0x4061a8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x406179
jl 0x406173
cmp ecx, esi
jae 0x406179
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00467e10
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x4061d6
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x491344]
mov ecx, ebx
call esi
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4061f2
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x406137
jl 0x4061f2
test ecx, ecx
jne 0x406137
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x406247
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x406247
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00467e10
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4062b7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40626d
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4062a2
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00471110
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4062b7
cmp edi, eax
ja 0x406280
test edi, edi
je 0x4062b7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00471110
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a4e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490820
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00466016
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004655b4
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040a480
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x10], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x40d9b6
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0040a1f0
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov edi, dword [edi + 4]
mov edi, dword [edi]
cmp edi, ebx
je 0x40d991
mov esi, edi
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
mov edi, dword [edi]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
jbe 0x40d8c9
mov ebx, dword [esi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x18], ecx
jbe 0x40d8ec
mov edi, dword [ebp - 4]
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40d8d8
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [eax], ecx
jne 0x40d90e
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x40d986
mov ebx, dword [eax + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.0040b420
test al, al
je 0x40d946
mov ebx, dword [ebx]
cmp ebx, esi
je 0x40d93e
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x40d986
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x40d969
nop dword [eax]
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.0040b420
test al, al
jne 0x40d99a
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x40d950
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov esi, edi
cmp edi, dword [ebp - 8]
jne 0x40d8b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x40d986
push str.invalid_hash_bucket_count
call fcn.0046539a
int3
Function at 0x40d9d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x40db3d
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0040a380
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x40db18
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
jbe 0x40da51
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x40da7a
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x40da63
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x40da96
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x40db0e
mov ebx, dword [ecx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.0040b420
test al, al
je 0x40dace
mov ebx, dword [ebx]
cmp ebx, esi
je 0x40dac6
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x40db0b
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x40daee
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.0040b420
test al, al
jne 0x40db21
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x40dad5
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x40da35
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x40db0b
push str.invalid_hash_bucket_count
call fcn.0046539a
int3