joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f19e7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, word [esp]
mov ax, word [esp + 5]
jmp 0x8f1a22
pop dx
not dl
lea esp, [esp + 3]
btr edx, esp
rdtsc
push dword [esp + 4]
jmp 0x8f1a0c

Function at 0x8f1c26
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x8f1c78
mov word [esp + 0x24], cx
push word [esp + 0x1c]
mov cl, byte [esp + 0x18]
sub esp, 0x11
lea esp, [esp + 0x41]
mov dh, 0xb1
jmp 0x8f1c62
mov ax, si
lea ecx, [ecx + edi]
mov edx, 0x2c1d9347
neg dh
not ch
jmp 0x8f1e17
mov word [esp + 6], ax
mov eax, dword [esp + 0x24]
mov cx, 0x8997
mov edx, dword [esp + 8]
pop eax
pop word [esp + 0x19]
jmp 0x8f1c28
shl cx, cl
mov dh, byte [esp]
dec ch
mov cl, byte [esp + 1]
shl edx, 0x12
jmp 0x8f1d22
pop ecx
mov byte [esp + 1], al
mov byte [esp + 2], al
btr cx, bp
bswap eax
add esp, 2
jmp 0x8f1cab
mov byte [esp], dl
stc
call fcn.008f1cfd
mov ebx, 0x2ddebb2b
lodsb al, byte [esi]
into
dec esp
ret 0x54a5
mov byte [esp], al
pushfd
rdtsc
lea esp, [esp + 4]
rcl ch, 4
bts edx, esp
jmp 0x8f1cd5
add esp, 0
cld
mov dl, bh
mov byte [esp], al
lea eax, [esi*4]
mov ecx, 0x68ff3a22
jmp 0x8f1ceb
mov ch, byte [esp + 2]
rdtsc
push word [esp + 2]
pop cx
dec ecx
push dword [esp + 3]
jmp 0x8f1cc1
mov eax, esi
shr dx, 5
pushfd
mov dx, bp
btc ecx, edx
mov byte [esp], bl
jmp 0x8f1d55

Function at 0x8f1ea0
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop cx
mov word [esp + 1], di
sets cl
mov dh, 0x60
ror edx, cl
jmp 0x8f1f29
mov dx, 0x62eb
clc
rcr edx, cl
mov dword [esp + 1], ecx
add esp, 1
jmp 0x8f1e8a
inc ax
not cx
adc cx, 0xaafa
mov word [esp + 2], cx
not dx
bsf ax, dx
jmp 0x8f1ec0
xchg dword [esp], edx
mov dword [esp], eax
sub esp, 8
xchg cx, dx
xchg dx, ax
bsf dx, sp
jmp 0x8f1ed6
mov ah, 0x8b
pop ax
mov cx, word [esp + 2]
neg cl
rol ah, 4
setae cl
jmp 0x8f1ef9
Function at 0x8f23cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, 0x5f06533
xchg dword [esp], ecx
mov dx, 0x84da
neg edx
std
mov eax, ecx
jmp 0x8f22ca
pop edx
xchg cl, dh
not ecx
pop edx
xchg byte [esp + 8], cl
not ax
jmp 0x8f21d4
mov dh, byte [esp + 7]
rcr cx, cl
lea ecx, [edi + 0x6e]
pop dx
jmp 0x8f2225
pop edx
dec dh
bsr cx, bx
std
cmc
bsr ax, cx
jmp 0x8f21ff
lea edx, [ecx*4]
mov ax, 0xab85
lea ecx, reloc.WINMM.dll_waveOutUnprepareHeader
add esp, 3
setae dh
bt cx, bp
jmp 0x8f227b
add esp, 0x17
sub dl, 0x82
mov dx, word [esp + 6]
mov ah, 0xd2
mov al, byte [esp + 0xa]
lea esp, [esp + 7]
jmp 0x8f2216
pop cx
sub esp, 0x17
add cx, 0x6b93
xchg ecx, eax
not dl
xchg word [esp + 0xb], dx
jmp 0x8f22a8
not dl
xchg byte [esp + 8], cl
mov ax, word [esp + 8]
lea eax, [edx + ebx]
mov dword [esp + 4], edi
lea edx, [ebx + ebp]
jmp 0x8f2261
push dword [esp + 0x28]
inc dx
mov dh, 0xfa
mov cx, 0x5074
rdtsc
xchg ch, al
jmp 0x8f2352
sub esp, 0xf
sbb dh, dh
mov eax, ebx
pushfd
mov dx, word [esp + 0xd]
xchg word [esp + 5], ax
jmp 0x8f2292
cld
mov word [esp + 0xa], ax
pushal
xchg cx, ax
mov eax, ecx
mov ecx, dword [esp + 0x2d]
jmp 0x8f224a
neg dx
push edi
xchg byte [esp + 0x18], dh
pop ax
sub esp, 0x12
pushal
jmp 0x8f2333
lea edx, reloc.WINMM.dll_waveOutUnprepareHeader
push dword [esp + 0x25]
pop word [esp + 0xb]
mov dx, 0x6598
lea esp, [esp + 0xb]
xchg dword [esp + 0x17], ecx
jmp 0x8f22de
mov ch, cl
mov edx, esp
call fcn.008f2369
ja 0x8f2389
jbe 0x8f238f
dec edi
jne 0x8f23a1
dec edi
jo 0x8f2395
outsb dx, byte [esi]
add dl, dh
lea esp, [esp + 0x5a]
clc
mov ax, word [esp]
mov ecx, eax
rdtsc
mov cl, byte [esp]
jmp 0x8f231d
add cx, 0x931c
push word [esp + 9]
mov dh, 0x17
xchg word [esp + 0x23], cx
stc
add esp, 9
jmp 0x8f2300
or ebp, ebp
invalid
je 0x8f23d6
inc ebx
add byte [esp + edx + 0x19247486], dh
mov ah, 0x14
xchg byte [esp + 0x19], dh
adc al, 0x86
je 0x8f23bd
sbb dword [edi - 0x2feedbbc], ecx
shl byte [esi - 0x75], cl
dec esp
and al, 0xf
pop dword [esp + 0x11]
rcl dl, 1
mov cx, word [esp + 0xf]
mov ecx, dword [esp + 0xf]
lea eax, [ecx + ecx]
jmp 0x8f21f0
invalid
bswap ecx
jmp 0x8f2394
les ecx, [ebx]
Function at 0x8f23d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
stc
xchg byte [esp + 0x1b], dl
add esp, 0xb
lea esp, [esp + 0xe]
jmp 0x8f2401
add esp, 3
sub esp, 0x1f
sub esp, 0x1e
dec cl
rdtsc
jmp 0x8f248f
mov dx, 0xb648
mov byte [esp + 5], bh
bswap edx
neg dh
pop dword [esp]
dec edx
jmp 0x8f23eb
lea ecx, reloc.WINMM.dll_waveOutUnprepareHeader
mov ch, 0x5b
mov al, bh
setb ch
jmp 0x8f2454
lea edx, reloc.WINMM.dll_waveOutUnprepareHeader
rdtsc
mov eax, 0x5434a49b
clc
mov ch, 0x49
sbb ax, bx
jmp 0x8f2413
cld
neg ah
lea eax, reloc.WINMM.dll_waveOutUnprepareHeader
mov ch, byte [esp + 2]
jmp 0x8f2467
btc cx, bp
not eax
sbb edx, 0x4595a9f1
mov dh, byte [esp]
inc edx
pushal
jmp 0x8f243e
push dword [esp + 0x1b]
mov ax, 0x6feb
sub esp, 0x14
mov al, ch
btc ax, cx
mov dx, sp
jmp 0x8f24a9
bsf cx, ax
not ecx
push word [esp + 0x1f]
lea esp, [esp + 0x41]
shr ax, cl
lea edx, [edi + 0xfa]
jmp 0x8f2429
mov al, dh
pop ecx
pop word [esp + 7]
lea esp, [esp + 0x27]
bt edx, ecx
lea ecx, [esi*4]
jmp 0x8f2583
xchg word [esp + 1], ax
neg edx
mov ah, byte [esp + 6]
lea eax, reloc.WINMM.dll_waveOutUnprepareHeader
mov ax, bx
call fcn.008f24fa
mov eax, ecx
bt edx, esi
push dword [esp + 0xa]
rdtsc
xor ch, bh
xchg ecx, edx
jmp 0x8f2550

Function at 0x8f6eec
Capabilities:
Access peb ldr_data

Disassembly:
mov byte [esp], dl
call fcn.008f6ea6
pop word [esp]
jmp 0x8f6ebc
Function at 0xafffc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x415000]
push edi
or ebp, 0xffffffff
jmp 0xafffe2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xafffe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xafffd8
mov eax, 1
add ebx, ebx
jne 0xaffffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb0000c
jne 0xb0002b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0002b
dec eax
add ebx, ebx
jne 0xb00018
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xaffff0
add ebx, ebx
jne 0xb00027
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb0007d
xor ecx, ecx
sub eax, 3
jb 0xb00043
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb000b2
sar eax, 1
mov ebp, eax
jmp 0xb0004e
add ebx, ebx
jne 0xb0004e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0001c
inc ecx
add ebx, ebx
jne 0xb0005c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb0001c
add ebx, ebx
jne 0xb00069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb0005e
jne 0xb0007a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb0005e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb0009c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb0008e
jmp 0xafffde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb0009c
add edi, ecx
jmp 0xafffde
pop esi
mov edi, esi
mov ecx, 0x144f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb000ba
cmp byte [edi], 0x6d
jne 0xb000ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb000bf
lea edi, [esi + 0x6fb000]
mov eax, dword [edi]
or eax, eax
je 0xb00137
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7018e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x701ac4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb000ec
mov ecx, edi
jns 0xb0011b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x701acc]
or eax, eax
je 0xb00131
mov dword [ebx], eax
add ebx, 4
jmp 0xb00109
call dword [esi + 0x701ac8]
mov ebp, dword [esi + 0x701ad0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb0016b
sub esp, 0xffffff80
jmp 0x74a019
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x437cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058c1
cmp eax, ebx
je 0x401533
push ebx
push dword [0x437cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
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 [0x437cb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402dc0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41fd7c]
sub esi, dword [0x423d88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x437c20], eax
jle 0x402f1e
push dword [0x423d84]
call fcn.00402da9
push ebx
push ebx
push dword [0x423d88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41fd78], esi
mov dword [0x40fcec], ebx
mov ebp, 0x417d78
mov eax, dword [0x423d80]
sub eax, dword [0x423d84]
mov edi, 0x4000
cmp eax, edi
jg 0x402e35
mov edi, eax
push edi
mov esi, 0x41fd80
push esi
call fcn.00402d77
test eax, eax
je 0x402f30
add dword [0x423d84], edi
mov dword [0x417d08], esi
mov dword [0x417d0c], edi
cmp dword [0x437bcc], ebx
je 0x402e8c
cmp dword [0x437ca0], ebx
jne 0x402e8c
mov eax, dword [0x41fd78]
sub eax, dword [0x41fd7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x423d88]
mov dword [0x40fcec], eax
call fcn.00402cd8
pop ecx
mov ecx, 0x417cf0
mov dword [0x417d10], ebp
mov dword [0x417d14], 0x8000
call fcn.004060aa
test eax, eax
jl 0x402f35
mov esi, dword [0x417d10]
sub esi, ebp
je 0x402eea
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f3a
cmp esi, dword [esp + 0x10]
jne 0x402f3a
add dword [0x423d88], esi
cmp dword [0x417d0c], ebx
jne 0x402e5b
jmp 0x402ef6
cmp dword [0x417d0c], ebx
jne 0x402f35
cmp edi, ebx
je 0x402f35
mov eax, dword [0x41fd7c]
mov ecx, eax
sub ecx, dword [0x423d88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e1f
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402cd8
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f28
push 0xfffffffffffffffd
pop eax
jmp 0x402f28
push 0xfffffffffffffffe
jmp 0x402f37
Function at 0x402f3e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f6a
mov ecx, dword [0x437c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41fd7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402dc0
cmp eax, edi
jl 0x403063
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x40305f
cmp dword [ebp - 4], esi
jne 0x40305f
push dword [ebp + 8]
add dword [0x41fd7c], esi
call fcn.00402dc0
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403062
cmp dword [ebp + 0x10], edi
jne 0x40302e
cmp dword [ebp + 8], edi
jle 0x40305a
mov esi, 0x41fd80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fde
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x40305f
cmp edi, dword [ebp - 4]
jne 0x40305f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40302a
cmp dword [ebp + 0x14], edi
jne 0x40302a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41fd7c], eax
cmp dword [ebp + 8], 0
jg 0x402fd1
jmp 0x40305a
push 0xfffffffffffffffe
jmp 0x403061
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403039
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x40305f
mov eax, dword [ebp - 4]
add dword [0x41fd7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403062
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4054ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42f1d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42f1d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054e7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40564b
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40564e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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_CreateFileA]
ret 0xc

Function at 0x40567d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056c1
test edi, edi
jne 0x405688
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056bb

Function at 0x4056c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405736
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x1400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405725
cmp dword [ebp + 0x14], 1
je 0x405727
cmp dword [ebp + 0x14], 2
je 0x405727
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x13ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40597f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42f218
push esi
call fcn.004057de
push esi
call fcn.004055b7
mov edi, eax
test edi, edi
jne 0x4059a0
xor eax, eax
jmp 0x4059f8
push edi
call fcn.00405800
test byte [0x437c28], 0x80
je 0x4059b9
mov al, byte [edi]
test al, al
je 0x40599c
cmp al, 0x5c
je 0x40599c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059d9
push esi
call fcn.0040589a
test eax, eax
je 0x4059d3
test byte [eax], 0x10
je 0x4059fd
push esi
call fcn.00405958
push esi
call ebx
cmp eax, edi
jg 0x4059c4
push esi
call fcn.0040592b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059f7
Function at 0x405cb4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004058c1
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cd8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e11
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x430618], 0x4c554e
mov edi, 0x400
mov ebp, 0x430618
test esi, esi
je 0x405d1c
push 1
push 0
push esi
call fcn.0040564e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e17
cmp eax, edi
jg 0x405e17
push edi
mov esi, 0x430f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e17
cmp eax, edi
jg 0x405e17
push esi
push ebp
push str._s_s_r_n
push 0x430a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x437bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a57
push 4
push 0xc0000000
push esi
call fcn.0040564e
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405e11
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e0a
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e0a
cmp edi, dword [esp + 0x18]
jne 0x405e0a
push str._Rename__r_n
push esi
call fcn.00405a01
test eax, eax
jne 0x405e1e
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057de
add edi, 0xa
mov eax, edi
push ebx
push 0x430a18
add eax, esi
push eax
call fcn.0040560a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x437c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40762c
add eax, 0xa
push eax
call fcn.00405a01
test eax, eax
je 0x405dd5
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e45
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e3a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dd7
Function at 0x405e4d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040597f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e82
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x437c88], eax
jmp 0x406014
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e9d
test eax, eax
je 0x405fbf
test cl, 2
je 0x405fbf
push edi
push ebx
mov esi, 0x431358
push esi
call fcn.004057de
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ec0
push str..
push esi
call edi
jmp 0x405ec6
push ebx
call fcn.00405958
cmp byte [ebx], 0
jne 0x405ed4
cmp byte [0x431358], 0x5c
jne 0x405edc
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405fb4
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405573
cmp byte [eax], 0
je 0x405f1f
cmp byte [ebp - 0x18], 0
je 0x405f1f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f35
mov al, byte [esi + 1]
test al, al
je 0x405f93
cmp al, 0x2e
jne 0x405f35
cmp byte [esi + 2], 0
je 0x405f93
push esi
push edi
call fcn.004057de
test byte [ebp - 0x148], 0x10
je 0x405f5a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f93
push dword [ebp + 0xc]
push ebx
call fcn.00405e4d
jmp 0x405f93
push ebx
call fcn.0040562e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f8b
test byte [ebp + 0xc], 4
je 0x405f83
push ebx
push 0xfffffffffffffff1
call fcn.0040488d
push 0
push ebx
call fcn.00405cb4
jmp 0x405f93
inc dword [0x437c88]
jmp 0x405f93
push ebx
push 0xfffffffffffffff2
call fcn.0040488d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f01
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fbe
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406013
cmp dword [ebp - 8], esi
je 0x406003
push ebx
call fcn.0040589a
test eax, eax
je 0x406013
push ebx
call fcn.0040592b
push ebx
call fcn.0040562e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40600b
test byte [ebp + 0xc], 4
je 0x406003
push ebx
push 0xfffffffffffffff1
call fcn.0040488d
push esi
push ebx
call fcn.00405cb4
jmp 0x406013
inc dword [0x437c88]
jmp 0x406013
push ebx
push 0xffffffffffffffe5
call fcn.0040488d
pop esi
pop ebx
leave
ret 8
Function at 0x406019
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43275c], 0
jne 0x406057
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40602d
mov dword [ecx*4 + 0x432758], eax
inc ecx
cmp ecx, 0x100
jl 0x406028
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406084
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x432758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406065
not eax
pop ebp
ret 0xc