joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420184
Capabilities:
Get disk size

Disassembly:
push 0x74
mov eax, 0x487edf
call fcn.0045e574
mov esi, edx
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
jne 0x4201a0
xor al, al
jmp 0x420303
push 1
lea eax, [ebp - 0x68]
push eax
call fcn.0041bb6b
push 0x49b6d4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.0041b69b
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.004086f5
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0041bb22
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4202f9
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
call fcn.00483870
mulsd xmm0, qword [0x4a1330]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mulsd xmm0, qword [0x4a1330]
movsd qword [ebp - 0x80], xmm0
movsd qword [esi], xmm0
call fcn.00483870
movsd xmm1, qword [0x4a1330]
lea eax, [ebp - 0x30]
mulsd xmm0, xmm1
mov edi, str._.3f_MB
push ecx
push ecx
mulsd xmm0, xmm1
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [ebp - 0x80]
comisd xmm0, xmmword [0x4a1350]
jb 0x420266
mulsd xmm0, xmm1
movsd qword [esp], xmm0
push str._.3f_GB
jmp 0x42026c
movsd qword [esp], xmm0
push edi
push eax
call fcn.00401df7
add esp, 0x10
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041b5c1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0xc]
call fcn.0041e21c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0041bb22
movsd xmm0, qword [esi + 0x28]
lea eax, [ebp - 0x30]
comisd xmm0, xmmword [0x4a1350]
push ecx
push ecx
jb 0x4202c4
mulsd xmm0, qword [0x4a1330]
movsd qword [esp], xmm0
push str._.3f_GB
jmp 0x4202ca
movsd qword [esp], xmm0
push edi
push eax
call fcn.00401df7
add esp, 0x10
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041b5c1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x34]
call fcn.0041e21c
lea ecx, [ebp - 0x4c]
call fcn.0041bb22
mov bl, 1
lea ecx, [ebp - 0x68]
call fcn.0041bb22
mov al, bl
call fcn.0045e51e
ret
Function at 0x420642
Capabilities:
Get file attributes

Disassembly:
push 0x64
mov eax, 0x487f5f
call fcn.0045e574
mov edi, ecx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], edi
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0xf
mov byte [edi + 0xc], al
mov dword [ebp - 4], eax
or dword [edi + 4], 0xffffffff
cmp dword [0x4b19fc], 0x75bcd0d
mov dword [edi], eax
mov byte [edi + 8], al
je 0x42071c
mov ebx, 0x75bcd0e
cmp dword [0x4b19fc], ebx
je 0x42071c
push str.LVHMutexExLogMark
lea ecx, [ebp - 0x64]
call fcn.0041b69b
push 0x20a
mov byte [ebp - 4], 1
call fcn.0045dc17
mov esi, eax
mov dword [esp], 0x104
xor eax, eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
lea ecx, [ebp - 0x48]
call fcn.0041b69b
push esi
call fcn.0045dbd4
pop ecx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0041dde9
pop ecx
lea ecx, [ebp - 0x48]
call fcn.0041bb22
lea ecx, [ebp - 0x64]
call fcn.0041bb22
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
lea ecx, [ebp - 0x2c]
neg eax
sbb eax, eax
add eax, ebx
mov dword [0x4b19fc], eax
call fcn.0041bb22
mov eax, edi
call fcn.0045e51e
ret

Function at 0x420cb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x420cd9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042127e
jmp 0x420d8e
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x420cfb
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x420cfd
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x420d82
jg 0x420d12
test esi, esi
je 0x420d82
test ecx, ecx
jl 0x420d5b
jg 0x420d1c
test eax, eax
je 0x420d5b
cmp edi, ecx
jg 0x420d30
jl 0x420d26
cmp esi, eax
jae 0x420d30
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0045f380
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x420d5e
mov edx, dword [ebp + 8]
test edi, edi
jl 0x420d82
jg 0x420d68
test esi, esi
je 0x420d82
cmp dword [ebx + 0x4c], 0
je 0x420d82
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00465ccc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420d97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x420dbe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421345
jmp 0x420e8d
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x420de0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x420de2
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x420e81
jg 0x420dff
test esi, esi
je 0x420e81
test ecx, ecx
jl 0x420e4c
jg 0x420e09
test eax, eax
je 0x420e4c
cmp ebx, ecx
jg 0x420e1d
jl 0x420e13
cmp esi, eax
jae 0x420e1d
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0045f380
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x420e53
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x420e81
jg 0x420e5d
test esi, esi
je 0x420e81
cmp dword [edi + 0x4c], 0
je 0x420e81
mov ecx, edi
call fcn.00421692
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004667fc
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4210c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4210ea
xor eax, eax
jmp 0x4211ac
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x421113
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x421113
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4211ac
cmp dword [esi + 0x4c], 0
je 0x4211aa
mov ecx, esi
call fcn.00421692
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x42113f
push dword [esi + 0x4c]
push eax
call fcn.00420628
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4211aa
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4211aa
cmp eax, 1
jle 0x421179
cmp eax, 3
jne 0x4211aa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x421131
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x42119c
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00465ccc
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4211aa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x4211ac
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d929
leave
ret 4

Function at 0x4216e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x421762
cmp byte [esi + 0x3d], 0
je 0x421762
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x421734
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x421738
sub eax, 1
je 0x42173c
dec eax
sub eax, 1
je 0x421762
xor al, al
jmp 0x421764
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x421759
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00465ccc
add esp, 0x10
cmp edi, eax
jne 0x421734
cmp byte [esi + 0x3d], 0
sete al
jmp 0x421764
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045d929
leave
ret
Function at 0x422e48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
cmp dword [esi], ebx
je 0x422e60
xor eax, eax
jmp 0x422f0c
lea ecx, [esi + 0x30]
call fcn.00428090
test eax, eax
jne 0x422f09
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x28], 1
call fcn.00428015
pop ecx
test eax, eax
jne 0x422f09
push ecx
lea ecx, [esi + 0x18]
call fcn.00428015
pop ecx
test eax, eax
jne 0x422f09
push ecx
lea ecx, [esi + 0x1c]
call fcn.00428015
pop ecx
test eax, eax
jne 0x422f09
push dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.0042804b
pop ecx
test eax, eax
jne 0x422f09
push ebx
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x422ed4
call fcn.00427fe3
test eax, eax
jne 0x422f09
lea eax, [ebp - 4]
mov dword [esi + 4], 1
push eax
push ebx
push dword [ebp + 8]
push edi
push ebx
push ebx
call fcn.00466fb1
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x422efe
call fcn.00427fe3
test eax, eax
jne 0x422f09
mov dword [esi], 1
jmp 0x422e59
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4255dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x4255ef
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x425624
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x42563a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42570c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
bts esi, edx
mov ebx, ecx
cmp esi, 1
je 0x425747
push edi
mov edi, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add eax, dword [edi + ecx*4]
cmp esi, 1
jne 0x425724
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42574b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x425792
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
sub ebx, 1
jne 0x425760
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x427252
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
push 8
pop edi
mov dword [esi + 0x3bcd4], ecx
lea ebx, [esi + 0x20c]
mov dword [esi + 0x3bcd0], ecx
mov edx, ecx
mov dword [esi + 0x1cc], ecx
mov dword [esi + 0x1e8], ecx
mov dword [esi + 0x1bc], ecx
mov dword [esi + 0x1c8], 0x20
mov dword [esi + 0x1f0], 1
mov dword [esi + 0x1e4], 4
mov dword [esi + 0x1f4], ecx
mov dword [ebp - 8], edi
mov ecx, edx
mov dword [ebp - 4], edi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x4272b4
mov dword [ebx], ecx
inc edx
add ebx, 4
push 8
pop edi
cmp edx, 0x100
jb 0x4272af
xor ebx, ebx
lea eax, [esi + 0x19c]
mov dword [esi + 0x118], ebx
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x148], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x198], eax
call fcn.004251e7
mov edx, ecx
mov ecx, esi
call fcn.00425318
push 2
pop edi
mov word [esi + 0x306a0], 0x100
mov ebx, edi
mov ecx, ebx
xor edx, edx
sar ecx, 1
inc edx
dec ecx
shl edx, cl
mov dword [ebp - 4], edx
test edx, edx
je 0x427385
push edx
lea eax, [esi + 0x306a0]
add eax, edi
push ebx
push eax
call fcn.0045fe80
add esp, 0xc
add edi, dword [ebp - 4]
inc ebx
cmp ebx, 0x16
jl 0x42735e
mov edi, dword [ebp - 8]
push 4
mov ecx, edi
xor edx, edx
pop ebx
imul ecx, ecx
mov eax, 0x10000
add edx, edx
jmp 0x4273a4
shr ecx, 1
inc edx
cmp ecx, eax
jae 0x4273a1
sub ebx, 1
jne 0x427395
mov eax, edi
mov ecx, 0xa1
shr eax, 4
sub ecx, edx
add edi, 0x10
mov dword [esi + eax*4 + 0x30ea0], ecx
cmp edi, 0x800
jb 0x42738e
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd10], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42828e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xe
pop ecx
mov esi, dword [esi + 0x16]
mov edi, ebx
add esi, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 1]
call fcn.0041def3
push dword [ebx + 0x10]
mov dword [ebx + 1], eax
push dword [ebx + 0xc]
call fcn.0041de61
push dword [ebx + 0x18]
mov dword [ebx + 0xc], eax
push dword [ebx + 0x14]
mov dword [ebx + 0x10], edx
call fcn.0041de61
push dword [ebx + 0x27]
mov dword [ebx + 0x14], eax
push dword [ebx + 0x23]
mov dword [ebx + 0x18], edx
call fcn.0041de61
push dword [ebx + 0x2f]
mov dword [ebx + 0x23], eax
push dword [ebx + 0x2b]
mov dword [ebx + 0x27], edx
call fcn.0041de61
mov ecx, dword [ebx + 6]
add esp, 0x20
mov dword [ebx + 0x2b], eax
mov dword [ebx + 0x2f], edx
test ecx, ecx
je 0x42830e
call fcn.0041def3
mov dword [ebx + 6], eax
mov ecx, dword [ebx + 0x1d]
test ecx, ecx
je 0x42831d
call fcn.0041def3
mov dword [ebx + 0x1d], eax
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x42832c
call fcn.0041def3
mov dword [ebx + 0x34], eax
mov edi, dword [ebp + 0x10]
push 0
pop eax
mov dword [esp + 0xc], eax
add dword [edi], 0x38
adc dword [edi + 4], eax
cmp byte [ebx], 0xd
jne 0x428344
mov byte [ebx + 5], al
cmp byte [ebx + 0xa], 0xd
jne 0x42834d
mov byte [ebx + 0x1c], al
cmp byte [ebx + 0x21], 0xd
jne 0x428358
mov byte [ebx + 0x33], al
jmp 0x42835f
mov al, byte [ebx + 0x33]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 0x1c]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0xc]
movzx eax, al
cdq
add esi, eax
mov eax, dword [ebx + 1]
adc ecx, edx
cdq
add esi, eax
mov eax, dword [ebp + 8]
adc ecx, edx
add esi, dword [ebx + 0x14]
adc ecx, dword [ebx + 0x18]
add esi, dword [edi]
adc ecx, dword [edi + 4]
add esi, dword [ebx + 0x2b]
adc ecx, dword [ebx + 0x2f]
cmp dword [eax + 0x1e], ecx
jg 0x4283a1
jl 0x42839c
cmp dword [eax + 0x1a], esi
jae 0x4283a1
push 0xfffffffffffffff6
pop eax
jmp 0x4283a3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42eca9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push esi
push edi
test eax, eax
je 0x42ed8e
cmp dword [ebp + 0xc], 0
jl 0x42ed8e
mov edi, dword [ebp + 8]
jg 0x42ece1
test edi, edi
je 0x42ed8e
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push 5
pop edx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, edi
sub ecx, esi
sbb eax, ebx
mov dword [ebp - 0x18], eax
js 0x42ed0e
jg 0x42ed05
cmp ecx, 0x10000
jbe 0x42ed0e
mov eax, 0x10000
mov ecx, esi
jmp 0x42ed14
mov ecx, esi
mov eax, edi
sub eax, ecx
cmp edx, 0x2800
jg 0x42ed7d
push 0
push eax
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
jg 0x42ed55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42ed75
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
add edx, edx
mov dword [ebp - 8], edx
jmp 0x42ed65
push 5
pop eax
mov dword [ebp - 8], eax
mov eax, ecx
cdq
add esi, eax
adc ebx, edx
mov edx, dword [ebp - 8]
cmp ebx, dword [ebp + 0xc]
jg 0x42ed88
jl 0x42eced
cmp esi, edi
jae 0x42ed88
jmp 0x42eced
push 0xfffffffffffffffe
pop eax
or edx, 0xffffffff
jmp 0x42ed93
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, esi
mov edx, ebx
jmp 0x42ed93
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434ba8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0x48
mov eax, 0x48986a
call fcn.0045e574
mov ebx, ecx
mov eax, 0x10000
push eax
mov dword [ebx + 0x30], eax
call fcn.0045dc17
push 0
mov dword [ebx + 0x2c], eax
call fcn.0046265d
pop ecx
pop ecx
and dword [ebp - 0x50], 0
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x54], 1
call fcn.00433d1a
mov ecx, eax
test ecx, ecx
je 0x434c62
cmp ecx, 0xfffffffd
jne 0x434c03
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x70], 0
jne 0x434be8
call fcn.0045e51e
ret
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x68], 0
jle 0x434c27
call fcn.00418c5c
mov ecx, eax
call fcn.00418d98
xor edx, edx
mov edi, dword [esi + 0x64]
div dword [esi + 0x68]
add edi, edx
jmp 0x434c2a
mov edi, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x434c55
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebx + 0x80]
mov ecx, esi
add dword [ebp - 0x4c], 0x64
call fcn.00433d1a
test eax, eax
je 0x434c62
cmp dword [ebp - 0x4c], edi
jl 0x434c33
push 1
push 0
mov ecx, esi
call fcn.004333d1
jmp 0x434be6
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx + 0x38]
call fcn.0042f3d8
cmp dword [ebx + 0x48], 1
jg 0x434c8e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434bd0
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push dword [ebx + 0x44]
push dword [ebx + 0x48]
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x434bd0
call fcn.00404b88
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0x7c]
cmp byte [ecx + 4], 0
je 0x434cd3
mov eax, dword [ecx]
push dword [edx + 0xa0]
call dword [eax + 8]
test eax, eax
je 0x434bd0
jmp 0x434d29
push 0
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push dword [edx + 0xa0]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x434d12
mov esi, dword [ebx + 0x80]
cdq
push edx
push eax
mov ecx, dword [esi + 0x7c]
push dword [ebx + 0x2c]
push dword [esi + 0xa0]
mov edi, dword [ecx]
call dword [edi + 0xc]
test eax, eax
je 0x434bd0
cmp eax, 0xfffffff7
jmp 0x434ccb
jns 0x434d21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jmp 0x434ccb
test eax, eax
jne 0x434bd0
cmp dword [0x4b5e48], 3
jl 0x434d81
push str.e:works10720_blowsnow_source_smartice_sirecvthread.cpp
lea ecx, [ebp - 0x48]
call fcn.0041b69b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.recv_check_error_set_connect_state
call fcn.0041b5c1
push 3
push 0xc9
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4b5e48
push eax
call fcn.00432ea0
lea ecx, [ebp - 0x2c]
call fcn.0041bb22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041bb22
mov eax, dword [ebx + 0x80]
mov byte [eax + 0xa9], 0
jmp 0x434bd0
Function at 0x441a3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x80], 0
jne 0x441b8a
cmp dword [esi + 8], 0
je 0x441b8a
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.0041647c
lea edi, [esi + 0x2c]
push 0x49b6ac
mov ecx, edi
call fcn.0041647c
lea ebx, [esi + 0x44]
push 0x49b6ac
mov ecx, ebx
call fcn.0041647c
cmp dword [ebp + 0xc], 0
je 0x441a97
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041647c
jmp 0x441aa3
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
call fcn.00441c7e
pop ecx
mov eax, dword [esi + 0xc]
xor edi, edi
inc edi
xor ebx, ebx
test eax, eax
jne 0x441ac4
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x441b8a
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x441ada
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [esi + 0x7c], ebx
call fcn.00442266
test eax, eax
je 0x441afc
cmp dword [esi + 4], edi
jne 0x441afc
push 0x54
call fcn.0045dbd9
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.0044940f
jmp 0x441b29
push 0x2c
call fcn.0045dbd9
pop ecx
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.CWininetFile.0
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], 7
mov word [eax + 0xc], cx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffd
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.STATIC
push ebx
mov dword [esi + 0x7c], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4421e3
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 4]
mov dword [esi + 0x80], edi
push eax
push ebx
push esi
push 0x441d9d
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00466fb1
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x10], ecx
test ecx, ecx
jne 0x441b81
mov dword [esi + 0x80], ebx
xor eax, eax
test ecx, ecx
setne al
jmp 0x441b8c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8