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

Disassembly:
popfd
std
jle 0x40974e
and eax, 0xa5f25548
mov byte [ebp - 0x13cbbb7a], 0x6e
xchg byte [esp + esi - 0x14], al
outsb dx, byte [esi]
xor eax, 0x18bb5520
outsb dx, byte [esi]
mov cl, 0xef
nop
lcall 0xe0e9, 0xade50ec4
movsd dword es:[edi], dword [esi]
aaa
pop ds
shr byte [ebx], 0xa6
cdq
insd dword es:[edi], dx
jne 0x40974f
dec eax
mov bh, 0x64
cmp eax, 0x5f6575fc
push 0x49a57b16
invalid
jne 0x40975a
jge 0x4097f9
xor esp, 0xfe163e6a
mov ebx, 0x9fbcf6aa
dec esi
xlatb
mov bh, 0x14
jg 0x4097f2
in eax, dx
fstp xword [edx + 0x51493260]
stosb byte es:[edi], al
pop edi
cmp eax, 0x49de954c
das
dec eax
pop esi
pop esi
xchg ebp, eax
fdiv qword [ebx]
xchg bl, ch
invalid
push 0x35
loope 0x409846
mov esp, 0x42538823
push ebx
inc edx
sub ebx, dword [esi + 0x3b1ab875]
neg dword [eax]
movsd dword es:[edi], dword [esi]
sbb dl, al
mov bh, 0x48
mov cl, 0x66
xchg edx, eax
adc esp, dword [edx + 0x28]
in eax, dx
cmp dword [eax - 0x14], 0x38
stosd dword es:[edi], eax
lds ebp, [esi - 0x773cc5a8]
arpl word [esp + eax*8 - 0x7c535728], cx
dec esp
arpl word [esi - 0x5e], bx
cmp eax, 0x3b9703f2
xchg edi, eax
cmp ebx, dword [ebx - 0x35310b2c]
mov al, 0x13
hlt
dec edi
mov word [edx], cs
aad 0x3b
lodsb al, byte [esi]
insd dword es:[edi], dx
in eax, 0xa6
cmc
cli
pop edi
mov es, word [edi]
jge 0x4098bb
ror dword [eax - 0x3f], 1
push ecx
popfd
outsd dx, dword gs:[esi]
sub al, 0xbd
cmp byte [edi + eax*8 + 0x1c], 0xa3
jnp 0x40982d
dec ebx
ret 0xe17a
add edi, dword [edi + 0x2696805a]
invalid

Function at 0x40e643
Capabilities:
Encode data using xor

Disassembly:
ljmp 0x77ec:0xca9d6b9f
fnstenv [esi - 0x468e8efe]
adc eax, 0xcd97b142
loop 0x40e5a6
cld
jno 0x40e669
aas
mov dh, 0xf1
insb byte es:[edi], dx
salc
xor dword [edi], ebp
dec esp
popal
jae 0x40e5fc
lcall 0xf396, 0x4e43c694
and eax, 0xd129e66b
insb byte es:[edi], dx
mov word [ecx], gs
ror byte [ebp - 0x26], 1
aad 0xc9
sahf
int3
inc edi
or byte [edx - 0x42505c54], 0xd2
pop ds
and byte [ecx - 0x54], al
imul esi, dword ss:[eax + eax + 0x68], 0xeab64b
inc eax
jb 0x40e65b
call edx
invalid
sar dh, cl
imul esi, ecx, 0x54
jno 0x40e6c6
pop esi
inc ecx
push eax
js 0x40e5ea
jne 0x40e6d2
pop ss
and byte [edi], ah
xlatb
enter 0x48d2, 0x51
xchg esi, eax
sub dh, 0x56
xchg esp, eax
jge 0x40e6a2
shl bl, cl
pop edi
nop
in al, 0x81
adc cl, byte [ebx - 0x63]
ret
loope fcn.0040e643
mul byte [esi - 5]
sti
and al, byte [esi - 0x4e]
jno 0x40e6c7
jnp 0x40e69f
push edx
mov bl, 0x71
sar byte [eax + 0x52], cl
int3
push ds
inc ebx
rcpps xmm7, xmm1
and al, 0x37
aaa
aam 0xbb
add cl, dh
xlatb
xor bl, byte [eax + 0x22]
jb 0x40e6c1
add dword [ecx + edi], ebx
leave
mov esp, 0xd21ae33e
cmp byte [esi], cl
jne 0x40e6e0
sub ebp, dword [ecx]
mov ah, 0x32
cli
add ecx, esp
fnstcw word [eax - 0x5cb3c822]
sub dword [edx + esi - 0x261efe06], esi
mov eax, 0xa34c37de
add eax, 0xe3c12878
sbb bh, ah
inc edi
pop dword [esi + 0x57]
les esi, [edi]
movsb byte es:[edi], byte es:[esi]
sbb byte [edx], bl
clc
pop esi
test al, 0x53
pop esi
invalid
Function at 0x438d79
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x78a98988
cld
inc ebp
out dx, eax
movsd dword es:[edi], dword [esi]
aad 0xd7
inc ebp
inc ebx
and al, 0x6f
dec eax
popal
sbb eax, 0x67d618a5
das
std
mov dh, 0xfe
mov byte [0xa97b7adb], al
and al, 0x27
insd dword es:[edi], dx
in eax, dx
adc dword [eax], eax
aad 0xf5
sub al, 0xad
sbb al, byte [edx + 0x5e5cdea8]
sub al, 0xf6
and ecx, ebx
xor byte [ecx - 0x2f], 0x7e
mov dl, 0x2c
enter 0xfffffffffffff9da, 0x58
clc
rol esi, 0x39
wait
mov esi, 0x59b00eb0
xor byte [ecx], dh
imul esi, dword [ebx], 0x56bdbb1f
push 0xffffffffffffff92
mul byte [edx - 0x5927d5a8]
rcr byte [esi + ebp], 1
loope 0x438dac
retf
test byte [ecx + 0x533b4e24], 0x1a
jns 0x438ddd
mov ebp, 0xa3de7ada
sub dword [edx - 0x597744a6], ebx
inc ecx
sub byte [esi - 0x7bff2113], ah
pop ebx
mov eax, 0x72e301af
dec ecx
push esp
mov byte [ebp + 0x3a], dh
pop edx
aas
or edx, 0xdaf97ac8
imul dword [ecx - 0x573b8c1f]
das
test al, 0xbe
imul esi, dword [edi - 0x4403cebd], 0xfffffffd
mov ebx, 0xb9cb7acc
salc
push ds
sbb bl, byte [ecx - 0x8885abe]
stc
mov esi, 0xf0026b79
movsb byte es:[edi], byte [esi]
push esi
test byte [edi + 0x3473cf72], ah
sal edx, 0x9f
in al, 0x4d
lodsb al, byte [esi]
invalid

Function at 0x45977a
Capabilities:
Encode data using xor

Disassembly:
push ebx
pop ecx
int3
jo 0x459725
pop ebx
adc ah, bh
add eax, 0xde29a321
bound esi, qword [esi]
popfd
stc
cmp byte [ebp - 0xb], bl
add al, 0x1d
or dl, byte [ebx - 0x434da2d9]
and al, 0x62
cmc
popal
inc esi
jb 0x459727
cdq
jle 0x459811
daa
mov ch, 0x53
salc
push cs
pop edi
insb byte es:[edi], dx
call 0xdc0f5297
adc eax, 0xca265847
cmp dword [edx], 0x19
in al, dx
ret 0x3912
inc edi
pop eax
retf 0x3a83
cmp al, byte [ecx - 0x64]
cmp dword [edi - 0x4f69a55d], edi
sal dword [ecx + 0x5af1f7b3], 0x7d
push ds
shr byte [eax - 0x4c], 1
lds esi, [ecx - 0x39fbfa48]
sub bl, byte [esi - 2]
movntps xmmword [ebp + 0x30eb3a32], xmm4
mov bl, 0x78
fcom dword [edi + 0x369a37ba]
sti
fld qword [edi - 0x2cd400a4]
leave
in al, dx
invalid
jmp 0x459823
or bh, al
cdq
jb 0x459840
cmp eax, 0xa09a888e
xchg dword [esi], eax
pushfd
push edi
inc esi
shl dword [ecx], 1
in al, 0x89
jb 0x4597aa
sbb eax, 0x7b266868
sbb byte [edx], ch
test eax, 0xf610233a
idiv dword [ecx]
inc ebp
clc
and byte [edi + 0x31a1622], bl
add esi, dword [eax - 0x46]
loopne 0x4597cf
sbb byte [ebx + 0x4c69a136], 0xde
or ecx, esi
sti
test byte [esi - 0x352bdc82], 0xe8
sub byte [edx + 0x70], 0x5b
jo 0x4598b2
stosb byte es:[edi], al
xor bl, byte [edi + 0x218795eb]
xor eax, 0x40ed2a5b
in eax, 0x18
mov edi, 0x85dbfcc6
xor al, 0x51
push es
test dword [esi], 0x459df495
test dword [esi - 0x17], esp
test bh, dh
jl 0x459855
jmp 0x4597f1
aam 0x3d
mov byte [ecx], ch
xor eax, 0x337e0624
mov dword [0x3d0d735f], eax
mov esi, 0x22d68296
rdpmc
stosb byte es:[edi], al
push esi
pushfd
xchg esi, eax
stc
pop esi
push 5
sahf
dec edi
jnp 0x4598a0
cmp ecx, ebx
out dx, eax
adc bh, byte [ebx - 0x5b566a2a]
jno 0x45985a
salc
xchg ebp, eax
test eax, 0x47b471a4
inc edi
sahf
invalid
jnp 0x45989e
cmp dl, 7
scasd eax, dword es:[edi]
dec ecx
or al, dh
call 0x6a9cd56d
invalid
Function at 0x496c39
Capabilities:
Get number of processors

Disassembly:
and eax, dword [ebp - 0x4dd8adc9]
js 0x496cbe
xchg dword [edx], eax
push ss
adc al, 0xaa
pop ss
xor dword [edi], eax
out 0x65, al
push 0xffffffffffffff81
sbb dword [edi + 0x72], eax
aam 5
adc dl, byte [ecx + 0x30]
inc ebp
invalid
fisttp word [ebp + 0x3e031806]
aad 0xb0
xchg byte [eax*4 + 0x7a50a721], ah
retf 0x9565
xor bh, dl
imul eax, ebx, 0x52
cmp bh, dh
loop 0x496c82
daa
pop ds
invalid

Function at 0x49731d
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xd4144738
xchg esp, eax
wait
aam 0x6a
dec byte [edx + 0x1278e684]
cdq
cmp byte [ebx - 0x23], ah
arpl word [edx + 0x2466d216], sp
lcall 0xe658, 0xc6a4b3e5
xor al, byte [ebx + 0x78]
je 0x497324
xor dl, byte [edi + eax - 0x9670788]
xlatb
xchg edi, eax
cli
push eax
pop es
add al, 0xbb
outsb dx, byte [esi]
inc edi
aad 0x88
sub byte [edx + 0x79], cl
mul byte [eax + edx + 0x5d20f5ab]
push ss
jns 0x497350
movsb byte es:[edi], byte [esi]
adc byte [ebx + 0x165d20f5], ch
jnp 0x497358
push ss
aad 0x7a
mov ch, 0x49
inc ebp
out 0x34, eax
ror byte [eax - 0x19], 1
xor eax, 0xb492a487
test dword [eax - 0x9fab95a], ecx
outsb dx, byte [esi]
hlt

Function at 0x4aafd9
Capabilities:
Encode data using xor

Disassembly:
push eax
fisub dword [ecx + ebx*2 + 9]
stc
xor byte [ecx + ebx], dh
sbb dword [ebx + 0x30], esp
cmp edx, esp
or esi, dword [eax + 0x46]
out dx, al
fcomi st(5)
in al, 0xa0
adc byte [eax - 4], bl
mov byte [0xb88ff4d4], al
outsd dx, dword [esi]
cwde
shr ah, 0x79
invalid
hlt
les esi, [esp + eax*2 - 0x69bf470b]
mov cl, 0x65
sub dh, byte [0x6b8cb9a9]
mov byte [0xb426d9a9], al
add al, 0x23
les esp, [ebx + eax*2]
imul esp, dword [eax - 0x2f2fa493], 0x1c6af319
loop 0x4aafa5
inc esi
mov word [eax], cs
and eax, 0x54d96588
push es
or ebx, eax
and eax, 0x663014be
fmul dword [ebx + 0x38]
loopne 0x4ab086
adc eax, 0xe3efa7c6
imul ecx, dword [ecx + ebp*8 + 4], 0x5ec1507b
mov esi, 0x7674aa94
je 0x4ab013
jecxz 0x4ab082
dec esp
jmp 0xc19b2b23
std
xor cx, word fs:[esp + esi]
xor ecx, dword [esp + esi]
adc byte [ebp - 0x2d], dl
ja 0x4aafc0
sub byte [esi], dh
adc dword [eax + 0x1a], 0xcdd6ebcc
mov dword [ebx + 0x5a6e0c25], ebx
cwde
inc eax
cmp byte [esp + 0x4133b49d], cl
and al, 0x9d
mov ah, 0x33
inc ecx
push es
in eax, 0x84
in al, 0xaf
xchg esp, eax
jo 0x4ab017
mov esp, 0xaa84298a
invalid
test byte [edx + 0x998eec6], ch
pop ebp
and byte [esi - 0x72], 0x70
mov ecx, 0x60149c4a
idiv ebp
push 0x23c83458
jbe 0x4ab02c
cmp eax, ebp
inc ebx
fnsave dword [ebx]
adc dh, byte [ecx + 0x51]
cmpsb byte [esi], byte es:[edi]
dec edi
int1
cmp al, 0xea
sbb eax, 0x4079f6f3
jns 0x4ab0c4
pop eax
test byte [ecx + 0x25a003c0], dh
sti
and cl, bl
push ds
mov ah, 0x21
rol byte [ebx], 0xa0
and eax, 0x1ed920fb
sub cl, ah
cmp esi, esp
out 0x24, eax
sbb eax, 0xe5a4fb95
cld
jo 0x4ab059
sub dl, dl
test al, 0xea
cmpsb byte [esi], byte es:[edi]
fidiv dword [eax + 3]
mov eax, 0xa84c7364
dec ecx
xor ah, ch
sar byte [esi - 0x20], 0xb7
rcl dh, 0x84
mov ch, 0x99
test dword [ebx + 0x55], esi
or byte [esi - 0x48], ch
fisub word [edi]
cmc
in al, 0xa0
jne 0x4ab082
mov ebp, 0xfca48e13
adc eax, 0x4094d5bf
adc ecx, dword [esi - 0x40ea035c]
aad 0x94
inc eax
ljmp 0x8d7:0xec840474
Function at 0x4ad6f9
Capabilities:
Encode data using xor

Disassembly:
push ds
ror edi, cl
das
stc
in al, 0x66
pop edi
add byte [eax - 0x32], ah
insd dword es:[edi], dx
cmp eax, 0x982f5c79
xor eax, 0x9f7c58b4
ljmp 0xe59d
and dword [ecx], edx
xchg byte [ecx], ah
leave
push es
xchg edi, eax
pop esi
loop 0x4ad70c
add al, 0xd1
xor al, 0xfd
scasb al, byte es:[edi]
xchg ebp, eax
mov byte [0x1506662d], al
call 0x6fc1cd19
outsd dx, dword [esi]
outsd dx, dword [esi]
cmc
in al, 0x56
mov bh, byte [ebx]
rcr dword [eax], 1
cmovb esp, dword [ebp - 0x61]
inc edi
xabort 3
inc esp
jbe 0x4ad741
and ecx, dword [ebp - 0x24e23d3c]
rol byte [edi + 0x5a], 0x4c
adc al, 0x27
and al, 0x84
xchg dword [0x60821495], esi
jp 0x4ad724
loopne 0x4ad6a8
jbe 0x4ad712
sbb esi, esp
wait
adc byte [esi], 0xaa
xor esp, dword [esi + eax*8 + 0x76d411d5]
invalid
arpl word [ebx - 0x19], di
or eax, 0xb3c9163b
lahf
xor eax, 0xcd801a13
dec dword [ebp + 0x36aef8d0]
xchg edi, eax
jo 0x4ad6df
ja 0x4ad7b5
push ds
adc al, 0xee
invalid
adc ebx, esp
ljmp 0x7aa2

Function at 0x4bafed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2390
cmp edx, dword [eax]
je 0x4bb00f
add eax, 8
inc ecx
cmp eax, 0x4c2420
jl 0x4bb000
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2390]
jne 0x4bb13d
mov eax, dword [0x4c6d1c]
cmp eax, 1
je 0x4bb117
test eax, eax
jne 0x4bb040
cmp dword [0x4c22bc], 1
je 0x4bb117
cmp edx, 0xfc
je 0x4bb13d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb077
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb9d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbe60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb0ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbe60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c070c
push edi
call fcn.004bdd30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb9d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb9e0
lea eax, [ebp - 0xa0]
push 0x4c06ec
push eax
call fcn.004bb9e0
push dword [esi + 0x4c2394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb9e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdca4
add esp, 0x2c
pop edi
jmp 0x4bb13d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2394]
push 0
push eax
push dword [esi]
call fcn.004bbe60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5ee435
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7efb92cb
leave
jl 0x5ee469
scasd eax, dword es:[edi]
mov eax, 0x3a6ffbf
add byte [eax], al
xor byte [eax], al
wait
add byte [edx], dl
movsb byte es:[edi], byte [esi]
cli
push edx
dec ebp
add byte [0xb6f84a92], ch
push esi
fmul qword [ecx - 0x41]
call dword [edi + 0x6a000010]
add bl, dl
cmp edx, ecx
insd dword es:[edi], dx
in eax, 0xf4
xor al, 0
cmp dl, byte [0xfffff705]
bound eax, qword [eax]
push cs
add eax, 0x62fffff7
add byte [esi], cl
mov al, 0x47
popfd
test al, 6
xor byte [eax], al
jle 0x5ee475
invalid
Function at 0x402e8e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402eab
mov dword [ebp - 8], reloc.SHELL32.dll_SHGetPathFromIDListA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402eba
mov ebx, 0x40f0e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ecf
mov ecx, dword [0x423f98]
add ecx, eax
push ecx
call fcn.004030b3
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403081
test eax, eax
je 0x40302c
test byte [ebp + 0x17], 0x80
je 0x403015
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x40b050
mov dword [ebp - 0xc], eax
call fcn.00406005
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403077
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f1f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403081
test eax, eax
je 0x40302c
sub dword [ebp + 0x14], esi
mov dword [0x40b068], edi
mov dword [0x40b06c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b050
mov dword [0x40b070], ebx
mov dword [0x40b074], eax
call fcn.00406025
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40300d
mov esi, dword [0x40b070]
sub esi, ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test byte [0x423ff4], 1
mov edi, eax
je 0x402fc1
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f8e
cmp dword [ebp + 0x14], 0
jne 0x402fc1
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e84
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403002
cmp dword [ebp + 0x10], eax
jne 0x402fea
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403011
cmp dword [ebp - 0x10], esi
jne 0x403011
add dword [ebp - 4], esi
jmp 0x402ff6
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b070]
cmp dword [ebp - 0x14], 1
jne 0x402f42
jmp 0x403077
cmp dword [ebp + 0x14], eax
jg 0x402f12
jmp 0x403077
push 0xfffffffffffffffc
jmp 0x40302e
push 0xfffffffffffffffe
jmp 0x40302e
test edi, edi
je 0x40306c
cmp dword [ebp + 0x14], esi
jge 0x403021
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403081
test eax, eax
jne 0x403074
push 0xfffffffffffffffd
pop eax
jmp 0x40307a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40303c
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0e0
push esi
push edi
call fcn.00403081
test eax, eax
je 0x40302c
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403011
cmp esi, dword [ebp + 0x10]
jne 0x403011
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403031
jmp 0x403077
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405346
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40735c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40734c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x405397
xor eax, eax
jmp 0x4053be
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4053be
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405393
call esi
pop esi
leave
ret 4

Function at 0x4053f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422540], 0x44
push eax
xor eax, eax
push 0x422540
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405433
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4054bd
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040576c
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054f1
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x405685
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40550f
test eax, eax
je 0x405630
test byte [ebp + 0xc], 2
je 0x405630
mov esi, 0x421540
push edi
push esi
call fcn.00405b98
test ebx, ebx
je 0x40552c
push str..
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x405532
push edi
call fcn.004056d2
cmp byte [edi], 0
jne 0x405540
cmp byte [0x421540], 0x5c
jne 0x40554b
push 0x409010
push edi
call sub.KERNEL32.DLL_lstrcatA
push edi
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405626
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056b6
cmp byte [eax], 0
je 0x405591
cmp byte [ebp - 0x18], 0
je 0x405591
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055a7
mov al, byte [esi + 1]
test al, al
je 0x405605
cmp al, 0x2e
jne 0x4055a7
cmp byte [esi + 2], 0
je 0x405605
push esi
push ebx
call fcn.00405b98
test byte [ebp - 0x148], 0x10
je 0x4055cc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405605
push dword [ebp + 0xc]
push edi
call fcn.004054bd
jmp 0x405605
push edi
call fcn.00405850
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x4055fd
test byte [ebp + 0xc], 4
je 0x4055f5
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push 0
push edi
call fcn.004058e6
jmp 0x405605
inc dword [0x423fc8]
jmp 0x405605
push edi
push 0xfffffffffffffff2
call fcn.00404e84
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40556f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x405630
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405685
cmp dword [ebp - 8], esi
jne 0x405645
inc dword [0x423fc8]
jmp 0x405685
push edi
call fcn.00405e93
test eax, eax
je 0x405685
push edi
call fcn.0040568b
push edi
call fcn.00405850
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x40567d
test byte [ebp + 0xc], 4
je 0x40563d
push edi
push 0xfffffffffffffff1
call fcn.00404e84
push esi
push edi
call fcn.004058e6
jmp 0x405685
push edi
push 0xffffffffffffffe5
call fcn.00404e84
pop edi
pop esi
leave
ret 8
Function at 0x40576c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421940
push esi
call fcn.00405b98
push esi
call fcn.0040571f
mov edi, eax
test edi, edi
jne 0x40578d
xor eax, eax
jmp 0x4057df
push edi
call fcn.00405dfa
test byte [0x423f58], 0x80
je 0x4057a6
mov al, byte [edi]
test al, al
je 0x405789
cmp al, 0x5c
je 0x405789
sub edi, esi
jmp 0x4057be
call fcn.00405e93
test eax, eax
je 0x4057b8
test byte [eax], 0x10
je 0x405789
push esi
call fcn.004056d2
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x4057aa
call fcn.0040568b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405850
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 0x40586c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x40586f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x40589e
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
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x4058e2
test edi, edi
jne 0x4058a9
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058dc
Function at 0x4058e6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f28
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40590a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a43
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x4226c8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226c8
je 0x40594e
push 1
push 0
push esi
call fcn.0040586f
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a49
cmp eax, edi
jg 0x405a49
mov esi, 0x422140
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a49
cmp eax, edi
jg 0x405a49
push esi
push ebp
push str._s_s_r_n
push 0x421d40
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bba
push 4
push 0xc0000000
push esi
call fcn.0040586f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a43
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 0x405a3c
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405a3c
cmp edi, dword [esp + 0x18]
jne 0x405a3c
push str._Rename__r_n
push esi
call fcn.004057e4
test eax, eax
jne 0x405a50
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b98
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d40
push eax
call fcn.00405830
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
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 [0x423fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.004057e4
test eax, eax
je 0x405a07
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a77
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a6c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405a09