joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41a7ac]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c17
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c3d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c28
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401cb7
cmp dword [0x41a7bc], 0
jne 0x401cb5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41a7bc], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41a7ac]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401caa
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401cb5
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f91
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41a068], ebx
je 0x401fc4
mov eax, 0x41a068
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fc4
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41a068]
cmp dword [eax], ebx
jne 0x401fad
shl esi, 4
cmp dword [esi + 0x41a068], ebx
jne 0x401fd9
mov eax, 0x41635c
jmp 0x40214b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402089
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402080
call edi
test eax, eax
jne 0x402080
mov eax, dword [esi + 0x41a074]
test eax, eax
je 0x402075
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402072
push dword [esi + 0x41a074]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41a074], edi
jmp 0x402088
push edi
jmp 0x402083
mov eax, dword [ebp - 8]
mov dword [esi + 0x41a074], eax
jmp 0x402089
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41a074]
test eax, eax
jne 0x40214a
mov ebx, dword [esi + 0x41a06c]
lea edi, [esi + 0x41a070]
cmp dword [edi], eax
je 0x4020bf
call fcn.00401f3b
cmp eax, dword [0x417060]
jne 0x4020bf
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41a064], 0xffffffff
pop ecx
mov dword [esi + 0x41a074], eax
jne 0x40212a
and dword [0x41a064], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41a7ac]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40212a
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a064], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41a074]
push edi
push ebx
push 0
push dword [0x41a064]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41a074]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40244e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x40245e
xor eax, eax
leave
ret
test byte [0x41a7ec], 2
mov dword [ebp - 0x40], 0x40
jne 0x4024b3
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4024b3
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x4024b3
jb 0x40248f
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x4024b3
push 0x2b
call fcn.00401f91
push eax
call fcn.00407701
cmp eax, 1
pop ecx
pop ecx
je 0x4024ac
or dword [0x41a7ec], 0xffffffff
jmp 0x40245a
or dword [0x41a7ec], 2
xor eax, eax
inc eax
leave
ret

Function at 0x4027bb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004013f8
cmp dword [ebp - 4], 1
jg 0x4027d9
push 1
lea ecx, [ebp - 0xc]
call fcn.00401112
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x4027fd
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402834
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402529
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004010fe
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401349
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402b6d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004024f0
push 0x416454
lea ecx, [ebp - 0xc]
call fcn.00402541
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c49
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401310
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401410
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402541
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402c18
push 0x416450
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c2c
push 0x416448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c2c
push edi
call fcn.00402b6d
pop ecx
jmp 0x402c28
push 0
push edi
call esi
test eax, eax
je 0x402c6c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c6c
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bb3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c6c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c6c
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402c74
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402c7a
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a870], 0
je 0x402c87
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c9d
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402cbb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402cb7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b6d
pop ecx
pop esi
ret

Function at 0x402d71
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013f8
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402daf
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402529
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x402f04
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004013f8
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402529
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402529
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40302b
xor eax, eax
jmp 0x403084
test al, 0x10
je 0x40303c
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403084
mov eax, dword [0x41a7f0]
test eax, eax
jne 0x40304e
push esi
call fcn.00402fe1
pop ecx
jmp 0x403084
cmp eax, 2
jne 0x403081
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403045
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403045
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403348
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.004024f0
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403379
push esi
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x40338d
cmp ax, 0x2f
jne 0x403396
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x4033bc
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x4033af
cmp ax, 0x5c
je 0x4033af
dec esi
test esi, esi
jg 0x40339a
test esi, esi
je 0x40346b
and word [edi + esi*2], 0
push edi
call fcn.0040197a
test eax, eax
pop ecx
je 0x4033ab
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4033f3
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040300e
test eax, eax
pop ecx
pop ecx
je 0x4033f3
xor esi, esi
jmp 0x403490
push edi
call fcn.0040197a
test eax, eax
pop ecx
jne 0x40340d
push edi
push 0xc
push 1
call fcn.00407760
add esp, 0xc
jmp 0x4033ec
cmp esi, ebx
jge 0x40345f
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403445
jmp 0x403444
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x40344b
cmp ax, 0x2f
je 0x40344b
inc esi
cmp word [edi + esi*2], cx
jne 0x403434
push edi
mov word [edi + esi*2], cx
call fcn.0040197a
test eax, eax
pop ecx
je 0x4033fe
cmp esi, dword [ebp - 4]
jl 0x403411
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4034b0
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x40349b
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x40349b
cmp ax, 0x7a
ja 0x40349b
cmp word [ecx + 2], 0x3a
jne 0x40349b
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4034b0
push ecx
push 0xc
push 1
call fcn.00407760
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f95
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013f8
push 2
mov ecx, esi
call fcn.00402529
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x403fe8
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402529
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402529
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40403d
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403ff8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404044
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41a39c], esi
jle 0x404098
mov eax, dword [0x41a3a0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012de
lea eax, [ebp - 0xc]
push eax
call fcn.00403b73
mov eax, dword [0x41a3a0]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41a39c]
pop ecx
jl 0x404055
pop esi
leave
ret
Function at 0x40440b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f3b
push 3
call fcn.00401f91
push 0x28
mov dword [0x41a7e4], eax
call fcn.00401f91
push 2
mov dword [0x41a7e0], eax
call fcn.00401f91
push 5
mov dword [0x41a7dc], eax
call fcn.00401f91
push 0x15
mov dword [0x41a7d8], eax
call fcn.00401f91
push 0x16
mov dword [0x41a7d4], eax
call fcn.00401f91
push 0x17
mov dword [0x41a7d0], eax
call fcn.00401f91
add esp, 0x1c
xor ebx, ebx
mov dword [0x41a7cc], eax
mov dword [0x41a7c4], ebx
mov dword [0x41a7c8], ebx
mov edi, 0x41a394
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40452f
push ebx
lea eax, [ebp - 0x98]
push 0x41741c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013f8
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f60
cmp dword [esi + 0x41a36c], ebx
jne 0x40451f
push dword [esi + 0x41a370]
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f60
add esi, 8
cmp esi, 0x28
jb 0x4044ef
lea ecx, [ebp - 0x18]
call fcn.00402419
inc ebx
cmp ebx, 0x40
jl 0x404486
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b05
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x404cb7
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x404b2f
cmp ax, 0x2f
jne 0x404cb7
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x404cb7
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403f95
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x404c81
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013f8
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401310
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402541
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
mov esi, 0x4174a8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402541
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402541
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402541
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402541
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402541
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040276a
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x404c92
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404c92
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404cbd
push dword [ebp - 0x28]
call fcn.00402c7a
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404cbe
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406545
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406507
add esp, 0x1c
leave
ret
Function at 0x408660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408668
mov dword [ecx*4 + 0x41aac0], eax
inc ecx
cmp ecx, 0x100
jb 0x408663
mov edx, 0x800
jmp 0x4086b5
mov eax, dword [ecx*4 + 0x41a6c0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41aac0]
inc ecx
mov dword [ecx*4 + 0x41aabc], eax
cmp ecx, edx
jb 0x408694
mov dword [0x41a880], 0x415350
call fcn.0040d82a
test eax, eax
pop esi
jne 0x4086d7
mov dword [0x41a880], 0x415270
ret
Function at 0x40d9c9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d9ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d9ef
xor al, al
jmp 0x40da0f
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00415030
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41473d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x414756
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x414779
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x41477e
inc esi
cmp esi, dword [ebp - 4]
jb 0x414770
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x414873
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4147d2
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x4147a9
cmp cl, 0xff
jne 0x4147fd
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41480b
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x414812
dec ecx
shl edx, cl
and edx, 7
je 0x41479a
movzx ecx, byte [edx + 0x417e28]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x417e20], 0
mov cl, byte [ebx + 4]
je 0x4147fa
test cl, cl
je 0x4147fa
cmp cl, 0xff
jne 0x41479a
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41476b
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x414846
movzx edi, byte [edx + 0x417e28]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x414831
cmp al, 0xff
jne 0x414843
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x4147c4
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x41476b
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret