joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6addfc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x6ade3b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6ade3b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6ade3b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x6ade3b
cmp dword [ecx + 0x74], 0xe
jbe 0x6ade3b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x6b681f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00579c00
mov eax, dword [0x7b6e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.006b6158
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6b6861
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x6b69bd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00579de0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x7c8b70]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.006c2dfd
mov ecx, dword [esi*4 + 0x7c8b70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x6b69b6
cmp eax, dword [ecx + edi + 0x24]
jne 0x6b69b6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6b69b6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006c2dfd
add esp, 0x14
test edx, edx
jl 0x6b69b6
jg 0x6b692c
test eax, eax
jb 0x6b69b6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x6b69b6
jl 0x6b6946
cmp dword [ebp - 0x1008], eax
ja 0x6b69b6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6b6964
test ebx, ebx
je 0x6b699d
cmp ecx, edi
jae 0x6b699d
mov al, byte [ecx]
cmp al, 0xd
jne 0x6b697e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x6b698a
cmp byte [ecx + 1], 0xa
jne 0x6b698a
inc ecx
jmp 0x6b698a
movzx eax, al
movsx eax, byte [eax + 0x7badd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6b6964
cmp edx, ebx
jne 0x6b6964
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x6b69bb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00579020
leave
ret
Function at 0x6bc24b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7b6e84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x77df6c
push esi
call fcn.006ac587
pop ecx
pop ecx
test eax, eax
jne 0x6bc279
xor al, al
jmp 0x6bc2f6
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006bbf8c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x6bc2b3
push dword [ebp - 0x210]
call fcn.006a3b23
xor al, al
jmp 0x6bc2f4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6bc2b9
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x6bc2d9
push edx
call fcn.006bc182
pop ecx
test al, al
je 0x6bc2a4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x6bc2e7
mov bl, 1
push dword [ebp - 0x210]
call fcn.006a3b23
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00579020
leave
ret
Function at 0x6c1109
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x77eba0
push 0x77eb98
push str.FlsAlloc
push 0x1f
call fcn.006c0f33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6c113d
push dword [ebp + 8]
mov ecx, esi
call dword [0x6e7b8c]
call esi
jmp 0x6c1143
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6c1187
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x77ebb0
push 0x77eba8
push str.FlsGetValue
push 0x21
call fcn.006c0f33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6c11be
push dword [ebp + 8]
mov ecx, esi
call dword [0x6e7b8c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6c11c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x77ebb8
push 0x77ebb0
push str.FlsSetValue
push 0x22
call fcn.006c0f33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6c1200
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6e7b8c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x6c1247
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x77ea1c
push str.GetTempPath2W
push 5
call fcn.006c0f33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6c1281
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6e7b8c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x6c2295
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7c8b70]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6c22d5
cmp byte [ebx], 0xa
jne 0x6c22d5
or byte [edi + eax + 0x28], 4
jmp 0x6c22da
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x6c23d9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x6c23bc
inc eax
cmp dl, 0xd
je 0x6c2306
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x6c232c
cmp eax, ecx
jae 0x6c233a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x6c22ee
jmp 0x6c23d9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6c23b7
cmp dword [ebp - 0x10], 0
je 0x6c23b7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7c8b70]
test byte [eax + edi + 0x28], 0x48
je 0x6c2391
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x6c237c
mov byte [esi], dl
jmp 0x6c238d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7c8b70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6c23d9
cmp byte [ebp - 1], 0xa
jne 0x6c23a0
cmp esi, ebx
jne 0x6c23a0
mov byte [esi], 0xa
jmp 0x6c23d8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006c2e1b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6c23d9
mov byte [esi], 0xd
jmp 0x6c23d8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7c8b70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6c23d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6c23d9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6c23e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x7c8b70]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6c2428
cmp word [ebx], dx
jne 0x6c2428
or byte [eax + edi + 0x28], 4
jmp 0x6c242d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x6c2590
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x6c2570
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x6c246e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6c24a4
cmp eax, edx
jae 0x6c24b2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x6c2449
jmp 0x6c2590
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6c256b
cmp dword [ebp - 0x18], 0
je 0x6c256b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7c8b70]
test byte [eax + edi + 0x28], 0x48
je 0x6c2541
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x6c2505
mov word [esi], cx
jmp 0x6c253c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7c8b70]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7c8b70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7c8b70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x6c2590
pop eax
cmp word [ebp - 4], ax
jne 0x6c2551
cmp esi, ebx
jne 0x6c2551
mov word [esi], ax
jmp 0x6c258d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006c2e1b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x6c2590
push 0xd
pop eax
jmp 0x6c254c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7c8b70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x6c258a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x6c2590
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6c6ddb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x6c6e78
push ebx
push esi
call fcn.006c6da4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.006c4187
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6c6e25
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6c6e77
push edi
push eax
call fcn.006be0fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6c6e45
call fcn.006bda9a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6c6e76
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.006c4187
add esp, 0x20
test eax, eax
jne 0x6c6e64
push edi
call fcn.006bda9a
jmp 0x6c6e6c
push ebx
call fcn.006bda9a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x6c6e7b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6c6e8c
pop esi
ret
push ebx
push edi
push esi
call fcn.006c6da4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006be0fd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6c6eb4
push ebx
push esi
push edi
call fcn.006a09b0
add esp, 0xc
push 0
call fcn.006bda9a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x6c760e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006c7129

Function at 0x6c96bb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.006bde12
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6c972a
cmp esi, dword [ebp - 4]
je 0x6c9725
cmp dword [ebp + 0xc], 0
je 0x6c9725
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x6c9702
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.006c920d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x6c972c
xor eax, eax
inc eax
jmp 0x6c972c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x6c9791
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x7b6e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.006bde12
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.006bde12
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x6c9808
cmp word [ecx], dx
je 0x6c9808
mov eax, dword [0x77f594]
push edi
dec eax
push eax
push 0x77f480
call fcn.006c9730
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x6c987b
cmp word [eax], dx
je 0x6c987b
mov eax, dword [edi]
test eax, eax
je 0x6c982c
cmp word [eax], dx
je 0x6c982c
lea eax, [ebp - 0x10]
push eax
call fcn.006c9113
jmp 0x6c9835
lea eax, [ebp - 0x10]
push eax
call fcn.006c91ae
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x6c98a5
mov eax, dword [0x77f47c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x77f170
call fcn.006c9730
add esp, 0xc
test al, al
je 0x6c98a5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x6c9870
cmp word [eax], di
je 0x6c9870
lea eax, [ebp - 0x10]
push eax
call fcn.006c9113
pop ecx
jmp 0x6c98a7
lea eax, [ebp - 0x10]
push eax
call fcn.006c91ae
jmp 0x6c986d
mov eax, dword [edi]
test eax, eax
je 0x6c9892
cmp word [eax], dx
je 0x6c9892
lea eax, [ebp - 0x10]
push eax
call fcn.006c90c8
pop ecx
jmp 0x6c98a5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x6c9970
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.006c95b5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x6c9970
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x6c9970
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x6c9970
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6c98fd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.006c1348
test ebx, ebx
je 0x6c996b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.006c1348
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6c9970
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6c9970
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.006b069a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x6c9972
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00579020
leave
ret
Function at 0x6cdec0
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.006cde3c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6ce02f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6ce02f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6cdfe4
jg 0x6cdf1c
test eax, eax
je 0x6cdfda
push 1
push 0x1000
call fcn.006c0bb1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6cdf3f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6cdfd1
push 0x8000
push ebx
call fcn.006b8811
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6cdf68
jg 0x6cdf63
cmp ecx, 0x1000
jb 0x6cdf68
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006c020e
add esp, 0x10
cmp eax, 0xffffffff
je 0x6cdfad
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6cdf63
jl 0x6cdf94
test ecx, ecx
jne 0x6cdf55
push dword [ebp - 0xc]
push ebx
call fcn.006b8811
push esi
call fcn.006bda9a
add esp, 0xc
xor ebx, ebx
jmp 0x6ce03d
cmp byte [edi + 0x24], 0
je 0x6cdfc4
cmp dword [edi + 0x20], 5
jne 0x6cdfc4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6cdfcf
mov ebx, dword [edi + 0x18]
jmp 0x6cdfd1
xor ebx, ebx
push esi
call fcn.006bda9a
pop ecx
jmp 0x6ce03d
test ecx, ecx
jg 0x6cdfa6
jl 0x6cdfe4
test eax, eax
jae 0x6cdfa6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006c2e1b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6ce004
cmp byte [edi + 0x1c], 0
je 0x6cdfa6
jmp 0x6ce035
push ebx
call fcn.006b6e56
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6cdfa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6ce03d
cmp byte [edi + 0x1c], 0
je 0x6ce03a
mov ebx, dword [edi + 0x18]
jmp 0x6ce03d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006c2e1b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6ce56f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7b6e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x6ce5b2
call fcn.006a8f80
mov dword [eax], 0xf
call fcn.006a8f93
mov dword [eax], 0xd
call fcn.006a3e4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00579020
leave
ret
test eax, eax
jne 0x6ce5b9
inc eax
jmp 0x6ce5a6
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x6ce5a4
xor eax, eax
cmp ecx, 1
setne al
jmp 0x6ce5a6
Function at 0x41952b
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d0
pushal
lea eax, [ebp - 0x720]
mov dword [ebp - 0x10], eax
push eax
call fcn.00417332
lea eax, [ebp - 0x520]
mov dword [ebp - 4], eax
push eax
call fcn.00417b4a
lea eax, [ebp - 0x620]
mov dword [ebp - 0xc], eax
push eax
jmp loc.0041c8f8

Function at 0x4195ec
Capabilities:
Terminate process

Disassembly:
call fcn.004195f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x25f2
mov dword [ebp - 4], edi
xor esi, esi
xor edi, edi
inc edi
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x401140
add edi, 2
cmp edi, 0x63a7
jl 0x401123
mov eax, dword [ebp + 8]
test eax, eax
je 0x40125c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40125c
cmp eax, ecx
jae 0x40125c
mov esi, 0x454c
jmp 0x401170
mov eax, 0x2f149903
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401170
mov ebx, 0xbea
jmp 0x401190
mov eax, 0x7a44c6b
imul ebx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401190
mov eax, 0x7dec
dec eax
jne 0x4011a8
mov edi, dword [ebp + 8]
sub ecx, edi
mov dword [ebp + 0xc], ecx
mov esi, 0x4cf9
jmp 0x4011c0
mov eax, 0x3531dec1
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011c0
mov ebx, 0x2e03
jmp 0x4011e0
mov eax, 0x532ae21d
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4011e0
mov ebx, 0x6982
mov eax, 0x6ce2
lea ecx, [ecx]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
test eax, eax
jne 0x401200
mov edx, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
je 0x401224
mov al, byte [ecx + edi + 1]
add al, 0x1d
xor byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x401216
inc esi
mov eax, esi
and eax, 0x80000001
jns 0x401233
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401236
inc esi
cmp esi, 0x7f04
jl 0x401224
mov edi, edi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x2e3c
mov eax, 0x2e8ba2e9
imul edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401261
mov edi, dword [ebp - 4]
mov eax, 0x473c1ab7
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401276
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x6b
push ebx
xor ebx, ebx
mov edi, edi
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403290
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], eax
jbe 0x403396
mov ecx, dword [ebp + 8]
add ecx, 5
push esi
mov dword [ebp - 0x10], ecx
push edi
mov edi, edi
add eax, dword [ebp + 0xc]
mov edi, 0x5776
mov dword [ebp - 0x14], eax
mov al, byte [eax]
mov byte [ebp - 1], al
mov ecx, 0x2403
mov esi, 0xa7
mov ebx, 0x62e7
nop
mov eax, 0x4c346405
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4032e0
mov eax, 0xdbeb61f
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4032f3
mov edx, dword [ebp + 8]
inc byte [edx + 0x119]
movzx eax, byte [edx + 0x119]
lea edi, [edx + 5]
add edi, eax
movzx eax, byte [edx + 0x10c]
movzx ecx, byte [edi]
add eax, ecx
mov byte [edx + 0x10c], al
movzx eax, al
add eax, 5
add eax, edx
push eax
push edi
mov dword [ebp - 0xc], eax
call fcn.00403760
add esp, 8
mov eax, 0x2644
mov ecx, 0xf6
lea esp, [esp]
cmp esi, ecx
cmovl esi, ecx
dec eax
jne 0x403350
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
add cl, byte [edi]
nop
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x403360
movzx eax, cl
mov ecx, dword [ebp - 0x10]
mov al, byte [eax + ecx]
xor al, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x4032c0
pop edi
pop esi
inc ebx
mov eax, ebx
and eax, 0x80000007
jns 0x4033a5
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4033a8
inc ebx
cmp ebx, 0x2f94
jl 0x403396
pop ebx
mov esp, ebp
pop ebp
ret