joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100134e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 8], 0xa
mov dword [ebp - 4], 3
xor esi, esi
push 0x1e
push 0x32
pop eax
mov ecx, 0x1002d95c
call fcn.100120a5
imul eax, dword [0x1002d74c]
add eax, dword [ebp + esi*4 - 8]
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10013535
inc esi
cmp esi, 2
jb 0x100134fd
xor eax, eax
jmp 0x100135a7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10013531
test bl, 1
je 0x100135ac
and ebx, 2
add ebx, ebx
push ebx
push 0
push esi
push eax
call fcn.10013c73
mov edi, eax
add esp, 0x10
mov dword [ebp - 4], edi
test edi, edi
je 0x10013531
mov esi, dword [edi + 0x428]
lea eax, [esi + 1]
push eax
call fcn.10010a45
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100135be
mov eax, dword [edi + 0x424]
push esi
push ebx
call fcn.10010b02
pop ecx
pop ecx
lea edi, [ebp - 4]
call fcn.10013fd5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100135a5
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
push eax
call fcn.10010a9c
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1001359c
jmp 0x10013531
lea edi, [ebp - 4]
call fcn.10013fd5
jmp 0x10013531

Function at 0x100136c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.1001360d
mov edi, eax
pop ecx
cmp edi, esi
jne 0x100136e9
xor eax, eax
jmp 0x10013738
push esi
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013729
cmp dword [ebp - 4], esi
je 0x1001372f
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
mov eax, ebx
call fcn.10016699
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 4], esi
ja 0x100136e9
jmp 0x1001372f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [0x1002cdb8]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001373d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.1001360d
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100137a6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10013791
lea eax, [esi + 1]
push eax
call fcn.10010a45
mov ebx, eax
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x10013791
lea eax, [ebp - 8]
push eax
push esi
push edi
call fcn.10013675
add esp, 0xc
test eax, eax
je 0x10013791
cmp dword [ebp - 8], esi
je 0x100137aa
push edi
call dword [0x1002cdb8]
test ebx, ebx
je 0x100137a6
xor eax, eax
lea esi, [ebp - 4]
call fcn.10010a5b
xor eax, eax
jmp 0x100137c0
mov eax, dword [ebp + 0xc]
mov byte [esi + ebx], 0
test eax, eax
je 0x100137b7
mov dword [eax], esi
push edi
call dword [0x1002cdb8]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100149b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
and dword [ebp - 0x21c], 0
and dword [ebp - 0x20c], 0
push 0xc
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10010b5d
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10014a07
xor eax, eax
je 0x10014a05
jmp 0x100149ff
jmp 0x10014a6e
push 0
push str.Packages
push 0x10020c40
lea eax, [ebp - 0x208]
push eax
call fcn.100130df
add esp, 0x10
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10014a6e
xor eax, eax
je 0x10014a37
jmp 0x10014a31
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x1001494a
push 5
push 1
push 0x1002caa8
push dword [ebp - 0x220]
call fcn.10015acf
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x220]
call fcn.10010a5b
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x10014a9a
xor eax, eax
je 0x10014a98
jmp 0x10014a92
jmp 0x10014b01
push 0
push str.LocalLow
push 0x10020c40
lea eax, [ebp - 0x208]
push eax
call fcn.100130df
add esp, 0x10
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10014b01
xor eax, eax
je 0x10014aca
jmp 0x10014ac4
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x1001494a
push 5
push 1
push 0x1002caa8
push dword [ebp - 0x224]
call fcn.10015acf
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x224]
call fcn.10010a5b
push 1
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push 0x1001494a
push 5
push 1
push 0x1002caa8
push 0x1002e53e
call fcn.10015acf
add esp, 0x24
push 0
push dword [0x1002caa8]
push 0x10020c40
push 0x1002d520
call fcn.100130df
add esp, 0x10
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x10014b74
push dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
call fcn.1001488c
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 0x20c]
call fcn.10010a5b
xor eax, eax
je 0x10014b7a
jmp 0x10014b74
cmp dword [ebp - 0x210], 0
je 0x10014b8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [ebp - 0x210]
pop esi
leave
ret
Function at 0x10015558
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10015579
mov eax, dword [edi + 0x3c]
add eax, edi
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x10015579
add eax, 0x18
jmp 0x1001557c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
add eax, edi
jne 0x10015585
leave
ret
push ebx
push esi
mov esi, dword [eax + 0xc]
test esi, esi
je 0x100155c2
lea ebx, [eax + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esi + edi]
call fcn.100154cc
test eax, eax
jne 0x100155b9
test esi, esi
je 0x100155c2
mov esi, dword [ebx + 4]
add esi, edi
jmp 0x100155b3
cmp eax, dword [ebp + 0xc]
je 0x100155c8
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100155ab
add ebx, 0x14
mov esi, dword [ebx]
test esi, esi
jne 0x10015591
xor eax, eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [0x1002cd9c]
push 4
push esi
lea eax, [ebp + 0x10]
call fcn.10010b02
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [0x1002cd9c]
xor eax, eax
inc eax
jmp 0x100155c4

Function at 0x1001595f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push 0
push 2
call dword [0x1002ce2c]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x100159ee
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100159b8
push edi
call dword [0x1002cdb8]
push 0xfffffffffffffffe
pop eax
jmp 0x100159ed
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
call dword [ebp + 8]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100159df
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100159b8
push edi
call dword [0x1002cdb8]
xor eax, eax
test esi, esi
sete al
pop esi
pop edi
leave
ret
Function at 0x10015acf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x100299c0
push dword [ebp + 8]
call fcn.100130df
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x10015c4c
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x10015c40
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x10015b20
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x10015b3a
push esi
push dword [ebp + 0x20]
call dword [0x1002cef0]
cmp eax, 0x102
jne 0x10015c36
cmp word [esp + 0x44], 0x2e
jne 0x10015b60
cmp word [esp + 0x46], si
je 0x10015c1f
cmp word [esp + 0x46], 0x2e
jne 0x10015b60
cmp word [esp + 0x48], si
je 0x10015c1f
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x10015b6e
test bl, 2
jne 0x10015b77
cmp eax, esi
jne 0x10015bb9
test bl, 4
je 0x10015bb9
cmp dword [ebp + 0x10], 0
jbe 0x10015bb9
push dword [edi + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [0x1002ce40]
test eax, eax
je 0x10015bb3
push dword [ebp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x10015bb9
cmp dword [ebp + 0x28], 0
je 0x10015bb3
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x10015b7d
test byte [esp + 0x18], 0x10
je 0x10015c1f
test bl, 1
je 0x10015c1f
push 0
lea eax, [esp + 0x48]
push eax
push 0x10020c40
push dword [ebp + 8]
call fcn.100130df
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x10015c1f
cmp dword [ebp + 0x24], 0
je 0x10015bf3
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push edi
push dword [esp + 0x30]
call fcn.10015acf
add esp, 0x24
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x10]
call fcn.10010a5b
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10015b1e
push dword [esp + 0xc]
call dword [0x1002cd80]
push 0xfffffffffffffffe
pop eax
lea esi, [esp + 0x14]
call fcn.10010a5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015c53
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10015cdc
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 1
mov eax, 0xf4240
mov ecx, 0x1002d95c
call fcn.100120a5
push eax
push edi
push str._S._06d
lea eax, [ebp - 0x20c]
push 0x207
push eax
call fcn.10010bbc
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10015cd6
push 0
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10015cdc
or dword [ebp - 4], 0xffffffff
jmp 0x10015ce5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x10015ceb
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push edi
mov edi, eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 0x200
push esi
lea eax, [ebp - 0x244]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.100137c5
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10015d39
xor eax, eax
inc eax
jmp 0x10015d96
push 1
or eax, 0xffffffff
mov ecx, 0x1002d95c
call fcn.100120a5
push eax
push 0x100299d8
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10010bbc
push 0
lea eax, [ebp - 0x44]
push eax
push 0x10020c64
push 0
call fcn.100130df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
je 0x10015d94
push edi
mov edi, eax
call fcn.10015c53
pop ecx
mov edi, eax
push 0xfffffffffffffffe
pop eax
lea esi, [ebp - 4]
call fcn.10010a5b
xor eax, eax
test edi, edi
setns al
jmp 0x10015d96
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10015d9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x10015db2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x10015dca
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push 0x10
call fcn.10010a45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015e6f
push edi
mov edi, 0x1fb9
call fcn.10012b29
mov dword [ebp - 4], eax
pop edi
test eax, eax
je 0x10015e2d
push 0x207
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 4]
call fcn.10012c69
push 0x1002e748
call fcn.10012fb9
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10012fb9
push 0x1002e53e
mov dword [esi + 4], eax
call fcn.10012fb9
push 0x1002d520
mov dword [esi + 8], eax
call fcn.10012fb9
add esp, 0x10
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x10015e6f
mov dword [ebx], 4
mov eax, esi
pop esi
leave
ret

Function at 0x10015e74
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x10015f4a
push esi
push edi
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffc
cmp ecx, eax
jae 0x10015f48
xor esi, esi
xor edx, edx
mov eax, dword [ebp + 8]
mov al, byte [ebx + eax]
lea ecx, [ebp + edx - 4]
mov byte [ecx], al
cmp ebx, dword [ebp + 0xc]
jae 0x10015eb3
inc esi
jmp 0x10015eb6
mov byte [ecx], 0
inc ebx
inc edx
cmp edx, 3
jl 0x10015e9f
test esi, esi
je 0x10015f3c
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
mov eax, ecx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 8], al
and ecx, 3
mov eax, edx
shr eax, 4
shl ecx, 4
or eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 7], al
cmp esi, 1
jle 0x10015f0c
movzx eax, byte [ebp - 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 6], al
jmp 0x10015f10
mov byte [ebp - 6], 0x3d
cmp esi, 2
jle 0x10015f27
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 5], al
jmp 0x10015f2b
mov byte [ebp - 5], 0x3d
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
add dword [ebp - 0xc], 4
lea esi, [ebp - 8]
lea edi, [edi + eax]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 0xc]
jb 0x10015e8d
pop edi
pop esi
pop ebx
cmp ecx, dword [ebp + 0x14]
jae 0x10015f57
mov eax, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, ecx
leave
ret
Function at 0x10016182
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100161a8
or eax, 0xffffffff
pop esi
leave
ret
cmp dword [ebp + 0x14], esi
je 0x100161d7
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100161ca
push 0xfffffffffffffffe
pop esi
push dword [ebp - 4]
call dword [0x1002ce30]
mov eax, esi
jmp 0x100161a5
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100161ca
push 0xfffffffffffffffd
jmp 0x100161c9
Function at 0x10016531
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov esi, 0x3fff
push esi
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
call fcn.10010a45
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10016588
xor eax, eax
jmp 0x10016695
push edi
mov edi, 0x800
push edi
call fcn.10010a45
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100165a3
xor eax, eax
jmp 0x10016694
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001666f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100165fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001666f
cmp dword [ebp - 0x10], ebx
je 0x1001666f
mov dword [ebp - 0xc], ebx
jbe 0x1001666f
push edi
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
push esi
push ebx
push dword [ebp - 0x14]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
mov word [eax], cx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001665b
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [0x1002ce70]
test eax, eax
jne 0x10016668
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x10016608
jmp 0x1001666f
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 4], ebx
je 0x1001667d
push dword [ebp - 4]
call dword [0x1002ce30]
mov eax, esi
lea esi, [ebp - 0x14]
call fcn.10010a5b
mov eax, edi
lea esi, [ebp - 8]
call fcn.10010a5b
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10016699
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0x100166a9
xor eax, eax
pop ebp
ret
jbe 0x100166d8
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x100246f8]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x100246f8]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x100166ab
not eax
pop ebp
ret
Function at 0x10016c2b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], 0x500
call fcn.10016b22
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10016c53
xor eax, eax
jmp 0x10016ce5
push esi
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call fcn.10016b6c
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10016cca
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
push eax
call dword [0x1002ce8c]
test eax, eax
je 0x10016cca
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jbe 0x10016cc1
push edi
lea edi, [esi + 4]
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10016cb9
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 8
cmp eax, dword [esi]
jb 0x10016c9b
jmp 0x10016cc0
mov dword [ebp - 8], 1
pop edi
push dword [ebp - 0xc]
call dword [0x1002ce08]
push dword [ebp - 0x10]
call dword [0x1002cdb8]
cmp esi, ebx
je 0x10016ce1
xor eax, eax
lea esi, [ebp - 0x14]
call fcn.10010a5b
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x10016ce8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x12
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x500
call dword [0x1002ce8c]
test eax, eax
jne 0x10016d18
leave
ret
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
mov esi, eax
call dword [0x1002ce08]
mov eax, esi
pop esi
leave
ret

Function at 0x10017054
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [0x1002ede0]
call fcn.10017016
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100170a4
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10017094
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 0x84
lea esi, [ebp - 8]
call fcn.10010a5b
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x10017faf
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push 0x2c08
push 0x10017f7f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10017fe9
push 2
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1001825e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
jle 0x100182ff
push ebx
push esi
push edi
movzx ecx, cl
movzx edi, dl
inc ecx
and ecx, 0x800000ff
jns 0x10018297
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
movzx ecx, cl
mov dl, byte [ecx + eax]
movzx ebx, dl
add ebx, edi
and ebx, 0x800000ff
jns 0x100182b5
dec ebx
or ebx, 0xffffff00
inc ebx
mov esi, dword [ebp + 8]
add esi, dword [ebp - 8]
movzx edi, bl
mov byte [ebp - 1], bl
mov bl, byte [edi + eax]
mov byte [ecx + eax], bl
mov byte [edi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x100182e3
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, bl
mov dl, byte [edx + eax]
xor byte [esi], dl
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jl 0x10018286
mov dl, byte [ebp - 1]
mov cl, byte [ebp - 2]
pop edi
pop esi
pop ebx
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
leave
ret

Function at 0x10018535
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x5c]
mov byte [ecx + eax + 0x1c], 0x80
inc dword [eax + 0x5c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x5c]
jle 0x1001857f
jmp 0x10018555
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x40
jl 0x1001854a
call fcn.1001837d
jmp 0x1001856c
mov ecx, dword [eax + 0x5c]
mov byte [eax + ecx + 0x1c], 0
inc dword [eax + 0x5c]
cmp dword [eax + 0x5c], 0x38
jl 0x10018561
jmp 0x10018584
mov byte [ecx + eax + 0x1c], 0
inc dword [eax + 0x5c]
mov ecx, dword [eax + 0x5c]
cmp ecx, 0x38
jl 0x10018574
mov cl, byte [eax + 0x1b]
mov byte [eax + 0x54], cl
mov cl, byte [eax + 0x1a]
mov byte [eax + 0x55], cl
mov cl, byte [eax + 0x19]
mov byte [eax + 0x56], cl
mov cl, byte [eax + 0x18]
mov byte [eax + 0x57], cl
mov cl, byte [eax + 0x17]
mov byte [eax + 0x58], cl
mov cl, byte [eax + 0x16]
mov byte [eax + 0x59], cl
mov cl, byte [eax + 0x15]
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5b], cl
jmp fcn.1001837d