joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fb1f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x5fb388
cmp ebp, ebx
jle 0x5fb388
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x5fb24e
dec eax
or eax, 0xfffffff8
inc eax
je 0x5fb255
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x5fb264
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5fb26b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0063519e
add esp, 4
cmp eax, ebx
je 0x5fb28c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0063519e
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x5fb37e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x5fb365
mov al, byte [edx]
cmp al, 0xc0
jbe 0x5fb351
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x5fb346
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x5fb354
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x5fb354
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x5fb2f0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x5fb2e1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x6033f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f330
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00600d40
mov edi, eax
test edi, edi
je 0x6036be
mov ecx, edi
call fcn.005fe190
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x10], ebx
call fcn.005fe1a0
mov edi, dword [esp + 0x88]
mov dword [esp + 0x14], eax
cmp edi, ebx
jl 0x6036be
mov ebp, dword [esp + 0x8c]
cmp ebp, eax
jl 0x6036be
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00603140
lea ecx, [esp + 0x20]
push eax
push ecx
call 0x7957e6
fidivr word [ebx]
jl 0x6034a6
and al, 0xf
mov ecx, ss
add byte [eax], al
add byte [ebx + 0x3b2c2444], cl
clc
jg 0x6034a9
cmp ebp, dword [esp + 0x20]
jl 0x6034a1
cmp ebp, dword [esp + 0x28]
jle 0x6036be
cmp edi, eax
jle 0x6035af
add dword [eax], eax
add byte [ebx + 0x548d1c46], cl
and al, 0x30
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call 0x74ee5d
push 0
lea ecx, [esp + 0x54]
call fcn.0063bdfc
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x8c], 0
call fcn.00611e80
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x8c]
call fcn.006007a0
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x30]
push 2
push edx
push eax
mov byte [esp + 0x8c], 1
call fcn.0071f848
invalid
cmp ebp, dword [esp + 0x20]
jge 0x6035c9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x90]
sub ebp, eax
mov dword [ecx], ebp
jmp 0x6036be
cmp ebp, dword [esp + 0x28]
jle 0x6036be
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x40]
push edx
push eax
call 0x788644
test al, 0x6a
add byte [ebp - 0x1797dbb4], cl
js 0x4eeb35f2
pop esp
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov dword [esp + 0x8c], 2
call fcn.00611e80
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x98]
call fcn.006007a0
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x40]
push 2
push edx
push eax
mov byte [esp + 0x8c], 3
call fcn.0071323d
inc ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.006027f0
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax]
sub edi, edx
sub edi, ecx
mov ebx, ebp
push ebx
mov ecx, esi
call fcn.006008b0
neg eax
push eax
push edi
mov ecx, esi
call fcn.00600a70
mov edi, eax
test edi, edi
jl 0x603678
mov eax, dword [esp + 0x14]
dec ebx
cmp ebx, eax
jge 0x603654
jmp 0x603679
inc ebx
cmp ebp, ebx
mov eax, ebp
jl 0x603681
mov eax, ebx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x60368d
mov ebx, ecx
jmp 0x603693
cmp ebp, ebx
jge 0x603693
mov ebx, ebp
mov edx, dword [esp + 0x90]
sub ebx, ecx
lea ecx, [esp + 0x94]
mov dword [edx], ebx
call fcn.006007c0
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 0xffffffff
call fcn.0063be6e
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0x10
Function at 0x6124e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
push ebx
call 0x7882f3
push 0
lea ecx, [esp + 0x20]
call fcn.0063bdfc
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00611e80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0063bd2a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.006385f0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.006385f0
push 1
push 0
push 0
mov ecx, esi
call fcn.00638598
push 1
push 0
push 1
mov ecx, esi
call fcn.00638598
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0063be6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x612660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fe08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0063bdfc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00611e80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0063bd2a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call 0x7827cb
aas
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x612724
cmp dword [esp + 0x40], 1
jne 0x612722
cmp ecx, eax
jge 0x612724
mov eax, ecx
cmp eax, 0xc8
jge 0x612730
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.006124e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
push edx
call fcn.006f90dd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0063be6e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x612e30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, dword [esi + 0xdc]
dec ecx
cmp ecx, eax
jge 0x612e4e
mov eax, ecx
test eax, eax
jl 0x612e90
cmp eax, dword [esi + 0xd4]
je 0x612e90
mov ecx, dword [esi + 0x40]
mov dword [esi + 0xd4], eax
call fcn.00612330
push 1
push 0
push 0
mov ecx, esi
call fcn.00638598
push 1
push 0
push 1
mov ecx, esi
call fcn.00638598
mov edx, dword [esi + 0x1c]
push 1
push 0
push edx
call 0x77ee33
adc dword [esi - 0x3e], ebx
add al, 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop esi
ret 4

Function at 0x6f9c3d
Capabilities:
Encode data using xor

Disassembly:
call 0x780bf0
pushfd
mov dword [esp], 0x67cd5d30
push 0x5db48a71
call 0x7949c8
or byte [ecx + 0x140b86cb], 0x25
mov ebx, ecx
xchg byte [ebx], cl
adc al, 0x25
inc esi
test dword [esi], eax
add eax, 0x27e9fa02
sbb dword [eax + 0x663ca6db], 0x15c23cb9
xor al, 0xfc
daa
add byte [esi + 0x2a974062], dl
pop esp
xor ah, byte [ebx + ebp*2 + 0x66]
mov byte [esi], ah
or esp, dword [edx]
sbb cl, byte [ecx]
out dx, al
mov eax, dword [0x1395a09e]
xchg cl, bl
jg 0x6ed389
pop ebp
or esi, 0x35
nop
in eax, 0x8e
invalid
not ebp
nop
mov ebp, ecx
jmp 0x6ed371

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402850
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x1c]
push esi
push edi
push 0x11
push 2
push 2
mov word [esp + 0x18], 2
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], 0x10000
je 0x4028be
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 0x1002
push 0xffff
push esi
call edi
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call edi
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4028fc
cmp esi, 0xffffffff
je 0x4028e8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042877c
add esp, 0x18
ret
push 0x10
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4028dc
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042877c
add esp, 0x18
ret

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x402980
mov word [esp + 6], dx
mov edx, dword [esp + 0x20]
push 0x10
mov dword [esp + 0xc], edx
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x2c]
push 0
push edx
push ecx
push eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042877c
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
or eax, 0xffffffff
call fcn.0042877c
add esp, 0x18
ret
Function at 0x4029a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4402c4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov dword [edi], vtable.XFQuery::CConnectionMgr.0
lea ebp, [edi + 8]
mov byte [edi + 4], 0
mov eax, 0x403170
xor esi, esi
mov dword [ebp], vtable.._AV__Thread_U__BindMember0_VCConnectionMgr_XFQuery__P812_AEXPAX_Z_fund___fund__.0
mov dword [ebp + 4], esi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], eax
mov byte [ebp + 0x18], 1
lea eax, [edi + 0x28]
mov dword [esp + 0x2c], esi
push eax
mov dword [edi + 0x24], vtable.fund::lock::critical_section.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x18]
push ecx
lea ebx, [edi + 0x40]
mov byte [esp + 0x30], 1
mov byte [esp + 0x1c], 1
push ebx
call fcn.00406630
mov dword [ebx + 0x10], 0x100
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
lea esi, [edi + 0x60]
mov ecx, ebx
mov byte [esp + 0x2c], 2
call fcn.004085c0
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [edi + 0x47c]
push edx
mov dword [edi + 0x478], 0x446b58
call ebx
mov byte [esp + 0x2c], 4
call fcn.00405660
xor esi, esi
mov dword [edi + 0x498], eax
mov dword [edi + 0x49c], esi
mov byte [esp + 0x2c], 5
call fcn.00405660
mov dword [edi + 0x4a4], eax
mov dword [edi + 0x4a8], esi
lea eax, [edi + 0x4b0]
push eax
mov dword [edi + 0x4ac], 0x446b58
call ebx
lea ecx, [edi + 0x4c8]
push ecx
mov byte [esp + 0x30], 7
call fcn.0041cfd0
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [ebp + 8]
push eax
mov dword [edi + 0x4f8], 0x446c04
mov dword [edi + 0x4fc], esi
mov dword [edi + 0x500], esi
mov dword [edi + 0x4f4], 0x446bfc
push 0x405600
mov byte [edi + 4], 1
push esi
push esi
mov byte [ebp + 0x18], 0
mov dword [eax], ebp
mov dword [ebp + 0xc], esi
call fcn.0042901e
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x402afb
mov dword [ebp + 4], esi
cmp dword [ebp + 4], esi
mov eax, edi
jne 0x402b0a
mov byte [ebp + 0x18], 1
mov byte [edi + 4], 0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4062f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43e5eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004283d5
push 4
mov dword [esp + 0x20], 0
call fcn.004294f4
mov edi, eax
add esp, 4
test edi, edi
je 0x406370
call fcn.004281e8
mov dword [edi], eax
call fcn.0042801c
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00428324
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406365
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00428345
jmp 0x406372
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40b200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43fec6
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 3
push ecx
mov dword [esi], vtable.XFQuery::CHttpClient_class_XFQuery::QQDiskBinPacket_.0
call fcn.00401b50
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8

Function at 0x40b530
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x43f70e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esp + 0x18], eax
mov dword [edi], vtable.XFQuery::CTcpClient_class_XFQuery::QQDiskBinPacket_.0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
cmp ecx, 0xffffffff
mov eax, 2
mov byte [esp + 0x18], al
je 0x40b5fd
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x24]
push ecx
push 0x8004667e
push edx
mov dword [edi + 0x10], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [edi + 0xc]
cmp esi, 0xffffffff
mov dword [esp + 0x24], 0x10000
je 0x40b5f0
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push 0xffff
push esi
call ebx
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
push edi
push edx
call fcn.0040ff70
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x40b6b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], 0x10000
je 0x40b712
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x14]
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push esi
call ebx
lea edx, [esp + 0x10]
push edx
push 0x8004667e
mov ebx, 1
push esi
mov dword [edi + 0xc], esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x40b791
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax]
push 0x10
lea eax, [esp + 0x18]
mov word [esp + 0x1a], cx
mov ecx, dword [edi + 0xc]
push eax
push ecx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
push edi
push edx
mov dword [edi + 0x10], ebx
call fcn.0040fff0
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
push edi
push eax
call fcn.00410070
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042877c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x40b7a0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0xc], 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0042877c
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x10], 2
push esi
push edi
jne 0x40b8bf
mov eax, dword [ebx + 0x18]
test eax, eax
lea edi, [ebx + 0x14]
je 0x40b849
mov ecx, dword [edi + 8]
sub ecx, eax
jne 0x40b8bf
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
mov esi, dword [ebp + 0x10]
je 0x40b868
mov edx, dword [ebp + 0xc]
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
jmp 0x40b874
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x40b8b4
jge 0x40b8bf
cmp eax, 0xffffffff
je 0x40b8bf
lea esi, [esp + 0x10]
call fcn.004064e0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x14]
push edx
add ecx, eax
push ecx
mov esi, edi
call fcn.0040fb50
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
push ebx
push edx
call fcn.0040fff0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc