joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009e580
Capabilities:
Access peb ldr_data
Create thread
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135e75
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x103b0024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jne 0x1009e6b2
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x18], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
je 0x1009e629
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x1009e629
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
nop dword [eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0x273fc1d5
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x1009e622
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x1009e605
cmp esi, 0x7ab91393
je 0x1009e62d
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x1009e5f0
mov eax, dword [eax]
jmp 0x1009e5c7
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push esi
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
movzx eax, word [eax + edi*2]
mov eax, dword [ecx + eax*4]
add eax, edx
call eax
push 8
call fcn.10123ad5
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x1009df80
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1009fc80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1009e6d5
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x1009e69c
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x1009e6b2
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101238be
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1009eef0
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ecx]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], ecx
cmp dword [eax + ecx + 0x7c], 0
jbe 0x1009ef9d
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x1c]
mov esi, dword [eax + ecx + 0x20]
mov eax, dword [eax + ecx + 0x24]
add esi, ecx
add eax, ecx
mov dword [ebp - 0x14], esi
lea ebx, [edx + ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
test edx, edx
je 0x1009ef9d
nop dword [eax + eax]
mov edi, dword [esi + ebx*4]
add edi, ecx
mov dword [ebp - 4], 0x811c9dc5
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009ef53
sub ecx, esi
je 0x1009ef86
mov ebx, dword [ebp - 4]
movsx eax, byte [edx + edi]
xor eax, ebx
imul ebx, eax, 0x1000193
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009ef73
sub eax, esi
cmp edx, eax
jb 0x1009ef61
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x1009efa8
mov ecx, dword [ebp - 0xc]
inc ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x10]
jb 0x1009ef40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
pop edi
pop esi
movzx eax, word [eax + ebx*2]
pop ebx
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x1009f2b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x103b0024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x14]
imul edi, ecx, 0x1000193
push edi
push esi
push eax
call fcn.1009f670
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1009f3e3
cmp dword [0x103c6490], 0xccccccc
jne 0x1009f33a
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x1c], 0x103c648c
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x18], 0
call fcn.10123ad5
mov ebx, eax
xorps xmm0, xmm0
mov eax, dword [esi]
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebx + 8], eax
movq qword [ebx + 0xc], xmm0
mov dword [ebp - 4], 1
mov dword [ebx + 0x10], 0
mov eax, dword [0x103c6490]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x103a2da0]
mov eax, dword [0x103c64a4]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x103a2da0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x103c6488]
jbe 0x1009f3d8
call fcn.1009f400
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1009f670
mov ecx, dword [eax]
jmp 0x1009f3db
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push edi
call fcn.1009f490
add eax, 0xc
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 0x1009f500
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1009f52c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x103c648c]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x103c6494
lea eax, [edi + edi]
push eax
call fcn.10041470
mov eax, dword [0x103c648c]
lea ebx, [edi - 1]
mov dword [0x103c64a0], ebx
mov dword [0x103c64a4], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1009f666
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x103c6494]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x1009f5c4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1009f631
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1009f5fe
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1009f5f6
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1009f631
cmp ebx, edx
je 0x1009f60e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1009f642
cmp ebx, edx
jne 0x1009f602
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x1009f666
mov ebx, dword [0x103c64a0]
jmp 0x1009f572
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1009f631
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ac680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
movzx ebp, ax
xor eax, eax
mov esi, ebp
push edi
shr esi, 8
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], eax
jbe 0x100ac6e1
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x100ac6e1
jne 0x100ac6d8
cmp eax, edx
jge 0x100ac6d8
mov ecx, dword [esp + 0x18]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x100ac709
inc eax
cmp eax, edx
jl 0x100ac6c6
mov esi, dword [esp + 0x10]
inc edi
mov eax, edx
cmp edi, dword [esp + 0x20]
jb 0x100ac6a3
mov edi, dword [esp + 0x2c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x100ac71f
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x100ac711
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x100ac713
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, ecx
sub ebp, edx
js 0x100ac71f
inc eax
xor bl, 1
cmp eax, edi
jb 0x100ac6f1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x100b3480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x100b34a5
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100b350b
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x100b3504
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x100b34d7
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x100b34c6
jmp 0x100b3504
test edx, edx
jne 0x100b34e0
mov dword [ebx + 0x54], ecx
jmp 0x100b34e3
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100b34f0
push esi
call eax
add esp, 4
push esi
call fcn.100b3890
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x100b34b0
lea eax, [edi + 0x6c]
test eax, eax
je 0x100b358e
test ebp, ebp
je 0x100b358e
mov ebx, dword [eax]
test ebx, ebx
je 0x100b3581
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100b3537
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x100b354b
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100b355c
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100b3520
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x100b35a2
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.100b3410
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x100b35bd
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x100b35ef
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x100b35db
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x100b35ef
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x100b3616
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x10101bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + 0x33c]
movups xmmword [ebx], xmm0
push esi
movq qword [ebx + 0x10], xmm0
movzx ecx, word [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
shl ecx, 4
add ecx, eax
push edi
cmp eax, ecx
jae 0x10101dad
cmp dword [eax], 0x42444620
jne 0x10101c05
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x10101c19
add eax, 0x10
cmp eax, ecx
jb 0x10101bf6
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push dword [eax + 8]
mov edi, dword [esp + 0x30]
push edi
call fcn.100b2870
add esp, 8
test eax, eax
jne 0x10101dad
cmp esi, 8
jb 0x10101dad
push ebx
push esi
push edi
call fcn.100b1f00
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10101dad
mov eax, dword [ebx]
lea ecx, [eax + esi]
mov dword [ebp + 0x340], ecx
mov ecx, eax
movzx edi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, byte [ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 1
jne 0x10101d95
cmp edx, 8
jb 0x10101d95
lea eax, [edx - 8]
shr eax, 2
cmp eax, edi
jb 0x10101d95
lea eax, [edx + 1]
cmp eax, esi
ja 0x10101d95
mov eax, dword [ebx]
sub esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [ebp + 0x34c], edi
mov dword [ebp + 0x348], esi
lea ecx, [eax + edx]
mov dword [ebp + 0x344], ecx
lea edx, [eax + 8]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
cmp edi, 2
jb 0x10101d51
lea esi, [edi - 2]
xor ebx, ebx
shr esi, 1
inc esi
xor ebp, ebp
movzx ecx, byte [edx + 2]
sub edi, 2
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
movzx ecx, byte [edx + 6]
lea ebx, [ebx + eax*2]
shl ecx, 8
movzx eax, byte [edx + 7]
add edx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea ebp, [ebp + eax*2]
sub esi, 1
jne 0x10101d05
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x344]
lea ebx, [ebp + 0x33c]
jmp 0x10101d53
mov esi, ecx
test edi, edi
je 0x10101d70
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
jmp 0x10101d74
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, edx
cmp eax, esi
ja 0x10101d95
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebp + 0x350], 1
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
push dword [esp + 0x30]
call fcn.100b2830
xorps xmm0, xmm0
add esp, 8
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1010c0b0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1010c0c4
lea eax, [esi + 0x28]
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1010c0f4
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1010c205
mov ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x1010c205
mov eax, dword [esp + 0x14]
jl 0x1010c12d
cmp eax, 0x7fffffff
ja 0x1010c205
or eax, ecx
je 0x1010c205
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x1010c205
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call ebp
cmp dword [esi], 0
je 0x1010c17e
mov eax, 0x1010c260
jmp 0x1010c1cd
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1010c205
mov ebp, dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
xor edi, edi
nop dword [eax]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x1010c1f0
add edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
jne 0x1010c1a0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1010c230
push ebx
mov dword [esi + 0x18], eax
call ebp
mov eax, dword [esi]
pop edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
add esp, 0xc
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
pop edi
pop ebp
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
add esp, 0xc
ret
Function at 0x10124dd3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10124daf
pop esi
leave
ret 8
Function at 0x10128210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 1
push esi
push edi
mov ecx, 0x3020100
mov edx, dword [ebx + 0x118]
mov dword [ebx + 0x120], 0x3020100
add ecx, 0x4040404
mov dword [ebx + eax*4 + 0x120], ecx
inc eax
cmp eax, edx
jbe 0x10128231
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], esi
je 0x1012828d
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
mov edx, dword [esp + 0x1c]
or edi, eax
mov ebx, edx
mov cl, byte [eax + edx + 0x120]
mov byte [esi + ebp], cl
mov byte [edx + 0x11f], cl
nop
mov cl, byte [eax + ebx + 0x11f]
mov edx, eax
sub eax, 1
mov byte [edx + ebx + 0x120], cl
jns 0x10128270
inc esi
cmp esi, dword [esp + 0x18]
jb 0x10128252
pop ebp
mov eax, dword [esp + 0x18]
shr edi, 2
mov dword [eax + 0x118], edi
pop edi
pop esi
pop ebx
ret
Function at 0x1012c1f0
Capabilities:
Terminate process

Disassembly:
call fcn.1012c240
push eax
push dword [esp + 8]
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to:_bzip2_devel_sourceware.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks._n_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10045ff0
add esp, 0x10
cmp dword [esp + 4], 0x3ef
jne 0x1012c236
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10045ff0
add esp, 8
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x402193
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x409470], eax
call sub.comctl32.dll_InitCommonControls
mov dword [0x40aaba], 0x94
push 0x40aaba
call sub.kernel32.dll_GetVersionExA
cmp dword [0x40aabe], 5
jb 0x402177
push str.user32.dll
call sub.kernel32.dll_GetModuleHandleA
push eax
push str.UpdateLayeredWindow
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40ab4e], eax
pop eax
push str.TrackMouseEvent
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40ab56], eax
push str.gdi32.dll
call sub.kernel32.dll_GetModuleHandleA
push str.AddFontMemResourceEx
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40ab52], eax
push 0xa
push 0
push 0
push dword [0x409470]
call 0x402193
jmp 0x40218d
push 0
push 0x404d13
push 0
push 0x64
push dword [0x409470]
call sub.user32.dll_DialogBoxParamA
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
call fcn.00403438
push 0x4094b4
push 0x5dc
call fcn.004034bf
mov dword [0x409488], eax
push dword [0x4094b4]
pop dword [0x40901b]
push dword [0x4094b8]
pop dword [0x40901f]
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x2003
mov dword [ebp - 0x28], 0x4022f1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x409470]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x409007
push 0x63e
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x63d
push dword [ebp + 8]
call sub.user32.dll_LoadCursorA
or eax, eax
jne 0x40223b
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, dword [0x4094b4]
shr eax, 1
push eax
push 1
call sub.user32.dll_GetSystemMetrics
sub eax, dword [0x4094b8]
shr eax, 1
pop ebx
mov ecx, 0x80000
cmp byte [0x40a29b], 0
je 0x402278
or ecx, 8
push 0
push dword [ebp + 8]
push 0
push 0
push dword [0x4094b8]
push dword [0x4094b4]
push eax
push ebx
push 0x80000000
push dword [0x40a29d]
push 0x409007
push ecx
call sub.user32.dll_CreateWindowExA
mov dword [0x409474], eax
push 1
push dword [0x409474]
call sub.user32.dll_ShowWindow
push dword [0x409474]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4022e9
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4022c2
mov eax, dword [ebp - 0x44]
pop ebx
leave
ret 0x10