joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10bae85
Capabilities:
Create directory

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.01075e60
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.01075e60
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01075e54
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x10baf24
cmp word [esi + 4], 0x5c
jne 0x10baf24
push 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076220
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01075e30
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075e24
push 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010765c8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01075e30
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075e24
jmp 0x10bafd9
push 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076220
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.01075e24
test bl, bl
lea ecx, [ebp - 0x14]
je 0x10bb092
push 4
pop ebx
push 0x100205c
call fcn.01075e54
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076364
jmp 0x10bafd4
test ebx, ebx
je 0x10bafd9
lea esi, [eax + 1]
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076220
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.010761d8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075e24
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.010765c8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.01075e30
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01075e24
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076364
dec ebx
cmp eax, 0xffffffff
jne 0x10baf76
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076364
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10bb067
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.01076220
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.010761d8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075e24
inc esi
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.010765c8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.01075e30
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01075e24
push 0
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10bb050
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10bb08f
push 0x1004204
lea ecx, [ebp - 0x14]
call fcn.010761f0
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.01076364
mov esi, eax
cmp esi, 0xffffffff
jne 0x10bafeb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.010761d8
push 0
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10bb08f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10bc1c1
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 0x10bc2f6
test ebx, ebx
je 0x10bc2f6
cmp dword [eax + 0x34], 0
jne 0x10bc2f6
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 0x10bc258
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 0x10bc308
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 0x10bc2ad
push eax
push 0x100d9e0
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10bc2a3
mov word [esi], 0x5f
jmp 0x10bc2a9
mov ax, word [edi]
mov word [esi], ax
inc edi
inc edi
inc esi
inc esi
mov ax, word [edi]
test ax, ax
jne 0x10bc28a
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 0x10121a4
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.01075aef
leave
ret 4
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10bc2f9
Function at 0x10bdac3
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 0x10bdb2f
and dword [ebp + 8], 0
push ebx
push 4
pop esi
sub esi, edi
cmp dword [ebp + 0x10], 0
jle 0x10bdb19
mov ecx, edi
shl ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
jge 0x10bdb19
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 0x10bdaf6
cmp dword [ebp + 0x10], esi
pop ebx
jge 0x10bdb2c
mov ecx, dword [ebp + 0x10]
add edi, ecx
mov dword [eax + 0x230], edi
jmp 0x10bdb72
sub dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x10]
shr esi, 2
test esi, esi
mov ecx, edx
jle 0x10bdb4c
lea edx, [edx + esi*4]
mov edi, dword [ecx]
xor dword [eax + 0x22c], edi
add ecx, 4
dec esi
jne 0x10bdb3e
mov esi, dword [ebp + 0x10]
and esi, 3
mov dword [eax + 0x230], esi
je 0x10bdb72
test esi, esi
jle 0x10bdb72
xor ecx, ecx
movzx edi, byte [edx]
shl edi, cl
add ecx, 8
xor dword [eax + 0x22c], edi
inc edx
dec esi
jne 0x10bdb60
pop edi
pop esi
leave
ret 0xc

Function at 0x10be46e
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 0x10be4a6
xor ax, ax
jmp 0x10be54f
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 0x10be53d
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010bcefc
mov edi, eax
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10be51c
push esi
call ebx
or esi, 0xffffffff
test edi, edi
je 0x10be55b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10be535
mov dword [ebp - 0x458], 0xfffffe05
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10be4ea
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.01075aef
leave
ret 8
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10be54c
Function at 0x10bef96
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 0x10befef
cmp esi, ebx
jne 0x10beff8
xor eax, eax
xor edx, edx
jmp 0x10bf115
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 0x10bf078
xor edi, edi
jmp 0x10bf105
lea eax, [ebp - 0x404]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x10bf092
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 0x10bf0cc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x10bf0d5
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10bf0f9
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 0x10bf0ad
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.01075aef
leave
ret 0x14
Function at 0x10bf129
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], reloc.KERNEL32.dll_LoadLibraryW
cmp dword [ebx + 0x18], 0
lea eax, [ebp - 0x30]
push 0x1004528
push eax
jne 0x10bf17f
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x10bf198
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebx + 0x18]
push dword [eax + 0x34]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
and dword [esi + 0x38], 0
and dword [esi + 0x3c], 0
lea eax, [ebp - 0x34]
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x10bf273
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
cmp eax, 5
jne 0x10bf21c
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
jne 0x10bf20b
mov ebx, 0x100205c
push ebx
mov edi, 0x10125b0
push edi
push 0x1012530
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
push ebx
push edi
adc dword [esi + 0x3c], edx
push 0x10124a8
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012488
push 0x1012470
push 0x10123f0
jmp 0x10bf258
cmp eax, 6
jne 0x10bf26a
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
mov edi, 0x1012378
jne 0x10bf24d
push 0x100205c
push 0x1012354
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012488
push 0x1012324
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010bef96
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8

Function at 0x10bf4a7
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10bf4c7
mov si, 0xfe05
jmp 0x10bf4fc
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bf4e0
cmp dword [ebp - 0x18], 2
jne 0x10bf4f9
call fcn.01075a13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xb4
jl 0x10bf4c9
xor si, si
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ax, si
pop esi
leave
ret 4
Function at 0x10c2650
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
je 0x10c2683
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c270c
push ebx
push 0x2000080
push 3
push ebx
push 1
push WaitForSingleObject
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
je 0x10c26fb
mov ecx, dword [edi + 0x14]
mov ebx, 0x4000000
test dword [ecx + 0x9c], ebx
jne 0x10c26ca
lea ecx, [esi + 0x70]
push ecx
lea ecx, [esi + 0x68]
push ecx
lea ecx, [esi + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x10c26e2
mov esi, 0x80
mov eax, dword [edi + 0x14]
test dword [eax + 0x9c], ebx
jne 0x10c2702
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c2702
mov dword [ebp - 4], 0xfffffe05
push edi
call fcn.010b4b1b
mov ax, word [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x10c2715
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, eax
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010b51f9
test ax, ax
je 0x10c2745
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c2776
mov eax, dword [ebp - 4]
cmp word [eax + 6], di
je 0x10c276b
mov esi, dword [esi + 0x40]
cmp esi, edi
jne 0x10c275a
mov esi, 0x80
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c276b
mov edi, 0xfffffe05
push dword [ebp + 8]
call fcn.010b4b1b
mov ax, di
pop edi
pop esi
leave
ret 4

Function at 0x10c2b94
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010b51f9
test ax, ax
je 0x10c2bc3
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c2bf8
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x10c2bed
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10c2bed
mov dword [ebp - 4], 0xfffffe05
push esi
call fcn.010b4b1b
mov ax, word [ebp - 4]
pop edi
leave
ret 4
Function at 0x10c2c01
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0x18]
push esi
xor esi, esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010b51f9
test ax, ax
je 0x10c2c2e
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10c2c62
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x10c2c56
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10c2c56
mov esi, 0xfffffe05
push dword [ebp + 8]
call fcn.010b4b1b
mov ax, si
pop edi
pop esi
leave
ret 4

Function at 0x10c2ec8
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
push esi
mov esi, dword [eax + 0x270]
xor ecx, ecx
push edi
push ecx
push 1
push dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov word [esi + 8], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10c2f18
push 0
push dword [esi]
call edi
test eax, eax
je 0x10c2f26
call fcn.01075a13
push 0x64
push dword [esi + 0x10]
call edi
cmp eax, reloc.KERNEL32.dll_CompareStringW
je 0x10c2f09
push 0x1388
push dword [esi]
call edi
cmp eax, reloc.KERNEL32.dll_CompareStringW
jne 0x10c2f42
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10c2f58
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0
je 0x10c2f5f
mov dword [ebp - 4], 0xfffffe36
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0xc]
call edi
push dword [esi + 0x10]
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0xc]
and dword [eax + 0x270], 0
cmp word [ebp - 4], 0
pop ecx
pop edi
pop esi
jne 0x10c2fb4
mov eax, dword [ebp - 0x10]
cmp byte [eax], 9
push 1
push eax
push ebx
push dword [ebx]
jne 0x10c2fac
call fcn.010ae1ed
jmp 0x10c2fb1
call fcn.010adba4
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
leave
ret
Function at 0x10c30fc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push edi
xor edi, edi
mov dword [ebx], edi
inc ecx
mov dword [eax], ecx
cmp dword [edx], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], edi
mov esi, dword [eax + 0x270]
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], eax
je 0x10c3189
cmp dword [esi], edi
jne 0x10c3175
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push edi
push ecx
push edi
push edi
call ebx
push edi
push 1
push edi
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x10c2ea8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi], eax
jne 0x10c3175
mov ax, 0xfe30
jmp 0x10c3220
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x4445544e
je 0x10c321c
jmp 0x10c3211
xor ecx, ecx
mov dword [ebp + 0x14], ecx
cmp ecx, dword [ebp - 8]
je 0x10c31f0
mov eax, dword [ebp + 0xc]
add eax, ecx
push edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
push 1
push dword [esi + 0xc]
sub eax, ecx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x64
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, reloc.KERNEL32.dll_CompareStringW
jne 0x10c31d5
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c31e3
call fcn.01075a13
jmp 0x10c31af
mov eax, dword [esi + 0x18]
add dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
jmp 0x10c318e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], 0xfffffe30
cmp word [ebp - 4], di
mov dword [ebx], ecx
jne 0x10c321c
test byte [eax + 0x228], 4
je 0x10c321c
mov edx, dword [eax + 0x238]
sub edx, dword [eax + 0x230]
cmp ecx, edx
jne 0x10c321c
mov ebx, dword [ebp + 8]
call fcn.010c2ec8
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10ca9c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov ebx, dword [esi + 0xf0]
push edi
mov dword [ebp + 8], ebx
jae 0x10caa4f
mov dx, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
add dx, 0x200
cmp dx, ax
mov cx, dx
jb 0x10ca9e8
movzx eax, cx
push 1
push eax
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], dx
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10caa19
mov ax, 0xfdfc
jmp 0x10caacd
mov ax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
test ax, ax
je 0x10caa39
movzx eax, ax
push eax
push dword [esi + 0x398]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
lea edi, [esi + 0x390]
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
mov dword [edi], ebx
mov ebx, dword [ebp + 8]
pop ecx
jmp 0x10caa74
mov ax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
test ax, ax
je 0x10caa74
movzx eax, ax
push eax
push dword [esi + 0x398]
push dword [esi + 0x390]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
movzx eax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
movzx edi, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esi + 0x390]
push ebx
sub edi, eax
push edi
add ecx, eax
push 1
push ecx
mov dword [esi + 0x398], ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10caab7
mov ebx, dword [ebx + 0xc]
test bl, 0x20
jne 0x10caab1
test bl, 0x10
jne 0x10caab7
mov ax, 0xfde7
jmp 0x10caacd
mov ecx, dword [esi + 0x390]
add word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov dword [esi + 0x398], ecx
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10cb17d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1012fa4
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10cb1d5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1009ac2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10cb1c8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10cb1d7
xor eax, eax
pop esi
leave
ret 4