joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10ad4ef
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push edi
lea esi, [eax + 0x14fc]
push 0x5c
xor edi, edi
push ebx
mov word [esi], di
call dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x3a
push ebx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x10
cmp eax, edi
je 0x10ad65a
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10ad65a
dec eax
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
push 0x1011e30
push 0x80000002
mov word [ebx], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad655
mov dword [ebp - 0x214], edi
mov ebx, 0x208
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x228], ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x10ad640
lea eax, [ebp - 0x218]
push eax
push 0x2000000
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad640
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push 0x1011e18
push dword [ebp - 0x218]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], edi
jne 0x10ad640
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10ad643
inc dword [ebp - 0x214]
jmp 0x10ad585
mov word [esi], di
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x21c]
mov word [ebx], 0x5c
mov ax, word [esi]
mov ecx, dword [ebp - 4]
neg ax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x10ad678
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
push dword [ebp + 0xc]
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 0x22]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10ad741
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10ad6d0
inc ebx
inc ebx
jmp 0x10ad6d2
mov ebx, esi
mov eax, dword [0x10ed184]
cmp eax, 0xffff
jb 0x10ad6e0
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1011ea0
push ebx
mov dword [0x10ed184], eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push 0
push 0x2000000
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10ad72b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10ad73f
cmp eax, 0x20
jne 0x10ad73f
jmp 0x10ad732
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, 0xffff
jb 0x10ad6d2
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10ada3b
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push esi
push edi
mov esi, ecx
mov edi, edx
and word [edi], 0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x210], eax
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
jne 0x10adab3
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10adb4f
and word [eax], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099a6d
test ax, ax
je 0x10adaa3
mov word [edi], 1
mov eax, dword [ebp - 0x210]
mov word [eax], 0x2e
jmp 0x10adb4f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d44
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsdup]
add esp, 0x14
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x10adb4f
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01098e7a
test eax, eax
je 0x10adb54
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x1011544
push ebx
call fcn.010ad678
mov edi, eax
test edi, edi
je 0x10adb4f
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01098e7a
test eax, eax
je 0x10adb54
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10adb93
push 0
push 0xa000080
push 3
push 0
push 5
push 0x80000100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10adb8b
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x24c], edi
mov word [eax + 0x24a], 1
jmp 0x10adb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret
Function at 0x10aea36
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp word [ebp + 0x14], ax
push esi
mov esi, dword [ebx + 0x10]
push edi
mov dword [ebp - 0x14], eax
jne 0x10aeabe
mov edi, dword [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.010ae1ed
cmp byte [edi], 9
mov dword [ebp - 8], eax
jne 0x10aea95
mov eax, dword [ebp + 8]
push 0x1011c84
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10aea95
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aea95
mov ax, word [ebp - 8]
jmp 0x10aebf3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x254]
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
mov dword [edi], eax
mov word [esi + 0x250], ax
mov word [esi + 0x258], ax
cmp word [ebp + 0x14], 1
jne 0x10aeada
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aeada
xor ax, ax
jmp 0x10aebf3
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jne 0x10aeae6
xor ebx, ebx
jmp 0x10aeaec
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
push 0x1011c84
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10aeb39
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1011d98
push ebx
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.010a63e5
test eax, eax
je 0x10aeb39
mov edi, dword [eax + 0x10]
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.010b51f9
test ax, ax
je 0x10aeb59
or ax, 0xffff
jmp 0x10aebf3
push 1
push 0x20
call dword [sym.imp.msvcrt.dll_calloc]
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x270], eax
je 0x10aebb8
cmp word [ebp + 0x14], 1
jne 0x10aeb86
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x270]
add eax, 4
push eax
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
sub al, 8
neg al
sbb eax, eax
and eax, 0xfffffffe
inc eax
xor ecx, ecx
inc eax
cmp word [ebp + 0x14], 1
sete cl
or eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
jmp 0x10aebbb
mov eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x270]
cmp edi, ebx
je 0x10aebfa
cmp eax, ebx
je 0x10aebe8
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010ad74c
mov ebx, eax
test edi, edi
je 0x10aebe1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
and dword [esi + 0x270], 0
push dword [ebp + 8]
call fcn.010b4b1b
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jne 0x10aebc9
or ebx, 0xffffffff
jmp 0x10aebd4
Function at 0x10af2d5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp word [ebp + 0xc], 0
mov ax, word [ebp - 4]
je 0x10af2f9
movzx edx, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ax, word [ecx]
inc ecx
inc ecx
dec edx
jne 0x10af2f1
leave
ret 8
Function at 0x10af686
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 4]
mov ax, word [ecx + 0x540]
push edi
or edi, 0xffffffff
mov word [ebp - 0x30], ax
mov eax, edi
xor edx, edx
div dword [ecx + 0xa4]
mov ebx, dword [esi + 0x38]
sub edi, edx
cmp edi, 0xffffffff
jne 0x10af6d4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
or edi, edi
sub edi, dword [eax + 0xa4]
mov eax, dword [esi + 0x44]
cmp edi, eax
jb 0x10af6dd
mov edi, eax
and dword [esi + 0x50], 0
push edi
push ebx
push dword [ebp - 0x30]
call fcn.01097196
test ax, ax
je 0x10af707
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075aef
leave
ret 4
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109766f
cmp ax, 1
je 0x10af702
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10af72c
cmp dx, 5
jne 0x10af839
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10af73b
mov dword [esi + 0x48], eax
jmp 0x10af73e
mov dword [esi + 0x48], ecx
push 0xa
push ebx
mov word [esi + 0x58], dx
call fcn.010af2d5
cmp ax, word [ebx + 0x14]
je 0x10af756
mov ax, 0xfdf6
jmp 0x10af6f4
mov ebx, dword [ebx + 8]
push 0x16
push esi
call fcn.010ac2d2
jmp 0x10af7ec
mov eax, dword [esi + 0x48]
push dword [ebp - 0x34]
sub ebx, eax
push eax
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x50]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [esi + 0x48]
jne 0x10af81f
cmp word [esi + 0x58], 5
je 0x10af828
and dword [esi + 0x50], 0
push edi
push dword [esi + 0x38]
push dword [ebp - 0x30]
call fcn.01097196
test ax, ax
jne 0x10af6f0
jmp 0x10af7b5
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109766f
cmp ax, 1
je 0x10af7b0
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10af7d6
cmp dx, 5
jne 0x10af839
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10af7e5
mov dword [esi + 0x48], eax
jmp 0x10af7e8
mov dword [esi + 0x48], ecx
mov word [esi + 0x58], dx
cmp ebx, dword [esi + 0x48]
ja 0x10af766
push dword [ebp - 0x34]
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x50]
xor edi, edi
push ebx
inc edi
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x10af81f
push dword [ebp - 0x34]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10af842
mov ax, 0xfde7
jmp 0x10af6f4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
or word [eax + 0x528], 0x204
jmp 0x10af895
mov ax, 0xfdf8
jmp 0x10af6f4
cmp word [esi + 0x58], 5
je 0x10af87c
push 0
push edi
push dword [ebp - 0x30]
call fcn.0109759c
test ax, ax
jne 0x10af6f0
jmp 0x10af864
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109766f
cmp ax, di
je 0x10af85f
cmp word [ebp - 0x20], 0
jne 0x10af839
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
and word [eax + 0x528], 0xfefa
mov eax, dword [ecx + 4]
or dword [eax + 0x528], 2
xor ax, ax
jmp 0x10af6f4
Function at 0x10afbc5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 4]
mov si, word [eax + 0x540]
xor eax, eax
cmp word [ebx + 0xda], ax
je 0x10afc65
mov word [ebx + 0xda], ax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xa4]
push 0x55
pop eax
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
xor edx, edx
div ecx
mov eax, dword [edi + 8]
add edx, 0x55
push edx
push dword [eax + 0x38]
push esi
call fcn.01097196
test ax, ax
je 0x10afc48
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0109766f
cmp ax, 1
je 0x10afc43
cmp word [ebp - 0x20], 0
je 0x10afc9c
mov ax, 0xfdf8
jmp 0x10afc34
mov ecx, dword [edi + 0x7c]
mov cl, byte [ecx + 0x10]
push eax
mov byte [ebx + 0x3b4], cl
mov eax, dword [edi + 0x7c]
push dword [eax + 0xc]
push esi
call fcn.01097a08
test ax, ax
jne 0x10afc30
jmp 0x10afc8a
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0109766f
cmp ax, 1
je 0x10afc85
jmp 0x10afc58
mov ecx, dword [ebp - 0x54]
mov esi, dword [edi + 8]
push edi
call fcn.010af686
xor esi, esi
cmp ax, si
jne 0x10afc34
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10afd45
cmp byte [ebx + 0x3b4], 1
jne 0x10afd31
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_ftell]
and word [ebp - 0x50], si
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_fseek]
pop ecx
mov dword [ebp - 0x58], eax
jl 0x10afd26
movzx eax, word [ebp - 0x50]
add esi, eax
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
test eax, eax
jne 0x10afd3c
mov eax, dword [ebp - 0x58]
sub eax, esi
cmp eax, 0x24
jb 0x10afd26
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push 1
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10afd3c
movzx eax, word [ebp - 0x50]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x10afce3
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
mov word [ebx + 0xda], 1
jmp 0x10afd53
mov ax, 0xfde7
jmp 0x10afc34
push esi
push esi
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
xor ax, ax
jmp 0x10afc34
Function at 0x10b04cc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [edi + 0x54]
mov ebx, dword [esi + 0xf8]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp word [esi + 0xec], ax
jne 0x10b0551
push eax
push eax
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
push ebx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x1c
cmp eax, 1
jne 0x10b0561
mov ax, word [esi + 0x16]
add word [ebp - 8], ax
push 0
push 0
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
push ebx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
xor ecx, ecx
inc ecx
add esp, 0x1c
cmp eax, ecx
je 0x10b0548
push ecx
push ecx
jmp 0x10b0565
mov word [esi + 0xec], cx
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10b057c
push 1
push 1
push esi
call fcn.010af580
mov word [esi + 0xd6], 1
xor ax, ax
jmp 0x10b0617
push dword [ebx + 0x10]
call dword [sym.imp.msvcrt.dll__filelength]
pop ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], eax
add eax, 0x16
xor edx, edx
div dword [ecx + 0xa4]
push dword [ebp - 0x10]
mov ecx, ebx
mov ebx, dword [ebp - 0x14]
push 0
add dword [esi + 0x3c8], eax
lea eax, [ebp - 0xe]
push eax
push 0
push dword [ebp - 0x10]
push 0x504d5354
push dword [ebp + 0xc]
push edi
call fcn.010afd60
mov ebx, eax
test bx, bx
je 0x10b05e3
push 1
push 1
push esi
call fcn.010af580
cmp bx, 0xfde7
mov word [esi + 0xd6], 1
jne 0x10b0614
xor ebx, ebx
jmp 0x10b0614
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
jne 0x10b060b
mov ebx, dword [ebp - 0x14]
push edi
call fcn.010af8a2
mov ebx, eax
test bx, bx
jne 0x10b05c5
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10b0614
mov word [esi + 0xdc], 1
mov ax, bx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01075aef
leave
ret 8

Function at 0x10b0830
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x88]
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], dx
mov byte [ebp - 5], dl
mov byte [ebp - 6], dl
push dword [ecx + 0xf8]
lea eax, [ebp - 0xc]
push 1
push 8
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
mov ecx, dword [ebp - 4]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
and ax, 0xfde7
call fcn.01075aef
leave
ret 4
Function at 0x10b0b8a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 0xf0]
push esi
mov dword [ebp - 0x44], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3a], 0x42444244
call fcn.010b088c
mov eax, dword [ebx + 0x34]
mov cx, word [ebx + 0x3d]
push dword [ebp - 0x44]
lea esi, [ebx + 0x38]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx esi, word [ebx + 0x3f]
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
add esi, ebx
mov dword [ebp - 0x13], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0xf], cx
inc ebx
mov word [ebp - 0xd], 0x35
mov ecx, dword [ebp - 0xf]
push ebx
mov word [ebp - 0xb], ax
mov word [ebp - 9], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
add ecx, 0x35
push 0x24
push eax
mov word [ebp - 0x3c], cx
call edi
add esp, 0x10
cmp eax, ebx
jne 0x10b0c6d
test byte [ebp - 0x34], bl
jne 0x10b0c3c
push dword [ebp - 0x44]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x150], eax
mov word [ecx + 0x154], 5
push dword [ebp - 0x44]
lea eax, [ebp - 0x18]
push ebx
push 0x11
push eax
call edi
add esp, 0x10
cmp eax, ebx
jne 0x10b0c6d
cmp word [ebp - 0xf], 0
je 0x10b0c80
push dword [ebp - 0x44]
movzx eax, word [ebp - 0xf]
push eax
push ebx
push esi
call edi
movzx ecx, word [ebp - 0xf]
add esp, 0x10
cmp eax, ecx
je 0x10b0c80
mov esi, dword [ebp - 0x40]
push ebx
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x10b0c97
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 0xf0]
push esi
mov dword [ebp - 0x4c], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x46], 0x454c4946
call fcn.010b088c
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x38]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x47]
lea edi, [ebp - 0x15]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push dword [ebp - 0x4c]
lea esi, [ebx + 0x3d]
lea edi, [ebp - 0x1f]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x42]
lea edi, [ebp - 0x1a]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi + 0x3a0]
and word [ebp - 8], 0
and word [ebp - 6], 0
movzx edi, word [ebx + 0x56]
mov dword [ebp - 0x10], eax
mov ax, word [ebx + 0x54]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x44
mov eax, dword [ebp - 0xc]
add eax, 0x44
mov word [ebp - 0x48], ax
movzx eax, word [esi + 0x3a4]
mov eax, dword [ecx + eax*4]
push 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push 0x24
add edi, ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10b0da1
test byte [ebp - 0x40], al
jne 0x10b0d6d
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [esi + 0x150], eax
mov word [esi + 0x154], 3
push dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10b0da1
cmp word [ebp - 0xc], 0
je 0x10b0db4
push dword [ebp - 0x4c]
movzx eax, word [ebp - 0xc]
push eax
push 1
push edi
call ebx
movzx ecx, word [ebp - 0xc]
add esp, 0x10
cmp eax, ecx
je 0x10b0db4
push 1
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x10b102f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x88], eax
xor eax, eax
mov ax, word [esi + 0x16]
test ax, ax
push edi
mov dword [ebp - 0x90], eax
je 0x10b11af
mov ebx, dword [sym.imp.msvcrt.dll_fseek]
xor edi, edi
inc edi
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1198
push dword [ebp - 0x8c]
lea eax, [ebp - 0x60]
push edi
push 0x5b
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x10b1198
xor eax, eax
cmp word [esi + 0xd2], 2
jne 0x10b10e2
cmp word [esi + 0xd4], ax
jne 0x10b10e2
mov ecx, dword [esi + 0xe0]
mov dword [ebp - 0x4c], ecx
mov cx, word [esi + 0xe4]
mov word [ebp - 0x44], cx
jmp 0x10b10e9
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x44], ax
mov ecx, dword [esi + 0x160]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x164]
push dword [ebp - 0x8c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1198
push dword [ebp - 0x8c]
lea eax, [ebp - 0x60]
push edi
push 0x5b
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10b1198
add dword [ebp - 0x90], 0xffff
cmp word [ebp - 0x90], 0
je 0x10b11af
movzx eax, word [ebp - 0x60]
add dword [ebp - 0x88], eax
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1198
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push edi
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x10b1198
movzx eax, word [ebp - 0x84]
add dword [ebp - 0x88], eax
jmp 0x10b107e
push edi
push 2
push esi
call fcn.010af580
mov word [esi + 0xd6], di
mov word [esi + 0xd4], di
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 4