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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push edi
call fcn.00422f84
pop ecx
test al, al
je 0x423309
push ebx
push 0x48
push 0x4a1d90
lea ebx, [esi + 0x48]
push esi
mov dword [ebp + 0xc], ebx
call fcn.0042a3ac
push 0x1000
push 0x4a1dd8
push ebx
call fcn.0042a3ac
add esp, 0x18
sar edi, 5
xor ecx, ecx
mov eax, ecx
mov ebx, dword [ebp + 8]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [esi + ecx*4], eax
inc ecx
cmp ecx, 0x12
jl 0x423280
and dword [ebp - 4], 0
mov edi, esi
and dword [ebp - 8], 0
push 9
pop ebx
lea eax, [ebp - 8]
mov ecx, esi
push eax
push eax
call fcn.00423144
push dword [ebp - 8]
call fcn.004272e3
push dword [ebp - 4]
mov dword [edi], eax
call fcn.004272e3
mov dword [edi + 4], eax
lea edi, [edi + 8]
pop ecx
pop ecx
sub ebx, 1
jne 0x4232a1
mov ebx, dword [ebp + 0xc]
mov edi, 0x200
lea eax, [ebp - 8]
mov ecx, esi
push eax
push eax
call fcn.00423144
push dword [ebp - 8]
call fcn.004272e3
push dword [ebp - 4]
mov dword [ebx], eax
call fcn.004272e3
mov dword [ebx + 4], eax
lea ebx, [ebx + 8]
pop ecx
pop ecx
sub edi, 1
jne 0x4232d4
mov ecx, esi
call fcn.00423225
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x431afe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x431cc2
mov eax, dword [esi]
test eax, eax
je 0x431cc2
test byte [ebp + 0xc], 1
push edi
mov edi, eax
je 0x431b3b
movzx eax, word [eax]
jmp 0x431b30
add dword [esi], 2
mov edi, dword [esi]
movzx eax, word [edi]
push eax
call fcn.00425340
pop ecx
test al, al
jne 0x431b28
xor eax, eax
test byte [ebp + 0xc], 4
mov dword [ebp - 8], eax
mov byte [ebp + 0xb], al
mov eax, edi
mov dword [ebp - 4], eax
jne 0x431b88
movzx ecx, word [edi]
mov dword [ebp - 4], eax
sub ecx, 0x2b
je 0x431b63
dec ecx
sub ecx, 1
jne 0x431b88
mov byte [ebp + 0xb], 1
add edi, 2
test byte [ebp + 0xc], 0x40
mov eax, edi
mov dword [esi], edi
mov dword [ebp - 4], eax
je 0x431b88
push 0x20
pop ecx
cmp word [edi], cx
jmp 0x431b83
add dword [esi], 2
mov eax, dword [esi]
cmp word [eax], cx
mov dword [ebp - 4], eax
je 0x431b7b
xorps xmm1, xmm1
movsd qword [ebp - 0x1c], xmm1
movzx eax, word [eax]
mov ecx, eax
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 0x10], ecx
mov edi, eax
call fcn.00425188
pop ecx
test al, al
je 0x431bd5
movd xmm0, dword [ebp - 0xc]
movsd xmm1, qword [ebp - 0x1c]
mulsd xmm1, qword [0x4a36e0]
mov byte [ebp - 8], 1
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
subsd xmm1, qword [0x4a36f0]
movsd qword [ebp - 0x1c], xmm1
jmp 0x431be8
push 0x2e
pop ecx
cmp di, cx
je 0x431bf5
cmp edi, 0x2c
jne 0x431bf9
test byte [ebp + 0xc], 0x20
je 0x431bf9
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov dword [esi], eax
jmp 0x431b90
mov al, 1
jmp 0x431bfc
mov eax, dword [ebp - 8]
pop edi
test al, al
jne 0x431c21
test byte [ebp + 0xc], 8
je 0x431c11
movsd xmm0, qword [str.v_w0]
jmp 0x431c14
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
jmp 0x431cdd
cmp word [ebp - 0x10], cx
jne 0x431c7f
mov eax, dword [ebp - 4]
movsd xmm0, qword [0x4a36e0]
add eax, 2
movsd qword [ebp - 0x14], xmm0
jmp 0x431c6f
mov ecx, dword [esi]
movsd xmm2, qword [ebp - 0x14]
movzx eax, word [ecx]
sub eax, 0x30
movd xmm0, eax
lea eax, [ecx + 2]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
mulsd xmm2, qword [0x4a36e0]
addsd xmm0, qword [ebp - 0x1c]
movsd qword [ebp - 0x14], xmm2
movsd qword [ebp - 0x1c], xmm0
mov dword [esi], eax
movzx eax, word [eax]
push eax
call fcn.00425188
pop ecx
test al, al
jne 0x431c3c
test byte [ebp + 0xc], 2
je 0x431c9a
jmp 0x431c8a
add dword [esi], 2
mov eax, dword [esi]
movzx eax, word [eax]
push eax
call fcn.00425340
pop ecx
test al, al
jne 0x431c87
cmp byte [ebp + 0xb], 0
je 0x431cb3
movsd xmm0, qword [ebp - 0x1c]
xorps xmm0, xmmword [0x4a2e00]
movsd qword [ebp - 0x1c], xmm0
jmp 0x431cbd
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x1c], xmm1
fld qword [ebp - 0x1c]
jmp 0x431cdd
test byte [ebp + 0xc], 8
je 0x431cd2
movsd xmm0, qword [str.v_w0]
jmp 0x431cd5
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
pop esi
leave
ret
Function at 0x4327e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 4]
mov eax, edi
mov esi, dword [ebx]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x43280d
xor dword [esi], ecx
add esi, 4
dec eax
test eax, eax
jg 0x432800
mov edi, dword [ebx + 4]
and edi, 3
sub edi, 1
je 0x432828
sub edi, 1
je 0x432825
sub edi, 1
jne 0x43282a
mov al, byte [ebp + 0xa]
xor byte [esi + 2], al
xor byte [esi + 1], ch
xor byte [esi], cl
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x43420a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43428f
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x43427d
push 0x400
lea eax, [ebp - 0x404]
mov byte [ebp - 0x404], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00480450
pop ecx
pop ecx
mov ecx, eax
lea eax, [ebp - 0x404]
cmp ecx, eax
jbe 0x43427d
cmp byte [ecx - 1], 0x5c
je 0x434263
mov byte [ecx], 0x5c
inc ecx
lea eax, [ebp - 4]
push esi
sub eax, ecx
push eax
push ecx
call fcn.0048d2c8
add esp, 0xc
test eax, eax
jne 0x43428f
lea esi, [ebp - 0x404]
and ebx, 4
shl ebx, 3
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x434291
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x441f98
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
and eax, 0xfffffffe
push ebx
cmp eax, 6
jg 0x441fbb
push 0xa1
call fcn.00458bb0
xor bl, bl
jmp 0x44205d
xor ebx, ebx
test byte [ebp + 0x14], 1
push esi
mov esi, 0x49bb64
jne 0x44202b
cmp dword [ebp + 8], ebx
mov eax, esi
push str.thumbs.db
cmovne eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444fdf
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.004440e6
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00426528
cmp dword [ebp + 8], ebx
mov eax, esi
push str.desktop.ini
cmovne eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444fdf
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.004440e6
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00426528
push 0x5c
lea ecx, [ebp + 8]
call fcn.00427088
cmp dword [ebp + 8], ebx
cmovne esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
test eax, eax
je 0x44204c
mov bl, 1
jmp 0x44205e
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x44205e
push 3
call fcn.00458bb0
pop ecx
lea ecx, [ebp + 8]
call fcn.00426528
mov al, bl
pop ebx
leave
ret

Function at 0x442b61
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.00442b1b
pop ecx
test al, al
je 0x442c5b
mov al, byte [esi]
xor ebx, ebx
mov byte [ebp + 8], al
lea eax, [ebp - 4]
push eax
push str.GetDiskFreeSpaceExA
mov word [ebp + 9], 0x5c3a
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
call fcn.0043417d
push eax
call fcn.00434195
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x442bfd
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 8]
push ecx
call eax
test eax, eax
je 0x442bf3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x442bdb
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x1c]
mov dword [edx], eax
adc ecx, ebx
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x442c57
mov ecx, dword [ebp - 0x20]
xor eax, eax
add eax, dword [ebp - 0x24]
mov dword [edx], eax
adc ecx, ebx
mov dword [edx + 4], ecx
jmp 0x442c57
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
jne 0x442c5b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x442c5b
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, eax
test esi, esi
je 0x442c3e
push ebx
push edi
push 0
push dword [ebp - 0x10]
call fcn.0046c090
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x442c56
push ebx
push edi
push 0
push dword [ebp - 0x14]
call fcn.0046c090
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
mov al, 1
jmp 0x442c5d
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x44327e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004322f9
pop ecx
test al, al
je 0x443293
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret

Function at 0x443373
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0043230e
pop ecx
test al, al
je 0x443387
xor al, al
pop ebp
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x443532
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
and eax, 1
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x443550
xor al, al
pop ebp
ret
test byte [ebp + 0x10], 0x80
je 0x443563
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fec5
pop ecx
pop ecx
test dword [ebp + 0x10], 0x200
je 0x44357c
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443e00
add esp, 0xc
mov al, 1
pop ebp
ret
Function at 0x4440e6
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004322f9
pop ecx
test al, al
jne 0x444184
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, 0x100
je 0x444119
push esi
call fcn.00444b00
or eax, edx
pop ecx
jne 0x444189
test bl, 1
jne 0x444127
push edi
push esi
call fcn.004432b7
pop ecx
pop ecx
test bl, 2
jne 0x4441f7
test bl, bl
js 0x444190
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4442b2
test ebx, 0x800
je 0x444162
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x4442b2
cmp eax, 3
je 0x4442b2
test bl, 0x10
je 0x444189
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x444189
cmp eax, 3
je 0x444189
push esi
or ebx, 2
call fcn.004322f9
pop ecx
test al, al
je 0x444106
call fcn.00458bbe
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.00428bf1
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042fd81
push edi
lea ecx, [ebp - 0x10]
call fcn.0042480d
push edi
lea eax, [ebp - 0x3c]
push 0x1e
push eax
call fcn.0042a415
add esp, 0xc
mov dword [ebp - 0x38], 3
cmp dword [ebp - 0x10], edi
mov eax, 0x49bb64
cmovne eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, 0x454
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
lea ecx, [ebp - 0x10]
neg ebx
sbb bl, bl
inc bl
jmp 0x4442ee
call fcn.00457938
test al, al
je 0x4442c7
mov eax, dword [0x4df81c]
test eax, eax
je 0x44421b
push 4
push edi
push esi
call eax
test eax, eax
jne 0x4442b2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00458fb1
mov edi, 0x49bb60
mov dword [esp], str.wininit.exe
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0x10]
push ecx
push eax
call fcn.00444f25
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
push ecx
call fcn.0044434b
add esp, 0x10
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00426528
lea ecx, [ebp - 0x1c]
call fcn.00426528
test bl, bl
je 0x4442b9
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0044621c
push 0
push 0x49be48
lea eax, [ebp - 0x10]
push 0
push eax
push eax
call fcn.00459a83
cmp dword [ebp - 0x10], 0
cmovne edi, dword [ebp - 0x10]
push edi
push 0x4a6b48
call fcn.0044884e
add esp, 0x24
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00426528
test bl, bl
je 0x4442b9
mov al, 1
jmp 0x44418b
push dword [ebp - 4]
call fcn.00458bb0
pop ecx
jmp 0x444189
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044621c
mov ecx, 0x49bb60
cmp dword [eax], edi
cmovne ecx, dword [eax]
push ecx
push 0x4a6b48
call fcn.0044884e
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00426528
mov al, bl
jmp 0x44418b
Function at 0x4481cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp byte [esi + 0x6b], 0
jne 0x4481f3
push closesocket
push str.Read_access_denied
lea ecx, [esi + 0x44]
call fcn.0042f82b
xor al, al
jmp 0x448290
cmp byte [esi + 0x68], 0
push ebx
push edi
je 0x448210
push dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
push dword [ebp + 8]
mov eax, dword [eax]
call eax
test al, al
jne 0x44826b
jmp 0x44827a
xor edi, edi
cmp dword [esi + 0xc], edi
jne 0x448223
push closesocket
push str.File_not_open
jmp 0x448284
call fcn.00447f2e
push edi
mov ebx, eax
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x448266
lea eax, [ebp - 0x14]
push eax
call fcn.00458947
pop ecx
push eax
lea ecx, [esi + 0x44]
call fcn.00408887
lea ecx, [ebp - 0x14]
call fcn.00426528
jmp 0x44828c
cmp edi, dword [ebp - 4]
jne 0x44826f
mov al, 1
jmp 0x44828e
push dword [ebp - 8]
mov ecx, esi
push ebx
call fcn.00448067
push closesocket
push str.Read_past_end_of_file
lea ecx, [esi + 0x44]
call fcn.0042f82b
xor al, al
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x4486e2
Capabilities:
Clear file content

Disassembly:
cmp byte [ecx + 0x6c], 0
je 0x44870e
cmp byte [ecx + 0x68], 0
je 0x4486f9
add ecx, 0x2c
call fcn.0042546d
mov al, 1
ret
cmp dword [ecx + 0xc], 0
je 0x44870e
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
ret
xor al, al
ret
Function at 0x448999
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x4489c4
jns 0x4489cd
push closesocket
push str.Illegal_write_size
lea ecx, [esi + 0x40]
call fcn.0042f82b
call fcn.00458bbe
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
cmp byte [esi + 0x68], 0
jne 0x4489f1
push closesocket
push str.Write_access_denied
lea ecx, [esi + 0x40]
call fcn.0042f82b
push 5
call fcn.00458bb0
pop ecx
xor al, al
jmp 0x4489c6
cmp byte [esi + 0x64], 0
je 0x448a08
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
push edi
push dword [ebp + 8]
call dword [eax]
mov byte [esi + 0x65], 1
jmp 0x4489c4
cmp dword [esi + 8], 0
jne 0x448a24
push closesocket
push str.File_not_open
lea ecx, [esi + 0x40]
call fcn.0042f82b
push 6
jmp 0x4489e7
call fcn.00458ba7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], 0x100000
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
jmp 0x448a7d
cmp ebx, dword [ebp - 0xc]
jne 0x448ac3
sub edi, ebx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x448aac
add dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448a52
lea eax, [ebp - 0x18]
push eax
call fcn.00458947
pop ecx
push eax
lea ecx, [esi + 0x40]
call fcn.00425796
lea ecx, [ebp - 0x18]
call fcn.00426528
jmp 0x4489ed
cmp byte [esi + 0x66], 0
je 0x4489c4
lea ecx, [esi - 4]
call fcn.0044755a
jmp 0x4489c4
push closesocket
push str.Not_all_data_could_be_written
lea ecx, [esi + 0x40]
call fcn.0042f82b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4489ed
push 0x1722
jmp 0x4489e7
Function at 0x448fa6
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x49a6c5
call fcn.0046bcf0
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
cmp dword [edi], ebx
je 0x448fca
xor eax, eax
jmp 0x449092
mov ecx, dword [0x4e1188]
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x4df830]
cmp eax, dword [esi + 4]
jg 0x4490a1
mov eax, dword [0x4df838]
cmp eax, dword [esi + 4]
jg 0x4490d5
mov dword [ebp - 4], ebx
mov esi, dword [0x4df82c]
test esi, esi
jne 0x449037
mov esi, 0x4df82c
mov ecx, esi
call fcn.00402daf
push esi
push 0x4a7284
push 1
push ebx
push 0x4a7274
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [0x4df82c]
test esi, esi
jne 0x449037
push 2
pop eax
jmp 0x449092
mov eax, dword [0x4df834]
test eax, eax
jne 0x449067
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, 0x4df834
call fcn.00402daf
push 0x4df834
push esi
call edi
mov eax, dword [0x4df834]
test eax, eax
jne 0x449064
push 3
jmp 0x449034
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
cmp dword [edi], ebx
jne 0x449076
push 4
jmp 0x449034
or dword [ebp - 4], 0xffffffff
jmp 0x449090
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x4df830
call fcn.0046bee9
pop ecx
cmp dword [0x4df830], 0xffffffff
jne 0x448fea
push 0x49ac96
call fcn.0046bcd8
mov dword [esp], 0x4df830
call fcn.0046be9f
pop ecx
jmp 0x448fea
mov esi, 0x4df838
push esi
call fcn.0046bee9
pop ecx
cmp dword [0x4df838], 0xffffffff
jne 0x448ffb
push 0x49aca6
call fcn.0046bcd8
push esi
call fcn.0046be9f
pop ecx
pop ecx
jmp 0x448ffb
Function at 0x457743
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [0x4dfca4], 0
push esi
mov esi, 0x4dfca8
jne 0x457868
push ebx
xor ebx, ebx
mov byte [0x4dfca4], 1
push ebx
push 0x13c
push esi
call fcn.0042a415
add esp, 0xc
mov dword [0x4dfca8], 0x11c
call fcn.0045795c
mov dword [0x4dfde0], eax
mov eax, dword [0x4dfc6c]
test eax, eax
je 0x457799
push esi
call eax
test eax, eax
je 0x4577a8
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x457867
push edi
push 6
pop edi
cmp dword [0x4dfcac], edi
jb 0x4577f6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetProductInfo
call fcn.0043417d
push eax
call fcn.00434195
add esp, 0xc
test al, al
je 0x4577f6
movzx eax, word [0x4dfdbe]
push 0x4dfdc4
push eax
movzx eax, word [0x4dfdbc]
push eax
push dword [0x4dfcb0]
push dword [0x4dfcac]
call dword [ebp - 4]
cmp dword [0x4dfcac], 5
jb 0x457866
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetNativeSystemInfo
call fcn.0043417d
push eax
call fcn.00434195
add esp, 0xc
test al, al
je 0x457866
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov dword [0x4dfdc8], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4dfdcc], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4dfdd0], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4dfdd4], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4dfdd8], eax
cmp word [ebp - 0x28], di
je 0x45785f
cmp word [ebp - 0x28], 9
mov byte [0x4dfddc], bl
jne 0x457866
mov byte [0x4dfddc], 1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x459039
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x224
mov ecx, dword [0x4e1188]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4dfca0]
push edi
mov edi, 0x4dfc94
cmp eax, dword [ecx + 4]
jg 0x459152
cmp dword [0x4dfc98], 0
jg 0x45913a
xor eax, eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.0042f940
mov eax, dword [0x4dfc94]
mov esi, 0x49bb64
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
call fcn.004421e4
pop ecx
test al, al
jne 0x459131
lea eax, [ebp - 0x18]
push eax
call fcn.00458ff4
mov ecx, esi
mov dword [esp], str.temp
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0xc]
push ecx
push eax
call fcn.00444fdf
add esp, 0xc
mov ecx, edi
push eax
call fcn.00425796
lea ecx, [ebp - 0xc]
call fcn.00426528
lea ecx, [ebp - 0x18]
call fcn.00426528
mov eax, dword [0x4dfc94]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004421e4
pop ecx
test al, al
jne 0x459131
push closesocket
push str.c:_temp
mov ecx, edi
call fcn.0042fd81
mov eax, dword [0x4dfc94]
test eax, eax
cmovne esi, eax
push esi
call fcn.00441e70
pop ecx
push 0x5c
mov ecx, edi
call fcn.00427088
mov ecx, dword [ebp + 8]
call fcn.00428bf1
mov ecx, dword [ebp + 8]
push edi
call fcn.0042f80d
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
mov esi, 0x4dfca0
push esi
call fcn.0046bee9
cmp dword [0x4dfca0], 0xffffffff
pop ecx
jne 0x459069
mov ecx, edi
call fcn.00428bf1
push 0x49ad06
call fcn.0046bcd8
push esi
call fcn.0046be9f
pop ecx
pop ecx
jmp 0x459069
Function at 0x45a349
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x45a369
push 0x2736
call fcn.0045c1bf
xor al, al
jmp 0x45a4ce
cmp dword [esi + 0x20], 0xffffffff
jne 0x45a376
push 0x2726
jmp 0x45a35d
push ebx
push edi
call fcn.0045b631
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x45a39b
mov ecx, dword [esi + 0xc]
shr ecx, 2
test cl, 1
jne 0x45a3a8
call fcn.0045aaaa
mov edi, eax
test edi, edi
je 0x45a3a8
xor eax, eax
cmp dword [edi], ebx
cmovne eax, edi
mov edi, eax
test edi, edi
jne 0x45a3b5
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0045ae54
jmp 0x45a418
cmp dword [edi + 4], ebx
lea eax, [esi + 0x1c]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, 0x49bb60
cmovne ecx, dword [edi + 4]
push eax
push ecx
call fcn.00437e4f
mov ebx, eax
push ebx
call fcn.00438727
add esp, 0x14
test al, al
je 0x45a406
push ebx
call fcn.0043859f
push eax
push ebx
lea eax, [esi + 0x44]
push str.Failed_to_resolve_the_proxy_server__code__d:__s
push eax
call fcn.004285ae
add esp, 0x14
mov ecx, esi
push 0xfffffffffffffffe
call fcn.0045c1bf
jmp 0x45a453
push dword [edi + 0x1c]
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045adff
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
sete bl
test eax, eax
je 0x45a457
test edi, edi
je 0x45a457
push closesocket
push str.Failed_to_connect_to_the_proxy_server.
lea ecx, [esi + 0x44]
call fcn.0042f82b
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c1bf
and dword [esi + 0x10], 0xfffffffc
xor al, al
jmp 0x45a4cc
test bl, bl
je 0x45a49d
test edi, edi
je 0x45a49d
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x18]
or dword [esi + 0x10], 3
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046a0ec
push eax
lea ecx, [edi + 0x10]
call fcn.00408887
lea ecx, [ebp - 0x10]
call fcn.00426528
push edi
mov ecx, esi
call fcn.0045b07b
test al, al
jne 0x45a49d
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c1bf
xor bl, bl
mov ecx, dword [esi + 0x10]
mov eax, ecx
and eax, 0xfffffffe
or ecx, 1
test bl, bl
cmove ecx, eax
mov eax, ecx
or ecx, 2
and eax, 0xfffffffd
test bl, bl
cmove ecx, eax
mov dword [esi + 0x10], ecx
jne 0x45a4ca
test edi, edi
jne 0x45a4ca
mov ecx, esi
call fcn.0045c1ad
mov al, bl
pop edi
pop ebx
pop esi
leave
ret