joyce8/EMBER2024-capa huggingface dataset:
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 + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [esi + reloc.KERNEL32.dll_GetTapeParameters], 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, reloc.ADVAPI32.dll_RegDeleteValueW
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 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 + reloc.ADVAPI32.dll_RegDeleteValueW]
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 reloc.ADVAPI32.dll_CloseServiceHandle
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 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 reloc.ADVAPI32.dll_CloseServiceHandle
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 + reloc.ADVAPI32.dll_RegDeleteValueW], 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 + reloc.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ecx + eax*4]
push 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push reloc.ADVAPI32.dll_CloseServiceHandle
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 + reloc.ADVAPI32.dll_RegDeleteValueW], 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], reloc.ADVAPI32.dll_RegDeleteValueW
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 reloc.ADVAPI32.dll_CloseServiceHandle
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
Function at 0x10b11c6
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 + reloc.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [esi + 0xf0]
dec eax
dec eax
mov dword [ebp - 0x2c], ebx
je 0x10b1217
dec eax
je 0x10b1217
dec eax
dec eax
je 0x10b120e
xor ebx, ebx
inc ebx
push ebx
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], bx
jmp 0x10b12c0
mov dword [ebp - 0x28], 0x11
jmp 0x10b121e
mov dword [ebp - 0x28], CloseServiceHandle
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 0x10b123c
xor ebx, ebx
inc ebx
jmp 0x10b12af
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 0x10b12af
movzx eax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
dec eax
dec eax
je 0x10b126e
dec eax
je 0x10b126e
dec eax
dec eax
jne 0x10b1272
or byte [ebp - 0x1d], 4
jmp 0x10b1272
or byte [ebp - 0xe], 4
push 0
push dword [esi + 0x150]
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
jne 0x10b12af
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 0x10b12af
push 2
push 0
push dword [ebp - 0x2c]
call edi
add esp, 0xc
test eax, eax
je 0x10b12bf
push ebx
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], bx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x10b12d6
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 0x10b1303
mov eax, 0xfffffde7
jmp 0x10b1350
push edi
push 1
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10b12fc
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 0x10b12fc
push edi
push 1
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
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.01075aef
leave
ret 8
Function at 0x10b14bb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10de03c]
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.010b088c
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 0x10b15b4
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 + 0xf0]
mov word [ebp - 0xc], ax
xor eax, eax
mov ax, word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW]
cmp ax, word [ebp - 0xc]
jae 0x10b159b
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 0x10b1651
mov dword [ebx + 0x388], eax
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 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 + reloc.ADVAPI32.dll_AddAccessAllowedAce]
jmp 0x10b15c2
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.010b1362
test ax, ax
jne 0x10b1651
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x48]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b1651
test byte [ebp - 0x40], al
jne 0x10b161d
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebx + 0x150], eax
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10b1651
cmp word [ebp - 0xc], 0
je 0x10b1664
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 0x10b1664
push 1
push 0
push ebx
call fcn.010af580
mov word [ebx + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 0xc
Function at 0x10b1f43
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10de03c]
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 0x10b1fa1
mov eax, dword [ebx + 4]
add esi, dword [eax + 0xa4]
cmp esi, 0x10000
mov word [ebp - 0x28], si
jb 0x10b1fb3
mov word [ebp - 0x28], reloc.ADVAPI32.dll_CloseServiceHandle
push dword [ebp - 0x30]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x10b1fd2
mov edi, dword [ebp - 0x2c]
jmp 0x10b1fed
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
mov edi, dword [ebp - 0x2c]
pop ecx
jne 0x10b1fed
push edi
call fcn.010b167b
test eax, eax
je 0x10b1ffd
push esi
push 0
push edi
call fcn.010af580
mov word [edi + 0xd4], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x10b563b
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 0x10b5686
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, reloc.KERNEL32.dll_CompareStringW
jne 0x10b567e
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 0x10b8f85
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 0x10b8fbd
cmp dword [ebp + 0x10], esi
je 0x10b8fc6
mov ebx, dword [0x10ed5d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [reloc.ADVAPI32.dll_RegDeleteValueW]
dec dword [ebp + 0x10]
inc edx
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], si
jne 0x10b8f98
mov esi, dword [ebp + 0x10]
mov ecx, esi
shr ecx, 2
je 0x10b8fd8
xor eax, dword [edx]
add edx, 4
dec ecx
jne 0x10b8fd0
and esi, 3
je 0x10b9006
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 4
mov ebx, dword [0x10ed5d8]
push 4
pop ecx
sub ecx, ebx
movzx ebx, byte [edx]
shl ecx, 3
shl ebx, cl
xor eax, ebx
dec word [reloc.ADVAPI32.dll_RegDeleteValueW]
inc edx
dec esi
jne 0x10b8fe6
mov ecx, dword [ebp + 8]
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret 0xc

Function at 0x10b93c8
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 [0x10de03c]
and dword [ebp - 0x420], 0
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
jne 0x10b93f3
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10b950e
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 0x10b9508
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 0x10b949c
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b94a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b94a6
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b94a6
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10b9498
lea eax, [ebp - 0x41c]
and word [eax], 0
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x10b9453
lea eax, [ebp - 0x41c]
push eax
call esi
cmp ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop ecx
jae 0x10b94ff
lea eax, [ebp - 0x41c]
push eax
call esi
pop ecx
mov word [ebp + eax*2 - reloc.ADVAPI32.dll_RegDeleteValueW], 0x5c
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b94f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b94f5
push eax
call fcn.010a6a34
mov dword [ebp - 0x420], eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10b94a6
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10b950c
mov ax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret 8