joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100316bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x10031741
mov ecx, esi
call fcn.10031ed0
mov ebx, eax
xor eax, eax
push eax
push ecx
push eax
sub ebx, esi
xor ecx, ecx
push eax
sar ebx, 1
push ebx
push esi
call fcn.1002d9e9
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10031741
push edi
push eax
call sym.ucrtbase.dll__malloc_base
mov edi, eax
mov dword [ebp - 4], edi
pop ecx
test edi, edi
je 0x1003172a
push 0
push ecx
push dword [ebp - 0xc]
xor ecx, ecx
push edi
push ebx
push esi
call fcn.1002d9e9
add esp, 0x18
test eax, eax
je 0x1003172a
and dword [ebp - 4], 0
jmp 0x1003172c
xor edi, edi
lea ecx, [ebp - 4]
call fcn.1002896d
lea ecx, [ebp - 8]
call fcn.10031eae
mov eax, edi
pop edi
jmp 0x1003174b
lea ecx, [ebp - 8]
call fcn.10031eae
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x100335b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x100335d3
lea ecx, [ebp - 8]
call fcn.10031eae
xor eax, eax
jmp 0x10033616
push ebx
push edi
mov ecx, esi
call fcn.10031ed0
mov edi, eax
sub edi, esi
and edi, 0xfffffffe
push edi
call sym.ucrtbase.dll__malloc_base
mov ebx, eax
mov dword [ebp - 4], ebx
pop ecx
test ebx, ebx
je 0x10033602
push edi
push esi
push ebx
call sym.ucrtbase.dll_memcpy
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.1002896d
lea ecx, [ebp - 8]
call fcn.10031eae
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret
Function at 0x1003361f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.10068e90
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x10105340]
push esi
push edi
mov edi, ebx
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1408], eax
add ecx, edx
xor eax, eax
mov dword [ebp - 0x1410], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp edx, ecx
jae 0x100336e9
mov edi, dword [ebp - 0x1408]
lea esi, [ebp - 0x1404]
cmp edx, ecx
jae 0x10033698
mov al, byte [edx]
inc edx
cmp al, 0xa
jne 0x1003368e
inc dword [ebx + 8]
mov byte [esi], 0xd
inc esi
mov byte [esi], al
inc esi
lea eax, [ebp - 5]
cmp esi, eax
jb 0x1003367c
lea eax, [ebp - 0x1404]
mov dword [ebp - 0x1408], edx
sub esi, eax
lea eax, [ebp - 0x140c]
push 0
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x100336e1
mov eax, dword [ebp - 0x140c]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x100336e9
mov edx, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1410]
cmp edx, ecx
jb 0x10033676
jmp 0x100336e9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret
Function at 0x100373b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, ecx
sar ecx, 6
mov dword [ebp - 0x1c], eax
and eax, 0x3f
shl ecx, 2
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + 0x10105340]
shl edx, 3
push esi
push edi
mov dword [ebp - 0x10], edx
mov ecx, dword [edx + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100373fd
cmp byte [ebx], 0xa
jne 0x100373fd
or byte [edx + eax + 0x28], 4
jmp 0x10037402
and byte [edx + eax + 0x28], 0xfb
lea edi, [ebx + ecx]
mov edx, ebx
mov esi, ebx
cmp ebx, edi
jae 0x10037522
mov al, byte [edx]
cmp al, 0x1a
je 0x100374f9
lea ecx, [edx + 1]
cmp al, 0xd
je 0x10037426
mov edx, ecx
jmp 0x10037443
cmp ecx, edi
jae 0x10037455
mov cl, byte [ecx]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
inc esi
cmp edx, edi
jb 0x10037411
sub esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x100374ea
cmp dword [ebp - 0x18], 0
je 0x100374ea
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x10105340]
add ecx, eax
test byte [ecx + 0x28], 0x48
je 0x100374b0
mov al, byte [ebp - 5]
cmp al, 0xa
jne 0x1003749e
mov byte [esi], 0xa
inc esi
sub esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xd
inc esi
sub esi, ebx
mov byte [ecx + 0x2a], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 5], 0xa
jne 0x100374ba
cmp esi, ebx
je 0x1003748f
push 0
lea ecx, [ebp - 0x44]
call fcn.1006a040
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, 1
call fcn.100751c2
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.1006a0b0
cmp byte [ebp - 5], 0xa
je 0x10037522
mov byte [esi], 0xd
inc esi
sub esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x10105340]
add ecx, eax
mov al, byte [ecx + 0x28]
test al, 0x40
jne 0x1003751e
or al, 2
sub esi, ebx
mov byte [ecx + 0x28], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003b000
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push 0x1000a590
push 0x1000a588
mov edx, 0x1000a554
mov ecx, 0x21
call fcn.100293a0
add esp, 8
mov ebx, eax
push esi
push edi
test ebx, ebx
je 0x1003b03b
mov ecx, ebx
call dword [0x10106270]
call ebx
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
pop edi
pop esi
pop ebx
ret

Function at 0x10046320
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
test ecx, ecx
jne 0x100463fe
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [ebp - 4], eax
cmp ecx, 0xffffffff
je 0x10046370
call fcn.100290c0
mov ebx, eax
test ebx, ebx
je 0x1004636a
cmp ebx, 0xffffffff
je 0x100463d9
jmp 0x100463d0
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x100463d9
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x101042e4]
test ebx, ebx
jne 0x100463a6
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100463d9
mov edx, ebx
call fcn.1003b000
test eax, eax
jne 0x100463c1
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push ebx
jmp 0x1004639e
mov ecx, ebx
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
pop ecx
imul edi, dword [ebp - 4], 0x364
add edi, ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
pop ebx
test edi, edi
jne 0x100463ec
mov edi, 0x101049f4
jmp 0x100463ef
add edi, 0x10
mov dword [edi], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
xor eax, eax
jmp 0x10046463
mov edx, dword [ebp + 0x14]
call fcn.1004647b
mov esi, eax
test esi, esi
je 0x10046438
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push esi
push 0x100467e0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x10046467
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
xor edi, edi
test esi, esi
je 0x10046461
cmp dword [esi + 8], edi
je 0x1004644c
push dword [esi + 8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [esi + 0xc], edi
je 0x1004645a
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
push esi
call sym.ucrtbase.dll__free_base
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10046461
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10046461

Function at 0x10049828
Capabilities:
Set thread local storage value

Disassembly:
cmp byte [ecx], 0
jne fcn.10029570
ret
Function at 0x100519e0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
jne 0x10051a09
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10051d30
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
push edi
test ecx, ecx
jne 0x10051e0f
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [ebp - 4], eax
cmp ecx, 0xffffffff
je 0x10051d80
call fcn.100290c0
mov ebx, eax
test ebx, ebx
je 0x10051d7a
cmp ebx, 0xffffffff
je 0x10051de9
jmp 0x10051de0
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10051de9
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x101042e4]
test ebx, ebx
jne 0x10051db6
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10051de9
mov edx, ebx
call fcn.1003b000
test eax, eax
jne 0x10051dd1
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push ebx
jmp 0x10051dae
mov ecx, ebx
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
pop ecx
imul edi, dword [ebp - 4], 0x364
add edi, ebx
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
pop ebx
test edi, edi
jne 0x10051dfc
mov edi, 0x101049f4
jmp 0x10051dff
add edi, 0x10
mov dword [edi], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x10051e8b
mov edx, dword [ebp + 0x10]
call fcn.1004647b
mov esi, eax
test esi, esi
je 0x10051e5a
lea eax, [ebp - 8]
xor edi, edi
push eax
push 4
push esi
push 0x10051ea0
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x10051e4d
push edi
mov dword [esi + 8], edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10051e89
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
or edi, 0xffffffff
test esi, esi
je 0x10051e89
cmp dword [esi + 8], 0
je 0x10051e70
push dword [esi + 8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [esi + 0xc], 0
je 0x10051e7f
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
push esi
call sym.ucrtbase.dll__free_base
pop ecx
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1005eb10
Capabilities:
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, 0x811c9dc5
add ecx, 5
jmp 0x1005eb2e
movzx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1005eb22
mov eax, edx
pop ebp
ret
Function at 0x100682ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10009344
push 0x1000933c
push 0x1000a534
push 0
call fcn.1006829a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068321
push dword [ebp + 8]
mov ecx, esi
call dword [0x10106270]
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]

Function at 0x10068372
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10009354
push 0x1000934c
push 0x1000a548
push 2
call fcn.1006829a
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x100683a6
mov ecx, esi
call dword [0x10106270]
call esi
jmp 0x100683ac
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x100683b5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000935c
push 0x10009354
push 0x1000a554
push 3
call fcn.1006829a
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x100683ec
mov ecx, esi
call dword [0x10106270]
call esi
jmp 0x100683f2
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x10068d30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10068d6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10068d66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10068d70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10068d56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10068e50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10068e81
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10068e81
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10068e81
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1006a110
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100807a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101042d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp byte [ebx + 8], 0
mov esi, eax
jne 0x1006a15f
mov ecx, dword [0x101042e0]
call fcn.100290c0
mov dword [ebx + 4], eax
mov byte [ebx + 8], 1
mov edi, dword [0x101042e4]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
cmp edi, 0xffffffff
je 0x1006a193
mov ecx, edi
call fcn.100290c0
mov edi, eax
test edi, edi
je 0x1006a18d
cmp edi, 0xffffffff
je 0x1006a1f9
imul ebx, dword [ebp - 0x10], 0x364
add ebx, edi
jmp 0x1006a1fb
mov edi, dword [0x101042e4]
push 0x1000a590
push 0x1000a588
mov edx, 0x1000a554
mov ecx, 0x21
call fcn.100293a0
add esp, 8
mov ebx, eax
push 0xffffffffffffffff
push edi
test ebx, ebx
je 0x1006a1c4
mov ecx, ebx
call dword [0x10106270]
call ebx
jmp 0x1006a1ca
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
je 0x1006a1f9
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov ecx, dword [0x101042e4]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1006a21b
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x14]
push esi
mov dword [eax], ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
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
mov edx, edi
call fcn.1003b000
test eax, eax
jne 0x1006a236
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push edi
jmp 0x1006a1f1
mov ecx, edi
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
imul ebx, dword [ebp - 0x10], 0x364
add esp, 4
add ebx, edi
jmp 0x1006a1fb
Function at 0x1006dbf0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.10068e90
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x1014], ecx
call sym.ucrtbase.dll__fileno
mov edx, dword [ebp + 8]
mov edi, eax
pop ecx
mov dword [ebp - 0x1018], edi
cmp dword [edx + 8], 0
jne 0x1006dc37
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006dd8d
mov eax, dword [edx]
sub eax, dword [edx + 4]
push 0
cdq
push 2
push edx
push eax
call fcn.10075f50
push dword [ebp - 0x1014]
mov esi, edi
mov dword [ebp - 0x1010], eax
and edi, 0x3f
sar esi, 6
imul edi, edi, 0x38
mov ebx, edx
xor edx, edx
mov ecx, dword [esi*4 + 0x10105340]
push dword [ecx + edi + 0x24]
push dword [ecx + edi + 0x20]
mov ecx, dword [ebp - 0x1018]
call fcn.1007501a
mov ecx, dword [esi*4 + 0x10105340]
add esp, 0xc
mov dword [ebp - 0x101c], eax
mov eax, edx
mov edx, dword [ebp - 0x101c]
mov dword [ebp - 0x1024], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1006dd88
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006dd88
push 0
lea eax, [ebp - 0x1020]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1006dd88
push dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x1018]
xor edx, edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007501a
add esp, 0xc
test edx, edx
jl 0x1006dd88
jg 0x1006dd04
test eax, eax
jb 0x1006dd88
mov eax, dword [ebp - 0x1020]
test ebx, ebx
jg 0x1006dd88
jl 0x1006dd18
cmp dword [ebp - 0x1010], eax
ja 0x1006dd88
lea edi, [ebp - 0x100c]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x100c]
xor esi, esi
cmp dword [ebp - 0x1010], edx
jne 0x1006dd36
test ebx, ebx
je 0x1006dd6f
cmp ecx, edi
jae 0x1006dd6f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006dd50
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006dd5c
cmp byte [ecx + 1], 0xa
jne 0x1006dd5c
inc ecx
jmp 0x1006dd5c
movzx eax, al
movsx eax, byte [eax + 0x10011038]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1010]
jne 0x1006dd36
cmp edx, ebx
jne 0x1006dd36
lea eax, [ebp - 0x100c]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x101c]
adc edx, dword [ebp - 0x1024]
jmp 0x1006dd8d
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret
Function at 0x1007466d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov ebx, edx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
push esi
call fcn.100d00a1
mov eax, dword [ebp - 0x28]
and eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100747d0
mov eax, dword [ebp - 0x20]
and eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x100747d0
mov ecx, dword [ebp - 0x14]
xor edi, edi
cmp ecx, edi
jl 0x1007477d
jg 0x100746c6
mov eax, dword [ebp - 0x18]
cmp eax, edi
jbe 0x10074780
push 1
push 0x1000
call sym.ucrtbase.dll__calloc_base
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1007476a
mov ecx, dword [ebp - 4]
mov edx, 0x8000
call fcn.100d2a56
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jl 0x10074707
jg 0x10074702
cmp ecx, 0x1000
jb 0x10074707
mov ecx, 0x1000
push ebx
push ecx
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.100332c4
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x10074742
mov ecx, dword [ebp - 0x18]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
sbb eax, edx
mov dword [ebp - 0x14], eax
cmp eax, edi
jg 0x10074702
jl 0x10074735
cmp ecx, edi
ja 0x100746f4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.100d2a56
jmp 0x10074774
cmp byte [ebx + 0x24], 0
je 0x1007475d
cmp dword [ebx + 0x20], 5
jne 0x1007475d
lea ecx, [ebx + 0x18]
mov byte [ecx + 4], 1
mov dword [ecx], 0xd
jmp 0x10074760
lea ecx, [ebx + 0x18]
push edi
call fcn.1006bb2b
mov edi, eax
jmp 0x10074774
push 0xc
pop edi
mov byte [ebx + 0x1c], 1
mov dword [ebx + 0x18], edi
push esi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100747dc
mov eax, dword [ebp - 0x18]
cmp ecx, edi
jg 0x100747dc
jl 0x1007478a
cmp eax, edi
jae 0x100747dc
push dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
push dword [ebp + 8]
call fcn.10046235
and eax, edx
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100747a5
push edi
jmp 0x100747d2
push esi
call sym.ucrtbase.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x100747dc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push 0xd
mov byte [ebx + 0x24], 1
mov dword [ebx + 0x20], eax
pop edi
mov byte [ebx + 0x1c], 1
mov dword [ebx + 0x18], edi
jmp 0x100747dc
push 0x16
lea ecx, [ebx + 0x18]
call fcn.1006bb2b
mov edi, eax
lea ecx, [ebp - 0x28]
call fcn.100d0139
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100978d6
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
xor ebx, ebx
mov dword [ebp - 4], edx
push esi
push edi
mov edi, ebx
mov dword [ebp - 0x4c], ebx
mov esi, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
call fcn.10042c5e
push eax
push ecx
lea edx, [ebp - 0x4c]
mov ecx, esi
call fcn.1004f9e2
pop ecx
pop ecx
test eax, eax
jne 0x10097995
call fcn.10042c5e
push eax
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x34]
call fcn.1004f9e2
pop ecx
pop ecx
test eax, eax
jne 0x10097995
cmp dword [ebp + 0x1c], ebx
je 0x10097971
call fcn.10042c5e
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 0x1c]
call fcn.1004f9e2
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
jne 0x10097995
mov ebx, edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x44]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov ebx, eax
cmp byte [ebp - 8], 0
je 0x100979a2
push edi
call sym.ucrtbase.dll__free_base
pop ecx
cmp byte [ebp - 0x20], 0
je 0x100979b1
push dword [ebp - 0x2c]
call sym.ucrtbase.dll__free_base
pop ecx
cmp byte [ebp - 0x38], 0
je 0x100979c0
push dword [ebp - 0x44]
call sym.ucrtbase.dll__free_base
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10097ca7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x10097d01
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10097cc7
sub esi, ecx
lea ebx, [esi + 1]
test ebx, ebx
je 0x10097d01
lea eax, [ebx + ebx]
call fcn.10068b00
mov eax, esp
push esi
push edi
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call sym.ucrtbase.dll_mbstowcs_s
add esp, 0x14
test eax, eax
jne 0x10097d01
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068820
leave
ret