joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424994
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4249f8
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x424a1e
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x424a1e
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x424a4b
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x424a4b
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push 0x435e38
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x424a72
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x424a72
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042898c
add ebp, 0x90
leave
ret
Function at 0x428745
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x446aa8], 0
push esi
jne 0x4286b8
call fcn.004285de
test eax, eax
je 0x4286fb
mov eax, dword [0x446aa8]
cmp eax, 1
jne 0x4286d9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4286fb
pop esi
ret
push eax
call dword [0x446ab0]
test eax, eax
jne 0x428743
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4286ff
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x446aa8]
call dword [0x446ab0]
mov edi, eax
test edi, edi
je 0x428724
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x428740
mov edi, esi
add esi, 0xff0
push edi
push dword [0x446aa8]
call dword [0x446aac]
add edi, 0x10
cmp edi, esi
jb 0x42872c
mov eax, edi
pop edi
pop esi
ret
jmp 0x4286a5

Function at 0x42898c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445bbc]
jne 0x428996
repz ret
jmp fcn.0042928a
Function at 0x429ab2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x429af7
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x429af7
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
mov ecx, esi
shl ecx, 3
mov edx, eax
imul edx, edx, 6
sub ecx, edx
dec ecx
dec ecx
je 0x429aea
dec ecx
dec ecx
jne 0x429aed
inc eax
inc eax
jmp 0x429aed
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x429afe
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x429b82
dec eax
push 3
pop esi
div esi
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 3
mov dword [ebp - 4], eax
movzx esi, byte [edi]
inc edi
movzx eax, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
shr esi, 6
inc edi
inc ecx
mov byte [ecx], bl
lea eax, [esi + eax*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x429b24
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x429bd7
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x429b94
movzx edi, byte [edi + 1]
jmp 0x429b96
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x429bcf
and edi, 0xf
mov al, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x429bd2
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x429afa
Function at 0x429bec
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
je 0x429d0f
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x429d0f
xor ecx, ecx
xor edi, edi
xor esi, esi
test edx, edx
jbe 0x429c6d
mov eax, edx
sub eax, esi
cmp eax, 2
jb 0x429c29
cmp byte [esi + ebx], 0xd
jne 0x429c29
cmp byte [esi + ebx + 1], 0xa
je 0x429c64
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x429c64
cmp al, 0x3d
jne 0x429c3e
inc edi
cmp edi, 2
ja 0x429d0f
cmp al, 0x7f
ja 0x429d0f
movzx eax, al
mov al, byte [eax + 0x436268]
cmp al, 0x7f
je 0x429d0f
cmp al, 0x40
jae 0x429c63
test edi, edi
jne 0x429d0f
inc ecx
inc esi
cmp esi, edx
jb 0x429c13
test ecx, ecx
jne 0x429c74
xor eax, eax
jmp 0x429d12
imul ecx, ecx, 6
add ecx, 7
shr ecx, 3
mov eax, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jae 0x429c8f
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x429d11
mov eax, dword [ebp + 8]
xor edx, edx
push 3
pop edi
mov dword [ebp - 4], edx
test esi, esi
jbe 0x429d05
mov cl, byte [ebx]
cmp cl, 0xd
je 0x429cf9
cmp cl, 0xa
je 0x429cf9
movzx ecx, cl
mov cl, byte [ecx + 0x436268]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
or edx, ecx
sub edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jne 0x429cf6
and dword [ebp - 4], 0
test edi, edi
jbe 0x429ce1
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jbe 0x429cee
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jbe 0x429cf6
mov byte [eax], dl
inc eax
mov ebx, dword [ebp + 0x10]
dec esi
inc ebx
mov dword [ebp + 0x10], ebx
test esi, esi
ja 0x429c9e
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x429c6d
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a1be
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x118
sub eax, 0x80
push edi
je 0x42a1fa
sub eax, 0x40
je 0x42a1ef
sub eax, 0x40
je 0x42a1e4
or eax, 0xffffffff
jmp 0x42a2da
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x42a203
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x42a203
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.00429f3a
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x42a2bd
push ebx
mov dword [ebp + 0x10], ecx
movzx edx, byte [eax + 3]
movzx edx, byte [edx + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edx, dword [edx*4 + 0x4380e8]
xor edx, dword [ebx*4 + 0x437ce8]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x4378e8]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x4374e8]
add eax, ecx
mov dword [esi], edx
add esi, ecx
dec dword [ebp + 0x10]
jne 0x42a25d
dec edi
sub eax, 0x20
test edi, edi
jg 0x42a25a
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x42af64
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x42af92
xor al, al
jmp 0x42aff1
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42afe0
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.MSVCR90.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x42afe6
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42afc0
jmp 0x42afe8
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042898c
leave
ret

Function at 0x42b2bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push dword [ebp + 0x10]
lea ecx, [esi + 0x24]
call fcn.00418084
push dword [ebp + 0x14]
lea ecx, [esi + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x6c], eax
xor eax, eax
push eax
push eax
push esi
push 0x42b03d
push eax
push eax
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov al, 1
pop esi
pop ebp
ret 0x1c
Function at 0x42bddf
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x40
mov eax, 0x43173e
call fcn.00428eb0
mov edi, dword [ebp + 0x214]
mov esi, dword [ebp + 0x218]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x14], edi
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004171cd
add esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x42be44
mov eax, dword [eax + 4]
jmp 0x42be47
add eax, 4
push 0x104
lea ecx, [ebp]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x30]
xor esi, esi
push eax
inc esi
push edi
mov dword [ebp - 4], esi
call fcn.0042bd6b
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042898c
add ebp, 0x20c
leave
ret
Function at 0x42d2eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x438ff4
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x42d32f
push ebx
push 1
push 2
push 0x4385d8
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x42d338
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
lea esi, [edi + 4]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0042508e
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x24]
call fcn.0042508e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00417d45
test al, al
jne 0x42d434
mov edi, dword [sym.imp.MSVCR90.dll_fwprintf]
lea ecx, [ebp - 0x14]
call fcn.0042bfc6
mov esi, eax
cmp dword [esi + 0x18], 8
jb 0x42d382
mov eax, dword [esi + 4]
jmp 0x42d385
lea eax, [esi + 4]
push eax
push str.__s__r_n
push ebx
call edi
add esp, 0xc
test eax, eax
jl 0x42d327
add esi, 0x1c
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0xc]
call fcn.0042508e
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0042508e
jmp 0x42d3f3
lea ecx, [ebp - 0xc]
call fcn.0042bfc6
cmp dword [eax + 0x34], 8
jb 0x42d3c5
mov ecx, dword [eax + 0x20]
jmp 0x42d3c8
lea ecx, [eax + 0x20]
cmp dword [eax + 0x18], 8
jb 0x42d3d3
mov eax, dword [eax + 4]
jmp 0x42d3d6
add eax, 4
push ecx
push eax
push str._s_s_r_n
push ebx
call edi
add esp, 0x10
test eax, eax
jl 0x42d327
lea ecx, [ebp - 0xc]
call fcn.0042c0da
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00417d45
test al, al
je 0x42d3b2
push 0x4385f8
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jl 0x42d327
lea ecx, [ebp - 0x14]
call fcn.0042c034
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00417d45
test al, al
je 0x42d36d
mov edi, dword [ebp - 4]
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov byte [edi + 0x3c], 0
mov al, 1
jmp 0x42d331
Function at 0x42f621
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
call fcn.0042ec34
push 0x438ffc
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42f69f
and dword [ebp - 4], 0
push edi
push esi
push 1
lea eax, [ebp - 4]
push 2
push eax
call dword [sym.imp.MSVCR90.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp edi, 1
pop edi
jne 0x42f69b
mov eax, 0xfeff
cmp word [ebp - 4], ax
je 0x42f68f
cmp word [ebp - 4], 0x5b
je 0x42f68f
cmp word [ebp - 4], 0x7f
jbe 0x42f68f
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042eecf
jmp 0x42f6a1
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042f255
jmp 0x42f6a1
mov al, 1
jmp 0x42f6a1
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40121c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40121c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401204
test edi, edi
je 0x401204
push ebx
push eax
push edi
call fcn.00465010
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.00401230
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc

Function at 0x401b00
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5635bc]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push 0x104
mov ebx, ecx
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00462540
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x401b4d
mov eax, dword [ebp]
jmp 0x401b4f
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x401b72
mov ecx, dword [ebp]
jmp 0x401b74
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x18]
call fcn.00401950
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x4018d0
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.0046b185
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xc], eax
pop edi
je 0x401be6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401bde
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x401bec
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x401bec
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046252a
add esp, 0x10c
ret 8
Function at 0x402850
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x50fb38
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5635bc]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x5635bc]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x538d18
mov byte [ecx + 4], bl
call fcn.00401e80
push ebx
mov byte [esp + 0x644], 3
call fcn.0046694a
push eax
call fcn.00466ff3
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00462540
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4029b1
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00462540
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40298e
cmp eax, ebx
je 0x40298e
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00403a80
jmp 0x4029b1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402995
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004020d0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4029e8
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4029c5
call fcn.0046272e
cmp dword [edi + 0x18], 8
jb 0x4029d0
mov eax, dword [edi + 4]
jmp 0x4029d3
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x4029e8
push 1
push 0x538d1c
mov ecx, edi
call fcn.00403f60
cmp dword [esi + 0x38], ebx
jne 0x4029fb
push 3
push 0x538d20
mov ecx, edi
call fcn.004020d0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.0046252a
add esp, 0x634
ret
Function at 0x402a30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x50fa91
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x5635bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], 2
cmp dword [esi + 0x54], ebx
mov ebp, 8
je 0x402a7f
cmp dword [esi + 0x58], ebp
jb 0x402a75
mov eax, dword [esi + 0x44]
jmp 0x402a78
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x402a91
mov eax, dword [esi + 0x60]
push eax
call fcn.004dfc96
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov byte [esp + 0x18], 1
cmp dword [esi + 0x58], ebp
jb 0x402ab4
mov eax, dword [esi + 0x44]
push eax
call fcn.004dfc96
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
mov byte [esp + 0x18], bl
cmp dword [esi + 0x3c], ebp
jb 0x402ad7
mov eax, dword [esi + 0x28]
push eax
call fcn.004dfc96
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x20], ebp
jb 0x402afe
mov eax, dword [esi + 0xc]
push eax
call fcn.004dfc96
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], bx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4