joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x410008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4037ac
cmp byte [esi + 0x3d], 0
je 0x4037ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40379a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403761
sub eax, 1
je 0x403765
sub eax, 2
jne 0x40379a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403783
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40379a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040aac2
mov esp, ebp
pop ebp
ret
Function at 0x40b570
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b5af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b5af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b5af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b5af
cmp dword [ecx + 0x74], 0xe
jbe 0x40b5af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x401464
Capabilities:
Encode data using xor

Disassembly:
push 0x424504
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
popal
mov eax, dword [0x248a2ad7]
pushfd
mov ah, byte [esp + ebx*4]
dec esp
cdq
sbb dword [esi + ebp*2 - 0x76], 0x7317e5
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [edi], ah
add byte [eax], al
daa
inc esi
imul edi, dword [eax + 0x65], 0x734d6964
add byte [si + 0x65], ch
or eax, 0
dec esp
xor dword [eax], eax
or eax, dword [edx - 0x2d2e0e10]
mov ah, 0xe
inc esi
mov byte [0xa26e13ae], al
lea edx, [esi]
pop ebp
jb 0x401484
or ebx, ebp
je 0x401498
and al, byte [ebx - 0x5d]
cmp eax, 0xad57b2bb
invalid
Function at 0x401798
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4018b0
lea eax, [ebp - 0x250]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40187b
push dword [ebp + 8]
lea eax, [ebp - 0x510]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov eax, dword [ebp - 0x250]
pop ecx
mov dword [ebp - 0x308], eax
push 1
push esi
push esi
push dword [ebp - 0x234]
call fcn.00405990
mov ecx, dword [ebp - 0x230]
add eax, ecx
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x238]
adc edx, esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2e4], eax
mov eax, 0x2c0
push eax
mov dword [ebp - 0x2fc], edx
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x510]
jmp 0x40189c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
jmp 0x4018db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
leave
ret 0xc

Function at 0x4018e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401914
mov esi, dword [ebp + 0x10]
mov eax, 0x410
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
push edi
jmp 0x401936
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401945
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18e88
call fcn.004059d0
push ebx
push esi
lea ecx, [ebp - 0x18e88]
call fcn.00401acf
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18e88]
push esi
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x18c80]
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esi + 0x418]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x18a70], eax
mov eax, dword [esi + 0x41c]
push ebx
push 0x80
push 3
mov dword [ebp - 0x18a6c], eax
push ebx
push 3
lea eax, [ebp - 0x18c80]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp + 8], eax
pop eax
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp + 8]
jmp 0x401abf
mov ecx, dword [ebp - 0x18a6c]
mov eax, dword [ebp - 0x18a70]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ebx
push ecx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x18a60]
push 0x18800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18a64], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x18c80]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push ebx
push ebx
push dword [ebp - 0x23c]
call fcn.00405990
mov esi, eax
mov eax, dword [ebp - 0x238]
mov ecx, edx
xor edx, edx
add esi, eax
mov eax, dword [ebp - 0x18a64]
adc ecx, edx
mov dword [ebp - 0x18a78], esi
cdq
add eax, dword [ebp - 0x18a70]
mov dword [ebp - 0x18a74], ecx
adc edx, dword [ebp - 0x18a6c]
cmp edx, ecx
jl 0x401a9b
jg 0x401a93
cmp eax, esi
jb 0x401a9b
mov byte [ebp - 0x18a68], bl
jmp 0x401aa2
mov byte [ebp - 0x18a68], 1
mov esi, dword [ebp + 0x10]
mov eax, 0x18c30
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x18e88]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
pop esi
pop ebx
leave
ret 0xc
Function at 0x402949
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c48
call fcn.004059d0
push ebx
xor ebx, ebx
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x240]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x448]
mov word [ebp - 0x14], 0x2e
push eax
mov word [ebp - 0x12], 0x65
mov word [ebp - 0x10], 0x78
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], bx
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x448]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
cmp esi, ebx
je 0x402ac7
push edi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll__wcslwr
pop ecx
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402aaf
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp + 0xc]
je 0x402aaf
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x402aaf
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1c44]
mov dword [ebp - 0x1c48], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0xc46]
mov word [ebp - 0xc48], bx
mov dword [ebp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c48]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test dword [ebp + 0x10], 0xfffffffc
mov dword [ebp - 4], ebx
jbe 0x402aa8
lea edi, [ebp - 0x1c48]
lea eax, [ebp - 0xc48]
push 0x800
push eax
push dword [edi]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0xc48]
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402a97
push 4
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
shr eax, 2
add edi, 4
cmp dword [ebp - 4], eax
jb 0x402a65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4029c5
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x402ca5
Capabilities:
Enumerate files on windows
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x80
push esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x402d36
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 4]
mov dword [ebp + 8], eax
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push 2
push esi
push 3
push 0x40000000
push dword [ebp + 0xc]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402d3d
push dword [ebp + 8]
call fcn.00405932
pop ecx
xor eax, eax
jmp 0x402e64
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call fcn.00405932
mov edi, 0x208
lea eax, [ebp - 0x670]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x670]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov word [eax], si
push edi
lea eax, [ebp - 0x468]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x468]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x468]
push 0x407030
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x44
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x260]
and eax, 0x10
je 0x402e37
cmp eax, esi
je 0x402e23
lea eax, [ebp - 0x234]
push 0x40702c
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x402e23
lea eax, [ebp - 0x234]
push 0x407024
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x402e37
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402e53
jmp 0x402de6
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fcb
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.004059d0
push esi
lea eax, [ebp - 0xa2c]
push 0x208
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
lea eax, [ebp - 0x824]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x824]
push dword [ebp + 0xc]
push eax
push esi
call fcn.00402f09
add esp, 0x1c
cmp dword [ebp + 0xc], 0x23
mov word [ebp - 0x24], 0x5c
mov word [ebp - 0x22], 0x4d
mov word [ebp - 0x20], 0x6f
mov word [ebp - 0x1e], 0x7a
mov word [ebp - 0x1c], 0x69
mov word [ebp - 0x1a], 0x6c
mov word [ebp - 0x18], 0x6c
mov word [ebp - 0x16], 0x61
mov word [ebp - 0x14], si
mov word [ebp - 0x10], 0x2e
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], 0x78
mov word [ebp - 0xa], 0x65
mov word [ebp - 8], si
je 0x40308a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x824]
pop ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x824]
push 0x407020
push eax
call sub.MSVCRT.dll_wcscat
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x824]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
call sub.MSVCRT.dll_wcscmp
add esp, 0x20
test eax, eax
je 0x40317a
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403114
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00402949
add esp, 0xc
push 0x257
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x824]
push edi
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00402ca5
mov eax, dword [0x407034]
mov ecx, 0x1ff
mov dword [ebp - 0x122c], eax
xor eax, eax
lea edi, [ebp - 0x1228]
mov word [ebp - 4], 0x72
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov word [ebp - 2], si
push eax
lea eax, [ebp - 0x122c]
push eax
call sub.MSVCRT.dll_wcscat
push esi
lea eax, [ebp - 0x122c]
push esi
push eax
lea eax, [ebp - 0x824]
push eax
push esi
push esi
call fcn.00402e69
add esp, 0x28
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x403466
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13874
call fcn.004059d0
push ebx
push esi
push edi
push 0x4073b8
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscmp
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
je 0x403515
push 1
lea eax, [ebp - 0x18]
pop esi
mov dword [ebp - 0x18], 0xc
push 0x6400
push eax
push 0x4077c0
push 0x407bc4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40365d
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [0x4077c0]
mov word [ebp - 0x2c], bx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x30], 0x101
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40365d
push dword [0x4077c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403518
push 1
pop esi
push 0xd000
lea eax, [ebp - 0x1386c]
push ebx
push eax
mov dword [ebp - 0x13874], esi
mov dword [ebp - 0x13870], ebx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov byte [ebp - 1], bl
mov byte [ebp + 0xb], bl
call edi
mov esi, 0x6800
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x686c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x686c]
push esi
push eax
push dword [0x407bc4]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], 0x6400
ja 0x403599
call edi
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40359f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403560
mov byte [ebp + 0xb], 1
jmp 0x4035a3
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
jbe 0x403658
push esi
lea eax, [ebp - 0x686c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x686c]
push esi
push eax
push dword [0x407bc4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403658
cmp dword [ebp - 8], ebx
jbe 0x403658
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x686c]
push eax
call fcn.00403414
mov edi, eax
lea eax, [ebp - 0x1386c]
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp byte [ebp + 0xb], bl
mov dword [ebp - 0x13870], eax
je 0x40361a
mov dword [ebp - 0x13874], ebx
jmp 0x403629
cmp byte [ebp - 1], bl
je 0x403629
mov dword [ebp - 0x13874], 1
mov esi, dword [ebp + 0x10]
mov eax, 0xd008
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x13874]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push edi
call fcn.00405932
add esp, 0x14
jmp 0x40365d
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403cdb
Capabilities:
Create thread
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, 0x407ff0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x220]
push 0x208
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00402ad6
mov edi, 0x407ccf
push 0x408204
push edi
call sub.MSVCRT.dll_strcmp
add esp, 0x14
test eax, eax
jne 0x403d3a
push 0x407bd0
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [0x407de0]
call fcn.004026af
pop ecx
mov dword [0x407bc8], eax
mov dword [ebp - 0xc], 1
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jmp 0x403d61
mov edi, 0x407ccf
mov eax, dword [0x407ddc]
cmp esi, ebx
mov dword [ebp - 4], eax
jne 0x403e0d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403c8f
push 0x514
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
cmp eax, ebx
je 0x403d9a
mov ecx, eax
call fcn.00403c46
mov esi, eax
jmp 0x403d9c
xor esi, esi
or dword [esi + 0x108], 0xffffffff
mov dword [esi], ebx
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x403df2
dec eax
je 0x403ddb
dec eax
je 0x403dc4
dec eax
je 0x403dc1
dec eax
je 0x403dbe
dec eax
jne 0x403e0d
push edi
jmp 0x403dc9
push edi
jmp 0x403de0
push edi
jmp 0x403df7
push 0x407bd0
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x407dd8]
pop ecx
pop ecx
jmp 0x403e07
push 0x407bd0
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x407dd4]
pop ecx
pop ecx
jmp 0x403e07
push 0x407bd0
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x407dd0]
pop ecx
pop ecx
mov dword [esi + 0x104], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x4036f0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x403eb4
sub eax, 0x3ec
je 0x403ed4
dec eax
je 0x403ea0
dec eax
je 0x403e6d
dec eax
jne 0x403eb4
push esi
call fcn.00405932
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [esp], 0x407ff0
call fcn.00403256
pop ecx
mov dword [ebp - 4], ebx
jmp 0x403eb6
cmp dword [esi + 0x510], 0x104
mov dword [ebp - 4], 5
jne 0x403eb6
lea edi, [esi + 0x110]
lea eax, [esi + 4]
push edi
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [edi + 0x100]
pop ecx
pop ecx
mov dword [esi + 0x104], eax
jmp 0x403eb6
push esi
mov dword [ebp - 4], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.00405932
pop ecx
xor esi, esi
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xc], ebx
jne 0x403d5c
pop edi
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x510], 4
jne 0x403eb6
lea eax, [esi + 0x110]
push 4
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x403f02
mov dword [ebp - 4], 5
jmp 0x403eb6
imul eax, eax, 0x3c
mov dword [ebp - 4], eax
jmp 0x403eb6
Function at 0x403f0a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x408200]
push eax
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push str._s_x_d
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0x14
lea eax, [ebp - 0x410]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
leave
ret

Function at 0x403f58
Capabilities:
Check if file exists
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp dword [0x408200], 0
je 0x403fc1
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x408200]
push eax
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push str._s_x_d
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403fc1
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40447a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x408200], eax
call fcn.00403f0a
mov eax, dword [0x408200]
and eax, 0x3ff
push eax
call fcn.004032a6
mov dword [esp], 0x407bd0
call fcn.004032c0
test eax, eax
pop ecx
je 0x4044b8
call fcn.00403f58
test eax, eax
jne 0x4044bf
xor eax, eax
jmp 0x40454c
push ebx
xor ebx, ebx
cmp dword [0x407de4], ebx
push esi
je 0x4044ea
mov esi, 0x407de8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4044ea
push 5
push ebx
push ebx
push esi
push ebx
push ebx
call fcn.00402e69
add esp, 0x18
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 2]
push eax
mov byte [ebp - 2], 0x72
lea eax, [esi + 1]
mov byte [ebp - 1], bl
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40452d
cmp byte [esi], 0x2f
jne 0x404517
push 0x407ff0
call fcn.00403256
pop ecx
cmp byte [esi], 0x5c
jne 0x404521
call fcn.00403cdb
cmp byte [esi], 0x2d
jne 0x404548
call fcn.00403fc5
jmp 0x404548
push dword [0x4081f8]
push 0x407ff0
call fcn.00402fcb
pop ecx
test eax, eax
pop ecx
jne 0x404548
call fcn.00403cdb
pop esi
xor eax, eax
pop ebx
leave
ret 0x10