joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008880
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.1009d2f0
test eax, eax
jne 0x100089e6
cmp byte [0x101170fc], al
jne 0x100088a4
xor edi, edi
jmp 0x100088bf
push 5
call dword [0x10117140]
mov edi, eax
add esp, 4
test edi, edi
je 0x100088bf
push edi
call dword [0x10117148]
add esp, 4
mov edx, dword [ebp + 8]
test edx, edx
jle 0x100089ce
test esi, esi
je 0x100089ce
cmp dword [0x10119650], 0
jne 0x1000895a
push 0
call fcn.1009d2f0
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x10119650], xmm0
test eax, eax
jne 0x10008906
push 0x2c
push eax
push 0x10119660
call sub.VCRUNTIME140.dll_memset
jmp 0x10008936
cmp dword [0x1011720c], 0
je 0x10008929
push 0x2c
push 0
push 0x10119660
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1011720c]
mov dword [0x10119660], eax
jmp 0x10008936
push 0x10119660
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10119680]
add esp, 0xc
mov edx, dword [ebp + 8]
xor cl, cl
mov dword [0x1011968c], eax
mov dword [0x10119680], 0
mov byte [0x101196d0], cl
jmp 0x10008960
mov cl, byte [0x101196d0]
movzx eax, cl
cmp edx, eax
jle 0x100089ae
test cl, cl
je 0x10008989
movzx eax, cl
push eax
push 0x10119690
push esi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x101196d0]
add esp, 0xc
sub dword [ebp + 8], eax
add esi, eax
inc dword [0x10119680]
mov edx, 0x10119650
mov ecx, 0x10119690
call fcn.1009d2f0
mov edx, dword [ebp + 8]
mov cl, 0x40
mov byte [0x101196d0], cl
cmp edx, 0x40
jg 0x10008967
movzx eax, cl
sub eax, edx
push edx
add eax, 0x10119690
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
sub byte [0x101196d0], al
jmp 0x100089d8
mov dword [0x10119650], 0
test edi, edi
je 0x100089e6
push edi
call dword [0x10117150]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402420
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov esi, eax
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x402464
sub ecx, 2
jne 0x402467
add eax, 2
jmp 0x402467
add eax, 3
inc eax
cmp dword [ebx], eax
jae 0x40247c
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x402514
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esp, [esp]
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4322c8]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + 0x4322c8]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + 0x4322c8]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + 0x4322c8]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x4024b0
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x40256c
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x402526
movzx esi, byte [esi + 1]
jmp 0x402528
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4322c8]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + 0x4322c8]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x402561
and esi, 0xf
mov dl, byte [esi*4 + 0x4322c8]
mov byte [ecx + 2], dl
jmp 0x402565
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0xc]
pop edi
mov dword [edx], eax
pop esi
mov byte [ecx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026e0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40287e
test eax, eax
je 0x40287e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4309a0]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x430da0]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4305a0]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x4301a0]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x4322a4
jmp 0x4027f0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x430da0]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4309a0]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4301a0]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4305a0]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x4322c8
jne 0x4027f0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x402e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], esi
mov edx, eax
mov dword [ecx], 0
test edi, edi
je 0x403045
test ebx, ebx
je 0x403045
mov ecx, esi
test ecx, ecx
je 0x403045
cmp dword [ebp - 0x10], 0
je 0x403045
test eax, eax
je 0x403045
cmp ecx, 0x10
jb 0x402fa2
lea ecx, [ecx]
lea ecx, [ebx + 1]
mov ebx, edx
sub ebx, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
sub ebx, edi
lea esi, [edx + 3]
sub edx, dword [ebp - 0xc]
mov eax, edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 4
mov edx, ebx
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [esi - 1]
add esi, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [esi - 4]
dec dword [ebp - 0x1c]
mov byte [ecx - 2], bl
jne 0x402f26
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push ecx
push ebx
mov eax, ebx
call fcn.00402890
add esp, 8
test eax, eax
jne 0x40302f
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add dword [eax], 0x10
sub esi, 0x10
mov edx, ebx
add ebx, 0x10
add edi, 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
cmp esi, 0x10
jae 0x402f00
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x402ffe
mov eax, edx
sub eax, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0x18]
mov cl, byte [edi + ecx]
xor cl, byte [edi]
inc edi
dec dword [ebp - 8]
mov byte [edi + eax - 1], cl
jne 0x402fb4
cmp esi, 0x10
jae 0x402fe0
mov edi, 0x10
sub edx, ebx
lea eax, [ebx + esi]
sub edi, esi
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
dec edi
jne 0x402fd7
mov edx, dword [ebp - 0x10]
push edx
push ebx
mov eax, ebx
call fcn.00402890
add esp, 8
test eax, eax
jne 0x40302f
mov eax, dword [ebp - 0x14]
add dword [eax], 0x10
mov eax, dword [ebp - 0x20]
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00417790
mov esp, ebp
pop ebp
ret
Function at 0x4043f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x22c]
push eax
xor edi, edi
push edi
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x220], eax
cmp eax, edi
jle 0x404529
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea ecx, [ebp - 0x110]
push ecx
push esi
call edi
lea edx, [ebp - 0x218]
push edx
push esi
mov ebx, eax
call edi
test ebx, ebx
je 0x404514
test eax, eax
jne 0x404514
mov byte [ebp - 0x21c], al
mov word [ebp - 0x21b], ax
mov byte [ebp - 0x219], al
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x224], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x404514
mov edx, 0x4300fb
lea ecx, [ebp - 0x21c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4044f5
test al, al
je 0x4044f1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4044f5
add ecx, 2
add edx, 2
test al, al
jne 0x4044d5
xor eax, eax
jmp 0x4044fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404514
mov eax, dword [ebp - 0x220]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00417790
mov esp, ebp
pop ebp
ret
Function at 0x404540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, edx
push str._________AHttpSocket::readHttpHead_____________
mov edi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ebx
call fcn.00417e81
add esp, 4
cmp dword [ebx], 0
jne 0x4045b4
mov eax, dword [esi]
test eax, eax
je 0x40459f
push eax
call fcn.00417841
add esp, 4
mov dword [esi], 0
push 0x400
mov dword [ebx], 0x400
call fcn.00416ad5
add esp, 4
mov dword [esi], eax
push 0x400
call fcn.00416ad5
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
push 0
push edx
call fcn.0041c300
push 0x400
push 0
push ebx
call fcn.0041c300
mov eax, dword [ebp - 0x34]
add esp, 0x1c
xor esi, esi
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], 0
mov dword [eax], esi
cmp dword [edi + 0x3c], 0
je 0x404621
mov eax, dword [edi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x54]
movzx ecx, byte [edi + 8]
add eax, 4
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x38], 0
setne al
test al, al
je 0x40465a
mov eax, dword [edi + 0x2c]
push 0
push 1
lea edx, [ebp - 0x2e]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x404650
js 0x404656
mov cl, byte [ebp - 0x2e]
mov byte [esi + ebx], cl
inc esi
cmp byte [esi + ebx - 2], 0xd
jne 0x4045ef
cmp byte [esi + ebx - 1], 0xa
jne 0x4045ef
jmp 0x40465a
mov byte [ebp - 0x2d], 1
jmp 0x40465a
mov byte [ebp - 0x2d], 0
mov edx, dword [ebp - 0x3c]
mov byte [esi + ebx], 0
mov ecx, dword [edx]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x38], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404680
sub eax, dword [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403670
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.00416ad5
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
mov dword [eax], esi
mov ecx, dword [edi]
lea eax, [esi + 1]
push eax
push 0
push ecx
call fcn.0041c300
mov edx, dword [edi]
push esi
push ebx
push edx
call fcn.00419960
push ebx
call fcn.0041784c
add esp, 0x20
cmp dword [ebp - 0x18], 0x10
jb 0x4046e2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041784c
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret 4
Function at 0x404850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._________AHttpSocket::readHttpHead_____________
call fcn.00417e81
mov eax, dword [esi + 0x38]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40489c
push eax
call fcn.00417841
add esp, 4
mov dword [esi + 0x38], edi
push 0x19000
call fcn.00416ad5
add esp, 4
mov ebx, eax
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], 0
cmp edi, 0x2800
jge 0x404931
cmp dword [esi + 0x3c], 0
je 0x4048ed
mov eax, dword [esi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x34], 0
setne al
test al, al
je 0x404931
mov edx, dword [esi + 0x2c]
push 0
push 1
lea ecx, [ebp - 0x2e]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40492d
mov al, byte [ebp - 0x2e]
mov byte [edi + ebx], al
inc edi
cmp edi, 4
jl 0x4048b3
cmp byte [edi + ebx - 4], 0xd
jne 0x4048b3
cmp byte [edi + ebx - 3], 0xa
jne 0x4048b3
cmp byte [edi + ebx - 2], 0xd
jne 0x4048b3
cmp byte [edi + ebx - 1], 0xa
jne 0x4048b3
jmp 0x404931
mov byte [ebp - 0x2d], 0
mov byte [edi + ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404950
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403670
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.00416ad5
lea ecx, [edi + 1]
push ecx
push 0
push eax
mov dword [esi + 0x38], eax
call fcn.0041c300
mov ecx, dword [esi + 0x38]
push edi
push ebx
push ecx
call fcn.00419960
mov edx, dword [esi + 0x38]
add esp, 0x1c
push edx
call fcn.00405150
push eax
push str._________m_szResultHead________len___d
call fcn.00417e81
mov eax, dword [esi + 0x38]
add esp, 8
push eax
call fcn.00405150
mov dword [esi + 0x10], eax
test ebx, ebx
je 0x4049c0
push ebx
call fcn.00417841
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x4049d2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041784c
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
Function at 0x405030
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, dword [esi + 0x34]
push edi
push eax
push str._______________________m_szHead__n__s
call fcn.00417e81
mov ecx, dword [esi + 0x34]
push ecx
push str._____________n_baotou__n__s
call fcn.00417e81
mov ecx, dword [esi + 0x34]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405058
mov edx, dword [esi + 0x2c]
push 0
sub eax, edi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, dword [esi + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405077
sub eax, edx
push eax
push str._____________n_chanff__n__d
call fcn.00417e81
add esp, 8
test edi, edi
jns 0x4050b9
push str._____________n______________AHttpSocket::sendMsg_failed_________
call fcn.00417e81
mov eax, dword [esi + 0x2c]
add esp, 4
cmp eax, 0xffffffff
je 0x4050b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
xor al, al
pop edi
ret
setne al
pop edi
ret

Function at 0x4050e0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x58], 0
jne 0x405149
mov eax, dword [esi + 0x54]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 4
push eax
call edi
mov ecx, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ecx, 4
push ecx
mov byte [esi + 8], 1
call ebx
mov edx, dword [esi + 0x54]
add edx, 4
push edx
call edi
mov eax, dword [esi + 0x54]
add eax, 4
push eax
mov dword [esi + 0x14], 1
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 0x5c]
push ecx
push 0
push esi
push 0x4042b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x58], eax
mov al, 1
pop ebx
ret
xor al, al
ret
Function at 0x407210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x407331
cmp byte [edi + 0x49], bl
je 0x407331
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x407325
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407285
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40729d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4072c6
dec eax
je 0x4072ca
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x407320
jmp 0x40732c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4072da
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x407303
cmp ebx, 0x10
jae 0x4072e9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004184db
add esp, 0x10
cmp esi, eax
jne 0x40731d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x407329
test esi, esi
jne 0x407291
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406f60
jmp 0x40728b
lea ecx, [ebp - 0x2c]
call fcn.004035c0
xor al, al
jmp 0x407333
lea ecx, [ebp - 0x2c]
call fcn.004035c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
Function at 0x407640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x437654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edx, dword [edi + 0x14]
cmp edx, esi
je 0x4076b8
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407684
sub eax, ebx
je 0x4076b8
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x4076ba
lea esi, [ebp - 0x1c]
call fcn.00408640
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [edi + 0xc]
push eax
lea esi, [ebp - 0x1c]
call fcn.004084c0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x407738
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4076f4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407704
push eax
call fcn.0041784c
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407714
push eax
call fcn.0041784c
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407724
push eax
call fcn.0041784c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4076e9
cmp dword [edi + 8], 0
jbe 0x4076e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [edi + 8]
push eax
call fcn.00416ad5
mov ecx, dword [edi + 8]
push ecx
push esi
push eax
mov dword [edi + 4], eax
call fcn.00419960
add esp, 0x10
test ebx, ebx
je 0x407783
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x1c]
call fcn.00408640
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret