joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c140
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c173
push esi
call fcn.0043f230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c16c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c1f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c1e2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c197
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c1de
cmp eax, 2
je 0x43c1e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c18a
cmp eax, 3
je 0x43c1bd
cmp eax, 1
jne 0x43c18a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c18a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c18a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c220
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c208
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c220
add esp, 4
pop esi
ret

Function at 0x45a75a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45a792
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045880e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004587e6
jmp 0x45a79e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45be48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45be8a
call fcn.00461901
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45be8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45be81
xor eax, eax
jmp 0x45be92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045be98
pop edi
pop esi
pop ebx
ret 4

Function at 0x461e31
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x461e5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461e7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00461d97
jmp 0x461e7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x461e7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00461d97
test edi, edi
mov eax, edi
jne 0x461e67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2602512a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x52cd0752
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4029a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push 0xd4
lea eax, [esp + 8]
push eax
mov esi, ecx
call fcn.00401ac0
mov al, 0x25
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov al, 4
mov cl, 0x23
mov byte [esp + 0x29], cl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3f], cl
push 0x40
mov al, 0xf5
lea ecx, [esp + 8]
mov dl, 0xe
push 0x26
mov byte [esp + 0x48], al
mov byte [esp + 0x49], al
push ecx
mov ecx, esi
lea eax, [esp + 0x28]
mov byte [esp + 0x28], 1
mov byte [esp + 0x29], 0x29
mov byte [esp + 0x2a], 0xd4
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2e], 0x1c
mov byte [esp + 0x2f], 0x75
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x31], 0x2a
mov byte [esp + 0x32], 0x1a
mov byte [esp + 0x34], 0x12
mov byte [esp + 0x36], 0x1e
mov byte [esp + 0x37], 0x29
mov byte [esp + 0x38], 0x6a
mov byte [esp + 0x39], 9
mov byte [esp + 0x3a], 0x77
mov byte [esp + 0x3b], 0x78
mov byte [esp + 0x3c], 0x13
mov byte [esp + 0x3d], 0x3f
mov byte [esp + 0x3e], 0x1d
mov byte [esp + 0x3f], 0xd4
mov byte [esp + 0x40], 0x6e
mov byte [esp + 0x41], 0x26
mov byte [esp + 0x42], 0xd4
mov byte [esp + 0x43], dl
mov byte [esp + 0x44], 0x69
mov byte [esp + 0x45], 0x2c
mov byte [esp + 0x48], 0x66
mov byte [esp + 0x49], 0xd
mov byte [esp + 0x4a], 3
call fcn.00401b80
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x402aae
push eax
call fcn.004160ce
add esp, 4
mov edx, dword [esp + 4]
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.004160ce
mov ecx, dword [esp + 0x48]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.00415dd3
mov esp, ebp
pop ebp
ret
Function at 0x403700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0x124
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00417ce0
add esp, 0xc
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403779
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004163bc
add esp, 8
test eax, eax
je 0x403775
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403752
jmp 0x403779
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00415dd3
mov esp, ebp
pop ebp
ret

Function at 0x4037a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0x124
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00417ce0
add esp, 0xc
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403812
lea esp, [esp]
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004163bc
add esp, 8
test eax, eax
jne 0x403803
inc edi
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4037f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00415dd3
add esp, 0x134
ret

Function at 0x403960
Capabilities:
Create thread

Disassembly:
sub esp, 0x114
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push esi
push 1
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push 0x103
lea ecx, [esp + 0xd]
push 0
push ecx
mov byte [esp + 0x14], 0
call fcn.00417ce0
add esp, 0xc
lea esi, [esp + 8]
call fcn.004058a0
test eax, eax
je 0x4039ca
mov eax, dword [edi + 4]
mov edx, esi
push edx
push 0
push 0xc
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, edi
call fcn.00406830
mov ecx, dword [edi + 4]
push 0
push 0
push ecx
push 0x4060e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4039f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x114]
pop esi
xor ecx, esp
call fcn.00415dd3
add esp, 0x114
ret 4
Function at 0x4058a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x128
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x29]
push ebx
push eax
mov byte [esp + 0x30], bl
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00405a70
test eax, eax
jne 0x405902
push 0x104
push ebx
push esi
call fcn.00417ce0
add esp, 0xc
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00415dd3
add esp, 0x128
ret
mov cl, 0x65
mov byte [esp + 5], cl
xor eax, eax
mov byte [esp + 0x15], cl
lea ecx, [esp + 0x24]
push ecx
push 0x103
push esi
push 0x42e20b
lea edx, [esp + 0x24]
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2e], 0x79
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x128]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00415dd3
add esp, 0x128
ret

Function at 0x405b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x48
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x44], eax
mov al, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
xor eax, eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
mov al, 0x73
push ebx
mov byte [esp + 9], al
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
xor eax, eax
mov cl, 0x65
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
xor ebx, ebx
lea eax, [esp + 0xc]
mov byte [esp + 0x2d], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x17], cl
mov dl, 0x6f
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x34], 0x6b
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6e
mov byte [esp + 0x3a], 0x33
mov byte [esp + 0x3b], 0x32
mov byte [esp + 0x3c], 0x2e
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x14], 0x49
mov byte [esp + 0x16], 0x57
mov byte [esp + 0x17], dl
mov byte [esp + 0x18], 0x77
mov byte [esp + 0x19], 0x36
mov byte [esp + 0x1a], 0x34
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x63
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x405c5e
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x405c5e
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00415dd3
add esp, 0x48
ret
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x48
ret
Function at 0x407580
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x19c]
xor ecx, ecx
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00417ce0
add esp, 0xc
lea edx, [esp]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4075ee
mov eax, 0x202
cmp word [esp], ax
je 0x407607
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00415dd3
add esp, 0x198
ret 4
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 1
call fcn.00415dd3
add esp, 0x198
ret 4
Function at 0x407630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x138
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [edi + 4]
push ebx
push ebp
movzx ebp, word [0x432fc0]
or ebx, 0xffffffff
push esi
cmp eax, ebx
je 0x407662
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, ebx
je 0x407803
mov dword [esp + 0x12e], eax
mov dword [esp + 0x132], eax
mov dword [esp + 0x136], eax
mov word [esp + 0x13a], ax
mov eax, 2
push ebp
mov word [esp + 0x130], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x432f80
mov word [esp + 0x132], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x130], eax
cmp eax, ebx
jne 0x4076f7
push 0x432f80
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4077e1
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x138]
push ecx
call fcn.00418300
add esp, 0xc
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [edi + 0x18]
push edx
push 0x1005
push 0xffff
push esi
call ebp
push 4
lea eax, [edi + 0x1c]
push eax
push 0x1006
push 0xffff
push esi
call ebp
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 4
mov dword [esp + 0x18], 1
call ebp
push 0x10
lea edx, [esp + 0x130]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x4077bf
mov eax, dword [edi + 0x28]
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x24], eax
push 0
lea eax, [esi + 1]
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4077bb
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x10], 0
sete bl
jmp 0x4077c1
xor bl, bl
jmp 0x4077c1
mov bl, 1
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 0
call ebp
test bl, bl
jne 0x4077fb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00415dd3
add esp, 0x138
ret
mov dword [edi + 4], esi
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x138
ret
Function at 0x407820
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push ebx
movzx ebx, word [0x432fc4]
push ebp
push edi
cmp eax, 0xffffffff
je 0x40784e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
xor eax, eax
push eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 2
mov dword [esi + 0x10], eax
push 2
mov dword [esi + 0x14], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40793a
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, 2
push ebx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x432fa0
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x4078ee
push 0x432fa0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4078d2
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00415dd3
add esp, 0x18
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00418300
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esi + 0x20]
push edx
push 0x1005
push 0xffff
push edi
call ebp
push 4
lea eax, [esi + 0x24]
push eax
push 0x1006
push 0xffff
push edi
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 4], edi
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x18
ret

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

Disassembly:
or eax, 0xffffffff
cmp dword [ebx + 4], eax
je 0x407989
push ebp
push esi
xor esi, esi
test edi, edi
jle 0x407985
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0xc]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx + 4]
lea edx, [esi + ecx]
push edx
push eax
call ebp
test eax, eax
jle 0x40798c
add esi, eax
cmp esi, edi
jl 0x407966
mov eax, esi
pop esi
pop ebp
ret 4
pop esi
or eax, 0xffffffff
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4079b1
or eax, eax
ret 8
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push 0
push ecx
push edi
push eax
call ebp
test eax, eax
jg 0x4079ce
or eax, 0xffffffff
pop ebp
ret 8
push ebx
mov ebx, dword [edi]
add ebx, 4
cmp eax, ebx
push esi
mov esi, eax
jge 0x407a01
jmp 0x4079e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
sub edx, esi
push edx
mov edx, dword [ecx + 4]
lea eax, [esi + edi]
push eax
push edx
call ebp
test eax, eax
jle 0x407a09
add esi, eax
cmp esi, ebx
jl 0x4079e0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
pop esi
pop ebx
or eax, 0xffffffff
pop ebp
ret 8
Function at 0x407a20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x407a41
push 0x10
add ecx, 8
push ecx
mov ecx, dword [esp + 0xc]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x407a44
or eax, 0xffffffff
ret 4

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

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x407a80
lea edx, [esp]
push edx
mov edx, dword [esp + 0xc]
add ecx, 8
push ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x407a83
or eax, 0xffffffff
pop ecx
ret 8

Function at 0x407a90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
sub esp, 0x11c
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
mov eax, dword fs:[0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov esi, dword [ecx + 0x1c]
push 0x103
lea edx, [esp + 0x29]
push ebx
push edx
mov dword [esp + 0x20], esi
mov byte [esp + 0x30], bl
call fcn.00417ce0
mov al, 0x6c
add esp, 0xc
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
xor eax, eax
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], bl
mov dword [esp + 0x1d], eax
mov byte [esp + 0x21], al
nop
mov ebp, dword [esi + 8]
mov edi, dword [esi + 0x20]
cmp ebp, ebx
je 0x407b6f
cmp edi, ebx
je 0x407b6f
lea eax, [esp + 0x24]
push eax
call fcn.00407c30
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.004170c6
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004166f0
add esp, 0x14
cmp eax, ebx
je 0x407b3f
mov byte [eax], bl
mov al, byte [esp + 0x24]
lea edx, [esp + 0x24]
mov ecx, 0x83
cmp al, bl
je 0x407b67
movsx eax, al
rol ecx, 5
inc edx
add ecx, eax
mov al, byte [edx]
cmp al, bl
jne 0x407b50
cmp ecx, 0x2b14bd04
je 0x407b8a
mov esi, dword [esi]
cmp dword [esp + 0x14], esi
jne 0x407b00
mov eax, ebx
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x11c
ret
mov eax, ebp
jmp 0x407b71
Function at 0x407b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x18]
add eax, esi
push ebp
mov ebp, dword [eax + 0x1c]
push edi
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add eax, esi
add ebp, esi
add edi, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x407c1b
test eax, eax
je 0x407c1b
test ebp, ebp
je 0x407c1b
test edi, edi
je 0x407c1b
push ebx
xor ebx, ebx
test ecx, ecx
jbe 0x407bfd
mov eax, dword [edi + ebx*4]
mov cl, byte [eax + esi]
add eax, esi
mov edx, 0x83
test cl, cl
je 0x407bf0
movsx ecx, cl
rol edx, 5
inc eax
add edx, ecx
mov cl, byte [eax]
test cl, cl
jne 0x407be1
cmp edx, dword [esp + 0x18]
je 0x407c06
inc ebx
cmp ebx, dword [esp + 0xc]
jb 0x407bd0
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x10]
movzx eax, word [edx + ebx*2]
mov eax, dword [ebp + eax*4]
pop ebx
pop edi
add eax, esi
pop ebp
add esp, 8
ret
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x408150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push closesocket
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x4082df
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov edx, 0x103
call fcn.0040a480
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4082d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x4082d1
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x4082d1
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x4082c1
push ebp
lea edx, [esp + 0x24]
push 0x42e2d8
push edx
call fcn.00416c3c
add esp, 0xc
test eax, eax
jne 0x40829c
xor ebp, ebp
jmp 0x4082d1
cmp dword [esp + 0xc], esi
jne 0x4082c1
push 3
lea eax, [esp + 0x24]
push 0x42e2d8
push eax
call fcn.00416c3c
add esp, 0xc
test eax, eax
je 0x4082c1
mov ebp, 2
jmp 0x4082d1
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00415dd3
add esp, 0x11c
ret