joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417c30
Capabilities:
Hash data using murmur3

Disassembly:
push ecx
mov ecx, dword [0x46a794]
mov dword [esp], 0
test ecx, ecx
je 0x417c4d
push ecx
push 0
call fcn.0041ccb0
add esp, 8
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [0x4605e8]
test edi, edi
je 0x417cb1
mov eax, esi
xor edx, edx
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
div dword [0x4605ec]
mov eax, dword [edi + edx*4]
lea ecx, [edi + edx*4]
test eax, eax
je 0x417cb1
cmp dword [eax + 4], esi
je 0x417c9f
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x417c90
jmp 0x417ca1
mov eax, dword [ecx]
test eax, eax
je 0x417cb1
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
jmp 0x417dd8
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x417d07
mov edx, dword [esp + 8]
test edx, edx
je 0x417d38
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417ce0
sub ecx, edi
je 0x417d38
cmp byte [ecx + edx - 1], 0xa
jne 0x417d38
sub ecx, 1
mov byte [ecx + edx], al
je 0x417d38
cmp byte [ecx + edx - 1], 0xd
jne 0x417d38
mov byte [ecx + edx - 1], al
jmp 0x417d38
push 0x32
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 8], eax
test eax, eax
jne 0x417d27
mov eax, 0x460668
mov dword [esp + 8], eax
jmp 0x417dd8
push esi
push str.winsock_error_0x_08x
push 0x32
push eax
call fcn.00417e10
add esp, 0x10
push 0xc
call fcn.00408540
mov edi, eax
add esp, 4
test edi, edi
jne 0x417d5d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, str.malloc_failed_during_Winsock_error
mov dword [esp + 8], eax
jmp 0x417dd8
mov dword [edi + 4], esi
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
mov esi, dword [0x4605e8]
mov eax, dword [0x4605f0]
test esi, esi
je 0x417d7e
cmp eax, dword [0x4605f4]
jb 0x417d98
inc eax
push eax
push 0x4605e8
call fcn.0041ad10
mov eax, dword [0x4605f0]
add esp, 8
mov esi, dword [0x4605e8]
inc eax
xor edx, edx
mov dword [0x4605f0], eax
mov ecx, dword [edi + 4]
shr ecx, 0x10
xor ecx, dword [edi + 4]
imul ecx, ecx, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
div dword [0x4605ec]
mov eax, dword [esi + edx*4]
mov dword [edi], eax
mov dword [esi + edx*4], edi
mov eax, dword [esp + 8]
lea ecx, [esi + edx*4]
mov ecx, dword [0x46a794]
pop edi
pop esi
test ecx, ecx
je 0x417df3
push ecx
push 0
call fcn.0041ccc0
mov eax, dword [esp + 8]
add esp, 8
pop ecx
ret
Function at 0x418f50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
test edx, edx
je 0x419103
test eax, eax
jne 0x418fc1
push 0x46012c
push 0x460140
push 0x96
push 0x460148
push 0x460154
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.evutil_read_file_
push str.len_out
push 0x96
push 0x460194
push 0x4601a0
jmp 0x419142
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x5c]
neg eax
push ebp
sbb eax, eax
push 0
and eax, 0x8000
push eax
push ecx
call fcn.00438613
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x419000
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eefa
add esp, 0x4c
ret
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004370cf
add esp, 8
test eax, eax
jne 0x4190e4
cmp dword [esp + 0x34], eax
ja 0x4190e4
mov eax, dword [esp + 0x30]
jb 0x419032
cmp eax, 0x7ffffffe
ja 0x4190e4
inc eax
push eax
call fcn.00408540
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4190e4
mov ecx, dword [esp + 0x30]
push esi
xor esi, esi
push edi
nop
mov eax, dword [esp + 0x3c]
mov edx, ecx
sub edx, esi
sbb eax, 0
mov dword [esp + 0x1c], eax
js 0x419072
jg 0x41906b
cmp edx, 0x7fffffff
jbe 0x419072
mov ecx, accept
jmp 0x419074
sub ecx, esi
push ecx
lea eax, [ebx + esi]
push eax
push ebp
call fcn.00437ace
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x419092
mov ecx, dword [esp + 0x38]
add esi, edi
cmp esi, ecx
jb 0x419050
push ebp
call fcn.004374d0
add esp, 4
test edi, edi
pop edi
jns 0x4190c0
push ebx
call fcn.00408660
add esp, 4
mov eax, 0xfffffffe
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eefa
add esp, 0x4c
ret
mov eax, dword [esp + 0xc]
mov byte [ebx + esi], 0
mov dword [eax], esi
mov eax, dword [esp + 0x10]
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
pop ebp
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eefa
add esp, 0x4c
ret
push ebp
call fcn.004374d0
mov ecx, dword [esp + 0x54]
add esp, 4
mov eax, 0xfffffffe
pop ebx
pop ebp
xor ecx, esp
call fcn.0042eefa
add esp, 0x4c
ret
push 0x46008c
push 0x4600a0
push 0x95
push 0x4600ac
push 0x4600b8
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push 0x4600dc
push str.content_out
push 0x95
push 0x4600fc
push 0x460108
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3
Function at 0x419160
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x1c]
cmp dword [esi], ebp
jge 0x4191a0
movzx eax, word [edi]
push ebp
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
test eax, eax
js 0x41923c
push eax
mov ebp, 1
call fcn.00417b40
add esp, 4
test eax, eax
js 0x41922e
push dword [esp + 0x20]
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x41924d
mov ebx, dword [esi]
mov dword [esp + 0x18], 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4191fa
test ebx, ebx
js 0x4191fa
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x419245
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4191fc
mov eax, edi
cmp eax, 0x2733
je 0x419245
cmp eax, 0x2714
je 0x419245
cmp eax, 0x2734
je 0x419245
cmp eax, 0x2726
je 0x419245
cmp eax, 0x274d
jne 0x41922a
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41923c
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x419f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
lea eax, [esp + 4]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x419fdf
mov ecx, ebx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419f50
sub ecx, esi
lea eax, [edx + 2]
add eax, ecx
cmp eax, 0x104
jae 0x419fdf
mov edx, 0x46077c
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x419f70
push edi
lea edi, [esp + 0xc]
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419f80
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x419f98
lea edi, [esp + 0xc]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419fa6
mov ecx, ebx
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042eefa
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0042eefa
add esp, 0x108
ret

Function at 0x41a000
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
push dword [esp + 0x10]
and eax, 0x7bffffff
push eax
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x41a05d
test dword [esp + 0xc], 0x4000000
je 0x41a062
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41a062
push esi
push str.fcntl__d__F_GETFL_
push esi
call fcn.0041bc20
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x41a070
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
test esi, esi
js 0x41a0ce
test dword [esp + 0x18], 0x4000000
je 0x41a0ce
lea eax, [esp + 4]
mov dword [esp + 4], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41a0ce
push esi
push str.fcntl__d__F_GETFL_
push esi
call fcn.0041bc20
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41a0e0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
push edi
push 0
push 1
push 2
call fcn.004192d0
add esp, 0x10
test eax, eax
jne 0x41a173
push esi
mov esi, dword [edi]
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x41a13b
mov esi, dword [edi + 4]
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41a16d
push esi
push str.fcntl__d__F_GETFL_
push esi
call fcn.0041bc20
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 0xc
push dword [edi]
call esi
push dword [edi + 4]
call esi
pop esi
mov dword [edi + 4], 0xffffffff
or eax, 0xffffffff
mov dword [edi], 0xffffffff
pop edi
pop ecx
ret
pop esi
xor eax, eax
pop edi
pop ecx
ret
mov dword [edi + 4], 0xffffffff
or eax, 0xffffffff
mov dword [edi], 0xffffffff
pop edi
pop ecx
ret
Function at 0x41a9d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
lea eax, [esp + 0x18]
push edi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push 0x460430
movaps xmmword [esp + 0x2c], xmm0
push 0x460434
mov dword [esp + 0x24], 0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xc
call esi
mov edi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x46043c
call esi
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 1
push eax
lea eax, [esp + 0x24]
push eax
push 0x460444
push str.1.2.3.4
call esi
test eax, eax
jne 0x41aa77
mov eax, dword [0x46a780]
test edi, edi
mov ecx, 1
cmovne eax, ecx
mov dword [0x46a780], eax
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x41aaad
cmp dword [eax + 0xc], 0
jne 0x41aa94
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x41aa85
jmp 0x41aaad
mov eax, ecx
test eax, eax
je 0x41aaad
nop word [eax + eax]
cmp dword [eax + 0xc], 0
jne 0x41aab7
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x41aaa0
mov dword [0x46a784], 1
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.WS2_32.dll_freeaddrinfo]
test eax, eax
je 0x41aad0
push eax
call esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x41aadb
push edx
call esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41aae2
push ecx
call esi
pop edi
mov dword [0x46a788], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ad10
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [0x4605fc]
mov ecx, dword [esi + 0x10]
lea eax, [edi - 1]
cmp ecx, eax
je 0x41aeef
mov ebx, dword [esp + 0x24]
cmp dword [esi + 0xc], ebx
ja 0x41aeef
mov esi, ecx
push ebp
nop
mov ebp, dword [esi*4 + 0x460604]
inc esi
mov eax, ebp
mov dword [esp + 0x10], ebp
shr eax, 0x1f
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x44d2f0]
mulsd xmm0, qword [0x44d2e8]
call fcn.0042f410
mov dword [esp + 0x1c], eax
cmp eax, ebx
ja 0x41ad7b
cmp esi, edi
jl 0x41ad40
lea edi, [ebp*4]
mov dword [esp + 0x14], esi
push edi
call fcn.00408540
mov esi, dword [esp + 0x28]
add esp, 4
mov ebx, eax
push edi
test ebx, ebx
je 0x41ae3a
push 0
push ebx
call fcn.00430ba0
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x18], ebp
cmp dword [esi + 4], ebp
jbe 0x41ae0a
mov eax, dword [esi]
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x41ae00
mov ebp, dword [esp + 0x10]
mov ecx, dword [edi + 4]
xor edx, edx
shr ecx, 0x10
xor ecx, dword [edi + 4]
imul ecx, ecx, 0x85ebca6b
mov esi, dword [edi]
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
div ebp
mov eax, dword [ebx + edx*4]
mov dword [edi], eax
mov dword [ebx + edx*4], edi
mov edi, esi
test esi, esi
jne 0x41adc1
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, dword [esi + 4]
jb 0x41adb4
mov eax, dword [esi]
test eax, eax
je 0x41ae19
push eax
call fcn.00408660
add esp, 4
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ebp
pop ebp
pop edi
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], ecx
pop esi
pop ebx
add esp, 0x10
ret
push dword [esi]
call fcn.00408650
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41ae55
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 4]
mov eax, ebp
sub eax, ecx
shl eax, 2
push eax
lea eax, [ebx + ecx*4]
push 0
push eax
call fcn.00430ba0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [esi + 4], eax
jbe 0x41ae1d
mov ecx, ebx
mov dword [esp + 0x18], ebx
nop
mov esi, dword [ecx]
mov edi, ecx
test esi, esi
je 0x41aed5
mov ecx, dword [esi + 4]
xor edx, edx
shr ecx, 0x10
xor ecx, dword [esi + 4]
imul ecx, ecx, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
div ebp
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x41aebb
mov edi, esi
jmp 0x41aecb
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [ebx + edx*4]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + edx*4], esi
mov esi, dword [edi]
test esi, esi
jne 0x41ae88
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
inc eax
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [esi + 4]
jb 0x41ae80
jmp 0x41ae1d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x41c050
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x46a79c]
test eax, eax
je 0x41c06b
push dword [esp + 4]
call eax
add esp, 4
push dword [esp + 4]
call fcn.0043d920
mov eax, dword [esp + 4]
cmp eax, 0xdeaddead
je fcn.00435eff
push eax
call fcn.0043d920
int3

Function at 0x41da50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov al, byte [0x46ac20]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
dec al
push esi
push edi
xor edi, edi
inc al
mov cl, byte [0x46ac21]
mov byte [0x46ac20], al
movzx esi, al
mov eax, edi
cdq
inc edi
idiv ebp
mov eax, dword [esp + 0x14]
mov bl, byte [esi + 0x46ac22]
movzx eax, byte [edx + eax]
add al, bl
add cl, al
movzx eax, cl
mov byte [0x46ac21], cl
movzx eax, byte [eax + 0x46ac22]
mov byte [esi + 0x46ac22], al
movzx eax, byte [0x46ac21]
mov byte [eax + 0x46ac22], bl
mov al, byte [0x46ac20]
cmp edi, 0x100
jl 0x41da61
pop edi
pop esi
pop ebp
mov byte [0x46ac21], al
pop ebx
ret

Function at 0x41dc30
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x24
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [0x46ac1c], 0
jne 0x41dc71
xor eax, eax
nop dword [eax]
mov byte [eax + 0x46ac22], al
inc eax
cmp eax, 0x100
jl 0x41dc50
mov word [0x46ac20], 0
mov dword [0x46ac1c], 1
cmp dword [0x46ad30], 0
jne 0x41dcaf
push 0xf0000000
push 1
push 0
push 0
push 0x46ad34
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x41dca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x41dd52
mov dword [0x46ad30], 1
lea eax, [esp]
push eax
push 0x20
push dword [0x46ad34]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41dd52
lea eax, [esp]
push 0x20
push eax
call fcn.0041da50
lea eax, [esp + 8]
push 0x20
push eax
call fcn.0041a1a0
add esp, 0x10
mov dword [0x46ad2c], 1
push esi
mov esi, 0xc00
mov al, byte [0x46ac20]
inc al
movzx ecx, al
mov byte [0x46ac20], al
mov al, byte [0x46ac21]
mov dl, byte [ecx + 0x46ac22]
add al, dl
mov byte [0x46ac21], al
movzx eax, al
movzx eax, byte [eax + 0x46ac22]
mov byte [ecx + 0x46ac22], al
movzx eax, byte [0x46ac21]
mov byte [eax + 0x46ac22], dl
sub esi, 1
jne 0x41dcf3
mov dword [0x46ad28], 0x186a00
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042eefa
add esp, 0x24
ret
cmp dword [0x46ad2c], 0
jne 0x41dced
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
xor ecx, esp
call fcn.0042eefa
add esp, 0x24
ret
Function at 0x423880
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x98
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa4]
push ebx
push ebp
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
test edi, edi
je 0x4238b7
test byte [edi + 0x1c], 0x10
je 0x4238b7
mov ebx, edi
jmp 0x4238b9
xor ebx, ebx
or ebp, 0xffffffff
mov dword [esp + 0x18], 0
test ebx, ebx
jne 0x4238e2
pop edi
or eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042eefa
add esp, 0x98
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4238f4
push eax
push 0
call fcn.0041ccb0
add esp, 8
mov eax, dword [ebx + 0x4c]
test al, 2
jne 0x423a4f
push esi
test al, 1
jne 0x423a22
test byte [edi + 0x1c], 4
jne 0x423a22
push 0x80
lea eax, [ebx + 0x58]
mov dword [ebx + 0x50], 0
push 0
push eax
mov dword [ebx + 0x54], 0
call fcn.00430ba0
mov esi, dword [esp + 0xbc]
push 0x10
push esi
push edi
call fcn.00414f30
add esp, 0x18
cmp eax, 0xffffffff
je 0x423a22
push 0
push edi
call fcn.00414800
push 1
lea eax, [esp + 0x1c]
push eax
push 0x10
lea eax, [esp + 0x38]
push eax
push esi
push edi
call fcn.00415300
mov ebp, eax
add esp, 0x20
xor edx, edx
mov dword [esp + 0x14], ebp
test ebp, ebp
jle 0x423996
lea ecx, [ebx + 0x58]
nop dword [eax + eax]
mov eax, dword [esp + edx*8 + 0x24]
lea ecx, [ecx + 8]
mov dword [ecx - 4], eax
mov eax, dword [esp + edx*8 + 0x28]
inc edx
mov dword [ecx - 8], eax
cmp edx, ebp
jl 0x423980
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x54], ebp
xor ebp, ebp
mov esi, dword [eax]
mov dword [ebx + 0x50], esi
test esi, esi
je 0x4239ba
push 0x10
push esi
call fcn.00414ce0
mov esi, dword [esi]
add esp, 8
inc ebp
test esi, esi
jne 0x4239a8
mov esi, dword [esp + 0x14]
cmp ebp, esi
jne 0x423aa6
push edi
call fcn.00414c90
add esp, 4
lea eax, [esp + 0x1c]
push 0
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0x48]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x423a1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x423a1c
push 0x10
push ebx
call fcn.00423f90
push 0
push edi
call fcn.00414840
push edi
call fcn.00411b00
add esp, 0x14
or ebp, 0xffffffff
jmp 0x423a22
or dword [ebx + 0x4c], 1
xor ebp, ebp
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x423a34
push ecx
push 0
call fcn.0041ccc0
add esp, 8
mov ecx, dword [esp + 0xa4]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eefa
add esp, 0x98
ret
push 0x464b44
push 0x464b5c
push 0x104
push 0x464b78
push 0x464b88
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push 0x464bac
push str._buf_o__write_in_progress
push 0x104
push 0x464be0
push 0x464bf0
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
push 0x464c14
push 0x464c2c
push 0x120
push 0x464c3c
push 0x464c4c
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.evbuffer_launch_read_
push str.npin__nvecs
push 0x120
push str.buffer_iocp.c
push 0x464ca8
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3
Function at 0x423b00
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x423b18
test byte [edi + 0x1c], 0x10
je 0x423b18
mov ebp, edi
jmp 0x423b1a
xor ebp, ebp
or ebx, 0xffffffff
test edi, edi
jne 0x423b2a
pop edi
pop ebp
or eax, ebx
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x423b3c
push eax
push 0
call fcn.0041ccb0
add esp, 8
mov eax, dword [ebp + 0x4c]
test al, 1
jne 0x423c76
test al, 2
jne 0x423c5b
test byte [edi + 0x1c], 2
jne 0x423c5b
mov eax, dword [edi + 0xc]
test eax, eax
je 0x423c59
mov ebx, dword [esp + 0x1c]
test ebx, ebx
js 0x423b70
cmp ebx, eax
jbe 0x423b72
mov ebx, eax
push esi
push 1
push edi
call fcn.00414800
push 0x80
lea eax, [ebp + 0x58]
mov dword [ebp + 0x50], 0
push 0
push eax
mov dword [ebp + 0x54], 0
call fcn.00430ba0
mov esi, dword [edi]
lea ecx, [ebp + 0x58]
add esp, 0x14
mov dword [ebp + 0x50], esi
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
nop
test esi, esi
je 0x423bfb
mov eax, dword [esi + 0x18]
add eax, dword [esi + 8]
push 0x20
push esi
mov dword [ecx + 4], eax
call fcn.00414ce0
mov edx, dword [esp + 0x24]
add esp, 8
mov eax, dword [esi + 0xc]
inc edx
mov dword [esp + 0x1c], edx
cmp ebx, eax
jbe 0x423bf1
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
add ecx, 8
sub ebx, dword [esi + 0xc]
mov esi, dword [esi]
mov dword [esp + 0x10], ecx
cmp edx, 0x10
jl 0x423bb0
jmp 0x423bfb
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [eax], ebx
push edi
mov dword [ebp + 0x54], edx
call fcn.00414c90
add esp, 4
lea eax, [esp + 0x14]
push 0
push dword [esp + 0x28]
push 0
push eax
push dword [esp + 0x2c]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x48]
call dword [sym.imp.WS2_32.dll_WSASend]
pop esi
test eax, eax
je 0x423c55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x423c55
push 0x20
push ebp
call fcn.00423f90
push 1
push edi
call fcn.00414840
push edi
call fcn.00411b00
add esp, 0x14
or ebx, 0xffffffff
jmp 0x423c5b
or dword [ebp + 0x4c], 2
xor ebx, ebx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x423c6d
push ecx
push 0
call fcn.0041ccc0
add esp, 8
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
push 0x464a74
push 0x464a8c
push 0xba
push 0x464aa8
push 0x464ab8
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.evbuffer_launch_write_
push str._buf_o__read_in_progress
push 0xba
push 0x464b10
push 0x464b20
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3