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

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx + 0x4e58]
push edi
test eax, eax
jne 0x10005dff
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x2a]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005df8
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x10005e6f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jne 0x10005df8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x2a]
lea ecx, [esp + 0x14]
shr eax, 1
push 0
push ecx
lea edi, [esi + eax]
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005df8
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x10005df8
mov al, byte [edi]
cmp al, 0xa
jne 0x10005e42
mov byte [esi], 0xd
inc esi
mov byte [esi], al
jmp 0x10005e57
mov byte [esi], al
mov al, byte [edi]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10005e59
mov cl, byte [edi + 1]
mov byte [esi], cl
inc esi
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x10005e34
sub esi, ebp
push ebx
push ebp
push esi
call fcn.10006480
mov esi, dword [ebx + 0x32]
mov ecx, dword [ebx + 0xb76e]
mov dword [ebx + 0xb772], eax
add esp, 0xc
xor eax, eax
add esi, ebp
mov dword [ebx + 0x32], esi
mov edx, dword [ebx + 0x36]
adc edx, eax
test ecx, ecx
mov dword [ebx + 0x36], edx
jne 0x10005eab
mov eax, dword [ebx + 0x32]
mov ecx, dword [ebx + 0x3e]
push edx
mov edx, dword [ebx + 0x3a]
push eax
push ecx
push edx
jmp 0x10005ec3
mov ecx, dword [ebx + 0x36]
cmp ecx, eax
jg 0x10005ed2
jl 0x10005ebb
mov edx, dword [ebx + 0x32]
cmp edx, ebp
ja 0x10005ed2
push 0
push 0
push 0
push 0x64
add ebx, 0xaf6e
push ebx
call fcn.10002d50
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x10006490
or eax, 0xffffffff
pop esi
not eax
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, edx
dec edx
mov eax, dword [eax + 0xb772]
test esi, esi
not eax
je 0x100064ca
push edi
lea esi, [edx + 1]
xor edx, edx
mov edi, eax
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x100424b4]
xor eax, edx
inc ecx
dec esi
jne 0x100064ab
pop edi
not eax
pop esi
ret
Function at 0x1000aa40
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x800
mov ecx, dword [eax + 0x906]
test ecx, ecx
jne 0x1000aabd
test byte [eax + 0x4ee1], 0x40
jne 0x1000aabd
mov eax, dword [esp + 0x804]
test eax, eax
jl 0x1000aab4
cmp eax, 0x1a
jg 0x1000aab4
test eax, eax
jne 0x1000aa76
call fcn.1000bb50
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.1000bc30
add esp, 8
test eax, eax
je 0x1000aaaa
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1000aaa5
mov eax, esi
pop esi
add esp, 0x800
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x800
ret
xor eax, eax
add esp, 0x800
ret
mov eax, 1
add esp, 0x800
ret

Function at 0x1000aad0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x828
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x28]
cmp al, 0x5c
mov al, byte [esp + 0x29]
jne 0x1000ab19
cmp al, 0x5c
jne 0x1000ab19
lea edx, [esp + 0x2a]
push 0x5c
push edx
call fcn.1000b3d0
test eax, eax
je 0x1000ab27
inc eax
push 0x5c
push eax
call fcn.1000b3d0
test eax, eax
je 0x1000ab27
mov byte [eax + 1], 0
jmp 0x1000ab27
cmp al, 0x3a
jne 0x1000ab27
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ab72
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
call eax
test eax, eax
je 0x1000ab72
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 0xffffffff
mov edx, ecx
jg 0x1000abc5
jl 0x1000ab72
cmp eax, 0xffffffff
ja 0x1000abc5
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1000aba4
or eax, 0xffffffff
mov edx, closesocket
add esp, 0x828
ret
mov edx, dword [esp + 8]
mov eax, dword [esp]
push 0
push edx
push 0
push eax
call fcn.10035e40
mov ecx, dword [esp + 4]
push 0
push ecx
push edx
push eax
call fcn.10035e40
add esp, 0x828
ret
Function at 0x1000abd0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x800
push ebx
push ebp
push esi
mov esi, dword [esp + 0x81c]
push edi
mov edi, dword [esp + 0x81c]
mov dword [edi], 0xffffffff
mov al, byte [esi]
test al, al
jne 0x1000ac05
mov eax, dword [esp + 0x814]
push esi
push eax
call fcn.1000bc30
add esp, 8
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
call fcn.1000b4c0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x1000ac34
lea eax, [esp + 0x10]
push 0x100420a8
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x10042a08
push ecx
call ebp
mov esi, dword [esp + 0x818]
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x1000acd4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x1000ac81
mov ecx, dword [esp + 0x824]
mov edx, dword [ecx + 0x4e60]
test edx, edx
jne 0x1000ac7b
test al, 6
jne 0x1000ac81
cmp byte [esi + 0x2c], 0x2e
jne 0x1000ac8d
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x1000acc0
jmp 0x1000ac60
mov edi, dword [esp + 0x820]
push edi
call fcn.1000b4c0
add esp, 4
test eax, eax
jne 0x1000aca9
push 0x100420a8
push edi
call ebp
add esi, 0x2c
push esi
push edi
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x1000acd4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret

Function at 0x1000ad80
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x1000adf2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x1000adc6
lea esi, [edi + 0x2c]
push 0x10042a10
push esi
call ebx
test eax, eax
je 0x1000adc6
push 0x10042a0c
push esi
call ebx
test eax, eax
jne 0x1000add7
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000ade1
jmp 0x1000ada6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1000ae90
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x948
lea eax, [esp + 0x148]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x954]
push esi
push edi
push ebp
push eax
xor esi, esi
call ebx
lea ecx, [esp + 0x158]
push ecx
call fcn.1000b4c0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x1000aedd
lea edx, [esp + 0x158]
push 0x100420a8
push edx
call edi
lea eax, [esp + 0x158]
push eax
call fcn.1000b950
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.1000cb20
add esp, 8
lea edx, [esp + 0x15c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x170]
push 0x64
push eax
call fcn.10002d50
add esp, 0x20
lea ecx, [esp + 0x158]
push ebp
push ecx
call ebx
lea edx, [esp + 0x158]
push edx
call fcn.1000b4c0
add esp, 4
test eax, eax
jne 0x1000af57
lea eax, [esp + 0x158]
push 0x100420a8
push eax
call edi
lea ecx, [esp + 0x158]
push 0x10042a08
push ecx
call edi
mov edx, dword [esp + 0x964]
lea eax, [esp + 0x158]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.1000ad80
add esp, 0x10
test eax, eax
je 0x1000b071
mov esi, dword [esp + 0x960]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test esi, esi
mov ebx, eax
je 0x1000afb5
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x1000b036
lea eax, [esp + 0x158]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
push ecx
call fcn.1000b4c0
add esp, 4
test eax, eax
jne 0x1000afec
lea edx, [esp + 0x158]
push 0x100420a8
push edx
call edi
lea eax, [esp + 0x44]
lea ecx, [esp + 0x158]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x18]
je 0x1000b010
lea edx, [esp + 0x158]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x15c]
push 0x64
push eax
call fcn.10002ed0
add esp, 0xc
test eax, eax
jne 0x1000b059
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x964]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.1000ae00
add esp, 0xc
test eax, eax
je 0x1000b05d
jmp 0x1000afa7
xor esi, esi
jmp 0x1000b061
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x1000b071
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret
Function at 0x1000bb80
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x804
mov ax, word [eax + 0x4ee0]
push esi
test al, 1
jne 0x1000bc15
test ah, 0x40
jne 0x1000bc15
mov eax, dword [esp + 0x80c]
xor esi, esi
test eax, eax
jne 0x1000bbad
call fcn.1000bb50
add al, 0x40
lea edx, [esp + 4]
movsx ecx, al
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push 0x10042a20
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1000bc22
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1000bc22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x804
ret
mov eax, esi
pop esi
add esp, 0x804
ret
Function at 0x1000cb20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10044ee0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test ebp, ebp
jne 0x1000cb59
mov ecx, edi
push 0x10044ccc
shl ecx, 0xb
lea esi, [ecx + edi + 0x8f4a]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
test edi, edi
jge 0x1000cb61
xor edi, edi
jmp 0x1000cb6b
cmp edi, 2
jle 0x1000cb6b
mov edi, 2
xor ebx, ebx
xor eax, eax
test ebx, ebx
jl 0x1000cc27
mov ecx, dword [ebx*8 + 0x10042aa0]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x1000cbc0
mov edx, edi
mov ecx, dword [ebx*8 + 0x10042aa4]
shl edx, 0xb
mov eax, ebp
push 0x7ff
add eax, edx
push ecx
lea esi, [edi + eax]
lea edx, [esi + 0x8f4a]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x9749], 0
mov eax, 1
test ecx, ecx
jne 0x1000cbc9
or ebx, 0xffffffff
jmp 0x1000cbca
inc ebx
test eax, eax
je 0x1000cb6f
mov eax, dword [ebp + 0x3dfc]
test eax, eax
je 0x1000cc14
lea esi, [ebp + 0xa74d]
push 0x10044ccc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x3e00]
mov edx, edi
shl edx, 0xb
mov eax, ebp
push ecx
add eax, edx
mov edx, dword [esp + 0x18]
push esi
lea ecx, [edi + eax + 0x8f4a]
push ecx
push 0
push edx
push 0
push 0xd
call dword [ebp + 0x3dfc]
mov eax, edi
shl eax, 0xb
add ebp, eax
lea eax, [edi + ebp + 0x8f4a]
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
jne 0x1000cbce
mov eax, edi
push 0x10044ccc
shl eax, 0xb
add ebp, eax
lea esi, [edi + ebp + 0x8f4a]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000cc50
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x810
test eax, eax
push esi
push edi
je 0x1000cce5
add al, 0x40
push 0x100442dc
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x828]
lea ecx, [esp + 0x18]
push 0x800
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea esi, [edi + 0xb77a]
push ecx
push 0x800
lea edx, [esp + 0x20]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1000cce5
push edi
push 0
push 0
push 0
call fcn.1000d610
mov ecx, dword [esp + 0x830]
mov edx, dword [esp + 0x834]
add esp, 0x10
mov dword [ecx], eax
mov eax, esi
pop edi
mov dword [edx], 8
pop esi
add esp, 0x810
ret
pop edi
xor eax, eax
pop esi
add esp, 0x810
ret
Function at 0x1000d8c0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
call fcn.10006db0
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x1000d901
cmp word [esp + 0x18], 1
jg 0x1000d911
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000d901
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000d9a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000d940
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x24
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000d970
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0
push 0xffffffffffffffff
push esi
push edi
call fcn.1000dac0
add esp, 0x14
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
test eax, eax
jne 0x1000d9aa
test ebx, ebx
jne 0x1000d9aa
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x1000d9c0
cmp ebx, 0xa
mov eax, ebx
jne 0x1000d9a2
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret
Function at 0x1000dac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x1000daeb
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
xor esi, esi
xor ebp, ebp
mov eax, edi
and eax, ebx
cmp eax, 0xffffffff
je 0x1000db2e
cmp ebp, ebx
jg 0x1000dbca
jl 0x1000db12
cmp esi, edi
jae 0x1000dbca
mov ecx, edi
mov eax, ebx
sub ecx, esi
sbb eax, ebp
test eax, eax
jg 0x1000db2e
jl 0x1000db28
cmp ecx, 0x2000
jae 0x1000db2e
mov eax, edi
sub eax, esi
jmp 0x1000db33
mov eax, 0x2000
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push edx
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000dbac
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000dbc6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000dbf7
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x1000dbf7
mov edx, dword [esp + 0x30]
push edx
call fcn.10003050
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [eax + 0x9a]
test ecx, ecx
jne 0x1000dbdd
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add esi, ecx
adc ebp, 0
jmp 0x1000daf7
mov ecx, dword [esp + 0x10]
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1000dc20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x2800
call fcn.10033810
mov eax, dword [esp + 0x2804]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1810]
push eax
push ecx
call edi
lea edx, [esp + 0x1810]
push edx
call fcn.10006500
push 0
lea eax, [esp + 0x1018]
push 0
lea ecx, [esp + 0x201c]
push eax
lea edx, [esp + 0x1820]
push ecx
push edx
call fcn.1000b540
push 0
lea eax, [esp + 0x102c]
push 0
lea ecx, [esp + 0x2030]
push eax
lea edx, [esp + 0x834]
push ecx
push edx
call fcn.1000b6f0
add esp, 0x2c
lea eax, [esp + 0x810]
lea ecx, [esp + 0x1010]
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x810]
push 0x5c
push edx
call fcn.1000b410
test eax, eax
je 0x1000dce4
mov byte [eax], 0
lea eax, [esp + 0x810]
push eax
call esi
cmp eax, 0xffffffff
je 0x1000dcb0
lea ecx, [esp + 0x810]
lea edx, [esp + 0x10]
push ecx
push edx
jmp 0x1000dcf1
lea eax, [esp + 0x810]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x100420a8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1010]
lea ecx, [esp + 0x810]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x810]
push eax
call ebx
cmp esi, eax
jge 0x1000ddc4
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
lea edi, [esp + eax + 0x10]
push edx
call ebx
lea esi, [esp + eax + 0x810]
mov al, byte [esp + eax + 0x810]
test al, al
je 0x1000dd85
cmp al, 0x5c
je 0x1000dd85
mov byte [edi], al
mov al, byte [esi]
push eax
inc edi
call ebp
test eax, eax
je 0x1000dd76
mov cl, byte [esi + 1]
mov byte [edi], cl
inc edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x1000dd60
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1000ddd1
lea eax, [esp + 0x10]
push 0x100420a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x810]
mov esi, eax
push edx
call ebx
cmp esi, eax
jl 0x1000dd3c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2800
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x2800
ret
Function at 0x1000e3b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test eax, eax
mov esi, 1
jl 0x1000e42a
jg 0x1000e3cd
cmp ebp, 0xffffffff
jbe 0x1000e42a
xor edi, edi
xor ebx, ebx
cmp ebx, eax
jg 0x1000e45c
jl 0x1000e3df
cmp edi, ebp
jae 0x1000e45c
mov ecx, ebp
mov esi, 0x8000
sub ecx, edi
sbb eax, ebx
test eax, eax
jg 0x1000e3f8
jl 0x1000e3f4
cmp ecx, esi
jae 0x1000e3f8
mov esi, ebp
sub esi, edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
lea edx, [edi + ecx]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e44c
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x1000e44c
add edi, eax
mov eax, dword [esp + 0x24]
adc ebx, 0
jmp 0x1000e3d1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e44c
cmp dword [esp + 0x10], ebp
je 0x1000e454
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x100101a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
cmp dword [esi + 0xa2], 0xffffffff
jne 0x1001022d
mov edi, dword [esp + 0x24]
push 0
push 0x10
push edi
push 0
call fcn.1000bdd0
add esp, 0x14
test eax, eax
je 0x100101df
mov eax, dword [esi + 0x9a]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010222
cmp dword [esp + 0x24], 0x10
je 0x10010299
mov eax, 0xa
pop edi
pop esi
add esp, 0x10
ret
call fcn.1000c660
add esp, 4
test edx, edx
jg 0x10010252
jl 0x10010240
cmp eax, 0x10
jae 0x10010252
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.1000c760
add esp, 8
test eax, eax
jne 0x10010227
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xa2]
push eax
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010222
cmp dword [esp + 0x24], 0x10
jne 0x10010222
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x100102b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], 0x8074b50
mov eax, dword [esi + 0xa2]
push esi
cmp eax, 0xffffffff
jne 0x10010320
mov edi, dword [esp + 0x14]
push 0
push 4
push edi
push 0
call fcn.1000bdd0
add esp, 0x14
test eax, eax
je 0x100102f5
mov eax, dword [esi + 0x9a]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
pop ecx
ret
mov edx, dword [edi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010317
cmp dword [esp + 0x14], 4
je 0x1001036b
mov eax, 0xa
pop edi
pop esi
pop ecx
ret
call fcn.1000c660
add esp, 4
test edx, edx
jg 0x10010345
jl 0x10010333
cmp eax, 4
jae 0x10010345
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.1000c760
add esp, 8
test eax, eax
jne 0x1001031c
mov eax, dword [esi + 0xa2]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010317
cmp dword [esp + 0x14], 4
jne 0x10010317
pop edi
xor eax, eax
pop esi
pop ecx
ret