joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008ad30
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x1008add3
test eax, eax
jbe 0x1008add3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x1008add3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x1008ad7e
xor esi, esi
jmp 0x1008ad84
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1008adaf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.100283a0
add esi, eax
push esi
mov ebx, esi
call fcn.100283a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x1008ad90
pop ebp
test edi, edi
pop edi
jne 0x1008add3
test ebx, ebx
je 0x1008add3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.100991c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x1008af30
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1008b04d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1008b04d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100aa1e2
mov esi, eax
test esi, esi
je 0x1008b04d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1008b04d
mov ecx, esi
call fcn.1008aec0
cmp edi, eax
jge 0x1008b04d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x1008afd3
mov dword [esp + 0x34], 1
jmp 0x1008b02e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1008b04d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.10088bb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x100920c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x1009210c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x1009210c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x100920f6
push eax
call ebp
test ax, ax
jl 0x10092104
inc esi
add edi, 4
cmp esi, 6
jb 0x100920e8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.10091dc0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10094720
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10094780
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10094780
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10094780
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10094780
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10094790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x100aab85
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100aabbd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100a8c3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100a8c14
jmp 0x100aabc9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100ac276
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100ac2b8
call fcn.100b1f1c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100ac2b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100ac2af
xor eax, eax
jmp 0x100ac2c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100ac2c6
pop edi
pop esi
pop ebx
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403bf8
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x28
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
call fcn.00403283
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
pop esi
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov edx, dword [esp + 0x1c]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x24], 0xedeb2e40
cmp dword [0x687944], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [ebx + edx]
mov eax, dword [0x687988]
cmove eax, dword [esp + 0x24]
and dword [esp + 0x24], 0
cmp dword [0x687944], 0x3eb
mov dword [0x687988], eax
mov eax, dword [0x687990]
cmove eax, dword [esp + 0x24]
mov dword [0x687990], eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
xor eax, ecx
mov dword [0x68798c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, ebp
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403bec
dec esi
je 0x403d1c
mov ebx, dword [esp + 0x18]
jmp 0x403c46
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4141af
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407a96
mov dword [ebp - 0x14], eax
cmp dword [0x688b04], esi
jne 0x4142a2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41422f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414382
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414382
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414382
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x688b04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x688b08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x688b0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x688b14], eax
test eax, eax
je 0x41429f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x688b10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4142c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4142ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4142dc
push 4
pop eax
jmp 0x414384
cmp dword [ebp - 0x14], esi
je 0x4142dc
push dword [0x688b04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4142c1
mov eax, dword [0x688b10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41433a
cmp dword [0x688b14], edi
je 0x41433a
push eax
call ebx
push dword [0x688b14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41433a
test eax, eax
je 0x41433a
call ecx
test eax, eax
je 0x41432f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41432f
test byte [ebp - 8], 1
jne 0x41433a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41436a
mov eax, dword [0x688b08]
cmp eax, edi
je 0x414367
push eax
call ebx
test eax, eax
je 0x414367
call eax
mov esi, eax
test esi, esi
je 0x414367
mov eax, dword [0x688b0c]
cmp eax, edi
je 0x414367
push eax
call ebx
test eax, eax
je 0x414367
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x688b04]
call ebx
test eax, eax
je 0x414382
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414384
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cd0
mov esp, ebp
pop ebp
ret
Function at 0x4924b8
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.004924db
push 0xf048399c
jmp 0x492697
mov dl, 0xba
jmp 0x4926b9
lea ebp, [ecx - 0xdf]
rdtsc
mov bh, cl
mov esi, dword [esp + 0x2c]
sub esp, 9
jmp 0x4928b1
mov edi, esp
mov ebx, ecx
lea ecx, [eax*4]
cpuid
mov eax, esi
jmp 0x492712
mov cx, ax
bsf edi, esi
sub esp, 0xb4
jmp 0x4926ee
bsf edx, ebx
jnp 0x4927c1
sub esp, 0x1d
jmp 0x492783
jmp 0x492704
lea edx, reloc.mscoree.dll__CorExeMain
pop ecx
lea esp, [esp + 1]
call fcn.0049272b
add dword [esi - 0x47], esp
sbb al, 0xaa
mov cx, 0xaa1c
call 0x4927ed
fadd qword [edx - 0x30]
mov bh, 0x42
int1
sahf
pop es
xchg edi, eax
add dword [eax + reloc.mscoree.dll__CorExeMain], edi
inc ecx
bsr ebx, eax
dec cx
xchg dword [esp], eax
inc edx
jmp 0x492794
sub esp, 0x1d
lea edx, reloc.mscoree.dll__CorExeMain
pop ecx
lea esp, [esp + 1]
mov edx, edi
mov edx, dword [esp]
cmc
jmp 0x4927f9
neg bx
jae 0x492855
jb 0x492855
add dword [edx + esi + reloc.mscoree.dll__CorExeMain], ebx
jmp 0x6f344063
pop cx
lea esp, [esp + 2]
push dword [esp]
ret 4
jb 0x49280f
jae 0x49280f
std
jge 0x4927ed
je 0x492789
inc ebx
int 0x4e
fdivr qword [ebx - 0x59a06faa]
rcl dword [eax - 0x2d]
dec edx
sub esi, 0x667cea66
bswap ebx
not ch
xchg bx, dx
jmp 0x4927d7
lea esp, [esp + 3]
jmp 0x492939
mov bl, 0x14
mov cx, 0x209d
call fcn.0049287d
sbb eax, 0x9a6f089a
sub eax, 0xa6fff7d
stc
rcl dword [edx - 0x33], 0x5c
not esi
mov cx, word [esp]
mov edx, dword [esp]
jmp 0x49283b
jno 0x49292b
sub esp, 6
lea ebp, reloc.mscoree.dll__CorExeMain
jmp 0x492832
sub esp, 6
lea ebp, reloc.mscoree.dll__CorExeMain
lea esp, [esp + 3]
lea ebp, [esp + 0xc]
rdtsc
rcr ax, cl
jno 0x492729
mov cx, ax
bsf edi, esi
jmp 0x49270a

Function at 0x4a1df1
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x486ccf
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x486ce9
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x486cd8
pop esi
jmp 0x486cf4
ret 4
jmp 0x4a1ed3
push ax
pop word [esp + 2]
lea esp, [esp + 8]
jmp 0x486cc2

Function at 0x4a1f62
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x48755a
pushfd
or dword [esp], reloc.mscoree.dll__CorExeMain
popfd
cpuid
nop
jmp 0x487571
pop ebx
ret
mov edi, dword [esp + 0x45]
lea esp, [esp + 0x4c]
jmp 0x48754e

Function at 0x4d4a3c
Capabilities:
Hash data with md5

Disassembly:
call fcn.004d4a73
loop 0x4d4a7c
mov al, 0x78
jb 0x4d4a92
mov ch, 0x85
das
push es
sub dword [esi], edx
dec esi
das
and dword ss:[eax - 0x73], esp
and al, 3
push word [esp + 2]
lea esp, [esp + 2]
jmp 0x4d4ab9
jmp 0x4d4a5d
jno 0x4d4aa2
scasd eax, dword es:[edi]
mov dword [esp], ebp
jmp 0x4d4b62
lea esp, [esp + 4]
and dword [eax], 0
mov dword [eax + 8], 0x67452301
pushfd
jmp 0x4d4aa3
mov dword [eax + 0x10], reloc.mscoree.dll__CorExeMain
mov dword [eax + 0x14], 0x10325476
ret
lea esp, [esp + 4]
mov dword [eax + 0xc], 0xefcdab89
pushfd
lea esp, [esp + 4]
jmp 0x4d4b23

Function at 0x4d4a73
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 8]
and dword [eax + 4], 0
push esi
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x731e066b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3e3749a1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402071
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4020b0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4020b0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020b0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4020b0
cmp dword [ecx + 0x74], 0xe
jbe 0x4020b0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407f64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155c0
push 0x4155b8
push str.FlsAlloc
push 0x1e
call fcn.00407e25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f98
push dword [ebp + 8]
mov ecx, esi
call dword [0x414138]
call esi
jmp 0x407f9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407fe2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155d0
push 0x4155c8
push str.FlsGetValue
push 0x20
call fcn.00407e25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408019
push dword [ebp + 8]
mov ecx, esi
call dword [0x414138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40b51c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b5b9
push ebx
push esi
call fcn.0040b4e5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b42e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b566
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b5b8
push edi
push eax
call fcn.00408717
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b586
call fcn.00407cb8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b5b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b42e
add esp, 0x20
test eax, eax
jne 0x40b5a5
push edi
call fcn.00407cb8
jmp 0x40b5ad
push ebx
call fcn.00407cb8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x413530
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x433500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434340]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434150]
cmp eax, dword [ecx + 4]
jg 0x406727
cmp dword [0x433498], 0
jne 0x40670a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407340
test al, al
jne 0x406619
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401230
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x406701
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x4066be
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40675d
jmp 0x4066b4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fc90
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406687
cmp dword [ebp - 0x240], esi
je 0x40667b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406660
jmp 0x406687
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401230
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4065d6
push ecx
push edx
call fcn.0040e10c
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00401490
pop esi
push 0x433488
mov ecx, ebx
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e11a
mov esp, ebp
pop ebp
ret
push 0x434150
call fcn.0040e3ed
add esp, 4
cmp dword [0x434150], 0xffffffff
jne 0x40659d
push 0x427620
call fcn.0040e387
push 0x434150
call fcn.0040e39c
add esp, 8
jmp 0x40659d
call fcn.0041167f
int3
Function at 0x406770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426866
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x433500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fc90
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f990
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067f5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4068ee
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b950
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406d80
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40689f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406895
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406933
push ecx
push edx
call fcn.0040e10c
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406916
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40690c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406933
jmp 0x40690c
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b950
add esp, 8
jmp 0x4068ba
push ecx
push edx
call fcn.0040e10c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e11a
mov esp, ebp
pop ebp
ret
call fcn.0041167f
int3
Function at 0x40ecc0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ecff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ecff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ecff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ecff
cmp dword [ecx + 0x74], 0xe
jbe 0x40ecff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419d24
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419ca6

Function at 0x41c5be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4348c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c5fe
cmp byte [ebx], 0xa
jne 0x41c5fe
or byte [edi + eax + 0x28], 4
jmp 0x41c603
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c702
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c6e5
inc eax
cmp dl, 0xd
je 0x41c62f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c655
cmp eax, ecx
jae 0x41c663
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c617
jmp 0x41c702
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c6e0
cmp dword [ebp - 0x10], 0
je 0x41c6e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4348c8]
test byte [eax + edi + 0x28], 0x48
je 0x41c6ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c6a5
mov byte [esi], dl
jmp 0x41c6b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4348c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c702
cmp byte [ebp - 1], 0xa
jne 0x41c6c9
cmp esi, ebx
jne 0x41c6c9
mov byte [esi], 0xa
jmp 0x41c701
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d00d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c702
mov byte [esi], 0xd
jmp 0x41c701
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4348c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c6ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c702
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret