joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x41b084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
js 0x404d51
cmp eax, dword [ecx + 0x218]
jge 0x404d51
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
push esi
lea esi, [eax + ecx + 4]
je 0x404d50
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80e]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x404be5
movzx edx, word [ebp - 0x812]
cmp edx, dword [esi + 0x108]
jne 0x404be5
movzx eax, word [ebp - 0x814]
cmp eax, dword [esi + 0x10c]
je 0x404ca2
mov ecx, dword [esi + 0x210]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x80e]
movzx ecx, word [ebp - 0x812]
movzx edx, word [ebp - 0x814]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d_02d_02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
pop edi
cmp eax, 0xffffffff
jne 0x404c6d
pop ebx
mov dword [esi], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x404ca2
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call fcn.0040ce80
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00408389
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call fcn.0040ce80
movzx ecx, word [ebp - 0x808]
movzx edx, word [ebp - 0x80a]
lea eax, [ebp - 0x804]
push eax
movzx eax, word [ebp - 0x80c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x404]
push str.__02d:_02d:_02d___s_r_n
push ecx
call ebx
lea eax, [ebp - 0x404]
add esp, 0x40
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d28
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x818]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
Function at 0x406100
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x406128
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x406135
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00405450
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x406161
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x406147
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406186
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x406197
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4061ad
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4061c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b084]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x58204c], eax
cmp eax, 0xffffffff
jne 0x406212
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x582054]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x58204c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406275
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x58204c]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4062af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00407a74
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4062ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x582050], eax
test eax, eax
jne 0x406325
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x406330
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x582048
push 0x407080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x582058], eax
test eax, eax
jne 0x40636a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x406390
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x4063a0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x4063bd
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x58207c], eax
test eax, eax
je 0x406409
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x58205c
push 0
push 0
push 0x582048
push 0x407220
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x406412
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x406431
inc edi
add esi, 4
cmp edi, dword [0x58207c]
jb 0x4063d6
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406450
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x5820b8], eax
test eax, eax
jne 0x406483
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x582048
push 0x407320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5820bc], eax
test eax, eax
jne 0x4064bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4064e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004074e0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x406b80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x5820c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
js 0x406ba8
xor eax, eax
cmp ebx, 0x1388
setl al
test eax, eax
jne 0x406bbc
push 0x5820c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
shl eax, 4
add eax, ebx
push esi
lea esi, [eax*4 + 0x52e5e0]
mov eax, dword [esi + 4]
mov dword [ebp - 8], esi
test eax, eax
js 0x406cf5
xor ecx, ecx
cmp eax, 0x1388
setl cl
mov eax, ecx
test eax, eax
je 0x406cf5
cmp dword [esi + 8], 0
je 0x406cf5
cmp dword [esi + 0x1c], 0xffffffff
je 0x406cf5
cmp edi, 0x2000
jle 0x406c2f
push edi
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.004074e0
add esp, 0x10
push 0x5820c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x406c90
mov eax, dword [esi + 0x6028]
lea ecx, [eax + edi]
cmp ecx, 0x4000
jle 0x406c60
push ecx
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.004074e0
add esp, 0x10
push ebx
jmp 0x406ceb
mov edx, dword [ebp + 0xc]
push edi
push edx
lea eax, [eax + esi + 0x2028]
push eax
call fcn.0040fc60
add esp, 0xc
add dword [esi + 0x6028], edi
push 0x5820c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea ebx, [esi + 0x24]
push ebx
call fcn.0040fc60
add esp, 0xc
xor ecx, ecx
push ecx
push esi
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [esi + 0x14]
push 1
mov dword [eax], edi
push eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x2024], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x406c7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x406c7b
mov edx, dword [ebp + 8]
push edx
mov ecx, 0x582048
call fcn.00406d10
push 0x5820c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
add ebx, 0x7c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x406e8f
xor eax, eax
cmp edi, 0x1388
setl al
test eax, eax
je 0x406e8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x406e89
add dword [esi + 0x2024], eax
lea eax, [esi + 0x24]
push eax
push edi
push ecx
call fcn.004064f0
test al, al
je 0x406e86
mov eax, dword [esi + 0x2024]
lea edx, [eax + esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push esi
lea ecx, [esi + 0x14]
mov dword [ecx], edx
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
mov eax, edi
push 1
shl eax, 4
push ecx
add eax, edi
mov ecx, dword [eax*4 + 0x52e5fc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x406e8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x406e8f
mov ecx, dword [ebp + 8]
push edi
call fcn.00406d10
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406ea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
js 0x406ede
xor eax, eax
cmp ebx, 0x1388
setl al
test eax, eax
je 0x406ede
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x406eed
mov ecx, dword [ebp + 8]
push ebx
call fcn.00406d10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], eax
mov eax, dword [esi + 0x20]
mov ecx, ebx
shl ecx, 4
add ecx, ebx
lea edx, [ecx*4 + 0x52e5e0]
mov ecx, dword [esi + 0x2024]
mov dword [ebp + 0x10], edx
cmp ecx, eax
jl 0x406fd2
mov eax, dword [esi + 0x6028]
test eax, eax
jg 0x406f35
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x406fa0
push 0x2000
lea ebx, [esi + 0x2028]
push ebx
push edi
call fcn.0040fc60
mov eax, dword [esi + 0x6028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea edi, [esi + 0x14]
push ebx
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call fcn.00407e80
mov ebx, dword [ebp + 0xc]
add esp, 0x18
add dword [esi + 0x6028], 0xffffe000
jmp 0x406fe7
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call fcn.0040fc60
mov eax, dword [esi + 0x6028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x6028], eax
jmp 0x406fe0
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407034
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x407034
mov ecx, dword [ebp + 8]
push ebx
call fcn.00406d10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4075a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x51f1e0
lea ebx, [ebx]
cmp dword [esi], 0xffffffff
je 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 4]
cmp eax, dword [0x51f0fc]
jbe 0x401c8f
xor edi, edi
mov dword [esi], 0xffffffff
mov dword [esi + 4], edi
push edi
mov ecx, esi
call fcn.004012b0
inc edi
cmp edi, 0xc
jl 0x401c71
push ebx
push str._ChatRoomManager__Room__d_removed:_Downtime_reached.
push 0
call fcn.004074e0
add esp, 0xc
add esi, 0x1e8
inc ebx
cmp esi, 0x52e5e0
jl 0x401c50
pop edi
pop esi
pop ebx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov esi, 0x52e5e4
mov eax, dword [esi]
test eax, eax
js 0x4075ea
xor ecx, ecx
cmp eax, 0x1388
setl cl
mov eax, ecx
test eax, eax
je 0x4075ea
cmp dword [esi + 4], 0
je 0x4075ea
cmp dword [esi + 0x18], 0xffffffff
je 0x4075ea
call ebx
sub eax, dword [esi + 0x24]
cmp eax, dword [0x51f100]
jbe 0x4075ea
push edi
mov ecx, 0x582048
call fcn.00406d10
add esi, 0x44
inc edi
cmp esi, 0x581604
jl 0x4075b0
pop edi
pop esi
pop ebx
jmp 0x401c40

Function at 0x407780
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, 0x51d92c
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x634]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
cmp ecx, 0x51dcb8
jl 0x407785
mov ecx, 0x51dcb8
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, 0x7fffffff
xor eax, dword [ecx]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx - 0xd4c]
shr eax, 1
xor edx, eax
mov dword [ecx - 0x9c0], edx
add ecx, 4
cmp ecx, 0x51e2e8
jl 0x4077c3
mov ecx, dword [0x51e2e8]
mov eax, ecx
xor eax, dword [0x51cf6c]
mov dword [0x51cf68], 0
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
and cl, 1
movzx edx, cl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr eax, 1
xor edx, eax
xor edx, dword [0x51d59c]
mov dword [0x51d928], edx
ret
Function at 0x407840
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov eax, 0x51d5a0
push edi
jmp 0x407850
mov esi, dword [eax - 0x630]
mov ecx, dword [eax - 0x634]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 0x634]
mov edi, dword [eax - 0x62c]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
shr ecx, 1
xor edx, ecx
xor edx, dword [eax]
mov ecx, edi
mov dword [eax + 0x38c], edx
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
mov esi, dword [eax - 0x628]
and edx, 0x9908b0df
xor edx, dword [eax + 4]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x390], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edi, dword [eax - 0x624]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 8]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x394], edx
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov esi, dword [eax - 0x620]
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0xc]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x398], edx
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x10]
shr ecx, 1
xor edx, ecx
mov ecx, dword [eax - 0x61c]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov dword [eax + 0x39c], edx
mov edx, ecx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [eax + 0x14]
shr ecx, 1
xor edx, ecx
mov dword [eax + 0x3a0], edx
add eax, 0x18
cmp eax, 0x51df60
jl 0x407850
pop edi
pop esi
ret

Function at 0x407a74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b084]
jne 0x407a7e
repz ret
jmp fcn.00408d30
Function at 0x40f022
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b7b4
and dword [ebp - 0x14], 0
cmp dword [0x51f0a4], 0
mov dword [ebp - 0x18], eax
jne 0x40f0d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f17d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f17d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x51f0a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x51f0a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x51f0ac], eax
call edi
push eax
call esi
mov dword [0x51f0b4], eax
test eax, eax
je 0x40f0d5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x51f0b0], eax
mov eax, dword [0x51f0b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f12e
cmp dword [0x51f0b4], ecx
je 0x40f12e
push eax
call esi
push dword [0x51f0b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f12e
test ebx, ebx
je 0x40f12e
call edi
test eax, eax
je 0x40f125
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f125
test byte [ebp - 8], 1
jne 0x40f12e
or dword [ebp + 0x10], 0x200000
jmp 0x40f161
mov eax, dword [0x51f0a8]
cmp eax, dword [ebp - 0x18]
je 0x40f161
push eax
call esi
test eax, eax
je 0x40f161
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f161
mov eax, dword [0x51f0ac]
cmp eax, dword [ebp - 0x18]
je 0x40f161
push eax
call esi
test eax, eax
je 0x40f161
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51f0a4]
call esi
test eax, eax
je 0x40f17d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f17f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a74
leave
ret
Function at 0x44ab80
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44ab9d
mov eax, dword [esi]
test eax, eax
je 0x44acc1
cmp word [eax], 0
je 0x44acc1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44acc1
test al, 0x10
jne 0x44acc1
cmp dword [esi + 0x14], 8
jb 0x44abcf
mov esi, dword [esi]
push 0x462398
push esi
call fcn.00421683
mov esi, eax
add esp, 8
test esi, esi
je 0x44acc1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00428cfb
push 2
push 0
push esi
call fcn.0042837c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00428cfb
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00429232
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44acb8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427965
add esp, 0x10
test eax, eax
je 0x44acb8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44acb8
cmp dword [esp + 0x20], 0x48535844
jne 0x44acb8
cmp dword [esp + 0x24], 0x28
jne 0x44acb8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00421ac1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10508
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x10352
mov dword [0x10a08], eax
mov eax, dword [ebp + 0xc]
push esi
push esi
mov dword [0x10a04], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [section..data], eax
push esi
lea eax, [ebp + 0xc]
push eax
mov dword [0x10a14], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
call edi
test al, al
je 0x10555
xor cl, cl
call dword [sym.imp.HAL.dll_KfRaiseIrql]
call edi
test al, al
je 0x1055f
xor eax, eax
jmp 0x10589
push esi
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x1f03ff
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov eax, dword [0x10a14]
pop edi
pop esi
pop ebp
ret 0xc