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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100305ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10044080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0x14], 7
jbe 0x10012f2e
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov edx, dword [ebx + 0x10]
mov edi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x10012f56
mov esi, dword [ebp - 0x10]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jb 0x10012f42
mov esi, dword [ebp - 0x14]
push edi
push ebx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.100064c0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10012f87
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 [esi + 8], 0x1af286b
je 0x1001309b
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x98
mov dword [ebp - 0x20], 0
call fcn.1002b6a8
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
lea esi, [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.10002a90
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.1000f850
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 2
mov eax, dword [esi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003e4f0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003e4f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x1001303b
mov ecx, esi
call fcn.1000f320
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100064c0
mov edx, dword [eax]
jmp 0x1001303e
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov dword [eax], ebx
mov dword [edx + 4], ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
and eax, edi
mov edi, dword [ebp - 0x24]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x10013068
mov dword [ecx + eax*8], ebx
jmp 0x1001307a
cmp esi, edx
jne 0x10013071
mov dword [ecx + eax*8], ebx
jmp 0x1001307e
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1001307e
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
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.1002a80a
int3
Function at 0x100130b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100305e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10044080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 7
jbe 0x100130ee
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ebx, dword [edx + 0x10]
mov edi, 0x811c9dc5
mov ecx, 0
add ebx, ebx
je 0x10013116
mov esi, dword [ebp - 0x10]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x10013102
mov esi, dword [ebp - 0x18]
push edi
push edx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.100064c0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10013147
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 [esi + 8], 0x1af286b
je 0x10013259
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x98
mov dword [ebp - 0x20], 0
call fcn.1002b6a8
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
lea ecx, [ebx + 8]
call fcn.10002a90
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
push ecx
lea ecx, [ebx + 0x20]
call fcn.10006a00
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003e4f0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003e4f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x100131f9
mov ecx, esi
call fcn.1000f320
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100064c0
mov edx, dword [eax]
jmp 0x100131fc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov dword [eax], ebx
mov dword [edx + 4], ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x18]
and eax, edi
mov edi, dword [ebp - 0x24]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x10013226
mov dword [ecx + eax*8], ebx
jmp 0x10013238
cmp esi, edx
jne 0x1001322f
mov dword [ecx + eax*8], ebx
jmp 0x1001323c
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1001323c
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
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.1002a80a
int3
Function at 0x100136c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10044080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10044ea0], 0
push ebx
push esi
push edi
mov dword [ebp - 0x30], edx
mov esi, ecx
je 0x1001385c
push str.____Summary_of_all_frameworks:
call fcn.100197f0
mov eax, dword [esi]
add esp, 4
mov edx, dword [esi + 4]
mov cl, 1
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
cmp eax, edx
je 0x1001385c
nop word [eax + eax]
test cl, cl
je 0x1001371e
xor cl, cl
mov byte [ebp - 0x1d], cl
jmp 0x1001384e
mov esi, dword [eax]
mov edi, esi
cmp dword [esi + 0x14], 7
jbe 0x1001372a
mov edi, dword [esi]
mov ebx, dword [esi + 0x10]
mov edx, 0x811c9dc5
mov ecx, 0
add ebx, ebx
je 0x10013751
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10013740
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x38]
push edx
push esi
push eax
mov ecx, ebx
call fcn.100064c0
mov esi, dword [eax + 4]
test esi, esi
jne 0x1001376b
mov esi, dword [ebx + 4]
mov eax, dword [esi + 0x24]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [eax*4 + 0x10035b88]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013790
sub eax, edi
lea ecx, [ebp - 0x1c]
sar eax, 1
push eax
push edx
call fcn.10002d40
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
cmp dword [ecx + 0x2c], 7
lea eax, [ecx + 0x18]
jbe 0x100137b9
mov eax, dword [eax]
cmp dword [ebp - 8], 7
lea edx, [ebp - 0x1c]
lea ebx, [esi + 0x44]
cmova edx, dword [ebp - 0x1c]
cmp dword [ebx + 0x14], 7
mov dword [ebp - 0x2c], edx
jbe 0x100137d2
mov ebx, dword [ebx]
cmp dword [ecx + 0x5c], 7
lea edx, [ecx + 0x48]
jbe 0x100137dd
mov edx, dword [edx]
cmp dword [ecx + 0x44], 7
lea edi, [ecx + 0x30]
jbe 0x100137e8
mov edi, dword [edi]
cmp dword [ecx + 0x14], 7
jbe 0x100137f0
mov ecx, dword [ecx]
push eax
movzx eax, byte [esi + 0x28]
push eax
push dword [ebp - 0x2c]
movzx eax, byte [esi + 0x20]
push eax
push ebx
push edx
push edi
push ecx
push str._____framework:_s__lowest_requested_version_s__found_version_s__effective_reference_version_s_apply_patches_d__version_compatibility_range_s__roll_to_highest_version_d__folder_s
call fcn.100197f0
mov ecx, dword [ebp - 8]
add esp, 0x24
cmp ecx, 7
jbe 0x10013845
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001383b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001386d
push ecx
push edx
call fcn.1002b9f2
add esp, 8
mov edx, dword [ebp - 0x28]
mov cl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
cmp eax, edx
jne 0x10013710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b69a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x10014d00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030823
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10044080]
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.10002a90
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.10002a90
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.10002a90
lea eax, [edi + 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x24]
call fcn.10002a90
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 0x10016560
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 0x100309d6
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x10044080]
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.10016630
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 1
call fcn.10016630
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.10005c70
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 0x10019315
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 0x10019350
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10019337
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10019348
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10019352
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1001932d
xor eax, eax
pop edi
pop esi
ret

Function at 0x100197f0
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x10019ace
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.10019246
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x10019845
Function at 0x10019840
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.10019246
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
cmp eax, dword [edi + 6]
cmp eax, dword [edi + 6]
jb 0x10019812
call fcn.100192d5
push ds
sar byte [ebp + 0x73], cl
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10019ac4
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x1001987a
cmp dword [eax + 0xc], ebx
je 0x1001991d
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.100192d5
invalid
call fcn.100192d5
xchg edx, eax
jg 0x10019983
test byte [ebx + 0xa087], cl
add byte [ebx], bh
ret
rol dword [ebx], 0x40
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100199ac
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100199ca
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10019a28
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10019a0f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10019a18
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10019a22
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10019a04
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1001998e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10019a75
dec eax
je 0x10019a6c
sub eax, 3
je 0x10019a63
mov dword [ebp - 4], 0x40
jmp 0x10019a92
mov dword [ebp - 4], 4
jmp 0x10019a78
mov dword [ebp - 4], 0x20
jmp 0x10019a78
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10019ac4
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10019a44
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100192d5
ljmp 0x1475
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d240
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], 7
jbe 0x1001d257
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 0x1001d29f
cmp dword [esi + 0x14], 7
jbe 0x1001d27f
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.10019890
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x1001d2e6
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1001d2e1
cmp dword [esi + 0x14], 7
jbe 0x1001d2ba
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.10019890
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 0x1001d314
cmp dword [esi + 0x14], 7
jbe 0x1001d305
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 0x1001d2c7
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 0x1001d347
cmp dword [esi + 0x14], 7
jbe 0x1001d332
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.10019890
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 0x1001d370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100313c0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10044080]
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], 7
jbe 0x1001d3b0
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 0x1001d3fc
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001d3d7
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10002b70
mov al, 1
jmp 0x1001d501
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.1001f730
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 0x1001d49f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d450
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10002b70
test esi, esi
je 0x1001d49b
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x1001d491
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d4cf
push ecx
push esi
call fcn.1002b9f2
add esp, 8
mov al, 1
jmp 0x1001d501
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001d4df
mov ecx, dword [ebp - 0x21c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x1001d4d5
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d4d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1002b9f2
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001d4f1
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_to_obtain_working_directory__HRESULT:_0x_X
call fcn.10019890
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.1002b69a
mov esp, ebp
pop ebp
ret
Function at 0x1001ea90
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], 7
jbe 0x1001eaac
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 0x1001eae8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002bb3d
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1001eb19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1001eb10
test eax, eax
jle 0x1001eb01
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.10019ac0
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 0x1001eb20
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.10002b70
push ebx
call fcn.1002bb38
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10044080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100229f9
cmp byte [ebx + 0x3d], 0
je 0x100229f9
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10033220]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x100229e7
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 [0x10033220]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x100229ae
sub eax, 1
je 0x100229b2
sub eax, 2
jne 0x100229e7
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b69a
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100229d0
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 0x100229e7
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b69a
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b69a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.1002b69a
mov esp, ebp
pop ebp
ret
Function at 0x10027f20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov esi, dword [eax]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x10027fdc
nop dword [eax]
cmp dword [esi + 0x1c], 7
lea ebx, [esi + 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov edi, dword [edi + 4]
mov dword [ebp - 0x10], edi
jbe 0x10027f5a
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 0x10027f8b
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
movzx ecx, byte [ebx + eax]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x10027f74
mov edi, dword [ebp - 0x10]
lea ebx, [esi + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edx
push ebx
push eax
call fcn.100064c0
mov eax, dword [eax + 4]
test eax, eax
cmove eax, edi
cmp eax, edi
jne 0x10027fd1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push ebx
push eax
lea edi, [ebx + 0x18]
call fcn.10028760
mov ecx, dword [eax]
add ecx, 0x20
cmp ecx, edi
je 0x10027fd1
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x10027fc8
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.10002b70
mov esi, dword [esi]
cmp esi, dword [ebp - 0x14]
jne 0x10027f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4