joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420612
Capabilities:
Get file attributes

Disassembly:
push 0x64
mov eax, 0x48795c
call fcn.0045e53f
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 0x4206ec
mov ebx, 0x75bcd0e
cmp dword [0x4b19fc], ebx
je 0x4206ec
push str.LVHMutexExLogMark
lea ecx, [ebp - 0x64]
call fcn.0041b66b
push 0x20a
mov byte [ebp - 4], 1
call fcn.0045dbe2
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.0041b66b
push esi
call fcn.0045db9f
pop ecx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0041ddb9
pop ecx
lea ecx, [ebp - 0x48]
call fcn.0041baf2
lea ecx, [ebp - 0x64]
call fcn.0041baf2
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.0041baf2
mov eax, edi
call fcn.0045e4e9
ret

Function at 0x420c82
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 0x420ca9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042124e
jmp 0x420d5e
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 0x420ccb
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x420ccd
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x420d52
jg 0x420ce2
test esi, esi
je 0x420d52
test ecx, ecx
jl 0x420d2b
jg 0x420cec
test eax, eax
je 0x420d2b
cmp edi, ecx
jg 0x420d00
jl 0x420cf6
cmp esi, eax
jae 0x420d00
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.0045f350
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 0x420d2e
mov edx, dword [ebp + 8]
test edi, edi
jl 0x420d52
jg 0x420d38
test esi, esi
je 0x420d52
cmp dword [ebx + 0x4c], 0
je 0x420d52
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00465bdb
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 0x420d67
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 0x420d8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421315
jmp 0x420e5d
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 0x420db0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x420db2
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x420e51
jg 0x420dcf
test esi, esi
je 0x420e51
test ecx, ecx
jl 0x420e1c
jg 0x420dd9
test eax, eax
je 0x420e1c
cmp ebx, ecx
jg 0x420ded
jl 0x420de3
cmp esi, eax
jae 0x420ded
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.0045f350
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 0x420e23
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x420e51
jg 0x420e2d
test esi, esi
je 0x420e51
cmp dword [edi + 0x4c], 0
je 0x420e51
mov ecx, edi
call fcn.00421662
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0046670b
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 0x421094
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 0x4210ba
xor eax, eax
jmp 0x42117c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4210e3
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4210e3
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 0x42117c
cmp dword [esi + 0x4c], 0
je 0x42117a
mov ecx, esi
call fcn.00421662
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x42110f
push dword [esi + 0x4c]
push eax
call fcn.004205f8
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x42117a
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 0x42117a
cmp eax, 1
jle 0x421149
cmp eax, 3
jne 0x42117a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x421101
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x42116c
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00465bdb
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x42117a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x42117c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d8f4
leave
ret 4

Function at 0x4216b0
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 0x421732
cmp byte [esi + 0x3d], 0
je 0x421732
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x421704
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 0x421708
sub eax, 1
je 0x42170c
dec eax
sub eax, 1
je 0x421732
xor al, al
jmp 0x421734
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x421729
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00465bdb
add esp, 0x10
cmp edi, eax
jne 0x421704
cmp byte [esi + 0x3d], 0
sete al
jmp 0x421734
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045d8f4
leave
ret
Function at 0x422e18
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 0x422e30
xor eax, eax
jmp 0x422edc
lea ecx, [esi + 0x30]
call fcn.00428060
test eax, eax
jne 0x422ed9
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x28], 1
call fcn.00427fe5
pop ecx
test eax, eax
jne 0x422ed9
push ecx
lea ecx, [esi + 0x18]
call fcn.00427fe5
pop ecx
test eax, eax
jne 0x422ed9
push ecx
lea ecx, [esi + 0x1c]
call fcn.00427fe5
pop ecx
test eax, eax
jne 0x422ed9
push dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.0042801b
pop ecx
test eax, eax
jne 0x422ed9
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 0x422ea4
call fcn.00427fb3
test eax, eax
jne 0x422ed9
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.00466ec1
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x422ece
call fcn.00427fb3
test eax, eax
jne 0x422ed9
mov dword [esi], 1
jmp 0x422e29
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4255ad
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 0x4255bf
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4255f4
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 0x42560a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4256dc
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 0x425717
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 0x4256f4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42571b
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 0x425762
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 0x425730
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x427222
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 0x427284
mov dword [ebx], ecx
inc edx
add ebx, 4
push 8
pop edi
cmp edx, 0x100
jb 0x42727f
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.004251b7
mov edx, ecx
mov ecx, esi
call fcn.004252e8
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 0x427355
push edx
lea eax, [esi + 0x306a0]
add eax, edi
push ebx
push eax
call fcn.0045fe50
add esp, 0xc
add edi, dword [ebp - 4]
inc ebx
cmp ebx, 0x16
jl 0x42732e
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 0x427374
shr ecx, 1
inc edx
cmp ecx, eax
jae 0x427371
sub ebx, 1
jne 0x427365
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 0x42735e
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd10], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42825e
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.0041dec3
push dword [ebx + 0x10]
mov dword [ebx + 1], eax
push dword [ebx + 0xc]
call fcn.0041de31
push dword [ebx + 0x18]
mov dword [ebx + 0xc], eax
push dword [ebx + 0x14]
mov dword [ebx + 0x10], edx
call fcn.0041de31
push dword [ebx + 0x27]
mov dword [ebx + 0x14], eax
push dword [ebx + 0x23]
mov dword [ebx + 0x18], edx
call fcn.0041de31
push dword [ebx + 0x2f]
mov dword [ebx + 0x23], eax
push dword [ebx + 0x2b]
mov dword [ebx + 0x27], edx
call fcn.0041de31
mov ecx, dword [ebx + 6]
add esp, 0x20
mov dword [ebx + 0x2b], eax
mov dword [ebx + 0x2f], edx
test ecx, ecx
je 0x4282de
call fcn.0041dec3
mov dword [ebx + 6], eax
mov ecx, dword [ebx + 0x1d]
test ecx, ecx
je 0x4282ed
call fcn.0041dec3
mov dword [ebx + 0x1d], eax
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x4282fc
call fcn.0041dec3
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 0x428314
mov byte [ebx + 5], al
cmp byte [ebx + 0xa], 0xd
jne 0x42831d
mov byte [ebx + 0x1c], al
cmp byte [ebx + 0x21], 0xd
jne 0x428328
mov byte [ebx + 0x33], al
jmp 0x42832f
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 0x428371
jl 0x42836c
cmp dword [eax + 0x1a], esi
jae 0x428371
push 0xfffffffffffffff6
pop eax
jmp 0x428373
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42ec79
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 0x42ed5e
cmp dword [ebp + 0xc], 0
jl 0x42ed5e
mov edi, dword [ebp + 8]
jg 0x42ecb1
test edi, edi
je 0x42ed5e
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 0x42ecde
jg 0x42ecd5
cmp ecx, 0x10000
jbe 0x42ecde
mov eax, 0x10000
mov ecx, esi
jmp 0x42ece4
mov ecx, esi
mov eax, edi
sub eax, ecx
cmp edx, 0x2800
jg 0x42ed4d
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 0x42ed25
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42ed45
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 0x42ed35
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 0x42ed58
jl 0x42ecbd
cmp esi, edi
jae 0x42ed58
jmp 0x42ecbd
push 0xfffffffffffffffe
pop eax
or edx, 0xffffffff
jmp 0x42ed63
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, esi
mov edx, ebx
jmp 0x42ed63
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434b75
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0x48
mov eax, 0x489267
call fcn.0045e53f
mov ebx, ecx
mov eax, 0x10000
push eax
mov dword [ebx + 0x30], eax
call fcn.0045dbe2
push 0
mov dword [ebx + 0x2c], eax
call fcn.0046262d
pop ecx
pop ecx
and dword [ebp - 0x50], 0
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x54], 1
call fcn.00433ce7
mov ecx, eax
test ecx, ecx
je 0x434c2f
cmp ecx, 0xfffffffd
jne 0x434bd0
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x70], 0
jne 0x434bb5
call fcn.0045e4e9
ret
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x68], 0
jle 0x434bf4
call fcn.00418c2d
mov ecx, eax
call fcn.00418d69
xor edx, edx
mov edi, dword [esi + 0x64]
div dword [esi + 0x68]
add edi, edx
jmp 0x434bf7
mov edi, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x434c22
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebx + 0x80]
mov ecx, esi
add dword [ebp - 0x4c], 0x64
call fcn.00433ce7
test eax, eax
je 0x434c2f
cmp dword [ebp - 0x4c], edi
jl 0x434c00
push 1
push 0
mov ecx, esi
call fcn.0043339e
jmp 0x434bb3
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx + 0x38]
call fcn.0042f3a5
cmp dword [ebx + 0x48], 1
jg 0x434c5b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434b9d
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 0x434b9d
call fcn.00404b5a
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0x7c]
cmp byte [ecx + 4], 0
je 0x434ca0
mov eax, dword [ecx]
push dword [edx + 0xa0]
call dword [eax + 8]
test eax, eax
je 0x434b9d
jmp 0x434cf6
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 0x434cdf
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 0x434b9d
cmp eax, 0xfffffff7
jmp 0x434c98
jns 0x434cee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jmp 0x434c98
test eax, eax
jne 0x434b9d
cmp dword [0x4b5e48], 3
jl 0x434d4e
push str.e:works10720_blowsnow_source_smartice_sirecvthread.cpp
lea ecx, [ebp - 0x48]
call fcn.0041b66b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.recv_check_error_set_connect_state
call fcn.0041b591
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.00432e6d
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041baf2
mov eax, dword [ebx + 0x80]
mov byte [eax + 0xa9], 0
jmp 0x434b9d
Function at 0x441a09
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 0x441b57
cmp dword [esi + 8], 0
je 0x441b57
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.0041644d
lea edi, [esi + 0x2c]
push 0x49b67c
mov ecx, edi
call fcn.0041644d
lea ebx, [esi + 0x44]
push 0x49b67c
mov ecx, ebx
call fcn.0041644d
cmp dword [ebp + 0xc], 0
je 0x441a64
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041644d
jmp 0x441a70
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
call fcn.00441c4b
pop ecx
mov eax, dword [esi + 0xc]
xor edi, edi
inc edi
xor ebx, ebx
test eax, eax
jne 0x441a91
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x441b57
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x441aa7
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [esi + 0x7c], ebx
call fcn.00442233
test eax, eax
je 0x441ac9
cmp dword [esi + 4], edi
jne 0x441ac9
push 0x54
call fcn.0045dba4
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.004493da
jmp 0x441af6
push 0x2c
call fcn.0045dba4
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 0x4421b0
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 0x441d6a
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00466ec1
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x10], ecx
test ecx, ecx
jne 0x441b4e
mov dword [esi + 0x80], ebx
xor eax, eax
test ecx, ecx
setne al
jmp 0x441b59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x441c4b
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
push edi
push 0x20a
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0045fe50
push 0x412
lea eax, [ebp - 0x624]
push 0
push eax
call fcn.0045fe50
push 0x2f
push esi
call fcn.0045f237
add esp, 0x20
mov esi, 0x105
test eax, eax
je 0x441cc7
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0046e18b
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_PathCleanupSpec]
cmp word [ebp - 0x210], 0
jne 0x441ce8
push 0xffffffffffffffff
push str.unknown
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0046e18b
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x624]
push str.Download
push eax
call esi
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441d2f
push eax
lea eax, [ebp - 0x624]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x624]
push eax
call esi
lea eax, [ebp - 0x624]
mov ecx, edi
push eax
call fcn.0041644d
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.0041644d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d8f4
leave
ret

Function at 0x442100
Capabilities:
Check if file exists
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.0045fe50
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00467852
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442171
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add esi, 0x2c
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44217e
mov eax, dword [esi]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp + 0xc], ebx
je 0x44219d
cmp dword [esi + 0x14], 8
jb 0x442196
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d8f4
leave
ret 8