joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10b4fc5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10e607c]
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 + 0x940]
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 0x10b5013
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 0x10b501c
mov edi, eax
and dword [esi + 0x50], 0
push edi
push ebx
push dword [ebp - 0x30]
call fcn.0109c546
test ax, ax
je 0x10b5046
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01078836
leave
ret 4
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109ca1f
cmp ax, 1
je 0x10b5041
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10b506b
cmp dx, 5
jne 0x10b5178
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10b507a
mov dword [esi + 0x48], eax
jmp 0x10b507d
mov dword [esi + 0x48], ecx
push 0xa
push ebx
mov word [esi + 0x58], dx
call fcn.010b4c14
cmp ax, word [ebx + 0x14]
je 0x10b5095
mov ax, 0xfdf6
jmp 0x10b5033
mov ebx, dword [ebx + 8]
push 0x16
push esi
call fcn.010b1c0d
jmp 0x10b512b
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 0x10b515e
cmp word [esi + 0x58], 5
je 0x10b5167
and dword [esi + 0x50], 0
push edi
push dword [esi + 0x38]
push dword [ebp - 0x30]
call fcn.0109c546
test ax, ax
jne 0x10b502f
jmp 0x10b50f4
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109ca1f
cmp ax, 1
je 0x10b50ef
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10b5115
cmp dx, 5
jne 0x10b5178
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10b5124
mov dword [esi + 0x48], eax
jmp 0x10b5127
mov dword [esi + 0x48], ecx
mov word [esi + 0x58], dx
cmp ebx, dword [esi + 0x48]
ja 0x10b50a5
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 0x10b515e
push dword [ebp - 0x34]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10b5181
mov ax, 0xfde7
jmp 0x10b5033
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
or word [eax + 0x928], 0x204
jmp 0x10b51d4
mov ax, 0xfdf8
jmp 0x10b5033
cmp word [esi + 0x58], 5
je 0x10b51bb
push 0
push edi
push dword [ebp - 0x30]
call fcn.0109c94c
test ax, ax
jne 0x10b502f
jmp 0x10b51a3
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.0109ca1f
cmp ax, di
je 0x10b519e
cmp word [ebp - 0x20], 0
jne 0x10b5178
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
and word [eax + 0x928], 0xfefa
mov eax, dword [ecx + 4]
or dword [eax + 0x928], 2
xor ax, ax
jmp 0x10b5033
Function at 0x10b574e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10e607c]
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 + 0x940]
xor eax, eax
cmp word [ebx + 0xda], ax
je 0x10b57ee
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.0109c546
test ax, ax
je 0x10b57d1
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 4
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0109ca1f
cmp ax, 1
je 0x10b57cc
cmp word [ebp - 0x20], 0
je 0x10b5825
mov ax, 0xfdf8
jmp 0x10b57bd
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.0109cdb8
test ax, ax
jne 0x10b57b9
jmp 0x10b5813
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0109ca1f
cmp ax, 1
je 0x10b580e
jmp 0x10b57e1
mov ecx, dword [ebp - 0x54]
mov esi, dword [edi + 8]
push edi
call fcn.010b4fc5
xor esi, esi
cmp ax, si
jne 0x10b57bd
mov eax, dword [edi + 4]
test byte [eax + 0x928], 4
je 0x10b58ce
cmp byte [ebx + 0x3b4], 1
jne 0x10b58ba
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 0x10b58af
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 0x10b58c5
mov eax, dword [ebp - 0x58]
sub eax, esi
cmp eax, 0x24
jb 0x10b58af
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 0x10b58c5
movzx eax, word [ebp - 0x50]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x10b586c
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
mov word [ebx + 0xda], 1
jmp 0x10b58dc
mov ax, 0xfde7
jmp 0x10b57bd
push esi
push esi
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
xor ax, ax
jmp 0x10b57bd
Function at 0x10b5a38
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10e607c]
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 0x10b5abd
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 0x10b5acd
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 0x10b5ab4
push ecx
push ecx
jmp 0x10b5ad1
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 0x10b5ae8
push 1
push 1
push esi
call fcn.010b4ebf
mov word [esi + 0xd6], 1
xor ax, ax
jmp 0x10b5b83
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.010b51e1
mov ebx, eax
test bx, bx
je 0x10b5b4f
push 1
push 1
push esi
call fcn.010b4ebf
cmp bx, 0xfde7
mov word [esi + 0xd6], 1
jne 0x10b5b80
xor ebx, ebx
jmp 0x10b5b80
mov eax, dword [edi + 4]
test byte [eax + 0x928], 4
jne 0x10b5b77
mov ebx, dword [ebp - 0x14]
push edi
call fcn.010b542b
mov ebx, eax
test bx, bx
jne 0x10b5b31
mov eax, dword [edi + 4]
test byte [eax + 0x928], 4
je 0x10b5b80
mov word [esi + 0xdc], 1
mov ax, bx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01078836
leave
ret 8

Function at 0x10b613e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10e607c]
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.01078836
leave
ret 4
Function at 0x10b6498
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10e607c]
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.010b619a
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 0x10b657b
test byte [ebp - 0x34], bl
jne 0x10b654a
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 0x10b657b
cmp word [ebp - 0xf], 0
je 0x10b658e
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 0x10b658e
mov esi, dword [ebp - 0x40]
push ebx
push 0
push esi
call fcn.010b4ebf
mov word [esi + 0xd4], bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01078836
leave
ret 0xc
Function at 0x10b65a5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10e607c]
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.010b619a
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 0x10b66af
test byte [ebp - 0x40], al
jne 0x10b667b
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 0x10b66af
cmp word [ebp - 0xc], 0
je 0x10b66c2
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 0x10b66c2
push 1
push 0
push esi
call fcn.010b4ebf
mov word [esi + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01078836
leave
ret 0xc
Function at 0x10b693d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10e607c]
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 0x10b6abd
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 0x10b6aa6
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 0x10b6aa6
xor eax, eax
cmp word [esi + 0xd2], 2
jne 0x10b69f0
cmp word [esi + 0xd4], ax
jne 0x10b69f0
mov ecx, dword [esi + 0xe0]
mov dword [ebp - 0x4c], ecx
mov cx, word [esi + 0xe4]
mov word [ebp - 0x44], cx
jmp 0x10b69f7
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 0x10b6aa6
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 0x10b6aa6
add dword [ebp - 0x90], 0xffff
cmp word [ebp - 0x90], 0
je 0x10b6abd
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 0x10b6aa6
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 0x10b6aa6
movzx eax, word [ebp - 0x84]
add dword [ebp - 0x88], eax
jmp 0x10b698c
push edi
push 2
push esi
call fcn.010b4ebf
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.01078836
leave
ret 4
Function at 0x10b6ad4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10e607c]
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 0x10b6b25
dec eax
je 0x10b6b25
dec eax
dec eax
je 0x10b6b1c
xor ebx, ebx
inc ebx
push ebx
push 0
push esi
call fcn.010b4ebf
mov word [esi + 0xd4], bx
jmp 0x10b6bce
mov dword [ebp - 0x28], 0x11
jmp 0x10b6b2c
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 0x10b6b4a
xor ebx, ebx
inc ebx
jmp 0x10b6bbd
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 0x10b6bbd
movzx eax, word [esi + 0x154]
dec eax
dec eax
je 0x10b6b7c
dec eax
je 0x10b6b7c
dec eax
dec eax
jne 0x10b6b80
or byte [ebp - 0x1d], 4
jmp 0x10b6b80
or byte [ebp - 0xe], 4
push 0
push dword [esi + 0x150]
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
jne 0x10b6bbd
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 0x10b6bbd
push 2
push 0
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
je 0x10b6bcd
push ebx
push 0
push esi
call fcn.010b4ebf
mov word [esi + 0xd4], bx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ax, ax
pop ebx
call fcn.01078836
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10e607c]
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 0x10b6c11
mov eax, 0xfffffde7
jmp 0x10b6c5e
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 0x10b6c0a
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 0x10b6c0a
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.01078836
leave
ret 8
Function at 0x10b6dc9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10e607c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x54]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x4c], eax
push edi
mov ecx, esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x46], 0x42524944
call fcn.010b619a
mov eax, dword [ebp - 0x54]
add esi, 0x38
mov ecx, dword [eax + 0x34]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x3d]
lea edi, [ebp - 0x1f]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x42]
lea edi, [ebp - 0x1a]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x47]
lea edi, [ebp - 0x15]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
and word [ebp - 8], 0
and word [ebp - 6], 0
test ecx, 0x20000
mov dword [ebp - 0x10], ecx
je 0x10b6ec2
mov esi, dword [ebp - 0x50]
mov eax, dword [esi + 0x60]
push dword [esi + 0x74]
and byte [ebp - 0xe], 0xfd
mov ecx, dword [eax + 0x1c]
push eax
call dword [ecx + pe_nt_image_headers32]
mov word [ebp - 0xc], ax
xor eax, eax
mov ax, word [ebx + 0x38c]
cmp ax, word [ebp - 0xc]
jae 0x10b6ea9
mov ecx, dword [ebp - 0xc]
sub ecx, eax
dec cx
shr cx, 9
shl ecx, 9
lea edi, [eax + ecx + 0x200]
movzx eax, di
push eax
push dword [ebx + 0x388]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x10b6f5f
mov dword [ebx + 0x388], eax
mov word [ebx + 0x38c], di
mov edi, dword [ebx + 0x388]
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x1c]
push edi
push dword [esi + 0x74]
push eax
call dword [ecx + 0xb8]
jmp 0x10b6ed0
movzx edi, word [eax + 0x52]
add edi, eax
mov ax, word [eax + 0x50]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x44
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x44]
mov word [ebp - 0x48], cx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
mov esi, ebx
call fcn.010b6c70
test ax, ax
jne 0x10b6f5f
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x48]
push 0x24
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b6f5f
test byte [ebp - 0x40], al
jne 0x10b6f2b
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebx + 0x150], eax
mov word [ebx + 0x154], 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b6f5f
cmp word [ebp - 0xc], 0
je 0x10b6f72
push dword [ebp - 0x4c]
movzx eax, word [ebp - 0xc]
push eax
push 1
push edi
call esi
movzx ecx, word [ebp - 0xc]
add esp, 0x10
cmp eax, ecx
je 0x10b6f72
push 1
push 0
push ebx
call fcn.010b4ebf
mov word [ebx + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01078836
leave
ret 0xc
Function at 0x10b7851
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10e607c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0xf0]
mov dword [ebp - 0x2c], eax
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x26], 0x444e4546
mov esi, dword [eax + 0xa4]
push edx
mov dword [ebp - 0x30], edx
call dword [sym.imp.msvcrt.dll_ftell]
add eax, 0x16
xor edx, edx
div esi
pop ecx
sub esi, edx
cmp esi, 0x24
jae 0x10b78af
mov eax, dword [ebx + 4]
add esi, dword [eax + 0xa4]
cmp esi, 0x10000
mov word [ebp - 0x28], si
jb 0x10b78c1
mov word [ebp - 0x28], 0x24
push dword [ebp - 0x30]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x28]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x10b78e0
mov edi, dword [ebp - 0x2c]
jmp 0x10b78fb
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
mov edi, dword [ebp - 0x2c]
pop ecx
jne 0x10b78fb
push edi
call fcn.010b6f89
test eax, eax
je 0x10b790b
push esi
push 0
push edi
call fcn.010b4ebf
mov word [edi + 0xd4], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01078836
leave
ret 4
Function at 0x10bb055
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [eax + 0x10]
mov esi, dword [edi + 0x270]
cmp dword [esi], 0
mov word [esi + 0x14], 1
je 0x10bb0a0
push 0
push 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xea60
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10bb098
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push esi
call dword [sym.imp.msvcrt.dll_free]
and dword [edi + 0x270], 0
pop ecx
pop edi
pop esi
ret
Function at 0x10beaba
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
jmp 0x10beaf2
cmp dword [ebp + 0x10], esi
je 0x10beafb
mov ebx, dword [0x10f71d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10f71d8]
dec dword [ebp + 0x10]
inc edx
cmp word [0x10f71d8], si
jne 0x10beacd
mov esi, dword [ebp + 0x10]
mov ecx, esi
shr ecx, 2
je 0x10beb0d
xor eax, dword [edx]
add edx, 4
dec ecx
jne 0x10beb05
and esi, 3
je 0x10beb3b
mov word [0x10f71d8], 4
mov ebx, dword [0x10f71d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [0x10f71d8]
inc edx
dec esi
jne 0x10beb1b
mov ecx, dword [ebp + 8]
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret 0xc

Function at 0x10beefd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10e607c]
and dword [ebp - 0x420], 0
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
jne 0x10bef28
or ax, 0xffff
jmp 0x10bf043
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcsrchr]
push esi
push 0x5c
push edi
call ebx
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10bf03d
and word [esi], 0
lea eax, [ebp - 0x41c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x41c]
mov word [esi], 0x5c
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
call esi
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x41c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x10
lea eax, [ebp + eax*2 - 0x41c]
jmp 0x10befd1
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10befdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10befdb
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10befdb
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10befcd
lea eax, [ebp - 0x41c]
and word [eax], 0
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x10bef88
lea eax, [ebp - 0x41c]
push eax
call esi
cmp ax, word [ebp - 0x424]
pop ecx
jae 0x10bf034
lea eax, [ebp - 0x41c]
push eax
call esi
pop ecx
mov word [ebp + eax*2 - 0x41c], 0x5c
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10bf02a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10bf02a
push eax
call fcn.010ac058
mov dword [ebp - 0x420], eax
cmp word [ebp - 0x420], 0
je 0x10befdb
mov ax, word [ebp - 0x420]
jmp 0x10bf041
mov ax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01078836
leave
ret 8