joyce8/EMBER2024-capa huggingface dataset:
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], reloc.ADVAPI32.dll_RegDeleteValueW
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 reloc.ADVAPI32.dll_CloseServiceHandle
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 + reloc.ADVAPI32.dll_RegDeleteValueW]
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], 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 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 + reloc.ADVAPI32.dll_RegDeleteValueW]
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 reloc.ADVAPI32.dll_CloseServiceHandle
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 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.01075bbb
leave
ret 8
Function at 0x10b1649
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.010b0a1a
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 0x10b1742
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 0x10b1729
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 0x10b17df
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 0x10b1750
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.010b14f0
test ax, ax
jne 0x10b17df
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 0x10b17df
test byte [ebp - 0x40], al
jne 0x10b17ab
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 0x10b17df
cmp word [ebp - 0xc], 0
je 0x10b17f2
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 0x10b17f2
push 1
push 0
push ebx
call fcn.010af70e
mov word [ebx + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x10b20d1
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 0x10b212f
mov eax, dword [ebx + 4]
add esi, dword [eax + 0xa4]
cmp esi, 0x10000
mov word [ebp - 0x28], si
jb 0x10b2141
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 0x10b2160
mov edi, dword [ebp - 0x2c]
jmp 0x10b217b
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
mov edi, dword [ebp - 0x2c]
pop ecx
jne 0x10b217b
push edi
call fcn.010b1809
test eax, eax
je 0x10b218b
push esi
push 0
push edi
call fcn.010af70e
mov word [edi + 0xd4], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 4
Function at 0x10b57c9
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 0x10b5814
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 0x10b580c
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 0x10b9113
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 0x10b914b
cmp dword [ebp + 0x10], esi
je 0x10b9154
mov ebx, dword [0x10ed5e0]
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 0x10b9126
mov esi, dword [ebp + 0x10]
mov ecx, esi
shr ecx, 2
je 0x10b9166
xor eax, dword [edx]
add edx, 4
dec ecx
jne 0x10b915e
and esi, 3
je 0x10b9194
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 4
mov ebx, dword [0x10ed5e0]
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 0x10b9174
mov ecx, dword [ebp + 8]
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret 0xc

Function at 0x10b9556
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 0x10b9581
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10b969c
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 0x10b9696
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 0x10b962a
push 0
lea eax, [ebp - 0x41c]
push eax
call edi
test eax, eax
jne 0x10b9634
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b9634
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10b9634
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10b9626
lea eax, [ebp - 0x41c]
and word [eax], 0
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x10b95e1
lea eax, [ebp - 0x41c]
push eax
call esi
cmp ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop ecx
jae 0x10b968d
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 0x10b9683
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10b9683
push eax
call fcn.010a6bef
mov dword [ebp - 0x420], eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10b9634
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10b969a
mov ax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075bbb
leave
ret 8
Function at 0x10bb019
Capabilities:
Create directory

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.01075f2c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.01075f2c
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01075f20
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x10bb0b8
cmp word [esi + 4], 0x5c
jne 0x10bb0b8
push 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01075efc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075ef0
push 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076694
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01075efc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075ef0
jmp 0x10bb16d
push 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762ec
mov eax, dword [eax]
push 0x1004528
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp + 8]
inc bl
call fcn.01075ef0
test bl, bl
lea ecx, [ebp - 0x14]
je 0x10bb226
push 4
pop ebx
push 0x100205c
call fcn.01075f20
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076430
jmp 0x10bb168
test ebx, ebx
je 0x10bb16d
lea esi, [eax + 1]
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.010762a4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075ef0
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076694
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.01075efc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01075ef0
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076430
dec ebx
cmp eax, 0xffffffff
jne 0x10bb10a
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076430
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10bb1fb
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.010762a4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075ef0
inc esi
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076694
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.01075efc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01075ef0
push 0
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10bb1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10bb223
push 0x1004204
lea ecx, [ebp - 0x14]
call fcn.010762bc
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076430
mov esi, eax
cmp esi, 0xffffffff
jne 0x10bb17f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.010762a4
push 0
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10bb223
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10bc355
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x34]
add ebx, 0xb4
test eax, eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], eax
je 0x10bc48a
test ebx, ebx
je 0x10bc48a
cmp dword [eax + 0x34], 0
jne 0x10bc48a
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x418], eax
mov eax, dword [edi + 4]
push 0x5c
push dword [eax + 0x34]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10bc3ec
push edi
call esi
mov ecx, dword [ebp - 0x418]
lea eax, [ecx + eax*2 + 2]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
test eax, eax
mov dword [ebp - 0x418], eax
je 0x10bc49c
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push ebx
call esi
mov ecx, dword [ebp - 0x418]
add esp, 0xc
lea esi, [ecx + eax*2]
xor eax, eax
jmp 0x10bc441
push eax
push 0x100d9f8
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10bc437
mov word [esi], 0x5f
jmp 0x10bc43d
mov ax, word [edi]
mov word [esi], ax
inc edi
inc edi
inc esi
inc esi
mov ax, word [edi]
test ax, ax
jne 0x10bc41e
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
lea ecx, [eax + 4]
movzx eax, word [eax]
push ecx
push eax
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 4]
push dword [eax + 0x54]
lea eax, [ebp - 0x414]
push 0x10121bc
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10bc48d
Function at 0x10bdc27
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x230]
test edi, edi
je 0x10bdc93
and dword [ebp + 8], 0
push ebx
push 4
pop esi
sub esi, edi
cmp dword [ebp + 0x10], 0
jle 0x10bdc7d
mov ecx, edi
shl ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
jge 0x10bdc7d
movzx ebx, byte [edx]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
shl ebx, cl
xor dword [eax + 0x22c], ebx
inc edx
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x10bdc5a
cmp dword [ebp + 0x10], esi
pop ebx
jge 0x10bdc90
mov ecx, dword [ebp + 0x10]
add edi, ecx
mov dword [eax + 0x230], edi
jmp 0x10bdcd6
sub dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x10]
shr esi, 2
test esi, esi
mov ecx, edx
jle 0x10bdcb0
lea edx, [edx + esi*4]
mov edi, dword [ecx]
xor dword [eax + 0x22c], edi
add ecx, 4
dec esi
jne 0x10bdca2
mov esi, dword [ebp + 0x10]
and esi, 3
mov dword [eax + 0x230], esi
je 0x10bdcd6
test esi, esi
jle 0x10bdcd6
xor ecx, ecx
movzx edi, byte [edx]
shl edi, cl
add ecx, 8
xor dword [eax + 0x22c], edi
inc edx
dec esi
jne 0x10bdcc4
pop edi
pop esi
leave
ret 0xc

Function at 0x10be5d2
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10de03c]
and dword [ebp - 0x458], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x10be60a
xor ax, ax
jmp 0x10be6b3
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push 0x1004c50
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, eax
jmp 0x10be6a1
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010bd060
mov edi, eax
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10be680
push esi
call ebx
or esi, 0xffffffff
test edi, edi
je 0x10be6bf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10be699
mov dword [ebp - 0x458], 0xfffffe05
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10be64e
push esi
call ebx
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret 8
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10be6b0
Function at 0x10bf0fa
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov edx, dword [ebp + 0x18]
mov eax, dword [0x10de03c]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x660], edx
lea edx, [ebp - 0x664]
push edx
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x65c], ebx
mov dword [ebp - 0x658], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10bf153
cmp esi, ebx
jne 0x10bf15c
xor eax, eax
xor edx, edx
jmp 0x10bf279
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
push dword [ebp - 0x660]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov ebx, CompareStringW
sub ebx, eax
lea eax, [ebp - 0x404]
push eax
call esi
sub ebx, eax
add esp, 0x18
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x404]
shl ebx, 1
push eax
mov dword [ebp - 0x66c], ebx
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x404]
push eax
xor esi, esi
push esi
push esi
push edi
push dword [ebp - 0x664]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10bf1dc
xor edi, edi
jmp 0x10bf269
lea eax, [ebp - 0x404]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x10bf1f6
mov word [eax], reloc.ADVAPI32.dll_CloseServiceHandle
push dword [ebp - 0x660]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [ebp - 0x668]
pop ecx
pop ecx
cmp edi, esi
lea eax, [ebp - 0x654]
push eax
jne 0x10bf230
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x10bf239
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10bf25d
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
xor eax, eax
xor ebx, ebx
or eax, edx
or ecx, ebx
add dword [ebp - 0x65c], eax
adc dword [ebp - 0x658], ecx
jmp 0x10bf211
mov esi, dword [ebp - 0x65c]
mov edi, dword [ebp - 0x658]
push dword [ebp - 0x664]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14