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

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push esi
mov esi, dword [ebp + 0x39c]
push edi
mov edi, dword [ebp + 0x3a0]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xa4
push 0
mov ebx, 0x4acb00
push ebx
mov dword [ebp - 0x7c], eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0xb8]
and dword [ebp - 0x74], 0
add esp, 0xc
mov dword [0x4acb00], eax
push 3
pop eax
mov dword [0x4acb08], eax
mov ecx, dword [edi + 0xb4]
mov dword [0x4acb18], ecx
mov dword [0x4acb20], eax
cmp dword [esi + 0x4c], 8
jb 0x4354c2
mov esi, dword [esi + 0x38]
jmp 0x4354c5
add esi, 0x38
push str.callstack.txt
push esi
mov esi, 0x46cb80
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x78], eax
jmp 0x4354e0
xor eax, eax
push eax
push eax
push eax
push eax
push edi
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push 0x14c
call fcn.004368eb
test eax, eax
je 0x435578
cmp dword [0x4acb00], 0
je 0x43556b
cmp dword [ebp - 0x74], 0
jne 0x43551e
push 0x455058
push esi
call dword [sym.imp.MSVCR90.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
test eax, eax
je 0x435588
push dword [0x4acb40]
lea eax, [ebp - 0x70]
push dword [0x4acb3c]
push dword [0x4acb38]
push dword [0x4acb34]
push dword [0x4acb00]
push str._u__u__u__u__u__r_n
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x1c
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x70]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x32
jl 0x4354de
cmp dword [ebp - 0x74], 0
je 0x435588
push dword [ebp - 0x74]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390e8
add ebp, 0x394
leave
ret 8
Function at 0x4359e1
Capabilities:
Copy file
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x4c], 8
jb 0x4359f1
mov eax, dword [edi + 0x38]
jmp 0x4359f4
lea eax, [edi + 0x38]
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea esi, [edi + 0x1c4]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
jbe 0x435a61
push ebp
mov ebp, 0x46cb80
push ebx
mov ecx, esi
call fcn.00435601
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [edi + 0x4c], 8
jb 0x435a33
mov ecx, dword [edi + 0x38]
jmp 0x435a36
lea ecx, [edi + 0x38]
push eax
push ecx
push ebp
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
mov ecx, esi
call fcn.00435601
push 0
push ebp
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x435a18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x435a75
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x44cfab
call fcn.0043961e
lea esi, [ecx + 0x1ac]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x38
cdq
pop ebx
idiv ebx
xor edi, edi
test eax, eax
jbe 0x435b31
add ecx, 0x34
mov dword [ebp - 0x10], ecx
push str._dir
lea ecx, [ebp - 0x2c]
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__]
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push eax
push edi
mov ecx, esi
call fcn.004355d8
add eax, 0x1c
push eax
call fcn.004355a2
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x2c]
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_]
push edi
mov ecx, esi
call fcn.004355d8
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x435af0
mov ebx, dword [eax + 4]
jmp 0x435af3
lea ebx, [eax + 4]
push edi
mov ecx, esi
call fcn.004355d8
cmp dword [eax + 0x18], 8
jb 0x435b06
mov eax, dword [eax + 4]
jmp 0x435b09
add eax, 4
push 1
push 0
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
inc edi
cmp edi, eax
jb 0x435aa3
call fcn.004396f6
ret
Function at 0x436503
Capabilities:
Parse pe header

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x118
mov eax, 0x44d21d
call fcn.00439651
mov eax, dword [ebp + 0xa4]
mov esi, dword [ebp + 0xa0]
mov ebx, dword [ebp + 0x9c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xa8]
mov edx, dword [ebp + 0xac]
mov dword [ebp - 0x24], eax
and dword [ebp - 4], 0
xor eax, eax
mov byte [ebp + 0x40], 0
lea edi, [ebp + 0x41]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp]
push eax
push esi
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edx
call edx
test eax, eax
je 0x43658b
cmp dword [ebp - 0x18], 0x40
mov byte [ebp - 0x14], 1
je 0x43658f
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004364c5
mov eax, 0x5a4d
cmp word [ebp], ax
lea ecx, [ebp - 0x18]
sete al
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
call fcn.004364c5
lea eax, [ebp - 0x18]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp + 0x3c]
add eax, esi
push eax
push ebx
call dword [ebp - 0x20]
test eax, eax
je 0x4365dc
mov byte [ebp - 0x14], 1
cmp dword [ebp - 0x18], edi
je 0x4365e0
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004364c5
cmp dword [ebp - 0x124], 0x4550
jne 0x436615
mov eax, 0x14c
cmp word [ebp - 0x120], ax
jne 0x436615
add eax, 0xffffffbf
mov byte [ebp - 0x14], 1
cmp word [ebp - 0x10c], ax
je 0x436619
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004364c5
mov eax, dword [ebp + 0x3c]
movzx ebx, word [ebp - 0x11e]
and dword [ebp - 0x14], 0
lea edi, [esi + eax + 0xf8]
cmp dword [ebp - 0x14], ebx
jae 0x4366ba
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp + 0x68]
push eax
push edi
push dword [ebp - 0x28]
call dword [ebp - 0x20]
test eax, eax
je 0x43665d
cmp dword [ebp - 0x18], 0x28
mov byte [ebp - 0x1c], 1
je 0x436661
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.004364c5
push 0x28
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x68]
push eax
add edi, 0x28
call sub.MSVCR90.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4366ba
mov ecx, dword [ebp + 0x8c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x4366af
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp - 0x24]
add eax, esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x78]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x4366bc
inc dword [ebp - 0x14]
jmp 0x436639
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004390e8
add ebp, 0x94
leave
ret 0x14
Function at 0x436de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4acd98]
mov dword [ebp - 4], eax
jmp 0x436df9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x436e16
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x436df0
mov esp, ebp
pop ebp
ret

Function at 0x436e20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4acda8], eax
je 0x436e3e
mov eax, 0x10dd
jmp 0x436f1f
mov eax, dword [0x4acdb8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x436ebc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x436e9a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x436e9a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00436f90
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x436e46
mov dword [0x4acdb8], 0
call fcn.00436f30
mov ecx, dword [0x4acdb4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x436f09
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x436ed4
mov dword [0x4acdb4], 0
mov dword [0x4acda8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4374a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x4374b5
xor eax, eax
jmp 0x43752a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x4374e2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x437525
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x437523
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x43751f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x437523
xor eax, eax
jmp 0x43752a
jmp 0x4374d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4375d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4acdac], 0
je 0x4375e9
mov eax, dword [0x4acdac]
jmp 0x437689
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4375fb
xor eax, eax
jmp 0x437689
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437651
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x43763a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x4acdac], eax
mov dword [0x4acdb0], 0
mov eax, dword [ebp - 4]
jmp 0x437689
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x43766b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x43761b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x4acdb4]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x4acdb4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x437ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00437f70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x437f5c
cmp dword [ebp - 4], 0x50000000
jb 0x437edc
cmp dword [ebp - 4], 0x80000000
ja 0x437edc
mov dword [ebp - 4], 0x80010000
jmp 0x437eb5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x437f02
jmp 0x437f5c
cmp dword [ebp - 0x10], 0x10000
jne 0x437f45
cmp dword [ebp - 0x14], 0x10000
jb 0x437f45
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x437f38
mov eax, dword [ebp - 0x24]
jmp 0x437f5e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x437f57
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00437f70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x437eb5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x437fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00438080
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x438074
cmp dword [ebp - 4], 0x50000000
jb 0x437ff1
cmp dword [ebp - 4], 0x80000000
ja 0x437ff1
mov dword [ebp - 4], 0x4fff0000
jmp 0x437fca
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x438017
jmp 0x438074
cmp dword [ebp - 0x10], 0x10000
jne 0x43805a
cmp dword [ebp - 0x14], 0x10000
jb 0x43805a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x43804d
mov eax, dword [ebp - 0x24]
jmp 0x438076
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x43806f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00438080
add esp, 4
mov dword [ebp - 4], eax
jmp 0x437fca
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4380b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4acda8], eax
je 0x4380d5
mov eax, 0x10dd
jmp 0x43826d
cmp dword [0x4acdac], 0
je 0x4380e8
mov eax, dword [0x4acdac]
jmp 0x43826d
cmp dword [ebp + 8], 0
jne 0x4380f8
mov eax, 6
jmp 0x43826d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x438121
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x4acdac], ecx
mov edx, dword [ebp + 8]
mov dword [0x4acdb0], edx
mov eax, dword [ebp - 0xc]
jmp 0x43826d
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43817a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x4acdac], ecx
cmp dword [ebp - 0x18], 0
je 0x438169
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x4acdb0], ecx
mov eax, dword [ebp - 0xc]
jmp 0x43826d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00436b70
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00436b70
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x4381ba
cmp dword [ebp - 8], 0x1e
jbe 0x4381d6
mov dword [ebp - 0xc], 9
cmp dword [0x4acda0], 0
je 0x4381d1
jmp 0x43814a
jmp 0x438141
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x4381fd
mov dword [ebp - 0xc], 9
cmp dword [0x4acda0], 0
je 0x4381f8
jmp 0x43814a
jmp 0x438141
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x43822a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x438141
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4acdb8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x4acdb8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x438fe2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ace48], 0
push esi
jne 0x438f55
call fcn.00438e7b
test eax, eax
je 0x438f98
mov eax, dword [0x4ace48]
cmp eax, 1
jne 0x438f76
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x438f98
pop esi
ret
push eax
call dword [0x4ace50]
test eax, eax
jne 0x438fe0
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 0x438f9c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ace48]
call dword [0x4ace50]
mov edi, eax
test edi, edi
je 0x438fc1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x438fdd
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4ace48]
call dword [0x4ace4c]
add edi, 0x10
cmp edi, esi
jb 0x438fc9
mov eax, edi
pop edi
pop esi
ret
jmp 0x438f42

Function at 0x4390e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46b114]
jne 0x4390f2
repz ret
jmp fcn.0043981a

Function at 0x43fb71
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x40
mov eax, 0x44dc16
call fcn.0043961e
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.0043fe0e
add esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x43fbd6
mov eax, dword [eax + 4]
jmp 0x43fbd9
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.0043fafd
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.004390e8
add ebp, 0x20c
leave
ret
Function at 0x440106
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x440167
push 0x459ee4
mov ecx, edi
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__]
jmp 0x4401ac
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x457240
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x440194
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x45a764
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
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__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004390e8
add ebp, 0x190
leave
ret

Function at 0x4401c4
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x440225
push 0x459ee4
mov ecx, edi
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__]
jmp 0x44026a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x457240
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x440252
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x45a764
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
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__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004390e8
add ebp, 0x190
leave
ret