joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042217
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10036389
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10036389
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004228e
cmp word [ecx], dx
je 0x1004228e
mov eax, dword [0x1004e83c]
push edi
dec eax
push eax
push 0x1004e728
call fcn.100421b6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10042301
cmp word [eax], dx
je 0x10042301
mov eax, dword [edi]
test eax, eax
je 0x100422b2
cmp word [eax], dx
je 0x100422b2
lea eax, [ebp - 0x10]
push eax
call fcn.10041b99
jmp 0x100422bb
lea eax, [ebp - 0x10]
push eax
call fcn.10041c34
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004232b
mov eax, dword [0x1004e724]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1004e418
call fcn.100421b6
add esp, 0xc
test al, al
je 0x1004232b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100422f6
cmp word [eax], di
je 0x100422f6
lea eax, [ebp - 0x10]
push eax
call fcn.10041b99
pop ecx
jmp 0x1004232d
lea eax, [ebp - 0x10]
push eax
call fcn.10041c34
jmp 0x100422f3
mov eax, dword [edi]
test eax, eax
je 0x10042318
cmp word [eax], dx
je 0x10042318
lea eax, [ebp - 0x10]
push eax
call fcn.10041b4e
pop ecx
jmp 0x1004232b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100423f6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004203b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100423f6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100423f6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100423f6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10042383
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10038ef2
test ebx, ebx
je 0x100423f1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10038ef2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100423f6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100423f6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10044a62
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100423f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029593
leave
ret
Function at 0x10044c81
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10044bfd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10044df0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10044df0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10044da5
jg 0x10044cdd
test eax, eax
je 0x10044d9b
push 1
push 0x1000
call fcn.10034c82
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10044d00
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10044d92
push 0x8000
push ebx
call fcn.10044b2e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10044d29
jg 0x10044d24
cmp ecx, 0x1000
jb 0x10044d29
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1003a311
add esp, 0x10
cmp eax, 0xffffffff
je 0x10044d6e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10044d24
jl 0x10044d55
test ecx, ecx
jne 0x10044d16
push dword [ebp - 0xc]
push ebx
call fcn.10044b2e
push esi
call fcn.10034cdf
add esp, 0xc
xor ebx, ebx
jmp 0x10044dfe
cmp byte [edi + 0x24], 0
je 0x10044d85
cmp dword [edi + 0x20], 5
jne 0x10044d85
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10044d90
mov ebx, dword [edi + 0x18]
jmp 0x10044d92
xor ebx, ebx
push esi
call fcn.10034cdf
pop ecx
jmp 0x10044dfe
test ecx, ecx
jg 0x10044d67
jl 0x10044da5
test eax, eax
jae 0x10044d67
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003be90
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10044dc5
cmp byte [edi + 0x1c], 0
je 0x10044d67
jmp 0x10044df6
push ebx
call fcn.100427d1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10044d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10044dfe
cmp byte [edi + 0x1c], 0
je 0x10044dfb
mov ebx, dword [edi + 0x18]
jmp 0x10044dfe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003be90
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10047750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004777d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004777d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40673a
pop dword [ebp - 0x24]
mov eax, 0x702bcfb0
sub eax, 0x6feb6876
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc6910b6b
add dword [ebp - 0x34], 0x87c139e0
mov dword [ebp - 0x30], 0xa6572bbb
add dword [ebp - 0x30], 0x8bdc208a
mov dword [ebp - 0x2c], 0x4274151c
add dword [ebp - 0x2c], 0x9d82f12
mov dword [ebp - 0x28], 0xa01d4ae0
add dword [ebp - 0x28], 0x5fe2b520
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xf45915d2
sub dword [ebp - 0x34], 0x7fe6ac7c
mov dword [ebp - 0x30], 0xba13eadc
add dword [ebp - 0x30], 0x87587699
mov dword [ebp - 0x2c], 0x7241c0e2
sub dword [ebp - 0x2c], 0xed25476
mov dword [ebp - 0x28], 0xb37dd05f
sub dword [ebp - 0x28], 0xb37dd05f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x12e15cee
add eax, 0xed5f2412
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36029
push 0
call eax
mov ecx, 0xab79eca
add ecx, 0xf548a330
xor edi, edi
add edi, eax
mov edx, 0x2e2ef3d
add edx, 0xfd63f4c3
add edx, dword [ebp - 0x24]
mov esi, 0xb21da29a
add dword [ebp - 0x1c], ecx
mov ebx, dword [edx]
sub dword [ebp - 0xc], 0xd2645f87
xor ebx, esi
xor dword [ebp - 8], 0x80bc7542
mov dword [edi], ebx
add edi, 0x455ea904
add edi, 0xbaa15700
add edx, 0x2a460229
add edx, 0xd5b9fddb
loop 0x406853
add eax, 0xfabb
xor ebx, ebx
add ebx, eax
add eax, 0xc3400327
sub eax, 0xc3400322
mov ecx, 0xa4b15cff
add ecx, 0x5b8ea301
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10009ef0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10009f3c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10009f1f
cmp edi, 2
jb 0x10009f1f
cmp byte [esi], cl
jne 0x10009f1f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1015a8c8]
test edi, edi
jne 0x10009f05
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10009f6b
cmp cl, 0x23
jne 0x10009f52
cmp byte [esi], cl
jne 0x10009f52
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1015a8c8]
test cl, cl
jne 0x10009f43
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1000a110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000a124
mov dword [edi], 0
mov edx, 0x1015a744
call fcn.10009f80
mov esi, eax
test esi, esi
je 0x1000a220
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000a216
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a216
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x1000a216
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a216
mov eax, dword [0x101faf00]
test eax, eax
je 0x1000a1a0
inc dword [eax + 0x374]
push dword [0x101faef8]
push ebx
call fcn.10009670
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000a216
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1000a1fb
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101faf00]
add esp, 4
test eax, eax
je 0x1000a1e3
dec dword [eax + 0x374]
push dword [0x101faef8]
push ebx
call fcn.10009690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1000a20d
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000caf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xcc]
mov eax, dword [ecx + 0xd4]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1015a8c8]
sub edi, 1
jne 0x1000cb10
mov ecx, dword [0x101faf00]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19ec], eax
jne 0x1000cb42
mov dword [ecx + 0x19f0], eax
cmp dword [ecx + 0x1a20], eax
jne 0x1000cb51
mov byte [ecx + 0x1a24], 1
pop ebp
ret 4

Function at 0x1000cb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10167368]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xcc]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xd4]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1015a8c8]
sub edi, 1
jne 0x1000cbd4
mov eax, dword [0x101faf00]
not edx
pop edi
pop esi
cmp dword [eax + 0x19ec], edx
jne 0x1000cc05
mov dword [eax + 0x19f0], edx
cmp dword [eax + 0x1a20], edx
jne 0x1000cc14
mov byte [eax + 0x1a24], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100e1968
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d5e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101faf00]
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x1000d5f8
inc dword [eax + 0x374]
push dword [0x101faef8]
push 0x3b90
call fcn.10009670
add esp, 8
test eax, eax
je 0x1000d61b
push ecx
mov ecx, eax
call fcn.10008540
mov edi, eax
jmp 0x1000d61d
xor edi, edi
mov ebx, dword [0x101faf00]
mov esi, 0x1015a671
test ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], str.Window
mov al, 0x57
cmove ebx, edi
or edx, 0xffffffff
mov dword [0x101faf00], ebx
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x1000d65e
cmp byte [esi], al
jne 0x1000d65e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x1015a8c8]
test al, al
jne 0x1000d650
mov esi, dword [edi + 0x2d48]
not edx
mov ecx, dword [edi + 0x2d4c]
mov ebx, dword [0x101faf00]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x10019f60
mov dword [ebp - 0xc], 0x10019fc0
mov dword [ebp - 8], 0x1001a070
cmp esi, ecx
jne 0x1000d73f
inc esi
test ecx, ecx
je 0x1000d6bb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000d6c0
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000d73f
test ebx, ebx
je 0x1000d6d3
inc dword [ebx + 0x374]
push dword [0x101faef8]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10009670
mov ebx, eax
add esp, 8
mov eax, dword [edi + 0x2d50]
test eax, eax
je 0x1000d733
mov ecx, dword [edi + 0x2d48]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2d50]
add esp, 0xc
test ecx, ecx
je 0x1000d724
mov eax, dword [0x101faf00]
test eax, eax
je 0x1000d724
dec dword [eax + 0x374]
push dword [0x101faef8]
push ecx
call fcn.10009690
add esp, 8
mov dword [edi + 0x2d50], ebx
mov dword [edi + 0x2d4c], esi
mov eax, dword [edi + 0x2d48]
movups xmm0, xmmword [ebp - 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d50]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 8]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2d48]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000fde0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000fe1f
cmp bl, 0x23
jne 0x1000fe01
cmp byte [esi], bl
jne 0x1000fe01
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x1015a8c8]
test bl, bl
jne 0x1000fdf2
mov ebx, dword [0x101faf00]
not eax
mov esi, dword [ebx + 0x19a0]
mov edi, dword [ebx + 0x19a8]
mov ecx, edi
test esi, esi
je 0x1000fe64
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000fe58
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000fe5a
mov esi, edx
test esi, esi
jne 0x1000fe40
mov ecx, dword [ebx + 0x19a8]
mov edx, dword [ebx + 0x19a0]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1000fe7c
cmp dword [edi], eax
jne 0x1000fe7c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10015310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101faf00]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x19b0]
mov esi, 4
mov ebx, dword [eax + 0xd4]
lea edi, [eax + 0xcc]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1015a8c8]
sub esi, 1
jne 0x10015350
mov eax, dword [ebp - 4]
not ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0xd0]
cmp ecx, esi
jne 0x100153a3
inc ecx
test esi, esi
je 0x1001538c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10015391
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001a910
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd4]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x101faf00]
push edi
cmp byte [esi + 0x2d60], 0
je 0x100199af
cmp dword [esi + 0x2d68], 0
lea edi, [esi + 0x2d6c]
je 0x100199a1
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10019959
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001ac00
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1000a6f0
mov edx, dword [edi]
mov ecx, 0x101faefc
push dword [esi + 0x2d68]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d74]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1000a6f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019c50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x101faf00]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10019c79
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10019c70
sub esi, ecx
test edx, edx
je 0x10019c83
inc dword [edx + 0x374]
push ebx
push dword [0x101faef8]
lea eax, [esi + 1]
push eax
call fcn.10009670
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x14
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x10019e1c
nop
mov al, byte [ecx]
cmp al, 0xa
je 0x10019e4f
cmp al, 0xd
je 0x10019e4f
mov esi, ecx
cmp ecx, ebx
jae 0x10019ce7
mov al, byte [esi]
cmp al, 0xa
je 0x10019ce7
cmp al, 0xd
je 0x10019ce7
inc esi
cmp esi, ebx
jb 0x10019cd8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x10019e0e
cmp al, 0x5b
jne 0x10019ded
cmp esi, ecx
jbe 0x10019ded
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x10019dea
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10019e08
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10019e08
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x101faf00]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x10019d9e
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x10019d7f
cmp byte [edi], cl
jne 0x10019d7f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x1015a8c8]
test cl, cl
jne 0x10019d70
mov ebx, dword [0x101faf00]
mov edi, dword [ebx + 0x2d48]
xor ecx, ecx
not eax
test edi, edi
jle 0x10019dc1
mov ebx, dword [ebx + 0x2d50]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x10019dca
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x10019db5
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x10019e0b
lea eax, [ecx + ecx*2]
lea edi, [ebx + eax*8]
test edi, edi
je 0x10019dc3
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x10019e0b
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10019e0e
test edx, edx
je 0x10019e0e
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x10019e0e
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x10019cc0
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x10019e30
mov eax, dword [0x101faf00]
test eax, eax
je 0x10019e30
dec dword [eax + 0x374]
push dword [0x101faef8]
push esi
call fcn.10009690
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
mov byte [eax + 0x2d34], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x10019cc0
Function at 0x10019e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x101faf00]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d38], 0
test eax, eax
je 0x10019f58
lea edi, [esi + 0x2d3c]
mov dword [esi + 0x2d38], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10019eb5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001ac00
xor ecx, ecx
mov dword [edi], 0
cmp dword [edi + 4], ecx
jne 0x10019ecd
push 8
mov ecx, edi
call fcn.1001ac00
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2d48], 0
mov ebx, dword [edi]
jle 0x10019f17
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x2d50]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2d48]
jl 0x10019ef0
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x101faefc
mov edx, 0x1015a748
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2d44]
test eax, eax
cmovne edi, eax
call fcn.10009f80
mov esi, eax
test esi, esi
je 0x10019f58
push esi
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret