joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4299b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00429931
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x429b2d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x429b2d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x429adc
jg 0x429a0e
test eax, eax
je 0x429ad2
push 1
push 0x1000
call fcn.00419cea
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429a34
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x429ac9
push 0x8000
push ebx
call fcn.00417c15
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429a60
jg 0x429a5b
cmp ecx, 0x1000
jb 0x429a60
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041c88d
add esp, 0x10
cmp eax, 0xffffffff
je 0x429aa5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x429a5b
jl 0x429a8c
test ecx, ecx
jne 0x429a4d
push dword [ebp - 0xc]
push ebx
call fcn.00417c15
push esi
call fcn.00419cb0
add esp, 0xc
xor edi, edi
jmp 0x429b3e
cmp byte [edi + 0x24], 0
je 0x429abc
cmp dword [edi + 0x20], 5
jne 0x429abc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429ac7
mov edi, dword [edi + 0x18]
jmp 0x429ac9
xor edi, edi
push esi
call fcn.00419cb0
pop ecx
jmp 0x429b3e
test ecx, ecx
jg 0x429a9e
jl 0x429adc
test eax, eax
jae 0x429a9e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cc94
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x429aff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x429a9e
jmp 0x429b36
push ebx
call fcn.0042311a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x429a9e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x429b3e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x429b3b
mov edi, dword [edi + 0x18]
jmp 0x429b3e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041cc94
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a13d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a13d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002590
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10008754]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100025af
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x10008750], 1
mov byte [0x1000874c], bl
jne 0x10002609
mov ecx, dword [0x100089a8]
test ecx, ecx
je 0x100025f7
mov esi, dword [0x100089a4]
sub esi, 4
cmp esi, ecx
jb 0x100025f7
mov eax, dword [esi]
test eax, eax
je 0x100025f0
call eax
mov ecx, dword [0x100089a8]
sub esi, 4
cmp esi, ecx
jae 0x100025e2
push 0x10006018
push 0x10006014
call fcn.10002640
add esp, 8
push 0x10006020
push 0x1000601c
call fcn.10002640
add esp, 8
test ebx, ebx
jne 0x10002630
push ebp
mov dword [0x10008754], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Enumerate disk properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, 0x407270
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
xor ebx, ebx
push ebx
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4010e0
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov dword [ebp - 0x38], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4010d7
lea eax, [ebp - 4]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
call esi
cmp dword [ebp - 4], ebx
je 0x4010d7
push dword [ebp - 4]
call fcn.0040112e
mov edi, eax
cmp edi, ebx
je 0x4010d7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x4010d1
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 0x40a591
push edi
call esi
test eax, eax
jne 0x4010ce
push 0x40a596
push edi
call esi
test eax, eax
jne 0x4010ce
push 0x40a662
push edi
call esi
test eax, eax
jne 0x4010ce
push 0x40a669
push edi
call esi
test eax, eax
je 0x4010d1
xor ebx, ebx
inc ebx
push edi
call fcn.00401143
push dword [ebp - 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x401240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
test byte [0x409854], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 1
je 0x401264
mov esi, 0x100
push dword [0x409860]
xor eax, eax
call fcn.004029a6
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x401325
push edi
lea eax, [ebp - 0xc]
push eax
or esi, 0xf003f
push esi
push ebx
push 0x40a03e
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x401318
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [0x409808]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x40130f
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [0x409db0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401305
mov eax, dword [ebp - 8]
push dword [ebp - 4]
shr eax, 1
xor ecx, ecx
push esi
mov word [esi + eax*2 - 2], cx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401305
mov dword [ebp - 0x10], 1
push esi
push ebx
push dword [0x409808]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
push ebx
push dword [0x409808]
call edi
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x401395
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], esi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x40a116
call fcn.00402965
mov ebx, eax
cmp ebx, esi
je 0x401460
push esi
mov dword [ebp - 0x5c], 0x44
call fcn.004036da
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000004
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 1
mov edi, eax
call fcn.004036da
cmp edi, esi
je 0x401447
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.00402293
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
je 0x401435
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], esi
je 0x401435
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
jmp 0x401450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
push ebx
push esi
push dword [0x409808]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401467
mov dword [ebp + 8], 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401a3e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x401a91
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404242
test eax, eax
je 0x401a80
cmp dword [ebp - 8], 4
jne 0x401a80
inc ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x402136
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
push ebx
push esi
xor eax, eax
push 0x4c8
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
or ebx, 0xffffffff
mov dword [esp + 0x28], 0xccccfeeb
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.00403a43
mov esi, eax
lea eax, [esp + 8]
push eax
push dword [edi]
mov dword [esp + 0x58], 0x100003
call fcn.00401faf
test eax, eax
jl 0x402289
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi]
call fcn.00403806
test eax, eax
je 0x402289
cmp dword [esp + 0x10], 4
jne 0x402289
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.00401ec2
test eax, eax
je 0x402289
lea eax, [esp + 0x20]
cdq
mov ebx, 0xbb8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x409864]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40220c
push 0x64
pop ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x14]
mov eax, dword [edi + 4]
push dword [esp + 0x14]
cdq
push edx
push eax
push 0
push 2
push dword [esi + 4]
sub ebx, 0x64
push dword [esi]
call fcn.00404ff0
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
add esp, 0x20
test ebx, ebx
jle 0x402255
cmp eax, dword [esp + 8]
jne 0x4021eb
cmp ecx, dword [esp + 0xc]
jne 0x4021eb
cmp eax, dword [esp + 8]
jne 0x402261
cmp ecx, dword [esp + 0xc]
je 0x402268
mov ebx, 0x261
jmp 0x402275
mov esi, dword [ebp + 8]
push 0
push edi
call fcn.00401cc8
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [edi]
call fcn.00401ec2
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402293
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
push esi
push edi
xor esi, esi
push 0x2c8
mov edi, eax
lea eax, [ebp - 0x2dc]
push esi
push eax
mov dword [ebp - 0x2e0], esi
call sub.ntdll.dll_memset
mov ebx, dword [edi]
add esp, 0xc
push esi
mov eax, ebx
mov dword [ebp - 8], 0xccccfeeb
mov dword [ebp - 4], esi
call fcn.0040365f
test eax, eax
je 0x402395
mov dword [ebp - 4], 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2e0], 0x10007
mov dword [ebp + 0xc], eax
cmp eax, esi
jne 0x4022ff
push dword [edi]
call fcn.00401a99
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00404201
test eax, eax
je 0x4023ce
cmp dword [ebp - 0x10], 4
jne 0x4023ce
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00401a3e
test eax, eax
je 0x4023ce
mov esi, 0xbb8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
push dword [0x409864]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40235f
push 0x64
pop esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2e0]
push eax
push dword [edi + 4]
sub esi, 0x64
call fcn.004041e0
mov eax, dword [ebp - 0x228]
test esi, esi
jle 0x402389
cmp eax, dword [ebp + 0xc]
jne 0x40233e
cmp eax, dword [ebp + 0xc]
je 0x4023ae
mov esi, 0x261
jmp 0x4023bc
test byte [0x409854], 1
je 0x4022e1
push dword [ebp + 8]
call fcn.00402136
mov esi, eax
jmp 0x4023c9
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push edi
call fcn.00401cc8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00401a3e
cmp esi, 0xffffffff
jne 0x4023d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4026f9
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x40
xor ecx, ecx
push ecx
push 2
xor eax, eax
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
leave
ret 0xc
Function at 0x402e45
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov eax, 0x1000
xor edx, edx
shr ecx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
cmp ecx, eax
ja 0x402e64
mov dword [ebp - 0xc], ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edx
push 0x80
push 4
push edx
push 1
mov ebx, 0xc0000000
push ebx
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x402ee3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x10]
push edx
add eax, ecx
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
call esi
test eax, eax
je 0x402ec6
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402eec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x402f39
push eax
push 0x80
push 3
push eax
push 1
push ebx
push dword [ebp + 8]
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402f30
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x402f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x402f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40314b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [0x409860]
xor esi, esi
push 0x38
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], esi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x750
call fcn.00404b20
mov ebx, eax
test ebx, ebx
je 0x40323b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp dword [ebp + 8], esi
je 0x4031e8
test eax, eax
je 0x4031aa
push 0x40a170
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
push dword [ebp - 4]
mov esi, eax
add esi, esi
call edi
push dword [ebp + 8]
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
lea eax, [eax + eax + 0x56]
push eax
call fcn.0040112e
mov esi, eax
test esi, esi
je 0x403232
push dword [ebp + 8]
push ebx
push ebx
push dword [ebp - 4]
push 0x40a5b8
jmp 0x403228
test eax, eax
je 0x4031f8
push 0x40a534
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push edi
mov dword [ebp + 8], eax
call esi
mov ecx, dword [ebp + 8]
add ecx, eax
lea eax, [ecx*4 + 0x48]
push eax
call fcn.0040112e
mov esi, eax
test esi, esi
je 0x403232
push edi
push ebx
push ebx
push edi
push 0x40a610
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
call fcn.00401143
mov edi, dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], 0x40a59c
mov dword [ebp - 0x30], 0x40a5a8
test esi, esi
jne 0x403257
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40325a
test esi, esi
je 0x403272
push esi
call fcn.00401143
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403702
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.00404025
test eax, eax
jne 0x4037a9
push esi
push dword [ebp + 8]
call fcn.00404b4a
cmp eax, esi
je 0x4037a1
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.00404c56
mov ebx, eax
cmp ebx, esi
je 0x4037a0
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4037a0
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x403797
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403797
cmp dword [ebp - 0xc], 4
jne 0x403797
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.00401143
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x4040ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 8
pop edi
push dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov esi, edi
mov dword [ebp - 4], ebx
call fcn.004029fd
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40413f
cmp dword [ebp + 0x14], ebx
je 0x4040e5
push dword [ebp + 0x14]
xor eax, eax
call fcn.004029fd
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x404137
push dword [ebp + 8]
call fcn.004048c8
mov esi, eax
cmp esi, ebx
je 0x404107
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004049c7
push esi
mov edi, eax
call fcn.00401143
mov esi, edi
cmp edi, ebx
jne 0x40412a
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40a228
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x404128
xor eax, eax
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x404137
push dword [ebp - 4]
call fcn.00401143
push dword [ebp - 8]
call fcn.00401143
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40416a
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0x10000
test esi, esi
je 0x404183
push esi
call fcn.00401143
push dword [ebp - 4]
call fcn.0040112e
mov esi, eax
test esi, esi
je 0x4041ad
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
je 0x404179
jmp 0x4041b2
mov edi, 0xc000009a
test edi, edi
jl 0x4041d3
push dword [ebp + 8]
push esi
call fcn.00401528
mov ecx, dword [esi]
test ecx, ecx
je 0x4041c9
add esi, ecx
jmp 0x4041cb
xor esi, esi
test esi, esi
je 0x4041d3
test eax, eax
jne 0x4041b6
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
leave
ret 4