joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x1000fc43
cmp dword [edx + 0x1c], 8
mov eax, dword [ecx + 4]
push ebx
mov dword [ebp - 0x18], eax
lea ebx, [edx + 8]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 8], eax
mov esi, edx
mov dword [ebp - 0xc], ebx
jb 0x1000fb0e
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + 0x10]
mov edx, 0
push edi
mov edi, 0x811c9dc5
add ebx, ebx
je 0x1000fb37
mov ecx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ebx
jb 0x1000fb23
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10006970
push 0x38
push edi
call fcn.1002f71a
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x1000fb9d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x1000fb50
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1000fc38
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x1000fbaf
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x1000fbb2
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x1000fc38
cmp dword [esi + 0x1c], 8
lea ebx, [esi + 8]
jb 0x1000fbcc
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x18]
mov edx, 0x811c9dc5
mov ecx, 0
add edi, edi
je 0x1000fbf1
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1000fbe0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10006970
push 0x38
push edi
call fcn.1002f71a
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x1000fc49
cmp esi, eax
jne 0x1000fc08
mov ecx, dword [ebp - 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x1000fbc0
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001203b
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10012076
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1001205d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1001206e
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10012078
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10012053
xor eax, eax
pop edi
pop esi
ret

Function at 0x10015270
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100345f3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004805c]
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.10002af0
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.10002af0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x30]
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0xc]
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 8], eax
lea eax, [edi + 0x3c]
push eax
call fcn.10002af0
lea eax, [edi + 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x24]
call fcn.10002af0
mov eax, dword [edi + 0x6c]
mov dword [ebx + 0x6c], eax
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 0x10016f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034776
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 8]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esi], 0xabababab
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [ebx + 0x10]
movq qword [esi + 0x18], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
lea ecx, [esi + 0x50]
mov dword [ebp - 4], 0
call fcn.10017040
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 1
call fcn.10017040
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.10005cd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x10019f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034c35
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10048e38
mov dword [ebp - 0x18], 0x10048e38
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push ecx
push dword [ebp + 8]
xor edx, edx
xor ecx, ecx
call fcn.10019a60
mov esi, 0
add esp, 0xc
add eax, 1
mov dword [ebp - 0x24], esi
mov edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
mov ebx, esi
mov dword [ebp - 0x1c], edi
je 0x1001a04c
cmp eax, 0x7fffffff
ja 0x1001a15a
lea ebx, [eax + eax]
cmp ebx, 0x1000
jb 0x1001a01c
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x1001a15f
push eax
call fcn.1002f3d0
add esp, 4
test eax, eax
je 0x1001a154
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1001a02f
test ebx, ebx
je 0x1001a02d
push ebx
call fcn.1002f3d0
add esp, 4
mov esi, eax
jmp 0x1001a02f
xor esi, esi
push ebx
push 0
lea edi, [ebx + esi]
mov dword [ebp - 0x24], esi
push esi
mov dword [ebp - 0x1c], edi
call fcn.10031240
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x20], edi
mov ebx, esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
push ecx
push ecx
push dword [ebp + 8]
mov edx, eax
mov ecx, esi
call fcn.10019a60
mov ecx, dword [0x10048cc8]
add esp, 0xc
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001a0af
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x1001a0be
push esi
mov ecx, eax
call dword [0x10037258]
call dword [ebp - 0x10]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x10048e78], 0
je 0x1001a10a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x10048e50]
add esp, 4
cmp esi, eax
jne 0x1001a0ef
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x1001a10a
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.10019a30
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
test ebx, ebx
je 0x1001a137
sub edi, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x1001a12d
mov ecx, dword [ebx - 4]
add edi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x1001a154
mov ebx, ecx
push edi
push ebx
call fcn.1002f71a
add esp, 8
push 0x10048e38
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.100041a0
call fcn.10001260
int3
Function at 0x1001da20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100350a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x1003a018
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov esi, dword [eax + 4]
add esi, ebx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.1001ae60
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10037258]
mov ecx, edi
call esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
call fcn.1001e080
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10037258]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x10]
movzx ecx, ax
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x1001db10
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10037258]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x1001db10
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x10037258]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x1001db2e
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.1001adf0
mov eax, dword [ebx + 0x10]
lea edx, [ebx + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x1003a024
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x1003a020
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
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 8
Function at 0x1001de30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100350d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x1003a07c
call fcn.1002f3d0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1002e434
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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
Function at 0x10021f40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10021f57
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10021f9f
cmp dword [esi + 0x14], 8
jb 0x10021f7f
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_map_file._CreateFileW__s__failed_with_error__d
call fcn.10019f70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x10021fe6
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10021fe1
cmp dword [esi + 0x14], 8
jb 0x10021fba
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_map_file._GetFileSizeEx__s__failed_with_error__d
call fcn.10019f70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
mov dword [ebx], eax
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x10022014
cmp dword [esi + 0x14], 8
jb 0x10022005
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_map_file._CreateFileMappingW__s__failed_with_error__d
jmp 0x10021fc7
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10022047
cmp dword [esi + 0x14], 8
jb 0x10022032
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_map_file._MapViewOfFile__s__failed_with_error__d
call fcn.10019f70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100356a0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1004805c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100220b0
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jae 0x100220fc
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100220d7
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10002bf0
mov al, 1
jmp 0x10022201
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push ecx
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.10023fe0
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1002219f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022150
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10002bf0
test esi, esi
je 0x1002219b
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x10022191
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100221cf
push ecx
push esi
call fcn.1002f71a
add esp, 8
mov al, 1
jmp 0x10022201
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100221df
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x100221d5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100221d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002f71a
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100221f1
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_to_obtain_working_directory__HRESULT:_0x_X
call fcn.10019f70
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret
Function at 0x10023340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x1002335c
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x10023398
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002f86d
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100233c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x100233c0
test eax, eax
jle 0x100233b1
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.1001a1c0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100233d0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.10002bf0
push ebx
call fcn.1002f868
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004805c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10026349
cmp byte [ebx + 0x3d], 0
je 0x10026349
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10037258]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x10026337
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x10037258]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x100262fe
sub eax, 1
je 0x10026302
sub eax, 2
jne 0x10026337
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x10026320
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10026337
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.1002f3c2
mov esp, ebp
pop ebp
ret
Function at 0x1002b040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x10], edi
mov esi, dword [edi]
cmp esi, edi
je 0x1002b0fa
nop dword [eax]
cmp dword [esi + 0x1c], 8
lea ebx, [esi + 8]
mov dword [ebp - 8], ebx
jb 0x1002b071
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
mov edx, 0x811c9dc5
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, 0
je 0x1002b0a7
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
nop dword [eax + eax]
movzx ecx, byte [eax + edi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, ebx
jb 0x1002b090
mov edi, dword [ebp - 0x10]
lea ebx, [esi + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push ebx
push eax
call fcn.10006780
mov eax, dword [eax + 4]
test eax, eax
je 0x1002b0c4
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 4]
jne 0x1002b0f0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1002b890
mov ecx, dword [eax]
lea eax, [ebx + 0x18]
add ecx, 0x20
cmp ecx, eax
je 0x1002b0f0
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1002b0e7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002bf0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002b060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b890
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035e75
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x14], 8
jb 0x1002b8cb
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0x10]
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x1002b8f4
mov edi, dword [ebp - 0x10]
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1002b8e0
mov edi, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10006780
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002b925
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 [ebx + 8], 0x4924924
je 0x1002ba3f
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x18], 0
call fcn.1002f3d0
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.10002af0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100425a0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100425a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x1002b9dd
mov ecx, ebx
call fcn.10006440
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10006780
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
jmp 0x1002b9e0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x1002ba0c
mov dword [ecx + eax*8], edi
jmp 0x1002ba1e
cmp esi, edx
jne 0x1002ba15
mov dword [ecx + eax*8], edi
jmp 0x1002ba22
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1002ba22
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
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.1002da1a
int3