joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ed68
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004049e0
xor eax, eax
push ebp
push 0x47f06d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47f018
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0047aca0
push 0
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 0x1a8], 9
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0046a98c
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0x10]
call fcn.004045d8
push 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1a8], 9
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0046a98c
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x47ef84
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00477edc
test al, al
je 0x47ef6a
mov eax, dword [ebp - 0x1c]
call fcn.004047f8
cmp eax, 3
jl 0x47ef6a
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004788b4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x47ef6a
lea ecx, [ebp - 0x1a0]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.00478910
test eax, eax
jl 0x47ef6a
cmp dword [ebp - 0x15c], 5
jl 0x47eeaf
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x158]
cmp eax, 0x2bf20
jbe 0x47ef36
lea eax, [ebp - 0x1ac]
lea edx, [ebp - 0x149]
call fcn.0040479c
mov eax, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x18]
call fcn.0040493c
jne 0x47ef07
xor eax, eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x2ac]
mov edx, dword [ebp - 0x1c]
mov ecx, 0xff
call fcn.004047d4
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x149]
mov cl, 0xa
call fcn.00402f0c
mov dword [ebp - 0x20], 1
jmp 0x47ef1f
inc dword [ebp - 0x15c]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x1a0]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.00478ba0
jmp 0x47ef6a
mov dword [ebp - 0x20], 0xfffffffe
call sub.kernel32.dll_GetTickCount
cmp eax, dword [ebp - 0x158]
jae 0x47ef6a
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x1a0]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.00478ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef8b
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00478034
ret
Function at 0x47f2d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004049e0
xor eax, eax
push ebp
push 0x47f7f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47f7a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0xc]
call fcn.0047aca0
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 0x250], 0x2f
lea ecx, [ebp - 0x250]
lea edx, [ebp - 0x10]
call fcn.0046a98c
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 0
xor eax, eax
push ebp
push 0x47f4d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00477edc
test al, al
je 0x47f4ba
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.004788b4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x47f4ba
lea ecx, [ebp - 0x248]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478910
test eax, eax
jl 0x47f4ba
cmp dword [ebp - 0x204], 5
jl 0x47f3f4
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x200]
cmp eax, 0xea60
jbe 0x47f493
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x1f1]
call fcn.0040479c
mov eax, dword [ebp - 0x254]
mov edx, dword [ebp - 0x14]
call fcn.0040493c
jne 0x47f464
xor eax, eax
mov dword [ebp - 0x204], eax
cmp byte [ebp - 0x1e6], 0
je 0x47f42f
cmp byte [ebp - 0x168], 0
jne 0x47f446
lea esi, [ebp - 0x1fc]
lea edi, [ebp - 0xd8]
mov ecx, 0x25
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x20d], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x209], edx
mov dword [ebp - 0x18], 1
jmp 0x47f47c
inc dword [ebp - 0x204]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x248]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478ba0
jmp 0x47f4ba
mov dword [ebp - 0x18], 0xfffffffe
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x200], eax
lea ecx, [ebp - 0x248]
mov eax, dword [0x488364]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00478ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f4db
mov eax, dword [0x488364]
mov eax, dword [eax]
call fcn.00478034
ret
Function at 0x480dd4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480f4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
call fcn.00469f5c
xor eax, eax
push ebp
push 0x480f28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x480f0c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 8]
call fcn.004162dc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1c], 0
jne 0x480eff
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22d], 0
jne 0x480eff
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x11], 0
jne 0x480eff
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x18]
cmp eax, 0x36ee80
jbe 0x480eff
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.0047d870
test al, al
jne 0x480eff
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x480f60
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.00408abc
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004048b8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [0x488320]
mov eax, dword [eax]
mov dx, 0x6f
call fcn.00483948
mov edx, dword [0x47b980]
mov eax, dword [ebp - 0xc]
call fcn.00405370
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 8]
call fcn.004161cc
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x480e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
call fcn.00469f74
ret
Function at 0x4814d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x4814e0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004049e0
xor eax, eax
push ebp
push 0x481725
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4816f2
call fcn.0040a250
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0xe]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xa]
call fcn.0040a208
call fcn.0040a27c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x12]
lea eax, [ebp - 0x10]
call fcn.00409f2c
lea eax, [ebp - 0x1f0]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.0040479c
mov eax, dword [ebp - 0x1f0]
call fcn.00408d74
test al, al
jne 0x481587
lea eax, [ebp - 0x1f4]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.0040479c
mov eax, dword [ebp - 0x1f4]
call fcn.00408f0c
lea eax, [ebp - 0x1f8]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.0040479c
push dword [ebp - 0x1f8]
lea edx, [ebp - 0x1fc]
movzx eax, word [ebp - 0xa]
call fcn.00408abc
push dword [ebp - 0x1fc]
push 0x481738
lea edx, [ebp - 0x200]
movzx eax, word [ebp - 0xc]
call fcn.0046ab64
push dword [ebp - 0x200]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004048b8
mov eax, dword [ebp - 0x1c]
call fcn.00408d74
test al, al
jne 0x4815f9
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004049f0
push eax
call sub.kernel32.dll_CreateDirectoryA
push dword [ebp - 0x1c]
push 0x481744
lea edx, [ebp - 0x204]
movzx eax, word [ebp - 0xa]
call fcn.00408abc
push dword [ebp - 0x204]
push 0x481738
lea edx, [ebp - 0x208]
movzx eax, word [ebp - 0xc]
call fcn.0046ab64
push dword [ebp - 0x208]
push 0x481738
lea edx, [ebp - 0x20c]
movzx eax, word [ebp - 0xe]
call fcn.0046ab64
push dword [ebp - 0x20c]
push 0x481750
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004048b8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1ec]
call fcn.00402db0
mov eax, dword [ebp - 0x20]
call fcn.00408d64
test al, al
jne 0x481688
lea eax, [ebp - 0x1ec]
call fcn.00402b40
call fcn.00402894
jmp 0x481698
lea eax, [ebp - 0x1ec]
call fcn.00402b4c
call fcn.00402894
push dword [ebp - 8]
push 0x481760
call fcn.0040a27c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.0040aedc
push dword [ebp - 0x210]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004048b8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1ec]
call fcn.00404c0c
call fcn.0040321c
call fcn.00402894
lea eax, [ebp - 0x1ec]
call fcn.00402e78
call fcn.00402894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48172c
lea eax, [ebp - 0x210]
mov edx, 9
call fcn.00404564
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404564
lea eax, [ebp - 8]
call fcn.00404540
ret
Function at 0x4015f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov eax, dword [esi]
test eax, eax
je 0x401770
mov eax, dword [edi + 4]
mov ebx, dword [esi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add ebx, eax
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x401822
mov edx, dword [esi]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
je 0x4017a0
cmp byte [edi + 0x10], 1
je 0x4016b8
mov eax, dword [esi]
test eax, eax
je 0x4016a7
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esi], 0
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401833
mov eax, dword [edi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], ebx
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40d0a3
mov dword [esp], ebp
mov dword [esp + 0x38], eax
call fcn.00406350
test eax, eax
js 0x4017c0
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00406410
test eax, eax
js 0x401800
mov dword [esp], ebp
call fcn.004085b0
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov ebx, dword [esp + 0x1c]
jmp 0x401693
lea eax, [esi + 0x68]
mov dword [esp + 4], 0x40d020
mov dword [esp], eax
call fcn.00403180
mov dword [esi], eax
mov ebx, eax
test eax, eax
jne 0x40160f
mov dword [esp], str.Cannot_open_archive_file_n
call fcn.00402040
jmp 0x4016a7
mov dword [esp], str.Could_not_read_from_file_n
call fcn.00402040
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_free
jmp 0x4016a7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00402040
mov dword [esp], ebx
call sub.msvcrt.dll_free
add edi, 0x12
mov dword [esp], str.Error_decompressing__s_n
xor ebx, ebx
mov dword [esp + 4], edi
call fcn.00402040
jmp 0x4016a7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00402040
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4017e0
mov dword [esp], str.Could_not_allocate_read_buffer_n
call fcn.00402040
jmp 0x4016a7
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00402040
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4017e0
Function at 0x401850
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.004015f0
mov dword [esp], ebx
mov esi, eax
call fcn.00404e10
cmp eax, 0xffffffff
je 0x4018d9
lea ebp, [edi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004050a0
mov ebx, eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
mov edi, eax
test ebx, ebx
je 0x401907
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4018c7
test edi, edi
jne 0x4018e8
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Failed_to_write_all_bytes_for__s_n
mov dword [esp], str.fwrite
call fcn.00402090
mov eax, 0xffffffff
jmp 0x4018d9
mov dword [esp + 8], ebp
mov dword [esp + 4], str._s_could_not_be_extracted__n
mov dword [esp], str.fopen
call fcn.00402090
mov eax, 0xffffffff
jmp 0x4018d9
Function at 0x404990
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040b420
sub esp, eax
mov eax, dword [esp + 0x4020]
mov dword [esp + 8], 0
lea ebx, [esp + 0x10]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405a10
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x4049f0
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00405760
test eax, eax
je 0x4049dc
cmp byte [eax], 0
je 0x4049dc
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x404ab0
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405a10
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
Function at 0x404b00
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov eax, 0x401c
push edi
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov eax, dword [esp + 0x4030]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405a10
mov esi, eax
test eax, eax
je 0x404c40
lea edi, [esp + 0x10]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
test ebx, ebx
je 0x404c20
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__wfullpath]
mov esi, eax
test eax, eax
je 0x404c4e
lea ebp, [esp + 0x2010]
xor eax, eax
mov ecx, 0x800
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_wcschr
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test eax, eax
je 0x404c02
lea esi, [esi]
nop
mov eax, ebx
mov dword [esp + 4], esi
add ebx, 2
sub eax, esi
mov dword [esp], ebp
sar eax, 1
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_wcsncpy
mov dword [esp + 4], 0
mov dword [esp], ebp
call edi
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_wcschr
mov ebx, eax
test eax, eax
jne 0x404bc0
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 8
add esp, 0x401c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor esi, esi
call fcn.00402040
add esp, 0x401c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402040
jmp 0x404c12
mov dword [esp], str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402040
jmp 0x404c12
Function at 0x404c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x204c
push edi
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov ecx, dword [esp + 0x2064]
test ecx, ecx
je 0x404cc7
mov dword [esp], 0x40e687
call fcn.00404990
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2064]
mov dword [esp], eax
call fcn.00404b00
mov ebx, eax
test eax, eax
je 0x404d7c
mov dword [esp + 4], eax
mov dword [esp], 0x40e68c
call dword [sym.imp.msvcrt.dll__wputenv_s]
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x404d90
lea edi, [esp + 0x40]
mov dword [esp], 0x1000
mov ebx, 5
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
call sub.msvcrt.dll__getpid
lea esi, [esp + 0x20]
mov dword [esp + 8], str._MEI_d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00404800
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wtempnam]
mov dword [esp], eax
mov ebp, eax
call fcn.00405d40
test eax, eax
je 0x404da0
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x404d09
mov eax, dword [esp + 0x2064]
test eax, eax
je 0x404d7c
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404d70
mov dword [esp + 4], edi
xor ebx, ebx
mov dword [esp], 0x40e687
call fcn.00404a40
mov dword [esp], edi
call sub.msvcrt.dll_free
add esp, 0x204c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40e687
call fcn.00404ab0
add esp, 0x204c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor ebx, ebx
call fcn.00402040
jmp 0x404d5e
mov eax, dword [esp + 0x2060]
mov dword [esp + 4], ebp
mov ebx, 1
mov dword [esp + 8], 0x1000
mov dword [esp], eax
call fcn.00405760
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x2064]
test edx, edx
je 0x404d5e
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404df8
mov dword [esp + 4], edi
mov dword [esp], 0x40e687
call fcn.00404a40
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x404d5e
mov dword [esp], 0x40e687
call fcn.00404ab0
jmp 0x404d5e
Function at 0x404e80
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x445c
push edi
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebx, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.00405a10
lea eax, [esp + 0x244e]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov ebp, eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x404eee
cmp ax, 0x5c
jne 0x404f90
mov dword [esp + 4], 0x40e714
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
lea eax, [esp + 0x230]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__wfindfirst]
mov dword [esp + 0x22c], eax
cmp eax, 0xffffffff
jne 0x404f40
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x87
mov edi, esp
lea esi, [esp + 0x230]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, ebp
call fcn.00404fb0
lea eax, [esp + 0x230]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x404f40
mov eax, dword [esp + 0x22c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
jmp 0x404f1e
mov dword [esp + 4], 0x40e710
add ebp, 1
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
jmp 0x404eee

Function at 0x404fb0
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040b420
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea esi, [esp + 0x1044]
mov dword [esp + 4], 0x40e718
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x404ff0
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x40e71c
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x404fe2
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
je 0x405050
mov dword [esp + 4], ebx
lea ebx, [esp + 0x1f]
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
call fcn.00405760
mov dword [esp], ebx
call fcn.00404e80
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov esi, dword [sym.imp.msvcrt.dll__wremove]
call esi
test eax, eax
je 0x404fe2
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call esi
jmp 0x404fe2
Function at 0x4052a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.0040b420
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x40e758
mov dword [esp], eax
call fcn.00403180
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.004050a0
mov edi, eax
test ebx, ebx
je 0x4053b8
test eax, eax
je 0x4053ac
lea esi, [esp + 0x10]
lea esi, [esi]
nop
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4053a8
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x405350
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405300
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x405385
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x405378
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405300
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x405385
test ebx, ebx
je 0x4053b8
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
test edi, edi
jne 0x40538d
jmp 0x405395