joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d0b
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, ecx
mov ebx, str.Kernel32.dll
xor ebp, ebp
push str.CloseHandle
push ebx
mov dword [esp + 0x1c], ebp
mov dword [esi], ebp
call edi
push eax
call fcn.00401781
pop ecx
mov dword [esp + 0x14], eax
pop ecx
push str.CreateFileA
push ebx
call edi
push eax
call fcn.00401781
pop ecx
mov ebx, 0x80000000
pop ecx
push ebp
push 0x80
push 3
push ebp
push 3
push ebx
push dword [esp + 0x34]
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x403d6c
push 3
jmp 0x403d9c
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, ebp
mov dword [esi + 4], eax
jne 0x403d84
push edi
call dword [esp + 0x14]
push 5
jmp 0x403d9c
push eax
push pe_nt_image_headers32
pop ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test eax, eax
mov dword [esi], eax
jne 0x403da7
push edi
call dword [esp + 0x14]
push 1
call fcn.004038bd
pop ecx
jmp 0x403eb6
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [esp + 0x14]
push ebp
push dword [esi]
push dword [esi + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x3c]
mov dword [esi + 0x14], ebp
sub eax, ebp
push eax
mov dword [esi + 0x10], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x10]
add esp, 0x10
test ebx, ecx
mov dword [esi + 0xc], eax
jne 0x403dfa
push ecx
mov ecx, dword [esi + 0x14]
add ecx, dword [esi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 8]
mov edi, 0xf8
push edi
mov eax, dword [eax + 0x3c]
add eax, dword [esi]
push eax
push dword [esi + 0x18]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
mov ebx, dword [eax + 0x3c]
add ebx, edi
cmp word [eax], 0x5a4d
jne 0x403e2e
mov eax, dword [esi + 0x18]
cmp dword [eax], 0x4550
je 0x403e38
push 2
call fcn.004038bd
pop ecx
jmp 0x403eae
movzx ebp, word [eax + 6]
test ebp, ebp
jbe 0x403eae
and dword [esp + 0x1c], 0
lea edi, [esi + 0x1c]
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x1c]
push 0x28
add eax, dword [esi]
add eax, ebx
push eax
push dword [edi]
call sub.MSVCRT.dll_memcpy
add dword [esp + 0x28], 0x28
add esp, 0xc
add edi, 4
dec dword [esp + 0x10]
jne 0x403e4c
test ebp, ebp
jbe 0x403eae
lea edi, [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, esi
push dword [eax + 0x3c]
mov eax, dword [edi]
push dword [eax + 0x10]
call fcn.0040392d
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [edi + 0x50], eax
mov ecx, dword [edi]
push dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
add ecx, dword [esi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 4
dec ebp
jne 0x403e76
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x403ebf
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, ecx
mov ebx, str.Kernel32.dll
push str.CloseHandle
and dword [esi], 0
push ebx
call edi
push eax
call fcn.00401781
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
push str.CreateFileA
push ebx
call edi
push eax
call fcn.00401781
pop ecx
mov ebx, 0x80
pop ecx
mov edi, 0x40000000
push 0
push ebx
push 1
push 0
push 3
push edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403f3f
push 0
push ebx
push 3
push 0
push 3
push edi
push dword [ebp + 8]
call dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403f3f
push 3
jmp 0x403f73
mov ecx, esi
call fcn.00403943
mov eax, dword [esi + 0x18]
movzx eax, word [eax + 6]
mov eax, dword [esi + eax*4 + 0x18]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, ecx
push eax
push pe_nt_image_headers32
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test eax, eax
mov dword [esi], eax
jne 0x403f7e
push dword [ebp - 4]
call dword [ebp - 0xc]
push 1
call fcn.004038bd
pop ecx
jmp 0x40406a
push pe_nt_image_headers32
push dword [esi + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x10]
add esp, 0xc
test eax, 0x80000000
jne 0x403fa8
push eax
mov eax, dword [esi + 0x14]
push dword [esi + 0xc]
add eax, dword [esi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 8]
mov ebx, 0xf8
push ebx
mov eax, dword [eax + 0x3c]
push dword [esi + 0x18]
add eax, dword [esi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
mov edi, dword [eax + 0x3c]
mov eax, dword [esi + 0x18]
add edi, ebx
movzx eax, word [eax + 6]
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x40402a
and dword [ebp + 8], 0
lea ebx, [esi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push 0x28
add eax, dword [esi]
push dword [ebx]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add dword [ebp + 8], 0x28
add esp, 0xc
add ebx, 4
dec dword [ebp - 8]
jne 0x403fe2
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40402a
lea edi, [esi + 0x1c]
mov ebx, eax
mov eax, dword [edi]
push dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, dword [esi]
push dword [edi + 0x50]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 4
dec ebx
jne 0x40400e
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor eax, eax
push eax
push eax
push eax
push ebx
call edi
lea eax, [ebp - 0x14]
push 0
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push 0
push dword [esi + 4]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push ebx
call dword [ebp - 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404071
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov byte [ebp - 0x30], 0x53
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x44
mov byte [ebp - 0x2d], 0x65
mov byte [ebp - 0x2c], 0x62
mov byte [ebp - 0x2b], 0x75
mov byte [ebp - 0x2a], 0x67
mov byte [ebp - 0x29], 0x50
mov byte [ebp - 0x28], 0x72
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x76
mov byte [ebp - 0x25], 0x69
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x67
mov byte [ebp - 0x21], 0x65
and byte [ebp - 0x20], 0
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.00401290
pop ecx
pop ecx
mov byte [ebp - 0x1c], 0x73
mov byte [ebp - 0x1b], 0x66
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0x5f
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
and byte [ebp - 0x12], 0
push 0x104
push 0
push 0x406368
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x82
push 0x406368
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404146
xor eax, eax
jmp 0x4041e4
and dword [ebp - 0x10], 0
push 5
push dword [ebp - 8]
call fcn.00401781
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
movzx eax, byte [0x406364]
and eax, 1
test eax, eax
jne 0x40418f
mov al, byte [0x406364]
or al, 1
mov byte [0x406364], al
push 0xa
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [0x406360], eax
push 5
push dword [ebp - 4]
push dword [0x406360]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [0x406360]
mov byte [eax + 5], 0xe9
mov eax, dword [ebp - 4]
sub eax, dword [0x406360]
sub eax, 5
mov ecx, dword [0x406360]
mov dword [ecx + 6], eax
push 0xffffffffffffffff
push 0x406368
push 0
call fcn.004041ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1001ede0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1001ede0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1001ede0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x4048c8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x472adc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404a1b
cmp byte [edi + 1], al
je 0x404a17
cmp byte [edi + 0x31], al
je 0x404926
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.0040531e
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
call fcn.00420c60
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404941
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404a7b
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.00420e8f
cmp eax, 1
je 0x404987
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.00420ca0
and dword [edi + 0x4c], 0
jmp 0x404a97
mov ecx, dword [edi + 0x4c]
call fcn.00421a40
cmp eax, 1
je 0x4049c4
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.004210b2
jmp 0x404976
mov ecx, dword [edi + 0x4c]
call fcn.00420e06
mov dword [edi + 0x50], eax
test eax, eax
jne 0x4049f9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x404a99
cmp byte [edi + 0x31], 0
je 0x404a97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x404a97
sub ecx, 0x17
je 0x404a71
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041cae1
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fd8
jmp 0x404a97
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404aa1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.0040247c
push 4
pop esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
add eax, esi
push 0xc
mov dword [ebp - 8], eax
call fcn.0040520c
push esi
lea eax, [edi + 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push esi
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push 8
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403376
cmp byte [edi + 1], bl
jne 0x404b40
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x404b7b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.0042103a
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
lea ecx, [ebp - 0x20]
call fcn.00401fd8
lea ecx, [ebp + 0xc]
call fcn.00401fd8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x404b96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x404bcd
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, dword [edi + 0x4c]
call fcn.00421076
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov eax, esi
jmp 0x404be0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
ret 0xc

Function at 0x404be5
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x404c01
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
ret 4
Function at 0x404cc3
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
push edi
and dword [esi + 0x54], 0
call fcn.004020df
mov bh, byte [esp + 0x54]
lea eax, [esi + 0x58]
mov edi, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00401fab
push eax
mov ecx, esi
call fcn.00404efb
test al, al
je 0x404e13
movzx ecx, byte [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
add ebp, ecx
mov ecx, edi
call fcn.0040247c
cmp ebp, eax
jbe 0x404d31
mov ecx, edi
mov bl, 1
call fcn.0040247c
mov ecx, ebp
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x404d33
xor bl, bl
test bl, bl
jne 0x404e13
push 0xffffffffffffffff
push dword [esp + 0x58]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
lea eax, [esp + 0x18]
test bh, bh
jne 0x404da4
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004020f6
push esi
call dword [esp + 0x6c]
add esp, 0x1c
jmp 0x404de1
push eax
lea ecx, [esi + 0xc]
call fcn.00401fc0
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x5c]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004041a2
push eax
mov ecx, edi
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
mov ecx, edi
call fcn.0040247c
test eax, eax
lea eax, [esi + 0x58]
jne 0x404ce9
lea ecx, [esp + 0x18]
call fcn.00401fd8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x404f51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x404fea
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x404f74
mov byte [esi + 0x7c], 1
jmp 0x404fc0
cmp byte [0x472d48], 0
je 0x404fc0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0041bb8e
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401fd8
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push edi
push edi
push esi
push 0x405150
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov al, 1
jmp 0x404fec
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x407260
Capabilities:
Terminate process

Disassembly:
xor eax, eax
inc eax
cmp dword [0x4719d0], eax
jne 0x40768a
ret
cmp dword [0x4719d0], 1
jne 0x407697
xor eax, eax
inc eax
ret
push esi
push dword [0x472d44]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 0x4752d8
mov edx, 0x466468
mov ecx, esi
call fcn.004077b7
test al, al
je 0x4076c4
mov ecx, esi
call fcn.00401f04
mov ecx, eax
jmp 0x4076c9
mov ecx, 0x472b38
call fcn.0040766d
pop esi
test eax, eax
jne 0x4076da
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, 0x475320
call fcn.00401fab
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push 2
mov dword [0x472d44], eax
pop eax
ret