joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466ae0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x466afb
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
cmp dword [esp + 0x20], ebx
jne 0x466b0c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0xc], esi
je 0x466b01
mov al, byte [esp + 0x18]
push ebp
lea ebp, [esi + 0xc]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x466b4b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x466b71
mov al, byte [ecx - 1]
test al, al
je 0x466b71
cmp al, 0xff
je 0x466b71
test ebx, ebx
jne 0x466b97
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x466bc5
test ebx, ebx
jne 0x466b81
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x466bc5
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x466b8d
cmp eax, ebx
jae 0x466ba0
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
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 [ebp + 4]
mov esi, dword [esp + 0x10]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
push eax
push esi
push 0x466560
push eax
mov dword [esi + 4], edx
mov dword [esi + 8], eax
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x466c10
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor esi, esi
test eax, eax
push edi
jle 0x466cde
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x466c4d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x466c4d
cmp word [edi + 0xa], 4
je 0x466c68
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x466c32
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x466cbe
mov eax, dword [edi + 4]
test eax, eax
je 0x466cb4
mov esi, ebx
mov dl, byte [ecx]
mov bl, byte [esi]
mov al, dl
cmp dl, bl
jne 0x466c9f
test al, al
je 0x466c9b
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x466c9f
add ecx, 2
add esi, 2
test dl, dl
jne 0x466c77
xor eax, eax
jmp 0x466ca4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x466cb4
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
jmp 0x466cbe
mov edx, dword [esp + 0x24]
mov dword [edx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x466cde
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x466cde
mov ecx, dword [ecx]
mov dword [edx + ebp*4], ecx
inc ebp
cmp ebp, eax
jl 0x466cca
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x466f70
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x4c8918]
xor eax, eax
cmp ecx, eax
je 0x466fa2
lea ecx, [esp]
mov dword [0x4c8918], eax
push ecx
push eax
push eax
push 0x466cf0
push eax
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x4d3a58], eax
pop ecx
ret

Function at 0x466fb0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4d3a58]
test eax, eax
je 0x466fe9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x466fd2
mov eax, dword [0x4d3a58]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [0x4d3a58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d3a58], 0
ret

Function at 0x4682c0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4682e0
or eax, eax
pop edi
add esp, 0x10
ret 8
xor eax, eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46832d
cmp eax, 0x100007f
je 0x46832d
push eax
call esi
mov dword [esp + 0xc], eax
lea edx, [esp + 8]
push 0x10
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
pop esi
je 0x46834a
or eax, 0xffffffff
pop edi
add esp, 0x10
ret 8
mov eax, edi
pop edi
add esp, 0x10
ret 8
Function at 0x468730
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.0043f0f0
cmp eax, 0xffffffff
je 0x46875d
push 0x2735
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x2735
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, esi
call fcn.00468b90
test eax, eax
jne 0x468784
push 0x276d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x276d
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4687ac
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
call dword [eax + 0x28]
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x20]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4687d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
push eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004689c0
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00469760
test eax, eax
jne 0x468808
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x10], eax
call dword [edx + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x24]
test eax, eax
je 0x468830
mov eax, dword [esi + 8]
push 0x3f
add eax, 0x402
mov ecx, esi
push eax
call fcn.00469870
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x4687ee
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x468875
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x46889d
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
mov ecx, esi
call fcn.00468960
test eax, eax
jne 0x46889d
jmp 0x4687ee
push 0x10
push eax
mov ecx, esi
call fcn.00468960
test eax, eax
jne 0x46889d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 0x10
Function at 0x469490
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4694b8
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x38]
pop esi
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x10
ret 0x14

Function at 0x4696e0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x4696fb
mov ecx, dword [esp + 8]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 8]
push ecx
mov ecx, eax
call dword [edx + 0x20]
ret 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret 8

Function at 0x469900
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 0x10
Function at 0x46af70
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad6f9
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x70], 0x64
cmp eax, 1
jne 0x46b072
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x9c], eax
mov eax, dword [esp + 0x28]
add eax, 0x30
mov ecx, ebx
push eax
call fcn.0046ac00
mov eax, dword [ebx + 0x60]
cmp eax, 0x36
jl 0x46afc7
cmp eax, 0x64
jne 0x46afcc
cmp eax, 1
jne 0x46afd5
mov ecx, dword [ebx]
push 1
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebx + 0x58]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00464c70
add esp, 8
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x20], 0
je 0x46affd
mov esi, eax
mov edx, dword [ebx + 0x60]
mov ax, word [ebx + 0x5c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
and eax, 0xffff
push eax
push esi
push ecx
push edx
push str.__d._3d__Handshake_with__s:_d__d
push 0x4d35d0
call fcn.0045ee70
add esp, 0x1c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x68], 2
mov ebx, dword [ebx + 0x20]
push eax
push 0xcf
push ebx
mov ecx, 0x4d34a0
call fcn.0045ce00
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
test eax, eax
jne 0x46b102
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov dword [ebx + 0x90], eax
call esi
mov dword [ebx + 0xa8], eax
call esi
mov dword [ebx + 0x98], eax
call esi
mov dword [ebx + 0xa0], eax
call esi
mov dword [ebx + 0x94], eax
call esi
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x9c], eax
mov ecx, ebx
lea eax, [esi + 0x30]
push eax
call fcn.0046ac00
lea eax, [esi + 0x1c]
lea edi, [ebx + 0x3c]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.0046a5e0
mov eax, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x20]
push eax
push 0xcf
push ebx
mov ecx, 0x4d34a0
call fcn.0045ce00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x46d950
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x46d99c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x46d99c
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 4
push edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d99c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x46d9b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x208
test eax, eax
push esi
je 0x46da17
mov ecx, dword [esp + 0x210]
test ecx, ecx
je 0x46da17
mov esi, dword [esp + 0x214]
test esi, esi
je 0x46da17
lea edx, [esp + 4]
mov dword [esp + 4], 0x100
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46da17
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, 1
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x46da70
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x46dabc
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x46dabc
mov esi, dword [esp + 0x14]
test esi, esi
je 0x46dabc
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
shl ax, 1
add esp, 4
inc ax
and eax, 0xffff
push eax
mov eax, dword [edi + 4]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x46dad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 8]
push ecx
push 0x20019
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46db44
mov eax, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46db39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
pop ecx
ret
Function at 0x46db50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x20006
push 0
push esi
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x46dbb8
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x46dbb8
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x46dbdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x46dd70
Capabilities:
Encrypt data using des

Disassembly:
push 0xffffffffffffffff
push 0x4ad8cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [str.360cnwjh]
mov ecx, dword [0x4c9eb4]
mov dl, byte [0x4c9eb8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
xor ebp, ebp
test eax, eax
mov dword [esp + 0xc4], ebp
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
je 0x46ddf3
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
test dl, dl
je 0x46ddf3
lea eax, [esp + 0x28]
movsx edx, dl
add edx, ecx
and edx, 0x8000007f
jns 0x46dde9
dec edx
or edx, 0xffffff80
inc edx
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x46ddd7
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x800
call esi
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x46de7f
lea ecx, [esp + 0x1c]
call fcn.0046e810
push 0x800
call esi
add esp, 4
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x46de36
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x46de7f
push 0x4b1560
push eax
lea ecx, [esp + 0x24]
call fcn.0046e780
push 0x800
call esi
add esp, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x46de70
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
add esp, 8
jmp 0x46de7f
push 0x4b15a0
push eax
lea ecx, [esp + 0x24]
call fcn.0046e780
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0046dff0
mov edi, dword [esp + 0xd0]
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
cmp edi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edx
jle 0x46decd
mov ecx, dword [esp + 0xcc]
lea eax, [esp + 0x10]
sub ecx, eax
cmp esi, 8
jge 0x46decd
lea eax, [esp + esi + 0x10]
inc esi
cmp esi, edi
mov dl, byte [ecx + eax]
mov byte [eax], dl
jl 0x46deba
mov ebx, dword [esp + 0xcc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0046e0d0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edx, edx
xor eax, eax
mov dword [esp + 0x10], edx
cmp esi, edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edx
jge 0x46df3a
cmp eax, 8
jge 0x46df23
mov edx, dword [esp + 0xcc]
inc eax
mov dl, byte [esi + edx]
inc esi
mov byte [esp + eax + 0xf], dl
cmp esi, edi
jl 0x46df07
cmp eax, 8
jne 0x46df3a
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x18]
add ecx, 8
add ebx, 8
mov dword [esp + 0x18], ecx
jmp 0x46ded4
movsx eax, byte [esp + 0x3b]
test eax, eax
jl 0x46df72
cmp eax, 7
jg 0x46df72
test eax, eax
je 0x46df72
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xcc]
mov ecx, eax
lea esi, [esp + 0x34]
lea edi, [ebx + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x46df76
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0046dfa0
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x46dff0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x46e006
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret 8
mov edx, dword [esp + 0x7c]
push ebx
push esi
push edi
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
movsx eax, byte [ecx + str.91__]
dec eax
mov esi, eax
and eax, 7
sar esi, 3
mov edi, dword [eax*4 + 0x4b1878]
movsx esi, byte [esi + edx]
test edi, esi
setne al
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x38
jl 0x46e01a
xor edi, edi
movsx ecx, byte [edi + 0x4b1618]
xor eax, eax
xor edx, edx
cmp eax, 0x1c
setge dl
dec edx
mov esi, ecx
and edx, 0xffffffe4
add edx, 0x38
cmp ecx, edx
jl 0x46e067
lea esi, [ecx - 0x1c]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x48], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x46e04f
xor ecx, ecx
movsx eax, byte [ecx + 0x4b1628]
mov dl, byte [esp + eax + 0x47]
test dl, dl
je 0x46e0b6
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
add eax, edx
lea esi, [eax + edi*8]
mov eax, ecx
cdq
idiv ebx
mov al, byte [esi]
mov edx, dword [edx*4 + 0x4b1878]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x46e078
inc edi
cmp edi, 0x10
jl 0x46e046
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x70
ret 8

Function at 0x46e810
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov dword [esp + 0x10], ecx
push esi
xor ebx, ebx
push edi
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4b1858]
dec edx
cmp edx, ecx
je 0x46e835
inc eax
cmp eax, 0x20
jl 0x46e821
jmp 0x46e839
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x20
jl 0x46e81f
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, edx
mov ecx, edx
sar eax, 1
and ecx, 1
and eax, 0xf
shl ecx, 4
or eax, ecx
mov ecx, edx
and ecx, 0x20
xor edi, edi
or eax, ecx
mov ecx, dword [esp + 0x10]
xor esi, esi
movsx ebp, byte [ecx + eax + 0x4b1658]
mov eax, 8
mov ecx, esi
sar eax, cl
test ebp, eax
je 0x46e899
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + esi]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edi, eax
inc esi
cmp esi, 4
jl 0x46e875
mov ecx, dword [esp + 0x18]
inc edx
add ebx, 4
cmp edx, 0x40
mov eax, dword [ecx]
mov dword [ebx + eax - 4], edi
jl 0x46e84d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x40
add ecx, 4
cmp ebx, 0x800
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jl 0x46e84b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret