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

Disassembly:
daa
cwde
pop ss
lodsb al, byte [esi]
add dword [ebx + 0x2d], ebp
jg 0x43831a
lea ebp, [edx]
invalid
aaa
das
out dx, al
idiv ebp
cmc
xchg esi, eax
adc dword [ecx], ebx
mov fs, word cs:[ecx - 0x2c]
insb byte es:[edi], dx
iretd
mov ah, 0x3d
xlatb
cmc
dec ebp
adc byte gs:[ecx], ah
and dword [eax], 0x25cc187c
xor al, 0xb1
jno 0x4382ef
aad 0xf
pushal
movsb byte es:[edi], byte [esi]
fdiv qword [edi]
xchg esi, eax
or eax, 0xcb2bb813
add eax, ebp
punpcklbw mm4, dword [esp + ebx*8 + 0x130d9637]
mov eax, 0xc503cb2b
test eax, 0xe6b07641
out 0xcc, al
pop ebp
in eax, 0x3a
push eax
movsd dword es:[edi], dword [esi]
jl 0x438319
xor byte [ebx + 0x44444897], al
loop 0x4382f2
adc al, 0xdd
mov al, byte [0x4ccedeea]
cmp ah, dh
loopne 0x4382dc
xor byte [0x465ee4da], dh
pop esi
inc esi
fiadd word [ebp + 0x433568d5]
push eax
fild qword [ecx]
push edi
jbe 0x438307
push edi
and byte [ebx - 0x1e], dl
salc
inc esi
fcom qword [esi + 7]
mov cl, 0x2e
cmpsd dword [esi], dword es:[edi]
cmp byte [edx], ah
xchg edx, eax
xor dword [eax], esp
adc al, 0x48
adc eax, 0xc14853
mov dword [0xe516aaeb], eax
push ebx
mov byte [0x21eba266], al
frstor dword [0x3492bdb5]
salc
dec ebp
xlatb
and ebp, dword ds:[ebp + 0x22]
loop 0x4383a2
pop ss
nop
mov bl, 0xd4
adc eax, 0xe4eee1c3
wait
inc ecx
movsd dword es:[edi], dword [esi]
pop ecx
sub esp, esp
xor byte [ebp - 0x3b], dl
mov ebp, 0xeeee550f
or word [eax], bx
and esi, dword gs:[0xb8d8d7f8]
out dx, al
and eax, esi
sbb al, byte [edi + ebx*2]
and dword [eax], ecx
mov dword [edi + esi*2], 0xda201201
out 0xd6, al
cmp byte [edi + 0x17], dh
xchg ebx, eax
div dword [ebp + 0x65]
xor dword [esi + eax + 0x3e905735], ebp
adc al, 0xd5
mov dl, 0x8c
pop ss
pop ss
scasd eax, dword es:[edi]
cmp eax, 0xfbd52297
push eax
daa
insd dword es:[edi], dx
and ecx, dword [ebp + 0x468b6cf3]
xor eax, 0x7de615f2
add byte [edx + 0x2c673566], dh
dec esi
and ch, byte [edi + ecx*2 - 0x1f]
sub byte [esi + edx + 0x46206fc5], ah
push cs
fiadd word ss:[ecx + 0x20853e81]
sub dword [0xcd6056c5], 0x62a0723
lodsd eax, dword [esi]
cmp dl, ch
xlatb
mov cl, 0x7a
aas
mov bh, 0xf4
push esi
loope 0x4383de
sub esi, dword [esi - 0x33]
mov dword [0xc6a385b5], eax
mov cl, dl
and al, 0x19
mov esi, 0x743672d8
push ecx
pop esi
dec esp
mov eax, dword [0x4c6aad56]
ficom word [ebx + esi]
adc ebx, edi
scasb al, byte es:[edi]
inc ecx
les eax, [esi - 0x6b]
fstp dword [edx + 0x68]
dec ebp
cmp byte [ebp - 0x48094b28], al
push edx
movsd dword es:[edi], dword [esi]
or dword ds:[edx + 0x3b2010be], ebp
xlatb
mov fs, word [ebp - 0x5f12ef7b]
salc
xchg ebp, eax
das
push edi
xor eax, 0x27de0133
sar dword [ecx + 0x32], 1
fistp dword [eax - 1]
arpl word [ebx - 0x3fe6d029], bx
sub byte [edx], cl
xchg ebx, eax
mov ch, 0x47
cmc
mov bh, 0x9e
inc ecx
xchg dword [edi + 0x6cd6dd21], eax
movsd dword es:[edi], dword [esi]
shr byte [esi], cl
rcl cl, 1
xchg dl, bl
lodsb al, byte [esi]
movsb byte es:[edi], byte [esi]
sbb byte [edx - 0x1e], 0x1d
adc byte [edi], bl
js 0x438491
or eax, 0xfc6c3e95
xchg ebp, eax
insb byte es:[edi], dx
cld
invalid
Function at 0x4b93ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c13e8
cmp edx, dword [eax]
je 0x4b940f
add eax, 8
inc ecx
cmp eax, 0x4c1478
jl 0x4b9400
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c13e8]
jne 0x4b953d
mov eax, dword [0x4c5d6c]
cmp eax, 1
je 0x4b9517
test eax, eax
jne 0x4b9440
cmp dword [0x4c1314], 1
je 0x4b9517
cmp edx, 0xfc
je 0x4b953d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b9477
lea eax, [ebp - 0x1a4]
push 0x4be878
push eax
call fcn.004b9dd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b94ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be874
push edi
call fcn.004bc130
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4be858
push eax
call fcn.004b9dd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9de0
lea eax, [ebp - 0xa0]
push 0x4be854
push eax
call fcn.004b9de0
push dword [esi + 0x4c13ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9de0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4be82c
push eax
call fcn.004bc0a4
add esp, 0x2c
pop edi
jmp 0x4b953d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c13ec]
push 0
push eax
push dword [esi]
call fcn.004ba260
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 0x404b90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push 7
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.k_usrok
mov byte [ecx], 0
call fcn.00406180
call fcn.0044b480
add esp, 0x18
mov byte [esi + 0x3b1], 1
mov byte [esi + 0x3bc], 1
push 0
push 0
push 0x4c9
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404c00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push 0xa
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.k_usrclose
mov byte [ecx], 0
call fcn.00406180
call fcn.0044b480
mov al, byte [esi + 0x3b0]
add esp, 0x18
mov byte [esi + 0x3b1], al
mov byte [esi + 0x3bc], 1
push 0
push 0
push 0x4c9
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404f70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push dword [ecx + 0x248]
mov byte [ecx + 0x3bc], 1
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0x18
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.k_unknowclose
mov byte [ecx], 0
call fcn.00406180
call fcn.0044b480
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x409200
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a8]
cmp dword [eax + 0x174], 3
jne 0x409235
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x469
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0xf060
push 0x112
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x409a20
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x469
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x409a50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push 4
push str.EULA
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00405d60
mov byte [ebp - 4], 1
call fcn.00450b50
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00450490
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x409ad9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407050
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409b10
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x40b0a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cc32
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5cb074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.0049cd6d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40b134
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401b20
push eax
push esi
call fcn.0049d0b5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x417a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x417a67
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x417a62
mov eax, dword [ebx]
jmp 0x417a64
mov eax, ebx
mov byte [eax], 0
call fcn.0041beb0
test al, al
je 0x417a79
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00419e40
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x417a70
push 0x10000
call fcn.0049fd23
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.00531371
mov edi, eax
add esp, 0x10
test edi, edi
je 0x417b06
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x417adc
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.004063b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x417b1c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.00531371
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x417ac0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005303bf
add esp, 4
test eax, eax
jne 0x417b1f
mov byte [ebp - 1], 1
jmp 0x417b23
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00530647
add esp, 4
test esi, esi
je 0x417b39
push esi
call fcn.0049faee
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x418a5f
cmp byte [ebx + 0x3d], 0
je 0x418a5f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41896d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.004125c0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x18]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4189de
sub eax, 1
je 0x4189e2
sub eax, 2
je 0x418a40
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.004054f0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x418a21
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00530c0b
add esp, 0x10
cmp esi, eax
jne 0x4189bf
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x418a40
test esi, esi
jne 0x418982
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00413e70
jmp 0x41897a
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.004054f0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x4190b0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004273e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004274f0
cmp dword [ebp - 0x10], ebx
je 0x4191fb
nop
cmp byte [ebp - 0x2e4], 0
jne 0x41913a
test bl, 1
je 0x419122
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.004214b0
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.005296a0
add esp, 0xc
jmp 0x419153
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
test bl, 1
je 0x419176
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x4191a9
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004190b0
add esp, 4
test al, al
je 0x419256
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4191bb
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x419256
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004274f0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x4191e3
push 0xffffffffffffffff
push 0
push eax
call fcn.00405e60
lea ecx, [ebp - 0x38]
call fcn.00405310
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x419100
lea ecx, [ebp - 0x20]
call fcn.00405310
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x419217
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.00427900
push 1
push dword [ebp - 0x54]
call fcn.00424150
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0
call fcn.00405310
lea ecx, [ebp - 0x8c]
call fcn.00405310
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00405310
xor bl, bl
jmp 0x419205
Function at 0x419310
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41934c
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x419496
lea eax, [esp + 0x14]
push eax
call fcn.0041b810
push 2
push 0
push 0x5b5db0
mov ecx, eax
call fcn.0041a3a0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00405310
cmp esi, 0xffffffff
je 0x4193d0
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041b810
mov esi, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0041b6d0
mov edx, esi
mov ecx, eax
call fcn.004190b0
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00405310
lea ecx, [esp + 0x2c]
call fcn.00405310
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4193da
mov eax, dword [edi]
jmp 0x4193dc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x419338
test bl, 1
je 0x419414
cmp dword [edi + 0x14], 8
jb 0x4193fd
mov ecx, dword [edi]
jmp 0x4193ff
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x419496
test bl, 0x10
jne 0x419440
cmp dword [edi + 0x14], 8
jb 0x419421
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push 0x5b5db8
lea ecx, [esp + 0x18]
call fcn.004053a0
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.004190b0
add esp, 4
lea ecx, [esp + 0x14]
test al, al
setne bl
call fcn.00405310
test bl, bl
je 0x419496
cmp dword [edi + 0x14], 8
jb 0x419477
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x419890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41989e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4198b8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4198cb
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x4198d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4199b2
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x419922
xor ecx, ecx
jmp 0x41993f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419930
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0041b0f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41995a
mov ecx, dword [eax]
jmp 0x41995c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041b0f0
lea ecx, [esp + 8]
call fcn.0041bf60
lea eax, [esp + 8]
cmp esi, eax
je 0x41998a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405e60
lea ecx, [esp + 8]
call fcn.00405310
lea ecx, [esp + 0x20]
call fcn.00405310
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x4199d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x419a7f
cmp word [esp + 0x20], 0
je 0x419a7f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x419a43
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041b0f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a50
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041b0f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00405400
lea eax, [esp + 8]
push eax
call fcn.004198d0
add esp, 4
mov ecx, esi
test al, al
je 0x419aa7
lea eax, [esp + 8]
push eax
call fcn.00405420
jmp 0x419abe
sub esp, 8
mov eax, esp
mov dword [eax], 0x5b5dbc
mov dword [eax + 4], 3
call fcn.0041b0f0
lea ecx, [esp + 8]
call fcn.00405310
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x419ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x54], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], eax
call fcn.00405400
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
nop
lea ecx, [ebp - 0x20]
call fcn.00405400
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00405e60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.00422140
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004069b0
lea ecx, [ebp - 0x50]
call fcn.00405310
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x419b90
lea ecx, [eax + 1]
cmp ecx, 0x7ffffffe
ja 0x419c93
cmp edx, ecx
jae 0x419b76
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406e70
jmp 0x419b8a
test ecx, ecx
jne 0x419b90
cmp edx, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov word [eax], cx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, 8
lea ecx, [ebp - 0x20]
mov edx, 0x5f
cmovae ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x64]
call fcn.00431160
cmp dword [ebp - 0x60], 0xffffffff
ja 0x419bb0
mov edx, dword [ebp - 0x64]
jb 0x419bcb
cmp edx, 0xffff7fff
ja 0x419bb0
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.00422140
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004069b0
lea ecx, [ebp - 0x50]
call fcn.00405310
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.0041bbc0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x419c26
push 0xffffffffffffffff
push 0
push eax
call fcn.00405e60
lea ecx, [ebp - 0x50]
call fcn.00405310
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x419c58
lea ecx, [ebp - 0x20]
call fcn.00405310
inc esi
cmp esi, 0x32
jl 0x419b10
xor bl, bl
jmp 0x419c78
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x419c6e
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00405e60
lea ecx, [ebp - 0x20]
call fcn.00405310
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.00405310
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0049ccdb
int3