joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404464
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
push edi
mov byte [ebp - 1], 1
jne 0x4044b9
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call edi
push eax
push 0x4e
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x404514
shr eax, 2
test al, 1
je 0x4044e3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
jmp 0x4044b1
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x404514
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40735e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004071b9
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x4073b6
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x407406
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.00406db2
pop ecx
pop ecx
push dword [ebp + 0x18]
mov edi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x4073fd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x40741e
cmp dword [ebp - 0xc], 0
je 0x40741e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14
Function at 0x40a0f5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xcc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp + 0x60]
push eax
mov dword [ebp + 0x60], 8
mov dword [ebp + 0x64], 1
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x419ab0
push dword [ebp + 0x70]
mov ebx, 0x41f0e8
push esi
mov ecx, ebx
call fcn.00406bb6
lea ecx, [ebp - 0x64]
call fcn.00404b8c
push esi
lea eax, [ebp - 0x64]
push esi
lea ecx, [ebp - 0x64]
mov dword [0x41f0c4], eax
call fcn.0040742a
push 5
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40a191
lea eax, [ebp + 0x44]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40a191
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp + 0x44]
push esi
push eax
call edi
test eax, eax
jne 0x40a16c
mov ecx, ebx
call fcn.00407561
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp - 0x64]
call fcn.0040335c
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10

Function at 0x40a9ea
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x40abc8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
xor edx, edx
xor eax, eax
mov ecx, 0x100
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, ecx
jb 0x40abda
push ebx
push esi
push edi
mov dword [ebp - 8], edx
xor ebx, ebx
mov edi, dword [ebp - 8]
movzx esi, dl
mov edx, dword [ebp + 0x10]
movzx edx, byte [esi + edx]
add edx, ebx
lea edi, [ebp + edi - 0x108]
mov al, byte [edi]
mov byte [ebp - 1], al
movzx eax, al
add eax, edx
cdq
mov ebx, ecx
idiv ebx
movzx ebx, dl
lea eax, [ebp + ebx - 0x108]
mov dl, byte [eax]
mov byte [edi], dl
mov dl, byte [ebp - 1]
mov byte [eax], dl
xor edx, edx
lea eax, [esi + 1]
div dword [ebp + 0x14]
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jb 0x40abee
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x40ac9e
xor esi, esi
xor ebx, ebx
mov dword [ebp - 8], eax
lea eax, [esi + 1]
cdq
mov esi, ecx
idiv esi
movzx esi, dl
lea edi, [ebp + esi - 0x108]
mov al, byte [edi]
mov byte [ebp + 0xf], al
movzx eax, al
add eax, ebx
cdq
mov ebx, ecx
idiv ebx
movzx ebx, dl
lea eax, [ebp + ebx - 0x108]
mov dl, byte [eax]
mov byte [edi], dl
mov byte [ebp - 1], dl
mov dl, byte [ebp + 0xf]
mov byte [eax], dl
movzx eax, byte [ebp - 1]
movzx edx, dl
add eax, edx
cdq
mov edi, ecx
idiv edi
mov eax, dword [ebp + 8]
mov dl, byte [ebp + edx - 0x108]
xor byte [eax], dl
inc eax
dec dword [ebp - 8]
mov dword [ebp + 8], eax
jne 0x40ac44
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae7a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x418a04
call fcn.0040ebfc
sub esp, 0x228
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040e6d0
add esp, 0xc
mov dword [ebp - 0x1c], ebx
push 0xf003f
push 0x41a0b8
push SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.00401215
test eax, eax
jne 0x40af36
push 0x40
pop ecx
mov byte [ebp - 0x234], bl
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.UUID
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40af36
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x24
jl 0x40af36
push esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x1c]
call fcn.0040a985
cmp dword [ebp - 0x10], ebx
je 0x40b030
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40b030
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040e5f0
mov eax, esp
push ebx
push edi
push dword [ebp - 0x18]
push eax
call fcn.00401196
cmp eax, ebx
je 0x40b027
push esi
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jl 0x40afcc
lea eax, [ebp + eax - 0x131]
cmp byte [eax], 0x7d
jne 0x40afcc
mov byte [eax], bl
cmp byte [ebp - 0x130], 0x7b
jne 0x40afe9
lea eax, [ebp - 0x12f]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push 0x41a0b8
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0040a99c
test eax, eax
jne 0x40b01f
push str.UUID
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a9ea
lea ecx, [ebp - 0x14]
call fcn.0040a985
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.00404bbd
lea ecx, [ebp - 0x1c]
call fcn.0040a985
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c02c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40c053
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40c053
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
ret
xor eax, eax
pop esi
ret

Function at 0x40c300
Capabilities:
Create directory

Disassembly:
mov eax, 0x418c0a
call fcn.0040ebfc
sub esp, 0x4c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
je 0x40c462
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40c462
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040c16e
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00404bbd
mov esi, dword [esi]
lea eax, [ebp - 0x3c]
push eax
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040c2b5
push 0xffffffffffffffff
mov esi, 0x41a270
jmp 0x40c3c0
push edi
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b865
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040359e
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040266c
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x40c3a2
lea eax, [ebp - 0x38]
push eax
call fcn.0040c057
test al, al
pop ecx
jne 0x40c3cf
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c2b5
push edi
lea ecx, [ebp - 0x3c]
push esi
call fcn.0040c14d
mov edi, eax
cmp edi, ebx
jg 0x40c369
cmp edi, ebx
jge 0x40c403
mov eax, dword [ebp - 0x28]
xor esi, esi
inc esi
push esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b865
push 0x41a26c
mov ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
call fcn.0040b7d5
test eax, eax
mov byte [ebp + 0xb], 1
jne 0x40c406
mov byte [ebp + 0xb], bl
test byte [ebp - 0x14], 1
je 0x40c417
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040266c
cmp byte [ebp + 0xb], bl
je 0x40c421
mov byte [ebp + 0xb], bl
jmp 0x40c448
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi]
jmp 0x40c440
cmp dword [esi + 0x20], 0x10
jb 0x40c433
mov eax, dword [esi + 0xc]
jmp 0x40c436
lea eax, [esi + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esi]
cmp esi, edi
jne 0x40c428
mov byte [ebp + 0xb], 1
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040266c
lea ecx, [ebp - 0x20]
call fcn.0040c2e4
mov al, byte [ebp + 0xb]
pop edi
pop esi
jmp 0x40c464
xor al, al
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c471
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x41e1f0], 0xffffffff
je 0x40c523
push edi
xor eax, eax
mov byte [ebp - 0x404], 0
mov ecx, 0xff
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
stosb byte es:[edi], al
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0040e6d0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.0040f1cd
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x41e1f0], 0xffffffff
pop edi
je 0x40c523
and dword [ebp - 4], 0
push 0x4193f8
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [0x41e1f0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x40c699
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040de70
mov esi, dword [ebp + 8]
xor edi, edi
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jle 0x40c81d
push ebx
mov ecx, dword [ebp + 0xc]
mov bl, byte [edi + ecx]
cmp bl, 0x25
jne 0x40c6f3
add eax, 0xfffffffe
cmp edi, eax
jge 0x40c6f3
mov eax, ecx
movsx eax, byte [edi + eax + 1]
push eax
call fcn.0040f504
mov byte [ebp + 0xb], al
mov eax, dword [ebp + 0xc]
movsx eax, byte [edi + eax + 2]
push eax
call fcn.0040f504
pop ecx
pop ecx
mov cl, byte [ebp + 0xb]
jmp 0x40c7be
cmp bl, 0x41
mov cl, 0x81
mov al, cl
jb 0x40c705
cmp bl, 0x5a
jbe 0x40c80d
cmp bl, 0x61
jb 0x40c713
cmp bl, 0x7a
jbe 0x40c80d
cmp bl, 0x30
jb 0x40c721
cmp bl, 0x39
jbe 0x40c80d
cmp bl, 0x7f
jae 0x40c80d
cmp bl, 0x2d
je 0x40c80d
cmp bl, 0x5f
je 0x40c80d
cmp bl, 0x2e
je 0x40c80d
cmp bl, 0x21
je 0x40c80d
cmp bl, 0x7e
je 0x40c80d
cmp bl, 0x2a
je 0x40c80d
cmp bl, 0x27
je 0x40c80d
cmp bl, 0x28
je 0x40c80d
cmp bl, 0x29
je 0x40c80d
cmp bl, 0x3b
je 0x40c80d
cmp bl, 0x2f
je 0x40c80d
cmp bl, 0x3f
je 0x40c80d
cmp bl, 0x3a
je 0x40c80d
cmp bl, 0x40
je 0x40c80d
cmp bl, 0x26
je 0x40c80d
cmp bl, 0x3d
je 0x40c80d
cmp bl, 0x2b
je 0x40c80d
cmp bl, 0x24
je 0x40c80d
cmp bl, 0x2c
je 0x40c80d
test bl, bl
je 0x40c80d
cmp bl, 0x25
jne 0x40c7e7
cmp cl, 0x30
jb 0x40c7c8
cmp cl, 0x39
jbe 0x40c7d2
cmp cl, 0x41
jb 0x40c7e7
cmp cl, 0x46
ja 0x40c7e7
cmp al, 0x30
jb 0x40c7da
cmp al, 0x39
jbe 0x40c7e2
cmp al, 0x41
jb 0x40c7e7
cmp al, 0x46
ja 0x40c7e7
mov byte [esi], 0x25
jmp 0x40c80f
mov al, bl
shr al, 4
and bl, 0xf
cmp al, 0xa
jae 0x40c7f7
add al, 0x30
jmp 0x40c7f9
add al, 0x37
cmp bl, 0xa
jae 0x40c803
add bl, 0x30
jmp 0x40c806
add bl, 0x37
mov byte [esi], 0x25
inc esi
mov byte [esi], al
inc esi
mov byte [esi], bl
mov eax, dword [ebp - 4]
inc esi
inc edi
cmp edi, eax
jl 0x40c6b9
pop ebx
pop edi
mov byte [esi], 0
pop esi
leave
ret
Function at 0x40c9ba
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x14], esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], esi
jle 0x40ca35
push 6
pop ebx
cmp dword [ebp + 0xc], 0
jle 0x40c9f3
mov eax, dword [ebp + 8]
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
add esi, 8
inc edi
dec dword [ebp + 0xc]
mov dword [ebp + 8], eax
jmp 0x40ca00
test esi, esi
jbe 0x40ca3d
mov ecx, ebx
sub ecx, esi
shl dword [ebp + 8], cl
mov esi, ebx
cmp esi, ebx
jb 0x40ca2d
xor edx, edx
mov eax, esi
mov ecx, ebx
div ecx
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
sub esi, ebx
mov ecx, esi
shr eax, cl
mov ecx, dword [ebp + 0x10]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
inc dword [ebp + 0x10]
cmp esi, ebx
mov byte [ecx], al
jae 0x40ca0f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jl 0x40c9d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x3d
inc eax
jmp 0x40ca38

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x32000
call fcn.0040e5f0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
jmp 0x40cadc
test edi, edi
jle 0x40caf9
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40ca9f
and dword [esi + 0x30], eax
push edi
call fcn.0040ed10
test eax, eax
pop ecx
mov dword [esi + 0x2c], eax
je 0x40cb00
push edi
lea ecx, [ebp - 0x32000]
push ecx
push eax
call fcn.0040df00
add esp, 0xc
mov dword [esi + 0x30], edi
jmp 0x40cacd
mov ecx, dword [esi + 0x30]
add ecx, edi
push ecx
push eax
call fcn.0040f526
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x2c], eax
je 0x40cb00
push edi
lea ecx, [ebp - 0x32000]
push ecx
mov ecx, dword [esi + 0x30]
add ecx, eax
push ecx
call fcn.0040df00
add esp, 0xc
add dword [esi + 0x30], edi
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40cadc
sub dword [ebp + 0x10], edi
cmp dword [ebp + 0x10], eax
jle 0x40caf9
push eax
push 0x32000
lea eax, [ebp - 0x32000]
push eax
push dword [ebp + 0xc]
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ca69
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push esi
call fcn.0040c846
pop ecx
xor eax, eax
jmp 0x40cafb
Function at 0x40cb0b
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor edi, edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cc08
mov eax, dword [ebp + 0x10]
dec eax
dec eax
jne 0x40cc08
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0040e6d0
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
push dword [ebp + 8]
jne 0x40cb7c
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40cc08
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
jmp 0x40cb87
call edi
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040df00
add esp, 0xc
push dword [ebp + 0xc]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0xff
push dword [ebp - 0x20]
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040f7f0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40cc0d
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2734
je 0x40cc0d
call edi
cmp eax, 0x2733
je 0x40cc0d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40cc77
mov edi, dword [sym.imp.WS2_32.dll_select]
lea edx, [ebp - 0x10]
push edx
xor ecx, ecx
push ecx
lea edx, [ebp - 0x128]
push edx
jmp 0x40cc40
xor ecx, ecx
cmp eax, ecx
jl 0x40cc31
jg 0x40cc61
cmp dword [ebp - 4], 0x1e
jg 0x40cc08
inc dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [esi + 1]
push ecx
push eax
mov dword [ebp - 0xc], 0x7a120
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], esi
call edi
test eax, eax
je 0x40cc23
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cc8f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
or eax, 0xffffffff
cmp dword [ebp + 8], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x40cd60
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40cd5f
cmp dword [ebp + 0x10], esi
jle 0x40cd5f
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 0
call edi
cmp eax, 0xffffffff
je 0x40cd16
mov al, byte [ebp - 1]
cmp al, 0xa
mov byte [esi + ebx], al
je 0x40ccee
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x40ccc6
jmp 0x40cd20
test esi, esi
lea eax, [esi + ebx]
mov byte [eax], 0
jle 0x40cd0a
cmp byte [eax - 1], 0xd
jne 0x40cd0a
mov byte [eax - 1], 0
lea eax, [esi - 1]
mov dword [ebp - 8], eax
jmp 0x40cd0d
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 1
jmp 0x40cd20
or dword [ebp - 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, dword [ebp + 0x10]
jne 0x40cd5b
cmp dword [ebp - 0xc], 0
jne 0x40cd5b
cmp dword [ebp - 8], 0
jne 0x40cd5b
push 0
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x40cd51
cmp byte [ebp - 1], 0xa
jne 0x40cd31
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x40cd5b
or dword [ebp - 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40d29b
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and dword [ebp - 8], 0
push ebx
push esi
push edi
call fcn.0040c824
mov edi, dword [ebp + 8]
push str.http_proxy
push dword [edi + 4]
mov dword [ebp - 4], eax
call fcn.0040f99f
test eax, eax
pop ecx
pop ecx
jne 0x40d2e9
inc eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
inc eax
push eax
call fcn.0040cd63
mov esi, eax
push dword [esi]
push dword [ebp - 4]
call fcn.0040c983
add esp, 0x10
jmp 0x40d2f8
push dword [edi + 0xc]
mov esi, edi
push dword [ebp - 4]
call fcn.0040c983
pop ecx
pop ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40d324
cmp eax, 0x50
je 0x40d324
push eax
push dword [esi + 8]
mov ebx, 0x100
push str.Host:__s:_d
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040f948
add esp, 0x14
jmp 0x40d341
push dword [esi + 8]
mov ebx, 0x100
push str.Host:__s
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040f948
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.0040c8ed
mov eax, dword [0x41f950]
test eax, eax
pop ecx
pop ecx
je 0x40d382
push eax
push str.User_Agent:__s
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040f948
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call fcn.0040c8ed
add esp, 0x18
jmp 0x40d391
push str.User_Agent:_Pcast
push dword [ebp - 4]
call fcn.0040c8ed
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jle 0x40d3c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push str.Range:_bytes_d_
push ebx
push eax
call fcn.0040f948
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0040c8ed
add esp, 0x18
jmp 0x40d3c4
mov ebx, dword [ebp - 4]
push str.Connection:_closed
push ebx
call fcn.0040c8ed
push dword [edi + 0x18]
push dword [edi + 0x14]
push ebx
call fcn.0040d1bf
push ebx
call fcn.0040d08e
add esp, 0x18
test eax, eax
je 0x40d446
xor eax, eax
cmp dword [ebp - 8], eax
je 0x40d413
cmp dword [edi + 0x10], eax
jne 0x40d3fb
mov dword [edi + 0x10], 0x1f90
push dword [edi + 0x10]
push dword [edi + 8]
call fcn.0040cc7c
push esi
mov edi, eax
call fcn.0040c579
add esp, 0xc
jmp 0x40d42e
cmp dword [esi + 0x10], eax
jne 0x40d41f
mov dword [esi + 0x10], 0x50
push dword [esi + 0x10]
push dword [esi + 8]
call fcn.0040cc7c
pop ecx
pop ecx
mov edi, eax
test edi, edi
jl 0x40d446
push 0
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebx + 0x38]
je 0x40d44b
or eax, 0xffffffff
jmp 0x40d454
push ebx
call fcn.0040c846
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret