joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7ad8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4dd180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4b7b1b
call fcn.0049a143
mov dword [eax], 0xf
call fcn.0049a156
mov dword [eax], 0xd
call fcn.004661e8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045777d
leave
ret
test eax, eax
jne 0x4b7b22
inc eax
jmp 0x4b7b0f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4b7b0d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4b7b0f
Function at 0x4bbfa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c490c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4dd180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x4bbff6
lea ecx, [edi + 0x68]
mov dword [edi], 0x4d1340
call fcn.0041c290
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0041f320
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
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
call fcn.0045773a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bc0bf
push 1
mov byte [ebp - 4], 3
call fcn.00437837
add esp, 4
mov dword [ebx + 4], eax
jmp 0x4bc0c1
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.0041e830
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3d], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x4df084]
mov ecx, dword [0x4df088]
mov dword [esi + 0x40], eax
mov eax, edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4bd8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bd91d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bd91d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.004ae4c0
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x2000], eax
cmp dword [0x6be784], 0
push edi
mov edi, ecx
je 0x401132
mov ecx, dword [esp + 0x2010]
lea eax, [esp + 0x2014]
push eax
push ecx
lea edx, [esp + 0xc]
push 0xfff
push edx
call dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x10
test eax, eax
jl 0x4010f4
cmp eax, 0xfff
ja 0x4010f4
jne 0x4010fc
mov byte [esp + 0x1003], 0
mov eax, dword [esp + 0x200c]
push eax
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x6b8fc0
push str.__s_::__s___s_______s___dL__
mov ecx, 0x1000
lea edi, [esp + 0x101c]
call fcn.00401040
add esp, 0x18
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2004]
pop edi
xor ecx, esp
call fcn.004adf6a
add esp, 0x2004
ret

Function at 0x401150
Capabilities:
Terminate process

Disassembly:
sub esp, 0x84
push ebx
push edi
xor ebx, ebx
push 0x84
lea eax, [esp + 0xc]
push ebx
push eax
mov dword [esi], 0x4d64
mov dword [esi + 4], ebx
call sub.MSVCR90.dll_memset
or eax, 0xffffffff
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x4d64
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x6b92d0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.00404220
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4011c6
push ebx
push str.MarkAny_macourtsafer
push 0x68d8a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esi + 8], ebx
jne 0x4011e0
jmp 0x4011d0
push 0x32
push edi
call fcn.00405090
add esp, 8
cmp dword [esi + 8], ebx
je 0x4011d0
push edi
call fcn.00404070
add esp, 4
pop edi
pop ebx
add esp, 0x84
ret
Function at 0x401200
Capabilities:
Get file version info

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push ebp
push str.GetFileVersion_ws_lpszFileName__s_
push 0x4e
push str..CWEBSock.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.GetFileVersion_ws
call fcn.004010a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebp
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [esp + 0xc], eax
test eax, eax
je 0x401304
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push ebp
mov dword [esp + 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4012ee
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4012ee
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0x68d95c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4012ee
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
push edi
push str.GetFileVersion_ws_pVer__s_
push 0x76
push str..CWEBSock.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.GetFileVersion_ws
call fcn.004010a0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov bl, 1
test esi, esi
je 0x401338
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
push 0x68d988
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
push edi
push str.GetFileVersion_ws_pVer__s_
push 0x81
push str..CWEBSock.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.GetFileVersion_ws
call fcn.004010a0
add esp, 0xc
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x401f80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea edi, [ebp - 2]
xor ecx, ecx
mov esi, eax
mov eax, 0x6bd680
test edi, edi
jle 0x40200a
push ebx
jmp 0x401fa0
movzx edx, byte [esi + ecx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
movzx edx, byte [esi + ecx]
movzx ebx, byte [esi + ecx + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
movzx edx, byte [esi + ecx + 1]
movzx ebx, byte [esi + ecx + 2]
inc eax
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
movzx edx, byte [esi + ecx + 2]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
add ecx, 3
inc eax
cmp ecx, edi
jl 0x401fa0
pop ebx
cmp ecx, ebp
jge 0x402080
movzx edx, byte [ecx + esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
dec ebp
inc eax
cmp ecx, ebp
jne 0x40204b
movzx ecx, byte [ecx + esi]
and ecx, 3
shl ecx, 4
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
pop edi
mov byte [eax], 0
sub eax, 0x6bd680
pop esi
inc eax
pop ebp
ret
lea edx, [ecx + esi + 1]
movzx ecx, byte [ecx + esi]
movzx esi, byte [edx]
and ecx, 3
shl ecx, 4
shr esi, 4
or ecx, esi
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movzx edx, byte [edx]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
pop edi
mov byte [eax], 0
sub eax, 0x6bd680
pop esi
inc eax
pop ebp
ret
Function at 0x402380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GetRunningProcessId_nPid__d_
push 0x4c
push str..macourtsafer.cpp
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.GetRunningProcessIdExceptCurrentPID
call fcn.004010a0
add esp, 0xc
test bl, bl
je 0x402499
mov ebx, dword [sym.imp.MSVCR90.dll__strupr]
jmp 0x402400
push 0x105
lea ecx, [esp + 0x13c]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x138], cl
inc eax
test cl, cl
jne 0x402420
lea edx, [esp + 0x138]
push edx
call ebx
add esp, 4
push 0x68e144
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402486
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
jne 0x4024a3
push str.GetCurrentProcessId__entry.th32ProcessID_pass
push 0x5a
push str..macourtsafer.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.GetRunningProcessIdExceptCurrentPID
call fcn.004010a0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
jmp 0x40248b
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test al, al
jne 0x402400
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push esi
push edi
push str._tWinMain
push 0x7d
push str..macourtsafer.cpp
mov dword [0x6be784], 0
call ebx
mov ecx, eax
mov esi, str.WinMain
call fcn.004010a0
add esp, 8
call fcn.00402380
mov edi, eax
push edi
push str._tWinMain_dRet__d_
push 0x7f
push str..macourtsafer.cpp
call ebx
mov ecx, eax
call fcn.004010a0
add esp, 0xc
cmp edi, 0xffffffff
je 0x4025c1
push str._tWinMain_macourtsafer.exe_already_running_return_0
push 0x83
jmp 0x4025f9
push 0
push 0
push 0
push 0x4024c0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x4025ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._tWinMain_close
push 0xa5
push str..macourtsafer.cpp
call ebx
mov ecx, eax
mov esi, str.WinMain
call fcn.004010a0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x402de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x402e3d
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x402e37
call esi
cmp eax, 0x2733
je 0x402e37
call esi
cmp eax, 0x2714
je 0x402e37
push str.error_on_reading_from_skt_n
push 2
call fcn.00403280
add esp, 8
or eax, 0xffffffff
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x402e40
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 8]
mov edx, dword [edi + 0x104]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x402ea3
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x402e8a
call esi
cmp eax, 0x2733
je 0x402e8a
call esi
cmp eax, 0x2714
je 0x402e8a
pop esi
or eax, 0xffffffff
pop edi
ret
call esi
cmp eax, 0x2733
jne 0x402e9d
or dword [edi + 0x120], 0x200
mov eax, 0xfffffffe
pop esi
pop edi
ret

Function at 0x403080
Capabilities:
Resolve dns

Disassembly:
mov dword [esp + 4], 0
jmp 0x405700
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x405739
test ecx, ecx
jne 0x405739
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405734
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x405739
test ecx, ecx
jne 0x405739
or eax, 0xffffffff
pop esi
ret
mov edx, dword [esp + 0x10]
mov dword [edx + 4], eax
xor eax, eax
pop esi
ret
Function at 0x405250
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
mov eax, dword [eax]
xor ecx, ecx
lea edx, [esp]
push edx
push ecx
push ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
inc eax
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret

Function at 0x405510
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x32c], 0
mov ebx, 1
mov dword [esp + 0x10], ebx
je 0x40558c
push 4
lea eax, [esp + 0x2c]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x3c], ebx
call ebp
test eax, eax
jl 0x4055b4
mov ecx, dword [edi + 0x32c]
mov edx, dword [edi + 0x334]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0xc
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
push ecx
push 0x98000004
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4055b4
push 0x5daa84
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_getprotobyname]
test eax, eax
jne 0x4055be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getprotobyname___failed_with_error__d_n
push ebx
call fcn.00403280
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
movsx eax, word [eax + 8]
push 4
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
push esi
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x405600
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40563c
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004adf6a
add esp, 0x194
ret
push eax
push str.WSAStartup_failed_with_error:__d_n
push 1
call fcn.00403280
mov ecx, dword [esp + 0x19c]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.004adf6a
add esp, 0x194
ret
Function at 0x406680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
movsx eax, byte [esi + 0x12d]
push edi
mov edi, dword [esi + 0xc8]
shl eax, 6
cmp dword [edi + 0x338], 0
lea ebp, [eax + edi + 0x1c]
jne 0x4066aa
pop edi
pop esi
xor eax, eax
pop ebp
ret
movsx eax, byte [esi + 0x126]
sub eax, 6
je 0x4067dc
sub eax, 1
jne 0x4066a4
mov ecx, dword [edi + 0x16c]
push ecx
call fcn.0040e560
add esp, 4
mov dword [esi + 0xf4], eax
test eax, eax
jne 0x40671a
push eax
push eax
push eax
call fcn.0040f0c0
add esp, 8
push eax
call fcn.00433c80
push eax
push str.SSL_new_failed:__s_n
push 1
call fcn.00403280
add esp, 0x14
call fcn.004060a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4068d8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov eax, 1
pop ebp
ret
mov edx, dword [0x6bef88]
push edi
push edx
push eax
call fcn.0040e370
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xf4]
push eax
push ecx
call fcn.0040ce90
mov edx, dword [esi + 0xf4]
push 0
push 2
push 0x21
push edx
call fcn.0040eb20
mov eax, dword [esi + 0xf4]
push eax
call fcn.00488e10
add esp, 0x28
test eax, eax
je 0x40676f
push 0
push 1
push 0x66
push eax
call fcn.00434e10
add esp, 0x10
jmp 0x40677e
push str.NULL_rbio_n
push 4
call fcn.00403280
add esp, 8
mov ecx, dword [esi + 0xf4]
push ecx
call fcn.00431d90
add esp, 4
test eax, eax
je 0x4067a2
push 0
push 1
push 0x66
push eax
call fcn.00434e10
add esp, 0x10
jmp 0x4067b1
push str.NULL_rbio_n
push 4
call fcn.00403280
add esp, 8
push esi
push edi
mov byte [esi + 0x126], 6
call fcn.00403cb0
add esp, 8
test eax, eax
jne 0x4068d8
mov edx, dword [edi + 0x31c]
push edx
push 9
push esi
call fcn.00402f60
add esp, 0xc
push 0
push 2
push esi
call fcn.00403f50
add esp, 0xc
test eax, eax
jne 0x4068d8
mov eax, dword [ebp + 0x30]
mov ecx, dword [esi + 0x104]
push 2
push 0x1000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [edi + 0x33c], 0
je 0x406872
cmp eax, 1
jl 0x406850
mov edx, dword [ebp + 0x30]
cmp byte [edx], 0x20
jb 0x406850
mov eax, dword [esi + 0xf4]
and dword [esi + 0x120], 0xffffff3f
push eax
call fcn.0040ead0
mov ecx, dword [esi + 0xf4]
push ecx
call fcn.0040e820
add esp, 8
mov dword [esi + 0xf4], 0
jmp 0x406886
test eax, eax
je 0x4066a4
jge 0x406872
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x2733
je 0x4068ba
call ebp
cmp eax, 0x2733
je 0x4068ba
mov edx, dword [esi + 0xf4]
push edx
call fcn.0040f2e0
add esp, 4
cmp eax, 1
jne 0x4068a5
mov eax, dword [edi + 0x31c]
push eax
push 3
push esi
call fcn.00402f60
add esp, 0xc
pop edi
mov byte [esi + 0x126], 0
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0xf4]
push eax
push ecx
call fcn.0040f0c0
add esp, 8
cmp eax, 2
jne 0x4068be
push 9
jmp 0x4068c5
cmp eax, 3
jne 0x4068d8
push 2
push 0
push esi
call fcn.00403f50
add esp, 0xc
test eax, eax
je 0x4066a4
pop edi
pop esi
mov eax, 1
pop ebp
ret
Function at 0x408370
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x408459
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 4
lea esp, [esp]
xor edi, edi
xor ecx, ecx
test ebp, ebp
je 0x4083b3
mov bl, byte [eax]
inc eax
inc edi
mov byte [esp + ecx + 0x20], bl
dec ebp
jmp 0x4083b8
mov byte [esp + ecx + 0x20], 0
inc ecx
cmp ecx, 3
jl 0x4083a4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x28]
jge 0x40846d
movzx ecx, byte [esp + 0x20]
mov esi, ecx
shr esi, 2
movzx ebx, byte [esi + 0x5db128]
movzx esi, byte [esp + 0x21]
mov byte [edx], bl
and ecx, 3
mov ebx, esi
shr ebx, 4
shl ecx, 4
or ebx, ecx
mov cl, byte [ebx + 0x5db128]
mov bl, byte [esp + 0x22]
inc edx
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x40841c
and esi, 0xf
movzx ecx, bl
add esi, esi
shr ecx, 6
add esi, esi
or ecx, esi
movsx ecx, byte [ecx + 0x5db128]
jmp 0x408421
mov ecx, 0x3d
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x408438
movzx ecx, bl
and ecx, 0x3f
movsx ecx, byte [ecx + 0x5db128]
jmp 0x40843d
mov ecx, 0x3d
mov byte [edx], cl
mov ecx, 4
add dword [esp + 0x14], ecx
add dword [esp + 0x10], ecx
inc edx
test ebp, ebp
jne 0x4083a0
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x28]
jge 0x40846d
pop edi
pop esi
pop ebp
mov byte [edx], 0
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x4093f0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
test byte [eax + 0x38], 4
jne 0x40941f
push esi
mov esi, dword [esp + 8]
push 0x7f
add esi, 0x278
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
push str._canonical_hostname___s_n
push 4
call fcn.00403280
add esp, 0xc
pop esi
ret
Function at 0x40cc50
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x6c
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
push 0x68
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], 0xc3d2e1f0
call fcn.0040caf0
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040cbb0
mov ecx, dword [esp + 0x90]
add esp, 0x20
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004adf6a
add esp, 0x6c
ret