joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010dfe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10253038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [edi + 9], bl
je 0x1010e04e
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], str.e:watermarkmodulecommon_vendorincludegoogleprotobufiozero_copy_stream_impl.cc
mov dword [ebp - 0x2c], 0x8b
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
push 0x1b
mov ebx, 1
push str.CHECK_failed:__is_closed_:
mov dword [ebp - 0x10], ebx
call fcn.1001c410
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_private:_void___thiscall_google::protobuf::internal::LogMessage::Finish_void_
test bl, 1
je 0x1010e089
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1010e089
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1010e07f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010e07f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e6d7
add esp, 8
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x1010e0b6
call ebx
cmp dword [eax], 4
je 0x1010e090
call ebx
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x101186d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
xor ecx, ecx
push 0xffffffffffffffff
push 0x10253aa3
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp ecx, eax
jne 0x10118714
push dword [ebp + 0x10]
push ebx
call sym.WMCommon.dll_char____cdecl_google::protobuf::FastUInt32ToBufferLeft_unsigned_int__char__
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x3b9aca00
push eax
push ebx
call fcn.102471a0
push dword [ebp + 0x10]
mov esi, eax
push edx
push esi
call sym.WMCommon.dll_char____cdecl_google::protobuf::FastUInt64ToBufferLeft_unsigned_long_long_unsigned___int64___char__
mov edi, eax
imul ecx, esi, 0x3b9aca00
mov eax, 0x6b5fca6b
add esp, 0xc
sub ebx, ecx
mul ebx
shr edx, 0x16
movzx eax, byte [edx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov byte [edi], al
movzx eax, byte [edx*2 + 0x10257e91]
mov byte [edi + 1], al
imul eax, edx, 0xff676980
add ebx, eax
mov eax, 0x4f8b588f
mul ebx
mov ecx, ebx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x10
movzx eax, byte [ecx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov byte [edi + 2], al
movzx eax, byte [ecx*2 + 0x10257e91]
mov byte [edi + 3], al
imul eax, ecx, 0xfffe7960
mov ecx, dword [ebp - 0xc]
add ebx, eax
mov eax, 0x10624dd3
mul ebx
shr edx, 6
movzx eax, byte [edx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov byte [edi + 4], al
movzx eax, byte [edx*2 + 0x10257e91]
mov byte [edi + 5], al
imul eax, edx, 0xfffffc18
add ebx, eax
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, byte [edx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov byte [edi + 6], al
movzx eax, byte [edx*2 + 0x10257e91]
mov byte [edi + 7], al
mov al, dl
shl dl, 2
add al, dl
add al, al
sub bl, al
lea eax, [edi + 9]
add bl, 0x30
mov byte [edi + 8], bl
mov byte [edi + 9], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101502d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0xf4240
push 0x54
mov dword [edi + 4], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1015030f
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], eax
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi], fcn.10150170
mov dword [esi + 4], fcn.101500a0
mov dword [esi + 8], fcn.1014fff0
mov dword [esi + 0xc], fcn.1014ff40
mov dword [esi + 0x10], 0x1014fed0
mov dword [esi + 0x14], 0x1014fe60
mov dword [esi + 0x18], 0x1014fc50
mov dword [esi + 0x1c], 0x1014f9d0
mov dword [esi + 0x20], 0x1014f880
mov dword [esi + 0x24], 0x1014f770
mov dword [esi + 0x28], 0x1014f640
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x101503f1
lea ecx, [esp + 0xb]
mov byte [esp + 0xb], 0x78
push ecx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
call fcn.1001e8f0
add esp, 0x10
test eax, eax
jle 0x101503f1
mov al, byte [esp + 0xb]
cmp al, 0x6d
je 0x101503e0
cmp al, 0x4d
mov eax, dword [esp + 0xc]
jne 0x101503e8
imul eax, dword [esp + 0xc], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
add esp, 8
ret

Function at 0x10156f80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10156fa0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10156fa0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10156fa0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10166690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
mov eax, dword [esi + 0x298]
test eax, eax
je 0x10166716
cmp eax, 1
jne 0x101666c5
mov edx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
jmp fcn.10168540
dec eax
mov dword [esi + 0x298], eax
cmp eax, 1
jne 0x10166716
mov edx, dword [esp + 0x114]
call fcn.10168540
push str.no_space_in_chunk_cache
test dword [esi + 0x78], 0x100000
je 0x10166879
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.10157150
add esp, 4
lea eax, [esp + 0x38]
push eax
push esi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [esi + 0x74]
test al, 1
je 0x10166874
test al, 4
je 0x1016672b
or eax, 8
mov dword [esi + 0x74], eax
mov ebx, dword [esp + 0x114]
mov edx, ebx
push 2
call fcn.10165250
mov ebp, eax
add esp, 4
mov ecx, esi
test ebp, ebp
jne 0x10166754
mov edx, ebx
call fcn.10168540
push str.out_of_memory
jmp 0x101666e2
push ebx
mov edx, ebp
call fcn.10166520
add esp, 4
xor edx, edx
mov ecx, esi
call fcn.10168540
test eax, eax
jne 0x10166869
xor edi, edi
test ebx, ebx
je 0x10166851
nop word [eax + eax]
cmp byte [edi + ebp], 0
je 0x1016678b
inc edi
cmp edi, ebx
jb 0x10166780
cmp edi, 0x4f
ja 0x10166851
cmp edi, 1
jb 0x10166851
lea eax, [edi + 3]
cmp eax, ebx
jbe 0x101667ae
mov eax, str.truncated
jmp 0x10166856
cmp byte [edi + ebp + 1], 0
je 0x101667bf
mov eax, str.unknown_compression_type
jmp 0x10166856
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
push eax
lea eax, [edi + 2]
mov edx, ebx
push eax
mov ecx, esi
call fcn.10164dd0
add esp, 0xc
cmp eax, 1
jne 0x10166845
mov ecx, dword [esi + 0x2b8]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
push 1
lea eax, [edx + edi]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x1c]
mov byte [eax + ecx + 2], 0
lea eax, [ecx + 2]
add eax, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
mov ecx, esi
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x3c], 0
call fcn.1016a2e0
add esp, 8
test eax, eax
je 0x10166869
mov eax, str.insufficient_memory
jmp 0x10166856
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x10166869
jmp 0x10166856
mov eax, str.bad_keyword
test dword [esi + 0x78], 0x100000
push eax
push esi
je 0x1016687a
call sym.WMCommon.dll_png_chunk_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push str.missing_IHDR
push esi
call sym.WMCommon.dll_png_chunk_error
int3
Function at 0x10166b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x298]
test eax, eax
je 0x10166bc7
cmp eax, 1
jne 0x10166ba5
mov edx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
jmp fcn.10168540
dec eax
mov dword [edi + 0x298], eax
cmp eax, 1
jne 0x10166bc7
mov edx, dword [esp + 0x11c]
call fcn.10168540
push str.no_space_in_chunk_cache
jmp 0x10166d5c
mov eax, dword [edi + 0x74]
test al, 1
je 0x10166d8c
test al, 4
je 0x10166bdc
or eax, 8
mov dword [edi + 0x74], eax
mov ebx, dword [esp + 0x11c]
push 1
lea edx, [ebx + 1]
call fcn.10165250
mov ebp, eax
add esp, 4
mov ecx, edi
test ebp, ebp
jne 0x10166c09
mov edx, ebx
call fcn.10168540
push str.out_of_memory
jmp 0x10166d5c
push ebx
mov edx, ebp
call fcn.10166520
add esp, 4
xor edx, edx
mov ecx, edi
call fcn.10168540
test eax, eax
jne 0x10166d81
xor esi, esi
test ebx, ebx
je 0x10166d56
nop
cmp byte [esi + ebp], 0
je 0x10166c3b
inc esi
cmp esi, ebx
jb 0x10166c30
cmp esi, 0x4f
ja 0x10166d56
cmp esi, 1
jb 0x10166d56
lea eax, [esi + 5]
cmp eax, ebx
jbe 0x10166c5e
mov eax, str.truncated
jmp 0x10166d5b
mov al, byte [esi + ebp + 1]
mov byte [esp + 0x13], al
test al, al
je 0x10166c7f
cmp al, 1
jne 0x10166c75
cmp byte [esi + ebp + 2], 0
je 0x10166c7f
mov eax, str.bad_compression_info
jmp 0x10166d5b
add esi, 3
mov dword [esp + 0x18], esi
cmp esi, ebx
jae 0x10166c9b
nop word [eax + eax]
cmp byte [esi + ebp], 0
je 0x10166c9b
inc esi
cmp esi, ebx
jb 0x10166c90
inc esi
mov dword [esp + 0x1c], esi
cmp esi, ebx
jae 0x10166caf
cmp byte [esi + ebp], 0
je 0x10166caf
inc esi
cmp esi, ebx
jb 0x10166ca4
inc esi
test al, al
jne 0x10166cbc
cmp esi, ebx
ja 0x10166c54
sub ebx, esi
jmp 0x10166cf6
cmp esi, ebx
jae 0x10166c54
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
push eax
push esi
mov edx, ebx
mov ecx, edi
call fcn.10164dd0
add esp, 0xc
cmp eax, 1
jne 0x10166ce8
mov ebp, dword [edi + 0x2b8]
jmp 0x10166cf2
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x10166d5b
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [ebx + esi]
mov byte [eax + ebp], 0
mov ecx, edi
xor eax, eax
mov dword [esp + 0x28], ebp
cmp byte [esp + 0x13], al
push 1
sete al
mov dword [esp + 0x34], 0
inc eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
add eax, ebp
mov dword [esp + 0x40], eax
lea eax, [esi + ebp]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
call fcn.1016a2e0
add esp, 8
test eax, eax
je 0x10166d81
mov eax, str.insufficient_memory
jmp 0x10166d5b
mov eax, str.bad_keyword
push eax
test dword [edi + 0x78], 0x100000
je 0x10166d91
lea edx, [esp + 0x44]
mov ecx, edi
call fcn.10157150
add esp, 4
lea eax, [esp + 0x40]
push eax
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push str.missing_IHDR
push edi
call sym.WMCommon.dll_png_chunk_error
int3
Function at 0x10167fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
mov eax, dword [edi + 0x74]
test al, 1
je 0x101681ae
mov edx, dword [esp + 0x12c]
test al, 6
je 0x10168042
call fcn.10168540
push str.out_of_place
test dword [edi + 0x78], 0x100000
je 0x101681b3
lea edx, [esp + 0x54]
mov ecx, edi
call fcn.10157150
add esp, 4
lea eax, [esp + 0x50]
push eax
push edi
call sym.WMCommon.dll_png_warning
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp edx, 0x20
je 0x10168053
call fcn.10168540
push str.invalid
jmp 0x1016800e
push 0x20
lea edx, [esp + 0x34]
call fcn.10166520
add esp, 4
xor edx, edx
mov ecx, edi
call fcn.10168540
test eax, eax
jne 0x101681a3
lea edx, [esp + 0x30]
call fcn.10165420
mov esi, eax
lea edx, [esp + 0x34]
mov dword [esp + 0x28], esi
call fcn.10165420
lea edx, [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.10165420
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], eax
call fcn.10165420
lea edx, [esp + 0x40]
mov dword [esp + 0x14], eax
call fcn.10165420
lea edx, [esp + 0x44]
mov dword [esp + 0x18], eax
call fcn.10165420
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], eax
call fcn.10165420
mov ebp, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], ebp
call fcn.10165420
mov dword [esp + 0x24], eax
cmp esi, 0xffffffff
je 0x10168195
cmp dword [esp + 0x2c], 0xffffffff
je 0x10168195
cmp dword [esp + 0x10], 0xffffffff
je 0x10168195
cmp dword [esp + 0x14], 0xffffffff
je 0x10168195
cmp dword [esp + 0x18], 0xffffffff
je 0x10168195
cmp dword [esp + 0x1c], 0xffffffff
je 0x10168195
cmp ebp, 0xffffffff
je 0x10168195
cmp eax, 0xffffffff
je 0x10168195
movzx eax, word [edi + 0x326]
test ax, ax
js 0x101681a3
mov ecx, edi
test al, 0x10
je 0x10168162
or eax, 0x8000
mov edx, ebx
mov word [edi + 0x326], ax
call fcn.10155a50
push str.duplicate
push edi
call sym.WMCommon.dll_png_chunk_benign_error
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
or eax, 0x10
lea edx, [edi + 0x2dc]
mov word [edi + 0x326], ax
lea eax, [esp + 0x10]
push 1
push eax
call fcn.10154fd0
add esp, 8
mov edx, ebx
mov ecx, edi
call fcn.10155a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
push str.invalid_values
push edi
call sym.WMCommon.dll_png_chunk_benign_error
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
push str.missing_IHDR
push edi
call sym.WMCommon.dll_png_chunk_error
int3
Function at 0x1016bc10
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x1016bd2a
cmp dword [edi + 4], 1
jne 0x1016bd1d
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1016bd0f
push esi
push 0x1026f798
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x1016bcf2
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
push edi
call sym.WMCommon.dll_png_image_write_to_stdio
add esp, 0x18
test eax, eax
je 0x1016bcdb
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
test eax, eax
jne 0x1016bcab
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x1016bcab
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
jne 0x1016bca1
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebp, dword [eax]
jmp 0x1016bcbd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push esi
mov ebp, dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push ebp
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 8
mov ecx, edi
mov edx, eax
pop ebp
pop esi
pop ebx
pop edi
jmp fcn.101526b0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov ecx, edi
mov edx, eax
pop esi
pop ebx
pop edi
jmp fcn.101526b0
pop ebx
mov ecx, edi
mov edx, str.png_image_write_to_file:_invalid_argument
pop edi
jmp fcn.101526b0
mov ecx, edi
mov edx, str.png_image_write_to_file:_incorrect_PNG_IMAGE_VERSION
pop edi
jmp fcn.101526b0
xor eax, eax
pop edi
ret
Function at 0x10175da0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], edx
cmp dword [esi], 0
je 0x10175db6
xor eax, eax
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
lea ecx, [esi + 0x30]
call fcn.1017c7a0
test eax, eax
jne 0x10175ea8
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push eax
push eax
mov dword [esi + 0x28], 1
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10175dff
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x10175ea8
push 0
push 0
push 0
push 0
call ebp
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10175e21
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x10175ea8
push 0
push 0
push 0
push 0
call ebp
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x10175e3f
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x10175ea8
mov ebp, dword [esp + 0x20]
lea ecx, [esi + 0x20]
push ebp
mov edx, ebp
call fcn.1017c680
add esp, 4
test eax, eax
jne 0x10175ea8
push ebp
lea ecx, [esi + 0x24]
xor edx, edx
call fcn.1017c680
add esp, 4
test eax, eax
jne 0x10175ea8
lea eax, [esp + 0x14]
mov dword [esi + 4], edi
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x1c]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10175e98
call ebx
test eax, eax
cmovne edi, eax
test edi, edi
jne 0x10175ea8
pop edi
pop ebp
pop ebx
mov dword [esi], 1
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, esi
call fcn.10175fe0
pop edi
pop ebp
pop ebx
mov eax, 0xc
pop esi
add esp, 8
ret
Function at 0x101794b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebx, ecx
mov ebp, 4
push esi
push edi
lea eax, [ebx + 0x30ea0]
nop word [eax + eax]
movzx edi, byte [ebx + ebp + 0x306a0]
mov edx, edi
mov esi, edi
shr edx, 1
and esi, 1
dec edx
or esi, 2
mov ecx, edx
shl esi, cl
lea ecx, [ebx + 0x32b0e]
push eax
mov eax, ebp
sub eax, esi
sub esi, edi
push eax
lea ecx, [ecx + esi*2]
call fcn.1017b820
mov dword [esp + ebp*4 + 0x2c], eax
add esp, 8
inc ebp
lea eax, [ebx + 0x30ea0]
cmp ebp, 0x80
jb 0x101794d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 4
sub ecx, ebx
lea ebp, [ebx + 0x31950]
lea esi, [ebx + 0x32910]
mov dword [esp + 0x18], ebp
lea edx, [ebx + 0x31d58]
mov dword [esp + 0x10], esi
sub ecx, 0x31d50
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x32594]
xor edi, edi
test eax, eax
je 0x101795b2
nop dword [eax]
mov ebp, dword [esp + 0x10]
mov eax, edi
xor esi, esi
or eax, 0x40
nop dword [eax + eax]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [ebx + ecx*4 + 0x30ea0]
cmp eax, 1
jne 0x10179570
mov ebp, dword [esp + 0x18]
mov dword [ebp + edi*4], esi
inc edi
mov eax, dword [ebx + 0x32594]
cmp edi, eax
jb 0x10179560
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xe
cmp eax, ecx
jbe 0x101795d7
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [ebx + 0x32594]
jb 0x101795c0
mov eax, dword [ebp]
mov ecx, 4
mov edi, dword [esp + 0x1c]
mov dword [edx - 8], eax
mov eax, dword [ebp + 4]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
add edx, 8
nop word [eax + eax]
movzx eax, byte [ebx + ecx + 0x306a0]
lea edx, [edx + 4]
inc ecx
mov eax, dword [ebp + eax*4]
add eax, dword [edx + edi - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x10179600
mov edx, dword [esp + 0x14]
sub esi, 0xffffff80
add ebp, 0x100
mov dword [esp + 0x10], esi
add edx, 0x200
mov dword [esp + 0x18], ebp
sub edi, 0x200
mov dword [esp + 0x14], edx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], edi
jne 0x10179550
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3bcf8], 0
pop ebx
add esp, 0x214
ret
Function at 0x10179670
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x14], ecx
lea eax, [ecx + 0x32550]
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x14], eax
nop dword [eax + eax]
xor ebx, ebx
mov edi, ebp
lea eax, [ebx + 1]
lea ebp, [ebx + 4]
nop word [eax + eax]
movzx edx, word [ecx + eax*2 + 0x32bf4]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x18]
add ebx, dword [ecx + edx*4 + 0x30ea0]
sub ebp, 1
jne 0x101796a0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x10179690
pop edi
pop esi
pop ebp
mov dword [ecx + 0x32590], 0
pop ebx
add esp, 0xc
ret
Function at 0x1017b500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, ecx
mov dword [esp + 8], edx
push esi
push edi
movzx esi, word [ebp]
movzx ecx, word [ebp + 2]
mov eax, esi
shr eax, 4
xor esi, 0x7f0
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x24]
jae 0x1017b67a
mov edx, esi
xor edi, edi
mov esi, dword [esp + 0x10]
or edx, 8
nop dword [eax + eax]
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x1017b570
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x2c], esi
cmp esi, 8
jb 0x1017b556
cmp esi, 0x10
jae 0x1017b622
lea eax, [esi - 8]
mov dword [esp + 0x14], eax
nop dword [eax]
cmp esi, dword [esp + 0x24]
jae 0x1017b67a
mov esi, dword [esp + 0x10]
mov edx, eax
xor edi, edi
or edx, 8
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x1017b5d5
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x1017b5c0
cmp esi, dword [esp + 0x24]
jae 0x1017b67a
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], eax
nop
xor edi, edi
or eax, 0x100
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x1017b637
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x24]
jb 0x1017b630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1017b820
Capabilities:
Encode data using xor

Disassembly:
push ecx
xor eax, eax
mov dword [esp], ecx
push ebp
mov ebp, edx
push edi
lea edi, [eax + 1]
test ebp, ebp
je 0x1017b867
push ebx
mov ebx, dword [esp + 0x14]
push esi
movzx edx, word [ecx + edi*2]
mov esi, ebx
and esi, 1
shr edx, 4
mov ecx, esi
shr ebx, 1
neg ecx
add edi, edi
sar ecx, 4
or edi, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x10]
sub ebp, 1
jne 0x1017b837
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret