joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4d1d
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]
push dword [ebp + 0xc]
push ebx
call fcn.004c4ec0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c4e95
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c4e95
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c4e44
jg 0x4c4d76
test eax, eax
je 0x4c4e3a
push 1
push 0x1000
call fcn.004b62c4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c4d9c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4c4e31
push 0x8000
push ebx
call fcn.004ad6b0
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c4dc8
jg 0x4c4dc3
cmp ecx, 0x1000
jb 0x4c4dc8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004bb946
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c4e0d
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 0x4c4dc3
jl 0x4c4df4
test ecx, ecx
jne 0x4c4db5
push dword [ebp - 0xc]
push ebx
call fcn.004ad6b0
push esi
call fcn.004b4716
add esp, 0xc
xor edi, edi
jmp 0x4c4ea6
cmp byte [edi + 0x24], 0
je 0x4c4e24
cmp dword [edi + 0x20], 5
jne 0x4c4e24
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c4e2f
mov edi, dword [edi + 0x18]
jmp 0x4c4e31
xor edi, edi
push esi
call fcn.004b4716
pop ecx
jmp 0x4c4ea6
test ecx, ecx
jg 0x4c4e06
jl 0x4c4e44
test eax, eax
jae 0x4c4e06
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c30c0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c4e67
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c4e06
jmp 0x4c4e9e
push ebx
call fcn.004bab50
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c4e06
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4c4ea6
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4c4ea3
mov edi, dword [edi + 0x18]
jmp 0x4c4ea6
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c30c0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bc224
Capabilities:
Encode data using xor

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x3c
adc dword [ebp - 0x24], 0xfffffffd
lea ebx, [0x4be0f8]
push ecx
mov ecx, esp
push ecx
push 0x40
mov eax, 0xa1c
push eax
push 0x4be218
mov edx, 0x65fd65b9
add edx, 0x9a4e6a67
push dword [edx]
mov edx, str.unipla_.dll
pop dword [edx]
call dword [edx]
add esp, 4
xor edi, edi
sub edi, 0x4be218
neg edi
mov dword [ebx - 0x28], edi
mov eax, edi
xor esi, esi
xor esi, 0x4bd5ed
mov edi, 0x61c
mov edx, dword [esi]
add esi, 4
push edx
pop dword [eax]
sub ecx, 0xce42be39
add dword [eax], 0x7ad3ea56
xor dword [eax], 0xc5da43d2
add eax, 4
sub edi, 4
cmp edi, 0
jne 0x4bc27e
mov ecx, 0
push ecx
call sub.KERNEL32.dll_CloseHandle
add esp, 0x3c
pop ebp
ret 8
Function at 0x4040f3
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x43ac98], 0x400
push edi
jne 0x40414c
push esi
call fcn.00404519
pop ecx
push esi
push esi
call fcn.00404912
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403b07
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ae4
fstp st(0)
push esi
call fcn.00404c22
pop ecx
push esi
push esi
call fcn.004045a7
pop ecx
pop ecx
mov eax, dword [0x430be4]
mov dword [0x43ac98], eax
mov eax, dword [0x430bbc]
mov dword [0x43ac9c], eax
call fcn.00403e12
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x4041bb
cmp dword [esp + 0x18], 0x785074d5
jne 0x4041c9
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x40416e
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403868
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x4041fa
cmp dword [esp + 0x18], 0x785074d5
jne 0x404203
inc edi
cmp edi, 0x11915
jl 0x4041cb
mov eax, dword [0x439be8]
mov dword [0x43a22c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a118]
jne 0x40559a
repz ret
jmp fcn.0040a9c2
Function at 0x40a6e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040833e
and dword [ebp - 4], 0
cmp dword [0x43149c], 0
mov ebx, eax
jne 0x40a796
push 0x4023f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a847
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023ec
push edi
call esi
test eax, eax
je 0x40a847
push eax
call fcn.004082cc
mov dword [esp], 0x4023dc
push edi
mov dword [0x43149c], eax
call esi
push eax
call fcn.004082cc
mov dword [esp], 0x4023c8
push edi
mov dword [0x4314a0], eax
call esi
push eax
call fcn.004082cc
mov dword [esp], 0x4023ac
push edi
mov dword [0x4314a4], eax
call esi
push eax
call fcn.004082cc
pop ecx
mov dword [0x4314ac], eax
test eax, eax
je 0x40a796
push 0x402394
push edi
call esi
push eax
call fcn.004082cc
pop ecx
mov dword [0x4314a8], eax
mov eax, dword [0x4314a8]
cmp eax, ebx
je 0x40a7ee
cmp dword [0x4314ac], ebx
je 0x40a7ee
push eax
call fcn.00408347
push dword [0x4314ac]
mov esi, eax
call fcn.00408347
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7ee
test edi, edi
je 0x40a7ee
call esi
test eax, eax
je 0x40a7e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7e5
test byte [ebp - 0xc], 1
jne 0x40a7ee
or dword [ebp + 0x10], 0x200000
jmp 0x40a827
mov eax, dword [0x4314a0]
cmp eax, ebx
je 0x40a827
push eax
call fcn.00408347
pop ecx
test eax, eax
je 0x40a827
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a827
mov eax, dword [0x4314a4]
cmp eax, ebx
je 0x40a827
push eax
call fcn.00408347
pop ecx
test eax, eax
je 0x40a827
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43149c]
call fcn.00408347
pop ecx
test eax, eax
je 0x40a847
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a849
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
push 8
mov edx, esi
pop ebx
test dl, 1
je 0x40101d
shr edx, 1
xor edx, 0xedb88320
jmp 0x40101f
shr edx, 1
dec ebx
jne 0x40100e
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x401009
pop edi
pop esi
pop ebx
ret

Function at 0x401006
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
mov eax, ecx
push edi
xor esi, esi
mov edi, eax
push 8
mov edx, esi
pop ebx
test dl, 1
je 0x40101d
shr edx, 1
xor edx, 0xedb88320
jmp 0x40101f
shr edx, 1
dec ebx
jne 0x40100e
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x401009
pop edi
pop esi
pop ebx
ret

Function at 0x401034
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 8
push ebx
push esi
push edi
mov esi, 0xff
jb 0x401100
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
shr eax, 3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx]
mov edi, eax
sub dword [ebp + 0xc], 8
and edi, esi
xor edi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx + edi*4]
xor eax, ebx
inc edx
mov edi, eax
movzx ebx, byte [edx]
and edi, esi
xor edi, ebx
movzx ebx, byte [edx + 1]
mov edi, dword [ecx + edi*4]
shr eax, 8
xor edi, eax
inc edx
mov eax, edi
and eax, esi
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [ecx + eax*4]
shr edi, 8
xor eax, edi
inc edx
mov edi, eax
and edi, esi
xor edi, ebx
movzx ebx, byte [edx + 1]
mov edi, dword [ecx + edi*4]
shr eax, 8
xor edi, eax
inc edx
mov eax, edi
and eax, esi
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [ecx + eax*4]
shr edi, 8
xor eax, edi
inc edx
mov edi, eax
and edi, esi
xor edi, ebx
movzx ebx, byte [edx + 1]
mov edi, dword [ecx + edi*4]
shr eax, 8
xor edi, eax
inc edx
mov eax, edi
and eax, esi
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [ecx + eax*4]
shr edi, 8
xor eax, edi
inc edx
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [ecx + edi*4]
xor eax, edi
inc edx
dec dword [ebp - 4]
jne 0x401059
jmp 0x401106
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x401123
movzx ebx, byte [edx]
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [ecx + edi*4]
xor eax, edi
inc edx
dec dword [ebp + 0xc]
jne 0x40110c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4011a9
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call fcn.00404410
pop ecx
xor ebx, ebx
pop ecx
push ebx
push 0x8000000
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401226
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.004043e0
pop ecx
cmp eax, ebx
pop ecx
je 0x401222
mov byte [eax], bl
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4011c6
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00404410
pop ecx
pop ecx
jmp 0x4011c6
xor eax, eax
jmp 0x40127e
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jbe 0x40126e
mov esi, 0x10000
cmp edi, esi
jae 0x40123a
mov esi, edi
lea eax, [ebp - 8]
push ebx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401271
cmp dword [ebp - 8], esi
jne 0x401271
push dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 8], 1
call fcn.0040115b
sub edi, esi
add dword [ebp + 0xc], esi
jmp 0x40122b
mov ebx, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401b5e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
mov dword [0x8d3934], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040fc4b
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
test eax, eax
jne 0x401b9d
push 0x10
push dword [0x8d00b8]
push str.AfxWinInit_failed_
push edi
call ebx
mov esi, 0x8d3830
push esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x401bbf
push str._temp_
push esi
call fcn.00404410
pop ecx
pop ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00404670
add eax, esi
pop ecx
cmp byte [eax - 1], 0x5c
je 0x401bda
mov byte [eax], 0x5c
inc eax
push str.Nero.50_
push eax
call fcn.00404410
push esi
call fcn.00401579
lea eax, [ebp - 0x253]
push esi
push eax
mov byte [ebp - 0x254], 0x22
call fcn.00404410
lea eax, [ebp - 0x254]
push eax
call fcn.00404670
add esp, 0x18
lea eax, [ebp + eax - 0x254]
mov dword [ebp + 0x14], eax
push edi
push 0x4019a4
push edi
push 0x67
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x8d3938], edi
jne 0x401c64
lea eax, [ebp - 0x354]
push 0x100
push eax
push 5
push dword [0x8d3934]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0x354]
push dword [0x8d00b8]
push eax
push edi
call ebx
cmp dword [0x8d3938], edi
jle 0x401cbe
push 0x44
lea eax, [ebp - 0x44]
pop ebx
push ebx
push edi
push eax
call fcn.00403f80
push 1
mov dword [ebp - 0x44], ebx
pop eax
mov dword [ebp - 0x40], edi
push str.Setup.exe_
mov dword [ebp - 0x10], edi
push dword [ebp + 0x14]
mov word [ebp - 0x12], di
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
call fcn.00404410
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push edi
push 0x4000000
push edi
push edi
lea eax, [ebp - 0x254]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x408579
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x8d3320
cmp edx, dword [eax]
je 0x40859b
add eax, 8
inc ecx
cmp eax, 0x8d33b0
jl 0x40858c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x8d3320]
jne 0x4086c9
mov eax, dword [0x8d6f74]
cmp eax, 1
je 0x4086a3
test eax, eax
jne 0x4085cc
cmp dword [0x8d2b24], 1
je 0x4086a3
cmp edx, 0xfc
je 0x4086c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408603
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404670
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408646
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404670
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x8ccbf0
push edi
call fcn.004046f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404420
lea eax, [ebp - 0xa0]
push 0x8ccbd0
push eax
call fcn.00404420
push dword [esi + 0x8d3324]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409c77
add esp, 0x2c
pop edi
jmp 0x4086c9
lea eax, [ebp + 8]
lea esi, [esi + 0x8d3324]
push 0
push eax
push dword [esi]
call fcn.00404670
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 0x20001423
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.200013ad
test eax, eax
jne 0x20001440
push 1
call fcn.200033d7
cmp dword [ebp - 0x10], 0
je 0x20001521
push ebx
push edi
push 0x11
lea edi, [esi + 0xd468]
pop ebx
call fcn.20001000
dec ebx
mov ecx, dword [edi]
lea eax, [eax + ecx*2]
mov dword [edi], eax
jne 0x20001455
mov ecx, esi
call fcn.2000102c
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
lea edi, [esi + 0x10]
mov ecx, 0x3f1
mov eax, 0x20202020
rep stosd dword es:[edi], eax
mov ebx, 0xfc4
jbe 0x2000151f
mov edi, 0xfff
mov eax, esi
call fcn.20001144
cmp eax, 0x100
mov dword [ebp - 8], eax
jge 0x200014b9
push eax
push dword [esi + 8]
call dword [esi + 0xc]
mov al, byte [ebp - 8]
mov byte [esi + ebx + 0x10], al
inc ebx
and ebx, edi
inc dword [ebp - 4]
jmp 0x20001513
mov eax, esi
call fcn.2000127f
and dword [ebp - 0xc], 0
mov ecx, eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp - 8]
dec eax
add ecx, 0xffffff03
and eax, edi
test ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jle 0x20001513
add dword [ebp - 4], ecx
jmp 0x200014e8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, eax
and ecx, edi
movzx eax, byte [ecx + esi + 0x10]
push eax
push dword [esi + 8]
mov dword [ebp - 8], eax
call dword [esi + 0xc]
mov al, byte [ebp - 8]
mov byte [esi + ebx + 0x10], al
inc ebx
and ebx, edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x200014e5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x20001492
pop edi
pop ebx
pop esi
leave
ret

Function at 0x20001591
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
inc edi
call fcn.20001575
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.2000358f
lea eax, [ebp - 0x208]
push 0x2000b234
push eax
call fcn.20003565
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2000167d
lea eax, [ebp - 0x42c]
push 0x2000b230
push eax
call fcn.20003533
test eax, eax
pop ecx
pop ecx
je 0x20001658
lea eax, [ebp - 0x42c]
push 0x2000b228
push eax
call fcn.20003533
test eax, eax
pop ecx
pop ecx
je 0x20001658
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.2000358f
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.20003565
add esp, 0x10
test byte [ebp - 0x458], 0x10
lea eax, [ebp - 0x208]
push eax
je 0x20001650
call fcn.20001591
jmp 0x20001656
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
je 0x20001672
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x200015e8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x20001686
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x2000171f
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 4], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x2000184b
push ebx
push esi
lea esi, [ebp - 0x414]
call fcn.20001575
mov eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.2000358f
lea eax, [ebp - 0x20c]
push str.TempFolder.
push eax
call fcn.20003565
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x20001849
test byte [ebp - 0x664], 0x10
je 0x2000182c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.2000358f
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.20003565
add esp, 0x10
lea esi, [ebp - 0x20c]
call fcn.20001575
mov eax, esi
push eax
lea eax, [ebp - 0x86c]
push eax
call fcn.2000358f
lea eax, [ebp - 0x86c]
push str.Adobe.lok
push eax
call fcn.20003565
add esp, 0x10
push 0
push 1
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x2000182c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
push eax
call fcn.20001591
or dword [ebp - 4], eax
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x20001795
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x20001850
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x2000197e
lea esi, [ebp - 0x20c]
call fcn.20001575
mov eax, esi
push str.TempFolder
push eax
call fcn.20003565
mov eax, esi
push str..aaa
push eax
call fcn.20003565
mov eax, esi
push eax
call fcn.2000351d
add esp, 0x14
mov esi, eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x20001918
lea edi, [ebp + esi*2 - 0x20e]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, word [edi]
cmp eax, 0x7a
jge 0x200018da
inc eax
mov word [edi], ax
jmp 0x20001906
lea eax, [ebp + esi*2 - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x7a
mov word [edi], 0x61
jl 0x20001902
mov word [eax], 0x61
lea eax, [ebp + esi*2 - 0x212]
movzx ecx, word [eax]
cmp ecx, 0x7a
jge 0x2000197e
inc ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x200018c6
lea esi, [ebp - 0x20c]
call fcn.20001575
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push ebx
mov ebx, 0xfde9
push ebx
call esi
mov edi, eax
lea eax, [edi + 1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
push ecx
push ecx
push edi
push eax
push 0xffffffffffffffff
mov dword [0x2000eba0], eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push ebx
call esi
mov eax, dword [0x2000eba0]
mov byte [eax + edi], 0
push dword [0x2000eba0]
call fcn.2000168f
mov dword [ebp - 4], 1
jmp 0x20001994
mov eax, dword [0x2000eba0]
cmp eax, ebx
je 0x20001994
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x2000eba0], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20001f9b
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push 0
call esi
push 0
mov edi, eax
call esi
add eax, dword [edi + 0x3c]
xor esi, esi
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov ax, word [eax + 6]
movzx ecx, ax
test ecx, ecx
jle 0x20001fe1
add edx, 0x10
mov edi, ecx
mov eax, dword [edx]
test eax, eax
je 0x20001fdb
mov ecx, dword [edx + 4]
add ecx, eax
cmp ecx, esi
jbe 0x20001fdb
mov esi, ecx
add edx, 0x28
dec edi
jne 0x20001fca
pop edi
mov eax, esi
pop esi
ret
Function at 0x2000247f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [eax], esi
lea eax, [ebp - 0x40c]
push eax
push 0x200
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x200024b6
push 5
pop eax
jmp 0x200025c7
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.200023bd
test al, al
lea eax, [ebp - 0x20c]
je 0x200024f4
push str.proj.dll
push eax
call fcn.2000243a
mov edi, eax
cmp edi, esi
mov dword [ebx], 2
jne 0x200025b2
mov dword [ebp - 4], 6
jmp 0x200025b2
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov esi, str.proj.dll
je 0x20002565
lea eax, [ebp - 0x20c]
push eax
call fcn.20002c6a
test al, al
je 0x20002565
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2000243a
mov edi, eax
test edi, edi
je 0x20002535
mov dword [ebx], 1
jmp 0x200025b2
push str.Xtras
lea eax, [ebp - 0x20c]
push eax
call fcn.20002c50
test al, al
je 0x20002565
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2000243a
mov edi, eax
test edi, edi
je 0x20002565
mov dword [ebx], 3
jmp 0x200025b2
push 0x208
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x200025ab
push str.AdobeShockwave_11
lea eax, [ebp - 0x20c]
push eax
call fcn.20002c50
test al, al
je 0x200025ab
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.2000243a
mov edi, eax
test edi, edi
je 0x200025ab
mov dword [ebx], 4
jmp 0x200025b2
mov dword [ebp - 4], 3
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4