joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10ad6aa
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 0x10ad815
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10ad815
dec eax
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
push 0x1011e48
push 0x80000002
mov word [ebx], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad810
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 0x10ad7fb
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 0x10ad7fb
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push 0x1011e30
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 0x10ad7fb
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 0x10ad7fe
inc dword [ebp - 0x214]
jmp 0x10ad740
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.01075bbb
leave
ret 8
Function at 0x10ad833
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 0x10ad8fc
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 0x10ad88b
inc ebx
inc ebx
jmp 0x10ad88d
mov ebx, esi
mov eax, dword [0x10ed18c]
cmp eax, 0xffff
jb 0x10ad89b
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1011eb8
push ebx
mov dword [0x10ed18c], 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 0x10ad8e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10ad8fa
cmp eax, 0x20
jne 0x10ad8fa
jmp 0x10ad8ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, 0xffff
jb 0x10ad88d
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10adbf6
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.01099bfb
test ax, ax
jne 0x10adc6e
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10add0a
and word [eax], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099bfb
test ax, ax
je 0x10adc5e
mov word [edi], 1
mov eax, dword [ebp - 0x210]
mov word [eax], 0x2e
jmp 0x10add0a
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 0x10add0a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01099008
test eax, eax
je 0x10add0f
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x101155c
push ebx
call fcn.010ad833
mov edi, eax
test edi, edi
je 0x10add0a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01099008
test eax, eax
je 0x10add0f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10add4e
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 0x10add46
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x24c], edi
mov word [eax + 0x24a], 1
jmp 0x10add4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret
Function at 0x10aebf1
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 0x10aec79
mov edi, dword [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.010ae3a8
cmp byte [edi], 9
mov dword [ebp - 8], eax
jne 0x10aec50
mov eax, dword [ebp + 8]
push 0x1011c9c
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10aec50
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aec50
mov ax, word [ebp - 8]
jmp 0x10aedae
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 0x10aec95
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aec95
xor ax, ax
jmp 0x10aedae
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jne 0x10aeca1
xor ebx, ebx
jmp 0x10aeca7
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
push 0x1011c9c
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10aecf4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1011db0
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.010a65a0
test eax, eax
je 0x10aecf4
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.010b5387
test ax, ax
je 0x10aed14
or ax, 0xffff
jmp 0x10aedae
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 0x10aed73
cmp word [ebp + 0x14], 1
jne 0x10aed41
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 0x10aed76
mov eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x270]
cmp edi, ebx
je 0x10aedb5
cmp eax, ebx
je 0x10aeda3
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010ad907
mov ebx, eax
test edi, edi
je 0x10aed9c
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
and dword [esi + 0x270], 0
push dword [ebp + 8]
call fcn.010b4ca9
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jne 0x10aed84
or ebx, 0xffffffff
jmp 0x10aed8f
Function at 0x10af814
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 0x10af862
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 0x10af86b
mov edi, eax
and dword [esi + 0x50], 0
push edi
push ebx
push dword [ebp - 0x30]
call fcn.01097324
test ax, ax
je 0x10af895
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075bbb
leave
ret 4
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.010977fd
cmp ax, 1
je 0x10af890
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10af8ba
cmp dx, 5
jne 0x10af9c7
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10af8c9
mov dword [esi + 0x48], eax
jmp 0x10af8cc
mov dword [esi + 0x48], ecx
push 0xa
push ebx
mov word [esi + 0x58], dx
call fcn.0109dd22
cmp ax, word [ebx + 0x14]
je 0x10af8e4
mov ax, 0xfdf6
jmp 0x10af882
mov ebx, dword [ebx + 8]
push 0x16
push esi
call fcn.010ac48d
jmp 0x10af97a
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 0x10af9ad
cmp word [esi + 0x58], 5
je 0x10af9b6
and dword [esi + 0x50], 0
push edi
push dword [esi + 0x38]
push dword [ebp - 0x30]
call fcn.01097324
test ax, ax
jne 0x10af87e
jmp 0x10af943
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.010977fd
cmp ax, 1
je 0x10af93e
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10af964
cmp dx, 5
jne 0x10af9c7
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10af973
mov dword [esi + 0x48], eax
jmp 0x10af976
mov dword [esi + 0x48], ecx
mov word [esi + 0x58], dx
cmp ebx, dword [esi + 0x48]
ja 0x10af8f4
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 0x10af9ad
push dword [ebp - 0x34]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10af9d0
mov ax, 0xfde7
jmp 0x10af882
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
or word [eax + 0x528], 0x204
jmp 0x10afa23
mov ax, 0xfdf8
jmp 0x10af882
cmp word [esi + 0x58], 5
je 0x10afa0a
push 0
push edi
push dword [ebp - 0x30]
call fcn.0109772a
test ax, ax
jne 0x10af87e
jmp 0x10af9f2
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.010977fd
cmp ax, di
je 0x10af9ed
cmp word [ebp - 0x20], 0
jne 0x10af9c7
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 0x10af882
Function at 0x10afd53
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 0x10afdf3
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.01097324
test ax, ax
je 0x10afdd6
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.010977fd
cmp ax, 1
je 0x10afdd1
cmp word [ebp - 0x20], 0
je 0x10afe2a
mov ax, 0xfdf8
jmp 0x10afdc2
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.01097b96
test ax, ax
jne 0x10afdbe
jmp 0x10afe18
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.010977fd
cmp ax, 1
je 0x10afe13
jmp 0x10afde6
mov ecx, dword [ebp - 0x54]
mov esi, dword [edi + 8]
push edi
call fcn.010af814
xor esi, esi
cmp ax, si
jne 0x10afdc2
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10afed3
cmp byte [ebx + 0x3b4], 1
jne 0x10afebf
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 0x10afeb4
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 0x10afeca
mov eax, dword [ebp - 0x58]
sub eax, esi
cmp eax, 0x24
jb 0x10afeb4
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 0x10afeca
movzx eax, word [ebp - 0x50]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x10afe71
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
mov word [ebx + 0xda], 1
jmp 0x10afee1
mov ax, 0xfde7
jmp 0x10afdc2
push esi
push esi
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
xor ax, ax
jmp 0x10afdc2
Function at 0x10b0d18
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.010b0a1a
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 0x10b0dfb
test byte [ebp - 0x34], bl
jne 0x10b0dca
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 0x10b0dfb
cmp word [ebp - 0xf], 0
je 0x10b0e0e
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 0x10b0e0e
mov esi, dword [ebp - 0x40]
push ebx
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x10b0e25
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.010b0a1a
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 0x10b0f2f
test byte [ebp - 0x40], al
jne 0x10b0efb
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 0x10b0f2f
cmp word [ebp - 0xc], 0
je 0x10b0f42
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 0x10b0f42
push 1
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x10b11bd
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 0x10b133d
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 0x10b1326
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 0x10b1326
xor eax, eax
cmp word [esi + 0xd2], 2
jne 0x10b1270
cmp word [esi + 0xd4], ax
jne 0x10b1270
mov ecx, dword [esi + 0xe0]
mov dword [ebp - 0x4c], ecx
mov cx, word [esi + 0xe4]
mov word [ebp - 0x44], cx
jmp 0x10b1277
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 0x10b1326
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 0x10b1326
add dword [ebp - 0x90], 0xffff
cmp word [ebp - 0x90], 0
je 0x10b133d
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 0x10b1326
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 0x10b1326
movzx eax, word [ebp - 0x84]
add dword [ebp - 0x88], eax
jmp 0x10b120c
push edi
push 2
push esi
call fcn.010af70e
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.01075bbb
leave
ret 4
Function at 0x10b1354
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x154]
mov ebx, dword [esi + 0xf0]
dec eax
dec eax
mov dword [ebp - 0x2c], ebx
je 0x10b13a5
dec eax
je 0x10b13a5
dec eax
dec eax
je 0x10b139c
xor ebx, ebx
inc ebx
push ebx
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], bx
jmp 0x10b144e
mov dword [ebp - 0x28], 0x11
jmp 0x10b13ac
mov dword [ebp - 0x28], 0x20
push edi
mov edi, dword [sym.imp.msvcrt.dll_fseek]
push 0
push dword [esi + 0x150]
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x10b13ca
xor ebx, ebx
inc ebx
jmp 0x10b143d
push ebx
push dword [ebp - 0x28]
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x28]
jne 0x10b143d
movzx eax, word [esi + 0x154]
dec eax
dec eax
je 0x10b13fc
dec eax
je 0x10b13fc
dec eax
dec eax
jne 0x10b1400
or byte [ebp - 0x1d], 4
jmp 0x10b1400
or byte [ebp - 0xe], 4
push 0
push dword [esi + 0x150]
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
jne 0x10b143d
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x28]
jne 0x10b143d
push 2
push 0
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
je 0x10b144d
push ebx
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], bx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x10b1464
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10de03c]
push esi
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
call esi
add esp, 0xc
test eax, eax
je 0x10b1491
mov eax, 0xfffffde7
jmp 0x10b14de
push edi
push 1
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10b148a
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], eax
call esi
add esp, 0xc
test eax, eax
jne 0x10b148a
push edi
push 1
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffde7
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075bbb
leave
ret 8