joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.354izwiz]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.354izwiz]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.354izwiz]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.354izwiz]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.354izwiz]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.354izwiz]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x440600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x1677
mov dword [esp + 0x64], 0x47fe
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov ebx, esi
add ebx, 0x2839
mov dword [esp + 0x24], eax
mov eax, edi
adc eax, 0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x3af3
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x211a
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
xor ebx, 0x7114
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, 0x3af3
sub eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
sbb ebx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
jb 0x4407a1
jmp 0x4406d4
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x4c]
jb 0x440740
jmp 0x440736
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
xor ecx, 0x47ff
add eax, ecx
mov dword [esp + 0x60], eax
jmp 0x4406c8
mov eax, dword [esp + 0x14]
not eax
mov ecx, dword [esp + 8]
not ecx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
movsx edx, byte [edx + esi]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
movsx eax, byte [esp + 0x2f]
sub edx, eax
mov bl, dl
mov byte [esp + 0x5f], bl
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
mov bl, byte [esp + 0x5f]
mov dword [esp + 0x78], 0x4f28
mov byte [eax + ecx], bl
jmp 0x4406d4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x64]
mov ebx, 0x47fe
sub ebx, edi
and eax, 0xf
add ebx, eax
mov al, byte [esi + ebx]
xor esi, esi
mov edi, 0x3bfe
sub edi, ecx
sbb esi, edx
mov byte [esp + 0x2f], al
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x60]
mov word [esp + 0x7e], 0x6fff
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
xor edx, esi
xor ecx, edi
or ecx, edx
mov dword [esp], ecx
je 0x440736
jmp 0x4406ea
lea eax, [0x4017b0]
mov ecx, dword [esp + 0x64]
xor ecx, 0x47fe
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], ecx
mov bl, byte [esp + 0x77]
or bl, 0x52
mov byte [esp + 0x77], bl
jmp 0x4406c8
Function at 0x442220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add ecx, ecx
adc edx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0xbf8
mov ecx, dword [esp + 0x3c]
mov edx, ecx
or edx, 0x4520
mov dword [esp + 0x3c], edx
mov word [esp + 0x3a], 0x323
mov byte [esp + 0x39], 0x50
mov dword [esp + 0x34], 0x7a5c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x4a34
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor edx, 0xa5e
xor edi, edi
mov ebx, 0x4a33
sub ebx, edx
sbb edi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
jb 0x4422ce
jmp 0x4422ce
mov eax, dword [esp + 0x24]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
jmp 0x442354
mov eax, dword [esp + 0x34]
xor eax, 0x7a5c
mov cx, word [esp + 0x3a]
add cx, 0x755a
mov word [esp + 0x12], cx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
jmp 0x442354
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x39]
add cl, 0xb0
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 8]
and esi, esi
mov dword [esp + 0x3c], esi
cmp byte [edx + eax], cl
je 0x4422b3
mov ax, 0x1159
sub ax, word [esp + 0x3a]
mov word [esp + 0x2a], ax
mov ax, word [esp + 0x2a]
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
xor esi, 0x7a5d
mov dword [esp + 0x3c], ecx
add edx, esi
mov dword [esp + 0x2c], edx
cmp ax, 0x30aa
jne 0x4422c1
jmp 0x4422b3
mov al, byte [esp + 0x39]
xor al, 0x2e
mov byte [esp + 0x17], al
mov cx, word [esp + 0x12]
mov al, byte [esp + 0x39]
mov dl, byte [esp + 0x17]
xor al, 0x17
mov word [esp + 0x14], cx
mov esi, dword [esp + 8]
imul edi, esi, 0x146d
mov dword [esp + 0x3c], edi
cmp al, dl
je 0x442354
mov ax, 0x97b
mov cx, word [esp + 0x14]
sub ax, word [esp + 0x3a]
cmp cx, ax
ja 0x4422f4
jmp 0x4422b3
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [str.gPF]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov esi, dword [ebp - 0x10]
mov ecx, dword [0x41a310]
add esi, 0x23f
mov eax, dword [0x41a314]
push 0x20
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x48e088], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x48e084]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x48e088], 0x3eb
mov dword [0x48e084], eax
mov eax, dword [0x48db10]
cmove eax, dword [ebp - 0x1c]
mov dword [0x48db10], eax
lea eax, [esi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x48e080], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x48e088], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_pabatosipixalilasexamupopajohija_xopitotazucepewifodufalejilemi_karemabuzaniyuzavegusaribufate
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add esi, 0x61c88647
mov dword [ebp - 0x10], esi
dec edi
jne 0x4013e5
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x44881c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44881c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x448820], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x448824], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44882c], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448828], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x44881c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x448828]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x44882c], edi
je 0x40d75e
push eax
call ebx
push dword [0x44882c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x448820]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x448824]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44881c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x4186a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
mov byte [esi + 0x18], 0
mov ecx, edi
call fcn.0041af50
test eax, eax
je 0x4186ef
mov ebx, dword [edi + 8]
mov eax, dword [edi + 4]
sub ebx, eax
je 0x4186ef
mov eax, dword [edi + 4]
mov edx, dword [edi]
add eax, edx
lea ecx, [esi + 0x24]
push eax
push ebx
call fcn.0041b000
push ebx
mov ecx, edi
call fcn.0041b1a0
mov ecx, esi
call fcn.004189b0
mov ebx, dword [edi + 8]
mov eax, dword [edi + 4]
sub ebx, eax
jne 0x4186c5
push 0xa000
lea ecx, [esi + 0x40]
call fcn.0041af60
lea ecx, [esi + 0x24]
push 0xa000
call fcn.0041af60
push 0xa000
mov ecx, edi
call fcn.0041af60
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x41880e
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x418801
lea ebx, [esi + 8]
xor edx, edx
mov eax, ebx
mov ecx, dword [ebp + 8]
push ecx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
call sub.WS2_32.dll_inet_addr
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov word [ebx], 2
mov ax, word [edx + 0x10]
push eax
call sub.WS2_32.dll_htons
mov ecx, dword [esi + 4]
push 0x10
push ebx
push ecx
mov word [esi + 0xa], ax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4187ef
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4187ef
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.connect_error__d
call fcn.00405d90
mov eax, dword [esi + 4]
add esp, 8
cmp eax, 0xffffffff
je 0x4187dd
push eax
call sub.WS2_32.dll_closesocket
push 0xa000
lea ecx, [esi + 0x24]
mov dword [esi + 4], 0xffffffff
call fcn.0041af60
push 0xa000
mov ecx, edi
call fcn.0041af60
mov dword [esi + 0x20], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x20], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_setup_select_mode
call fcn.0052f4f0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4189b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [edi + 0x1c], eax
jae 0x418a62
lea esi, [edi + 0x24]
xor ebx, ebx
mov ecx, esi
call fcn.0041af50
test eax, eax
je 0x418a62
mov eax, dword [edi + 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10c]
push ebx
push edx
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x418a53
cmp eax, ebx
jle 0x418a62
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, edx
push ebx
push eax
mov eax, dword [esi]
mov ecx, edx
mov edx, dword [edi + 4]
add ecx, eax
push ecx
push edx
call dword [0x79ce20]
cmp eax, 0xffffffff
je 0x418a40
push eax
mov ecx, esi
call fcn.0041b1a0
jmp 0x418a53
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x418a53
cmp eax, 0x2749
jne 0x418a6b
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [edi + 0x1c], eax
jb 0x4189d2
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x418a99
push eax
call sub.WS2_32.dll_closesocket
push 0xa000
mov ecx, esi
mov dword [edi + 4], 0xffffffff
call fcn.0041af60
push 0xa000
lea ecx, [edi + 0x5c]
call fcn.0041af60
mov dword [edi + 0x20], ebx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418ab0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 0x10c]
mov eax, dword [esi + 4]
push ecx
push ebx
push ebx
push edx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x418b24
cmp eax, ebx
jle 0x418b24
mov ecx, dword [esi + 4]
push ebx
lea eax, [ebp - 0x90c]
push 0x800
push eax
push ecx
call dword [0x79cda0]
cmp eax, 0xffffffff
je 0x418b2c
cmp eax, ebx
jle 0x418b3f
lea edx, [ebp - 0x90c]
lea ecx, [esi + 0x40]
push edx
push eax
call fcn.0041b000
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x418b24
cmp eax, 0x2749
je 0x418b24
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x418b6e
push eax
call sub.WS2_32.dll_closesocket
push 0xa000
lea ecx, [esi + 0x24]
mov dword [esi + 4], 0xffffffff
call fcn.0041af60
push 0xa000
lea ecx, [esi + 0x5c]
call fcn.0041af60
mov dword [esi + 0x20], ebx
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418ba0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x79cc08
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x418bd1
push str.Failed_to_load_Winsock_library_
call fcn.0052f4f0
add esp, 4
call sub.WS2_32.dll_WSACleanup
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.ws2_32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.send
push eax
mov dword [0x79cd98], eax
call edi
mov dword [0x79ce20], eax
mov eax, dword [0x79cd98]
push str.recv
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x79cda0], eax
mov eax, dword [0x79ce20]
test eax, eax
jne 0x418c34
push 0
push str.Module_Hooking_Error
push str.GetProcAddress__send___Failed.
push 0
mov dword [0x79ce20], 0x6ff730
call ebx
mov eax, dword [0x79cda0]
test eax, eax
jne 0x418c57
push 0
push str.Module_Hooking_Error
push str.GetProcAddress__recv___Failed.
push 0
mov dword [0x79cda0], 0x6ff72a
call ebx
mov al, byte [0x79cd9c]
test al, 1
jne 0x418c82
mov dl, al
mov ecx, 0x79cda8
or dl, 1
mov byte [0x79cd9c], dl
call fcn.00418de0
push 0x4191d0
call fcn.0070de67
add esp, 4
push str.ws2_32.dll
mov dword [ebp - 0x1c], str.connect
mov dword [ebp - 0x18], str.closesocket
mov dword [ebp - 0x14], str.send
mov dword [ebp - 0x10], str.select
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x418cf5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], ecx
jmp 0x418cbe
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esi, dword [edx]
push esi
push eax
call edi
mov ebx, eax
mov eax, dword [0x79cd98]
push esi
push eax
call edi
cmp ebx, eax
jne 0x418cfe
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
inc eax
add edx, 4
cmp eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
jb 0x418cbb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ac80
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x41eb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x721de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call fcn.007007de
lea ecx, [ebp - 0x14]
mov dword [esi + 0x34], eax
call fcn.006ffa21
mov edi, dword [0x83a8cc]
lea ecx, [ebp - 0x10]
call fcn.006ffa21
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x41ebac
inc eax
mov dword [edi + 4], eax
lea ecx, [ebp - 0x10]
call fcn.006ffabd
lea ecx, [ebp - 0x14]
call fcn.006ffabd
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov edx, dword [esi + 0xc]
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 2
push 0
push edx
push eax
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::strstreambuf.0
call fcn.00700257
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x430530
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
cmp eax, 0x10
jle 0x4306e5
push esi
push edi
jmp 0x430562
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x1c]
cdq
sub eax, edx
lea esi, [ecx - 0x18]
sar eax, 1
mov ecx, 6
lea edx, [eax + eax*2]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + edx*8]
mov ecx, 6
lea edi, [ebp - 0x4c]
mov dx, word [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, ebx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ax, word [ebp - 0x28]
mov cx, word [ebp - 0x40]
cmp ax, cx
jae 0x4305b6
cmp cx, dx
jb 0x4305c8
cmp ax, dx
lea esi, [ebp - 0x1c]
jb 0x4305cb
lea esi, [ebp - 0x34]
jmp 0x4305cb
cmp ax, dx
jae 0x4305c0
lea esi, [ebp - 0x34]
jmp 0x4305cb
cmp cx, dx
lea esi, [ebp - 0x1c]
jb 0x4305cb
lea esi, [ebp - 0x4c]
mov eax, dword [ebp + 0xc]
mov ecx, 6
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov cx, word [ebp - 0x58]
cmp word [ebx + 0xc], cx
jae 0x4305eb
add ebx, 0x18
cmp word [ebx + 0xc], cx
jb 0x4305e2
sub eax, 0x18
mov dword [ebp - 4], eax
cmp cx, word [eax + 0xc]
jae 0x430603
sub eax, 0x18
cmp cx, word [eax + 0xc]
jb 0x4305f7
mov dword [ebp - 4], eax
cmp eax, ebx
jbe 0x43066b
mov ecx, 6
mov esi, ebx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov cx, word [eax]
mov word [ebx], cx
mov dx, word [eax + 2]
mov word [ebx + 2], dx
mov cx, word [eax + 4]
mov word [ebx + 4], cx
mov dx, word [eax + 6]
mov word [ebx + 6], dx
mov cx, word [eax + 8]
mov word [ebx + 8], cx
mov dx, word [eax + 0xa]
mov word [ebx + 0xa], dx
mov cx, word [eax + 0xc]
mov word [ebx + 0xc], cx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
mov ecx, dword [eax + 0x14]
lea edx, [ebp - 0x7c]
mov dword [ebx + 0x14], ecx
push edx
mov ecx, eax
call fcn.004306f0
mov eax, dword [ebp - 4]
add ebx, 0x18
jmp 0x4305d8
mov edi, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov ecx, edi
mov esi, dword [ebp + 8]
sub ecx, ebx
push 0
imul ecx
mov ecx, edx
mov edx, ebx
sar ecx, 2
mov eax, ecx
sub edx, esi
shr eax, 0x1f
add ecx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jg 0x4306b4
push edi
push ebx
call fcn.00430530
add esp, 0xc
mov dword [ebp + 0xc], ebx
mov edi, ebx
jmp 0x4306c3
push ebx
push esi
call fcn.00430530
add esp, 0xc
mov dword [ebp + 8], ebx
mov esi, ebx
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
cmp eax, 0x10
jg 0x43055f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret