joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40782a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407858
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40785f
cmp ebx, dword [eax + 4]
jae 0x40785f
xor eax, eax
jmp 0x407a4f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407870
xor eax, eax
inc eax
jmp 0x407a4e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407886
cmp ecx, edx
jae 0x4079cb
cmp dword [eax + 4], 0
je 0x40788f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407877
cmp dword [ebp + 8], 0
je 0x4078b1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4079cb
cmp eax, esi
jae 0x4079cb
mov eax, dword [0x40f2e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4078d6
cmp dword [esi*4 + 0x40f2e8], edi
je 0x4079cf
inc esi
cmp esi, eax
jl 0x4078c4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407a4b
cmp dword [ebp - 8], 0x1000000
jne 0x407a4b
test byte [ebp - 0xc], 0xcc
je 0x407954
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407a4b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407a4b
cmp word [eax + 0x18], 0x10b
jne 0x407a4b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407a4b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407954
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407954
test byte [ecx + 0x27], 0x80
jne 0x4079cb
push 1
push 0x40f328
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407868
mov ecx, dword [0x40f2e0]
test ecx, ecx
mov edx, ecx
jle 0x407988
lea eax, [ecx*4 + 0x40f2e4]
cmp dword [eax], edi
je 0x407988
dec edx
sub eax, 4
test edx, edx
jg 0x40797c
test edx, edx
jne 0x4079b9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407995
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4079ad
lea eax, [edx*4 + 0x40f2e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40799b
cmp ecx, 0x10
jge 0x4079b9
inc ecx
mov dword [0x40f2e0], ecx
push 0
push 0x40f328
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407868
xor eax, eax
jmp 0x407a4e
test esi, esi
jle 0x407868
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f328
call ebx
test eax, eax
jne 0x407868
cmp dword [esi*4 + 0x40f2e8], edi
je 0x407a25
mov eax, dword [0x40f2e0]
lea esi, [eax - 1]
test esi, esi
jl 0x407a13
cmp dword [esi*4 + 0x40f2e8], edi
je 0x407a0f
dec esi
jns 0x407a03
test esi, esi
jge 0x407a23
cmp eax, 0x10
jge 0x407a1e
inc eax
mov dword [0x40f2e0], eax
lea esi, [eax - 1]
jmp 0x407a25
je 0x407a3d
xor ecx, ecx
test esi, esi
jl 0x407a3d
lea eax, [ecx*4 + 0x40f2e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407a2b
push 0
push 0x40f328
call ebx
jmp 0x407868
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a53
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f32c], ebx
push esi
push edi
jne 0x407ad3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407b0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40f32c], eax
je 0x407b0e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f330], eax
call esi
cmp dword [0x40ee68], 2
mov dword [0x40f334], eax
jne 0x407ad3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f33c], eax
je 0x407ad3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f338], eax
mov eax, dword [0x40f338]
test eax, eax
je 0x407b18
call eax
test eax, eax
je 0x407aff
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f33c]
test eax, eax
je 0x407aff
test byte [ebp - 8], 1
jne 0x407b18
cmp dword [0x40ee74], 4
jb 0x407b12
or byte [ebp + 0x12], 0x20
jmp 0x407b37
xor eax, eax
jmp 0x407b47
or byte [ebp + 0x12], 4
jmp 0x407b37
mov eax, dword [0x40f330]
test eax, eax
je 0x407b37
call eax
mov ebx, eax
test ebx, ebx
je 0x407b37
mov eax, dword [0x40f334]
test eax, eax
je 0x407b37
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f32c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003c85
Capabilities:
Terminate process

Disassembly:
push 0x30
push 2
call fcn.0100d1e5
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop ecx
ret

Function at 0x10049b8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push 0x1001394
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x1004a9b
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x100]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001390
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x100]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001380
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x100]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x1004a9b
mov esi, dword [sym.imp.MSVCRT.dll_fgets]
mov edi, 0x100
push ebx
lea eax, [ebp - 0x100]
push edi
push eax
call esi
add esp, 0xc
test eax, eax
je 0x1004a93
lea eax, [ebp - 0x100]
push 0xa
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
je 0x1004a7c
and byte [eax], 0
lea eax, [ebp - 0x100]
push eax
call fcn.010041b7
push ebx
lea eax, [ebp - 0x100]
push edi
push eax
jmp 0x1004a5b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006a4a
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x100
jb 0x1006a75
push 0x32
push 2
call fcn.0100d1e5
pop ecx
jmp 0x1006ab6
lea eax, [ebp - 0x100]
push eax
push 0x1001df0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push 0x1001ddc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_system]
pop ecx
pop edi
leave
ret 4
Function at 0x1008fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025d8
push 0x1009180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x1038250], 0xffffffff
mov dword [0x1038254], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x101515c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x1015158]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x1038258], ecx
call fcn.01009170
mov eax, dword [0x1010520]
test eax, eax
jne 0x1009041
push 0x1009160
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01009140
push 0x100e00c
push 0x100e008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1015154]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x1015150]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x100e004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.01003830
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x10090e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10091f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jne 0x100926b
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + ecx + 2]
push edi
call fcn.0100b3e4
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x100936b
push edi
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov edx, ecx
mov ecx, dword [ebp + 0x10]
call fcn.0100b0da
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x1009285
push dword [ebp - 8]
call fcn.0100b3c5
mov eax, esi
jmp 0x10092a6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10092a6
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x100929b
cmp eax, 3
jbe 0x10092b5
cmp eax, 4
je 0x10092ad
cmp eax, 7
je 0x10092b5
push dword [ebp - 8]
call fcn.0100b3c5
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x10]
jmp 0x10092d5
cmp dword [ebp - 4], ebx
jne 0x10092c1
mov dword [ebp - 4], 2
push dword [ebp - 4]
call fcn.0100b3e4
mov esi, eax
cmp esi, ebx
mov edi, esi
je 0x100936b
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
jne 0x1009300
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov dword [ebp + 0x10], eax
call fcn.0100b3c5
cmp dword [ebp + 0x10], ebx
jmp 0x1009311
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x1009324
cmp edi, ebx
je 0x100931d
push edi
call fcn.0100b3c5
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jmp 0x1009345
cmp dword [ebp + 0x14], 2
jbe 0x100934d
cmp dword [ebp + 0x14], 3
je 0x1009338
cmp dword [ebp + 0x14], 7
je 0x100934d
jmp 0x1009345
cmp dword [ebp - 4], ebx
jne 0x1009340
mov word [esi], bx
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
jmp 0x10092a6
cmp dword [ebp - 4], ebx
jne 0x1009355
mov word [esi], bx
cmp dword [ebp + 0xc], ebx
jne 0x1009340
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.0100b3e4
mov edi, eax
cmp edi, ebx
jne 0x1009372
push 8
jmp 0x10092a5
mov edx, dword [ebp - 4]
mov ecx, esi
lea eax, [edx + edx]
push eax
push edi
shr edx, 1
call fcn.0100af9b
test eax, eax
push esi
je 0x100929e
call fcn.0100b3c5
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
jmp 0x1009345
Function at 0x1009398
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edx, dword [ebx]
mov edi, esi
mov dword [ebp - 4], edx
je 0x1009412
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x10093f6
lea ebx, [ebx + edx*4 + 4]
cmp dword [ebp - 4], 0x32
jae 0x10093f6
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
je 0x10093e2
cmp eax, 0xffffffff
je 0x10093e2
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
lea esi, [esi + edi + 1]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
jne 0x10093c4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
neg eax
sbb eax, eax
and ax, 0xd984
add eax, 0x267c
leave
ret 0xc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + edx*4 + 4]
mov edi, ecx
cmp byte [esi], 0
je 0x1009431
cmp dword [ebp - 4], 0x32
jae 0x1009431
mov al, 1
jmp 0x1009433
xor al, al
test al, al
je 0x10093f6
test edi, edi
jbe 0x100944e
cmp al, 0x20
je 0x1009447
cmp al, 9
je 0x1009447
cmp al, 0x2c
jne 0x100944e
mov al, byte [esi + 1]
inc esi
dec edi
jne 0x100943b
mov al, byte [esi]
mov ecx, esi
test edi, edi
jbe 0x100946d
cmp al, 0x20
je 0x100946d
cmp al, 9
je 0x100946d
test al, al
je 0x100946d
cmp al, 0x2c
je 0x100946d
mov al, byte [esi + 1]
inc esi
dec edi
jne 0x1009456
and byte [esi], 0
cmp esi, ecx
je 0x10093f6
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
je 0x10093f6
cmp eax, 0xffffffff
je 0x10093f6
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
test edi, edi
jbe 0x10093f6
inc esi
dec edi
jmp 0x1009422

Function at 0x10094a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [eax]
test edi, edi
je 0x10094f4
lea ebx, [eax + esi*4 + 4]
cmp esi, 0x2710
jae 0x10094f4
cmp dword [ebp + 0x10], 0
je 0x10094d2
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
jmp 0x10094e3
lea eax, [edi + 4]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
je 0x10094eb
cmp eax, 0xffffffff
je 0x10094eb
mov dword [ebx], eax
inc esi
add ebx, 4
mov edi, dword [edi]
mov eax, dword [ebp + 8]
test edi, edi
jne 0x10094b6
test esi, esi
mov dword [eax], esi
je 0x100950a
cmp dword [ebp + 0x14], 0
je 0x1009506
push eax
call fcn.0100b48c
xor eax, eax
jmp 0x100950f
mov eax, 0x267c
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x100a8c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x9c
push eax
call esi
mov edi, eax
test edi, edi
jne 0x100a914
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call esi
test eax, eax
je 0x100a9b3
mov eax, dword [ebp - 0x94]
dec eax
dec eax
jne 0x100a9b3
test edi, edi
je 0x100a944
push 1
pop eax
cmp byte [ebp - 0xa], al
je 0x100a9b3
cmp byte [ebp - 0xa], 3
je 0x100a9b3
cmp byte [ebp - 0xa], 2
je 0x100a9ca
jmp 0x100a9b3
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x50
push eax
push 1
push 0
push 0x100290c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xf4]
push eax
push 0
push 0
push 0x1002900
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0xf4]
push eax
push 0x10028f8
call esi
test eax, eax
je 0x100a9b3
lea eax, [ebp - 0xf4]
push eax
push 0x10028ec
call esi
test eax, eax
jne 0x100a9b7
xor eax, eax
jmp 0x100a9ca
lea eax, [ebp - 0xf4]
push eax
push 0x10028e0
call esi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x403c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41815c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x420008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
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
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x403ce4
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.004045f0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.00404800
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x403d28
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4145b0
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
jbe 0x4145e1
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
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.00414730
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 0x41470a
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
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
jb 0x41463c
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x414667
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x414650
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
and ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x414684
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x414700
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414eb0
test al, al
jne 0x4146be
mov ebx, dword [ebx]
cmp ebx, esi
je 0x4146b6
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 0x4146fd
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x4146e0
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414eb0
test al, al
je 0x414713
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x4146c5
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 0x414620
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 0x4146fd
Function at 0x4156b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419523
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x420008]
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]
push edi
call fcn.00401ef0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x18]
mov eax, dword [edi + 0x18]
mov dword [esi], eax
push 0x24
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00416ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
push dword [esi + 4]
sar eax, 2
push eax
call fcn.00414730
mov eax, dword [edi + 0x1c]
mov ecx, esi
push eax
push dword [eax]
call fcn.00416040
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 4
Function at 0x415780
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419563
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x420008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [ebp - 4], 0
lea edi, [ecx + 0x18]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [eax + 0x18]
mov dword [edi], eax
push 0x24
mov dword [ebp - 0x18], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00416ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push 0x10
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
call fcn.00414730
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [edx + 0x20]
mov dword [edx + 0x1c], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0x24]
mov dword [edx + 0x20], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x28]
mov dword [edx + 0x24], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x28], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x30]
mov dword [edx + 0x2c], ecx
mov dword [edx + 0x30], 7
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x34]
mov dword [edx + 0x34], 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4