joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100031b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1001f6a8], 0x15b6
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x100032c2
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.10003030
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x9f2fb
mov edx, dword [ebp - 0x3c]
add edx, 0x93a6d
mov dword [0x1001f6a8], 0x1c3a
mov esi, dword [ebp - 0x30]
mov dword [esi], ecx
mov dword [esi + 4], 0x117400
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x20c0
mov dword [0x1001f6ac], 0x950
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x6c
imul esi, eax, 0xb4
mov ebx, edx
add ebx, esi
add ebx, 0x38
mov esi, dword [ebp - 0x3c]
add esi, ecx
mov dword [ebp - 0x4c], eax
add eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0xb4
add edx, eax
add edx, 0x1c
mov eax, dword [edi]
mov edx, dword [edx]
movzx edi, word [ebx]
xor edi, eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ecx
call fcn.100033d0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x50]
cmp edx, 0x259
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
je 0x100031d8
jmp 0x10003234
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x38
mov esi, eax
add esi, 1
imul eax, eax, 0xb4
add edx, eax
add edx, 0x6c
mov eax, dword [edx]
movzx edx, word [edi]
xor edx, eax
add edx, ecx
cmp esi, 0x259
mov eax, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], esi
jne 0x100032c2
lea eax, [0x10004539]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x1001f6a8]
add esi, 0x1ba6
mov dword [0x1001f6ac], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
call fcn.10002e00
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.10003520
mov ecx, eax
mov dword [0x1001f6c8], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
jmp 0x10003234
Function at 0x10003560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1001f6b0], 0
mov dword [0x1001f6b4], 0
mov dword [0x1001f6c0], 0
mov dword [0x1001f6a8], 0x1403
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x100036b6
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1001f6a8], 0x53e
mov edx, eax
add edx, 1
mov esi, dword [0x1001f6b0]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x1001f6b0], edx
mov esi, dword [0x1001f6b4]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x1001f6b4], edx
mov ecx, dword [0x1001f6a8]
add ecx, 0xffffe856
mov dword [0x1001f6ac], ecx
mov ecx, dword [0x1001f6b0]
mov bl, byte [edi + ecx]
mov byte [0x1001f6b8], bl
mov ecx, dword [0x1001f6a8]
add ecx, 0x25c1
mov dword [0x1001f6a8], ecx
mov ecx, dword [0x1001f6b4]
mov bl, byte [edi + ecx]
mov ecx, dword [0x1001f6b0]
mov byte [edi + ecx], bl
mov bl, byte [0x1001f6b8]
mov ecx, dword [0x1001f6b4]
mov byte [edi + ecx], bl
mov ecx, dword [0x1001f6b0]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x1001f6b4]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x1001f6c0], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x100035b9
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405a12
pop dword [ebp - 0x2c]
mov eax, 0x405a12
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8bb08883
add dword [ebp - 0x3c], 0xc2a1bcc8
mov dword [ebp - 0x38], 0xa467a22c
sub dword [ebp - 0x38], 0x723455e7
mov dword [ebp - 0x34], 0x62a5e7e5
sub dword [ebp - 0x34], 0x1659a3b7
mov dword [ebp - 0x30], 0xf3068cc5
add dword [ebp - 0x30], 0xcf9733b
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xa8676020
add eax, 0x57d920e4
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xda9669
add dword [ebp - 0x3c], 0x7397d2ed
mov dword [ebp - 0x38], 0xfff73ef5
sub dword [ebp - 0x38], 0xbe8add80
mov dword [ebp - 0x34], 0x68cf165f
add dword [ebp - 0x34], 0xfaa0560d
mov dword [ebp - 0x30], 0x73eebf1f
add dword [ebp - 0x30], 0x8c1140e1
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xd44853b7
add eax, 0x2bf82d49
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3890c
push 0
call eax
mov ecx, 0x84d0168d
add ecx, 0x7b3037ca
xor edi, edi
add edi, eax
mov esi, 0xe4d58a29
add esi, 0x1b7159d7
add esi, dword [ebp - 0x2c]
mov ebx, 0xa2c0e9e9
add ebx, 0x118f84d2
mov edx, dword [esi]
xor edx, ebx
sub dword [ebp - 0x28], 0x7c948328
mov dword [edi], edx
xor dword [ebp - 0x20], 0xfcf662ec
add edi, 4
add esi, 4
loop 0x405b31
add eax, 0xb5c7db5f
add eax, 0x4a3950d0
xor ebx, ebx
add ebx, eax
add eax, 0x5976ca66
sub eax, 0x5976ca61
mov ecx, 0xf33d4775
add ecx, 0xd02b88b
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x6a3370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6a338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6ca074
push ecx
mov edi, eax
call fcn.006b67c8
mov esi, eax
add esp, 8
test esi, esi
jne 0x6a33cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006b665e
push esi
call fcn.006b65e1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6a5920
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6a597e
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x6e7a78
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6a598a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006b6811
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6a597e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6e7a78
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6a59fa
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.006b73a2
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6a5a27
mov word [eax], si
add eax, 2
push eax
call fcn.006b7350
add esp, 4
jmp 0x6a5a29
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6a597e
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6a5980
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x6a60c0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6a6150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6a6194
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6ca38c
push ecx
call fcn.006b6811
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006b6811
add esp, 0x10
jmp 0x6a61a2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006b683b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006b642f
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006a6120
mov eax, dword [0x6e7a80]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x6a620b
push esi
call fcn.006a6080
add esp, 4
mov dword [0x6e7a80], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6a621c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.006a60c0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x6a93e0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6a9457
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6a942e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6a9411
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6a941e
add edx, ecx
cmp ebx, edx
jb 0x6a942a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6a9407
xor ecx, ecx
jmp 0x6a9442
test eax, eax
jne 0x6a9432
xor ecx, ecx
jmp 0x6a9442
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006a9360
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6a9750
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6a9781
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x6a97a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x6a97ce
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x6a97f3
push ecx
push esi
call fcn.006a9460
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x6aa830
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
mov ebx, dword [ecx + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x6aa955
xor eax, eax
xor esi, esi
mov ax, word [ecx + 0x14]
mov si, word [ecx + 6]
xor edi, edi
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x6aa955
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6aa86d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6aa87a
add edx, ecx
cmp ebx, edx
jb 0x6aa88a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6aa863
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
je 0x6aa955
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
sub edi, edx
add edi, ebx
add edi, eax
je 0x6aa955
mov esi, dword [edi + 4]
test esi, esi
je 0x6aa955
cmp dword [edi], 0
je 0x6aa955
cmp esi, 8
jb 0x6aa955
mov eax, dword [esp + 0x2c]
mov ecx, edi
add esi, 0xfffffff8
lea ebp, [edi + 8]
mov edx, dword [eax]
sub ecx, edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
lea ecx, [eax + 8]
lea eax, [esp + 0x10]
push edx
push eax
shr esi, 1
call fcn.006a9b40
test esi, esi
mov dword [esp + 0x28], 0
jbe 0x6aa947
mov ax, word [ebp]
mov bx, ax
shr bx, 0xc
cmp bx, 3
jne 0x6aa92d
mov ecx, dword [edi]
and eax, 0xfff
add eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [eax + 8]
call fcn.006a9b40
cmp bx, 4
jne 0x6aa937
add ebp, 2
dec esi
mov eax, dword [esp + 0x28]
add ebp, 2
inc eax
cmp eax, esi
mov dword [esp + 0x28], eax
jb 0x6aa8f9
add edi, dword [edi + 4]
mov esi, dword [edi + 4]
test esi, esi
jne 0x6aa8b3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x6aa980
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x6aa9ca
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x6aa9ab
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x6aa9b8
add edx, eax
cmp ebx, edx
jb 0x6aa9c6
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x6aa9a1
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x6aa9d0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x6aa9f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6aaa30
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6aaa1b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6aaa28
add edx, ecx
cmp ebx, edx
jb 0x6aaa32
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6aaa11
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x6aac50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.006b7465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6aaceb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x6aaccd
lea eax, [esp + 0x18]
push eax
jmp 0x6aacd2
push 0x6e7a78
call fcn.006b7881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6aaca0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6aac30
push 4
push ecx
push eax
call fcn.006b76b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6ab000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.006b7465
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6ab09b
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6ab07d
lea eax, [esp + 0x18]
push eax
jmp 0x6ab082
push 0x6e7a78
call fcn.006b7881
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6ab050
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6aac30
push 4
push ecx
push eax
call fcn.006b76b3
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6b0da0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x6b0e0b
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x6b0e45
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.006b0aa0
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x6b0dd5
mov edi, 0x6ca860
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x6b0e45
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.006b0aa0
add edi, 4
add esp, 0xc
cmp edi, 0x6ca874
jb 0x6b0e10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x6b0e80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.006b73a2
mov esi, eax
add esp, 8
test esi, esi
je 0x6b0f17
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x6b0f12
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.006b6d7f
add esp, 8
test eax, eax
je 0x6b0ef3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x6b0ef8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.006b6d7f
add esp, 8
test eax, eax
jne 0x6b0ed5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x6b0f12
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x6b1d20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6c58ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x6b1e12
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.006b642f
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x6b1e12
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.006ad380
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.006b683b
push 0x10
call fcn.006b6803
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x6b1dd5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006a31c0
jmp 0x6b1dd7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.006b1990
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x6b1e00
mov ecx, edi
call fcn.006a32c0
push edi
call fcn.006b67f8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6b1e31
inc ebx
cmp ebx, 0x20
jb 0x6b1d4e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret