joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413be0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, dword [ebp]
push esi
push edi
push 0x33
xor esi, esi
call fcn.00411070
mov dl, byte [eax]
mov byte [esp + 0x14], dl
mov dl, byte [eax]
add esp, 4
xor ecx, ecx
test dl, dl
je 0x413c23
lea edi, [esp + 0x10]
sub edi, eax
mov edi, edi
mov dl, byte [eax + 1]
inc ecx
inc eax
dec dl
xor dl, byte [edi + eax - 1]
mov byte [edi + eax], dl
cmp byte [eax], 0
jne 0x413c10
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov byte [esp + ecx + 0x1c], 0
call dword [ebx + 0x50]
mov edi, eax
test edi, edi
jne 0x413c52
call dword [ebx + 0x78]
push eax
push ebp
call fcn.00412590
add esp, 8
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push edi
call dword [ebx + 0x74]
test eax, eax
je 0x413c81
cmp eax, 0xffffffff
jne 0x413cca
call dword [ebx + 0x78]
push eax
push ebp
call fcn.00412590
add esp, 8
push edi
call dword [ebx + 0x60]
push edi
call dword [ebx + 0x1c]
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
mov edx, dword [esp + 0x3c]
mov eax, ebp
call fcn.00413ad0
add esp, 0x14
mov esi, eax
cmp si, 1
jne 0x413cca
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebp
push edx
call fcn.00412b50
add esp, 0x10
mov esi, eax
push edi
call dword [ebx + 0x60]
push edi
call dword [ebx + 0x1c]
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x401b60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429d48
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4371c0]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xbc], ecx
xor ecx, ecx
mov dword [ebp - 0xc0], edx
xor edx, edx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ecx
mov ecx, eax
lea edx, [ecx + 2]
nop
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x401bd0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call 0x4038c0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401bf0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call 0x4038c0
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c10
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [ebp - 0x2c]
call 0x4038c0
mov edx, dword [ebp - 0xc4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c35
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea ecx, [ebp - 0x2c]
call 0x4038c0
mov edx, dword [ebp - 0xc0]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c60
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea ecx, [ebp - 0x2c]
call 0x4038c0
mov edx, dword [ebp - 0xbc]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c85
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea ecx, [ebp - 0x2c]
call 0x4038c0
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x401cab
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
lea eax, [eax + eax + 2]
push ecx
lea esi, [ebp - 0xb4]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call 0x403d20
lea edi, [ebp - 0x48]
mov eax, esi
call 0x4046c0
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jae 0x401d12
lea eax, [ebp - 0x48]
mov esi, dword [0x42b168]
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x401d2c
lea ecx, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xb8]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call esi
cmp dword [ebp - 0x34], edi
jb 0x401d4c
mov ecx, dword [ebp - 0x48]
push ecx
call 0x41828d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x401d72
mov edx, dword [ebp - 0x2c]
push edx
call 0x41828d
add esp, 4
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 0x41815f
mov esp, ebp
pop ebp
ret
Function at 0x7640a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a8000]
push edi
or ebp, 0xffffffff
jmp 0x7640c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7640c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7640b8
mov eax, 1
add ebx, ebx
jne 0x7640db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7640ec
jne 0x76410b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76410b
dec eax
add ebx, ebx
jne 0x7640f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7640d0
add ebx, ebx
jne 0x764107
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x76415d
xor ecx, ecx
sub eax, 3
jb 0x764123
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x764192
sar eax, 1
mov ebp, eax
jmp 0x76412e
add ebx, ebx
jne 0x76412e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7640fc
inc ecx
add ebx, ebx
jne 0x76413c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7640fc
add ebx, ebx
jne 0x764149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x76413e
jne 0x76415a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x76413e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x76417c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x76416e
jmp 0x7640be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x76417c
add edi, ecx
jmp 0x7640be
pop esi
mov edi, esi
mov ecx, 0xaa2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x76419a
cmp byte [edi], 0x26
jne 0x76419a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x76419f
lea edi, [esi + 0x360000]
mov eax, dword [edi]
or eax, eax
je 0x76420e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x381c94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x381d9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7641cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x381da4]
or eax, eax
je 0x764208
mov dword [ebx], eax
add ebx, 4
jmp 0x7641e9
call dword [esi + 0x381da0]
mov ebp, dword [esi + 0x381da8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x764242
sub esp, 0xffffff80
jmp 0x640828

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4012f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 1
lea eax, [esi + esi*2]
cmp ecx, eax
seta dl
add eax, 2
cmp ecx, eax
movzx ebx, dl
sete byte [ebp - 2]
add ebx, esi
add ebx, ebx
add ebx, ebx
lea eax, [ebx + 3]
push edi
push eax
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], ebx
call fcn.0040606c
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x4013b8
mov ecx, dword [ebp + 8]
add ecx, 2
lea edx, [edi + 2]
mov dword [ebp - 8], esi
mov eax, esi
lea ebx, [ebx]
movzx esi, byte [ecx - 2]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx - 2]
shr esi, 4
shl ebx, 4
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], bl
movzx ebx, byte [ecx - 1]
movzx esi, byte [ecx]
add ebx, ebx
shr esi, 6
add ebx, ebx
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], bl
movzx esi, byte [ecx]
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], bl
add ecx, 3
add edx, 4
dec dword [ebp - 8]
jne 0x401350
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
je 0x40143f
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
movzx ecx, byte [eax + edx]
lea esi, [eax + edx]
shr ecx, 2
cmp byte [ebp - 2], 0
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], dl
movzx edx, byte [esi]
je 0x401425
movzx ecx, byte [esi + 1]
shr ecx, 4
shl edx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx edx, byte [esi + 1]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and edx, 3
shl edx, 4
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
mov byte [edi + eax*4 + 2], 0x3d
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4017a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [esi + 0x18], 0x10
mov edi, eax
lea eax, [esi + 4]
jb 0x4017c0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
movzx ecx, word [esi]
mov eax, 2
push ecx
mov dword [ebp - 0xc], edx
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401800
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push 0x401
mov dword [esi + 0x4c0], edi
lea edi, [esi + 0xb8]
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4017f9
mov byte [eax + esi + 0xb8], 0
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push 0x401
lea esi, [edi + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
cmp eax, 0xffffffff
jne 0x4018b5
xor al, al
ret
mov byte [eax + edi + 0xb8], 0
mov al, 1
ret
Function at 0x401c60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
push 0xc
mov eax, str.MAIL_FROM:__
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00403470
push esi
lea eax, [ebx + 0x20]
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x28]
call fcn.004033c0
push 3
mov eax, 0x4072f8
mov ecx, edi
call fcn.00403470
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401cc8
mov eax, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push esi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e19
push 0x401
lea edi, [ebx + 0xb8]
push esi
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push esi
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x401e19
mov byte [eax + ebx + 0xb8], 0
push 0xa
mov eax, str.RCPT_TO:__
lea ecx, [ebp - 0x28]
call fcn.00403470
push esi
lea ecx, [ebx + 0x58]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x28]
call fcn.004033c0
push 3
mov eax, 0x4072f8
mov ecx, edi
call fcn.00403470
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401d56
mov eax, edi
mov edx, dword [ebp - 0x18]
push esi
push edx
push eax
mov eax, dword [ebx + 0x4c0]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401e0d
mov edi, ebx
call fcn.00401880
test al, al
je 0x401e0d
mov edi, 6
mov eax, str.DATA_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401d9e
mov eax, esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401df3
mov edi, ebx
call fcn.00401880
test al, al
je 0x401df3
lea eax, [ebp - 0x28]
mov ecx, ebx
call fcn.00401e40
push ebx
lea eax, [ebp - 0x28]
call fcn.00401850
lea esi, [ebp - 0x28]
test al, al
je 0x401df6
call fcn.00402680
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x28]
call fcn.00402680
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0x10
jb 0x401e2c
mov eax, dword [ebp - 0x28]
push eax
jmp 0x401e23
cmp dword [ebp - 0x14], 0x10
jb 0x401e2c
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401f20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
push 0x19
mov eax, str.Content_Type:_text_plain_
mov ecx, esi
call fcn.00403470
push 0x14
mov eax, str.charset_gb2312__r_n_r_n
mov ecx, esi
call fcn.00403470
push 0
lea eax, [ebx + 0x90]
push eax
or eax, 0xffffffff
mov edi, esi
call fcn.004033c0
push 4
mov eax, str._r_n_r_n
mov ecx, esi
call fcn.00403470
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x401fae
mov eax, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x14], esi
jb 0x401fda
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea edi, [eax + 0xe]
mov eax, str.__qwertyuiop__
lea esi, [ebp - 0x28]
call fcn.00403aa0
push 5
mov eax, str._r_n._r_n
mov ecx, esi
call fcn.00403470
mov eax, dword [ebp - 0x28]
mov edi, 0x10
cmp dword [ebp - 0x14], edi
jae 0x40252f
mov eax, esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4025f5
push 0x401
lea esi, [ebx + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4025f5
mov byte [eax + ebx + 0xb8], 0
mov edi, 6
mov eax, str.QUIT_r_n
lea esi, [ebp - 0x28]
call fcn.00403aa0
mov eax, dword [ebp - 0x28]
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jae 0x4025a6
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4c0]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4025ce
mov edi, ebx
call fcn.00401880
test al, al
je 0x4025ce
mov bl, 1
jmp 0x4025d0
xor bl, bl
cmp dword [ebp - 0x14], esi
jb 0x4025e2
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], edi
jb 0x402607
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406b88
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [ebx + 0x44], 0
je 0x403933
cmp byte [ebx + 0x49], 0
je 0x403933
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
jne 0x4037cf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
lea esi, [ebp - 0x2c]
call fcn.00403360
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4037f2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebx + 0x44]
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403833
dec eax
je 0x403837
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x403911
call fcn.00402680
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403847
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, edx
je 0x403875
cmp edi, 0x10
jae 0x403856
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403906
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40390e
test esi, esi
jne 0x4037e6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403928
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403928
cmp edi, esi
jae 0x4038ef
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403bc0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4037e6
mov ecx, eax
cmp edi, 0x10
jae 0x4038cb
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4038e6
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4037e0
test esi, esi
jne 0x4038c1
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4038fe
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4037e0
lea esi, [ebp - 0x2c]
jmp 0x40381c
lea esi, [ebp - 0x2c]
call fcn.00402680
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403f00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.QQScreenshot.exe
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x24c]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x250]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x403f6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x24]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403fa6
test dx, dx
je 0x403fa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403fa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403f80
xor eax, eax
jmp 0x403fab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403fcd
lea edx, [ebp - 0x250]
push edx
push esi
call edi
test eax, eax
jne 0x403f71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x248]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret