joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ede
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x422eff
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x422ef6
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x422eee
mov eax, ebx
leave
ret

Function at 0x422f25
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x422f84
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x422fb1
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x422fa0
xor ecx, eax
xor edx, ebx
dec edi
jne 0x422f91
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x422fd7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x422f78
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x423656
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x423666
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jle 0x423774
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cwde
call fcn.00423784
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5a4d
jne 0x423774
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call fcn.00423784
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4550
jne 0x423774
pop eax
push eax
mov eax, dword [eax + 0x7c]
call fcn.00423784
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x423774
pop eax
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
pop eax
mov eax, dword [eax + 0x18]
dec eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x423771
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00423797
test eax, eax
je 0x423760
push ecx
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop ecx
leave
ret 8
push dword [ebp - 8]
call fcn.004237cb
add dword [ebp - 0xc], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x42371b
add esp, 0xc
mov eax, 0
jmp 0x42377e
mov esp, ebp
pop ebp
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40fe5b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lahf
cwde
cld
invalid
pop esp
and al, 0x28
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 3
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebx + 0x134]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.004082e0
mov dword [esp + 0x44], eax
test eax, eax
je 0x444b47
mov eax, dword [ebx + 0x148]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
mov dword [esp + 0x70], eax
inc ecx
mov esi, dword [ecx + 4]
push ecx
call fcn.00469e67
mov ecx, esi
test esi, esi
jne 0x444b3a
jmp 0x40fdb3

Function at 0x415e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415e80
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415e72
pop edi
pop esi
pop ebp
ret 4
Function at 0x4406e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x44070a
or al, 0x8d
mov gs, word [eax + 0x1c]
dec ecx
add al, ch
and byte [ebx + eax - 0x7372b000], bh
and al, 0x94
add byte [ebp + 8], bl
call fcn.00409eb7
lea ecx, [esp + 0x51ec8b90]
call fcn.0045655e
test al, al
jne 0x440733
add byte [eax + eax*8 + 0x458b2475], al
or al, 0x8b
or byte [ebx + 0x408b0845], cl
add al, 0x8b
add al, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, esi
movsx eax, word [eax + 0xa]
push eax
push 0x51ec8ba7
call fcn.0046a0d0
jmp 0x440df1
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x4700d8]
pop ebp
jge 0x440748
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x470094]
xchg esp, eax
add byte [edi], al
mov dword [esp + 0x51ec8bdc], 0x470000
push eax
push esi
push edi
mov dword [esp + 0x51ec8bf0], 0x470000
mov dword [esp + 0x4700f4], 0x51ec8b01
call fcn.0047ca0e
test dword [eax], eax
add byte [eax + 0x650], cl
cmp byte [esp + 0x17], 0
mov dword [esp + 0x10], 0x51ec8b55
jne 0x440795
lea ecx, [esp + 0x20]
call fcn.0041fb32
lea eax, [esp + 0x4700d8]
push eax
lea ecx, [esp + 0x24]
call fcn.0041fb9f
lea ecx, [esp + 0x4700d8]
lea ecx, [esp + 0x51ec8b90]
call fcn.00409a3b
jmp 0x440d89

Function at 0x45fccc
Capabilities:
Encode data using xor

Disassembly:
add edi, edi
call dword ss:[0x48f688]
mov ecx, dword [ebp + 8]
jns 0x45fcc2
cld
call [ecx + 0xb]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.004210b4
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
jne 0x45fcda
xor esi, dword [ebx]
ror byte [ebx + 0x1075084d], 0xff
cld
invalid
inc dword [esi + edi]
test ecx, ecx
jle 0x45fcdc
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45fcd3
mov eax, edi
mov ebx, ecx
push edi
mov edi, dword [ebp - 0x75]
inc esi
add al, 0xff
jo 0x45fca1
and al, 0x20
add byte [eax], al
call fcn.00431bc4
push esi
push 0x245c0fff
mov esi, ecx
lea eax, [ebp + 0x4cdfe0]
invalid

Function at 0x465846
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esi + ebx]
test eax, eax
jns 0x46582e
add eax, 0x10e0c1d7
push 0x10
cdq
pop ecx
idiv ecx
mov cx, word [ebp + edx*2 - 0x2c]
mov ax, word [ebp + eax*2 - 0x2c]
mov word [edi + 2], cx
mov word [edi], ax
sub edi, 4
out dx, eax
add al, 0x4e
out dx, eax
add al, 0x4e
jns 0x465821
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
pop edi
Function at 0x5571b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x5571dd
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [eax + esi*4]
mov ebp, dword [edx + esi*4]
mov dword [edi + esi*4], ebx
xor dword [eax + esi*4], ebp
inc esi
jne 0x5571ce
and ecx, 3
je 0x5571f5
mov bl, byte [ecx + eax - 1]
mov bh, byte [ecx + edx - 1]
mov byte [ecx + edi - 1], bl
xor byte [ecx + eax - 1], bh
dec ecx
jne 0x5571e2
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x557200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
shr esi, 2
je 0x557239
lea ecx, [ecx + esi*4]
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebp, dword [eax + esi*4]
mov ebx, dword [edi + esi*4]
xor ebx, dword [edx + esi*4]
mov dword [edx + esi*4], ebx
xor ebx, dword [ecx + esi*4]
mov dword [edi + esi*4], ebp
mov dword [eax + esi*4], ebx
inc esi
jne 0x557221
pop esi
and esi, 3
je 0x55725e
mov bl, byte [esi + eax - 1]
mov bh, byte [esi + edx - 1]
xor bh, byte [esi + edi - 1]
mov byte [esi + edx - 1], bh
xor bh, byte [esi + ecx - 1]
mov byte [esi + edi - 1], bl
mov byte [esi + eax - 1], bh
dec esi
jne 0x55723f
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x557268
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x557294
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [edx + esi*4]
xor ebx, dword [eax + esi*4]
mov dword [edi + esi*4], ebx
mov dword [eax + esi*4], ebx
inc esi
jne 0x557285
and ecx, 3
je 0x5572ac
mov bl, byte [ecx + edx - 1]
xor bl, byte [ecx + eax - 1]
mov byte [ecx + edi - 1], bl
mov byte [ecx + eax - 1], bl
dec ecx
jne 0x557299
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x5572b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
shr ecx, 1
lea edi, [eax + ecx*8]
lea edx, [edx + ecx*8]
neg ecx
mov ebx, dword [edx + ecx*8]
mov eax, dword [edx + ecx*8 + 4]
xor dword [edi + ecx*8], ebx
xor dword [edi + ecx*8 + 4], eax
inc ecx
jne 0x5572c0
pop edi
pop ebx
ret
Function at 0x557bdc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00557834
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x557d1b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x557c8a
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00534ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.005572b4
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.00534ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.005572b4
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x557c37
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x557cd8
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00534ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.005572b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.00534ca0
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x557d02
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
dec edi
test edi, edi
jl 0x557d02
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dl, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x557cf2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557d22
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005579d0
ret

Function at 0x8eb8cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
shr ecx, 2
xor dword [edx], eax
add edx, 4
dec ecx
jne 0x8eb8e3
pop ebp
ret 0xc
Function at 0x8eb992
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x8eb9c3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8eb9a1
add dl, dl
jne 0x8eb9d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8eba46
xor eax, eax
add dl, dl
jne 0x8eb9eb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ebb1b
add dl, dl
jne 0x8eb9fe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8eba0d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8eba1c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8eba2b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8eba39
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8eb9b6
mov eax, 1
add dl, dl
jne 0x8eba58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8eba67
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8eba4b
sub eax, ebx
mov ebx, 1
jne 0x8ebaae
mov ecx, 1
add dl, dl
jne 0x8eba8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8eba9b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8eba7f
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8eb9b6
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8ebac9
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8ebad8
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ebabc
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8eb9b6
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8ebb43
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8eb9b6
pop ebp
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401010
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x751f00]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401065
mov eax, dword [esp]
cmp al, 2
jne 0x40105f
shr eax, 8
cmp al, 2
jne 0x40105f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0055e7fd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.0055e7fd
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
xor esi, esi
cmp ebx, esi
jne 0x401428
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
mov edx, dword [esp + 0x24]
shr edi, 6
mov eax, edi
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov ebp, ecx
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00402500
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x4012ad
cmp dword [esp + 0x18], esi
jne 0x4013a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov eax, esi
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov eax, ecx
push 0
sub eax, ebp
cdq
push 0x3e8
push edx
push eax
call fcn.0056a120
mov ebx, eax
mov eax, esi
sub eax, edi
imul eax, eax, 0x3e8
mov ecx, edx
cdq
add ebx, eax
adc ecx, edx
test ecx, ecx
jg 0x401396
jl 0x401358
cmp ebx, 0xa
ja 0x401396
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jle 0x4013a4
cmp eax, 0xa
jge 0x401388
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test eax, eax
je 0x4013a4
jge 0x40138d
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4013a4
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013a4
mov dword [esp + 0x14], 0
jmp 0x4013a4
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403a90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4012ad
cmp dword [esp + 0x1c], eax
jne 0x4012ad
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], eax
je 0x4012ad
mov edx, dword [esp + 0x24]
cmp dword [edx], 0xbab1e
jne 0x4012ad
mov eax, edx
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0xc], ebx
je 0x4012ad
mov edi, dword [edx + 0x14]
mov esi, dword [edi]
mov ebp, dword [esi]
push ebx
call fcn.00416710
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0xc]
and edx, 0x7fffffff
add esp, 4
mov dword [esp + 0x18], edx
test ebp, ebp
je 0x4012ad
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x401437
sub ebx, 3
neg ebx
sbb ebx, ebx
and ebx, 0x10
add ebx, 0x1b
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x407db0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebp
push esi
xor ebp, ebp
push edi
mov eax, 1
cmp ebx, 0xffffffff
je 0x407e85
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], eax
mov dword [esp + 0x228], ecx
lea edi, [ebx + 1]
jmp 0x407dfb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x228]
lea edx, [esp + 0x10]
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x124]
push edx
lea edx, [esp + 0x230]
and ecx, edx
push ecx
neg eax
sbb eax, eax
lea ecx, [esp + 0x24]
and eax, ecx
push eax
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407e50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebp
je 0x407df0
cmp dword [0x77e3a4], ebp
jne 0x407e50
cmp eax, 0x2714
je 0x407df0
cmp esi, ebp
jl 0x407e91
je 0x407e85
lea edx, [esp + 0x18]
push edx
push ebx
xor esi, esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x407e6c
mov esi, 1
lea eax, [esp + 0x120]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x407e81
or esi, 4
cmp esi, ebp
jne 0x407e91
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x328
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x328
ret
Function at 0x40c120
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, eax
push edi
mov edi, dword [esi]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [edi + 0x614]
imul ecx, ecx, 0x3e8
push eax
mov eax, dword [edi + 0x610]
push eax
push ecx
push edx
call fcn.00410630
add esp, 0x10
fstp qword [edi + 0x5d8]
mov ecx, dword [esi + 0x340]
test byte [ecx + 0x40], 0x10
je 0x40c18e
mov edx, dword [ebp + 8]
mov dword [edx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [esi + 0x300], 0
cmp dword [edi + 0x4a4], 0
je 0x40c1ee
mov ecx, dword [esi + 0x358]
push ecx
call dword [0x75cccc]
mov dword [esi + 0x358], 0
mov edx, dword [edi + 0x4a4]
add esp, 4
push edx
push str.User_Agent:__s_r_n
call fcn.0041e470
add esp, 8
mov dword [esi + 0x358], eax
test eax, eax
jne 0x40c1ee
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x80], 0
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
cmp dword [esi + 0x1a0], 0xffffffff
mov dword [esi + 0x190], edx
mov dword [esi + 0x194], ecx
jne 0x40c250
mov ecx, dword [esi + 0x48]
push ecx
mov dword [esi + 0x2cc], 0
call fcn.0040d7f0
add esp, 4
test eax, eax
je 0x40c2ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [edi + 0x614]
imul ecx, ecx, 0x3e8
push eax
mov eax, dword [edi + 0x610]
push eax
push ecx
push edx
call fcn.00410630
add esp, 0x10
fstp qword [edi + 0x5e0]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [edi + 0x614]
imul ecx, ecx, 0x3e8
push eax
mov eax, dword [edi + 0x610]
push eax
push ecx
push edx
call fcn.00410630
mov ecx, dword [ebp + 8]
fstp qword [edi + 0x5e8]
mov dword [esi + 0x2cc], 1
mov dword [ecx], 1
mov ecx, dword [esi + 0x1a0]
push esi
call fcn.0040cdc0
add esp, 0x14
mov eax, esi
call fcn.00408e60
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
pop edi
mov dword [esi + 0x190], edx
mov dword [esi + 0x194], ecx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c630
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x528], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x40c66f
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov ecx, esi
call fcn.0040f940
add esp, 8
add esp, 0x14
ret
mov eax, dword [esi + 0x530]
mov edx, dword [esi + 0x52c]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0
and edx, 0x7fffffff
push 0
imul edx, edx, 0x3e8
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40c6e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov ecx, esi
call fcn.0040f940
add esp, 0xc
add esp, 0x14
ret