joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4329a4
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 0x4329d0
xor dword [esi], ecx
add esi, 4
dec eax
test eax, eax
jg 0x4329c3
mov edi, dword [ebx + 4]
and edi, 3
sub edi, 1
je 0x4329eb
sub edi, 1
je 0x4329e8
sub edi, 1
jne 0x4329ed
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 0x4343cd
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 0x434452
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x434440
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.00480980
pop ecx
pop ecx
mov ecx, eax
lea eax, [ebp - 0x404]
cmp ecx, eax
jbe 0x434440
cmp byte [ecx - 1], 0x5c
je 0x434426
mov byte [ecx], 0x5c
inc ecx
lea eax, [ebp - 4]
push esi
sub eax, ecx
push eax
push ecx
call fcn.0048d7f8
add esp, 0xc
test eax, eax
jne 0x434452
lea esi, [ebp - 0x404]
and ebx, 4
shl ebx, 3
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x434454
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x442198
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 0x4421bb
push 0xa1
call fcn.00458df3
xor bl, bl
jmp 0x44225d
xor ebx, ebx
test byte [ebp + 0x14], 1
push esi
mov esi, 0x49cb74
jne 0x44222b
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.004451df
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.004442e6
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.004266a4
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.004451df
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.004442e6
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.004266a4
push 0x5c
lea ecx, [ebp + 8]
call fcn.00427204
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 0x44224c
mov bl, 1
jmp 0x44225e
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x44225e
push 3
call fcn.00458df3
pop ecx
lea ecx, [ebp + 8]
call fcn.004266a4
mov al, bl
pop ebx
leave
ret

Function at 0x442d61
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.00442d1b
pop ecx
test al, al
je 0x442e5b
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.00434340
push eax
call fcn.00434358
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x442dfd
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 0x442df3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x442ddb
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 0x442e57
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 0x442e57
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
jne 0x442e5b
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 0x442e5b
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 0x442e3e
push ebx
push edi
push 0
push dword [ebp - 0x10]
call fcn.0046c5c0
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x442e56
push ebx
push edi
push 0
push dword [ebp - 0x14]
call fcn.0046c5c0
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
mov al, 1
jmp 0x442e5d
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x44347e
Capabilities:
Get file attributes

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

Function at 0x443573
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00432415
pop ecx
test al, al
je 0x443587
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 0x443732
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 0x443750
xor al, al
pop ebp
ret
test byte [ebp + 0x10], 0x80
je 0x443763
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fff7
pop ecx
pop ecx
test dword [ebp + 0x10], 0x200
je 0x44377c
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444000
add esp, 0xc
mov al, 1
pop ebp
ret
Function at 0x4442e6
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.00432400
pop ecx
test al, al
jne 0x444384
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, 0x100
je 0x444319
push esi
call fcn.00444d00
or eax, edx
pop ecx
jne 0x444389
test bl, 1
jne 0x444327
push edi
push esi
call fcn.004434b7
pop ecx
pop ecx
test bl, 2
jne 0x4443f7
test bl, bl
js 0x444390
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4444b2
test ebx, 0x800
je 0x444362
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x4444b2
cmp eax, 3
je 0x4444b2
test bl, 0x10
je 0x444389
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x444389
cmp eax, 3
je 0x444389
push esi
or ebx, 2
call fcn.00432400
pop ecx
test al, al
je 0x444306
call fcn.00458e01
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.00428d6d
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042fefd
push edi
lea ecx, [ebp - 0x10]
call fcn.00424989
push edi
lea eax, [ebp - 0x3c]
push 0x1e
push eax
call fcn.0042a591
add esp, 0xc
mov dword [ebp - 0x38], 3
cmp dword [ebp - 0x10], edi
mov eax, 0x49cb74
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 0x4444ee
call fcn.00457b7e
test al, al
je 0x4444c7
mov eax, dword [0x4e081c]
test eax, eax
je 0x44441b
push 4
push edi
push esi
call eax
test eax, eax
jne 0x4444b2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004591f4
mov edi, 0x49cb70
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.00445125
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
push ecx
call fcn.0044454b
add esp, 0x10
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.004266a4
lea ecx, [ebp - 0x1c]
call fcn.004266a4
test bl, bl
je 0x4444b9
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0044641c
push 0
push 0x49ce58
lea eax, [ebp - 0x10]
push 0
push eax
push eax
call fcn.00459cc6
cmp dword [ebp - 0x10], 0
cmovne edi, dword [ebp - 0x10]
push edi
push 0x4a7b78
call fcn.00448a60
add esp, 0x24
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.004266a4
test bl, bl
je 0x4444b9
mov al, 1
jmp 0x44438b
push dword [ebp - 4]
call fcn.00458df3
pop ecx
jmp 0x444389
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044641c
mov ecx, 0x49cb70
cmp dword [eax], edi
cmovne ecx, dword [eax]
push ecx
push 0x4a7b78
call fcn.00448a60
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.004266a4
mov al, bl
jmp 0x44438b
Function at 0x4483dd
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 0x448405
push closesocket
push str.Read_access_denied
lea ecx, [esi + 0x44]
call fcn.0042f9a7
xor al, al
jmp 0x4484a2
cmp byte [esi + 0x68], 0
push ebx
push edi
je 0x448422
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 0x44847d
jmp 0x44848c
xor edi, edi
cmp dword [esi + 0xc], edi
jne 0x448435
push closesocket
push str.File_not_open
jmp 0x448496
call fcn.00448140
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 0x448478
lea eax, [ebp - 0x14]
push eax
call fcn.00458b8a
pop ecx
push eax
lea ecx, [esi + 0x44]
call fcn.00408887
lea ecx, [ebp - 0x14]
call fcn.004266a4
jmp 0x44849e
cmp edi, dword [ebp - 4]
jne 0x448481
mov al, 1
jmp 0x4484a0
push dword [ebp - 8]
mov ecx, esi
push ebx
call fcn.00448279
push closesocket
push str.Read_past_end_of_file
lea ecx, [esi + 0x44]
call fcn.0042f9a7
xor al, al
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x4488f4
Capabilities:
Clear file content

Disassembly:
cmp byte [ecx + 0x6c], 0
je 0x448920
cmp byte [ecx + 0x68], 0
je 0x44890b
add ecx, 0x2c
call fcn.004255e9
mov al, 1
ret
cmp dword [ecx + 0xc], 0
je 0x448920
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
ret
xor al, al
ret
Function at 0x448bab
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 0x448bd6
jns 0x448bdf
push closesocket
push str.Illegal_write_size
lea ecx, [esi + 0x40]
call fcn.0042f9a7
call fcn.00458e01
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
cmp byte [esi + 0x68], 0
jne 0x448c03
push closesocket
push str.Write_access_denied
lea ecx, [esi + 0x40]
call fcn.0042f9a7
push 5
call fcn.00458df3
pop ecx
xor al, al
jmp 0x448bd8
cmp byte [esi + 0x64], 0
je 0x448c1a
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
push edi
push dword [ebp + 8]
call dword [eax]
mov byte [esi + 0x65], 1
jmp 0x448bd6
cmp dword [esi + 8], 0
jne 0x448c36
push closesocket
push str.File_not_open
lea ecx, [esi + 0x40]
call fcn.0042f9a7
push 6
jmp 0x448bf9
call fcn.00458dea
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 0x448c8f
cmp ebx, dword [ebp - 0xc]
jne 0x448cd5
sub edi, ebx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x448cbe
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 0x448c64
lea eax, [ebp - 0x18]
push eax
call fcn.00458b8a
pop ecx
push eax
lea ecx, [esi + 0x40]
call fcn.00425912
lea ecx, [ebp - 0x18]
call fcn.004266a4
jmp 0x448bff
cmp byte [esi + 0x66], 0
je 0x448bd6
lea ecx, [esi - 4]
call fcn.0044776c
jmp 0x448bd6
push closesocket
push str.Not_all_data_could_be_written
lea ecx, [esi + 0x40]
call fcn.0042f9a7
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x448bff
push 0x1722
jmp 0x448bf9
Function at 0x4491b7
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x49abf5
call fcn.0046c220
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 0x4491db
xor eax, eax
jmp 0x4492a3
mov ecx, dword [0x4e2198]
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x4e0830]
cmp eax, dword [esi + 4]
jg 0x4492b2
mov eax, dword [0x4e0838]
cmp eax, dword [esi + 4]
jg 0x4492e6
mov dword [ebp - 4], ebx
mov esi, dword [0x4e082c]
test esi, esi
jne 0x449248
mov esi, 0x4e082c
mov ecx, esi
call fcn.00402daf
push esi
push 0x4a82b4
push 1
push ebx
push 0x4a82a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [0x4e082c]
test esi, esi
jne 0x449248
push 2
pop eax
jmp 0x4492a3
mov eax, dword [0x4e0834]
test eax, eax
jne 0x449278
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, 0x4e0834
call fcn.00402daf
push 0x4e0834
push esi
call edi
mov eax, dword [0x4e0834]
test eax, eax
jne 0x449275
push 3
jmp 0x449245
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
cmp dword [edi], ebx
jne 0x449287
push 4
jmp 0x449245
or dword [ebp - 4], 0xffffffff
jmp 0x4492a1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x4e0830
call fcn.0046c419
pop ecx
cmp dword [0x4e0830], 0xffffffff
jne 0x4491fb
push 0x49b1c6
call fcn.0046c208
mov dword [esp], 0x4e0830
call fcn.0046c3cf
pop ecx
jmp 0x4491fb
mov esi, 0x4e0838
push esi
call fcn.0046c419
pop ecx
cmp dword [0x4e0838], 0xffffffff
jne 0x44920c
push 0x49b1d6
call fcn.0046c208
push esi
call fcn.0046c3cf
pop ecx
pop ecx
jmp 0x44920c
Function at 0x457989
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [0x4e0cb4], 0
push esi
mov esi, 0x4e0cb8
jne 0x457aae
push ebx
xor ebx, ebx
mov byte [0x4e0cb4], 1
push ebx
push 0x13c
push esi
call fcn.0042a591
add esp, 0xc
mov dword [0x4e0cb8], 0x11c
call fcn.00457ba2
mov dword [0x4e0df0], eax
mov eax, dword [0x4e0c7c]
test eax, eax
je 0x4579df
push esi
call eax
test eax, eax
je 0x4579ee
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x457aad
push edi
push 6
pop edi
cmp dword [0x4e0cbc], edi
jb 0x457a3c
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetProductInfo
call fcn.00434340
push eax
call fcn.00434358
add esp, 0xc
test al, al
je 0x457a3c
movzx eax, word [0x4e0dce]
push 0x4e0dd4
push eax
movzx eax, word [0x4e0dcc]
push eax
push dword [0x4e0cc0]
push dword [0x4e0cbc]
call dword [ebp - 4]
cmp dword [0x4e0cbc], 5
jb 0x457aac
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetNativeSystemInfo
call fcn.00434340
push eax
call fcn.00434358
add esp, 0xc
test al, al
je 0x457aac
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov dword [0x4e0dd8], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4e0ddc], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4e0de0], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4e0de4], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4e0de8], eax
cmp word [ebp - 0x28], di
je 0x457aa5
cmp word [ebp - 0x28], 9
mov byte [0x4e0dec], bl
jne 0x457aac
mov byte [0x4e0dec], 1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x45927c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x224
mov ecx, dword [0x4e2198]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4e0cb0]
push edi
mov edi, 0x4e0ca4
cmp eax, dword [ecx + 4]
jg 0x459395
cmp dword [0x4e0ca8], 0
jg 0x45937d
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.0042fabc
mov eax, dword [0x4e0ca4]
mov esi, 0x49cb74
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
call fcn.004423e4
pop ecx
test al, al
jne 0x459374
lea eax, [ebp - 0x18]
push eax
call fcn.00459237
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.004451df
add esp, 0xc
mov ecx, edi
push eax
call fcn.00425912
lea ecx, [ebp - 0xc]
call fcn.004266a4
lea ecx, [ebp - 0x18]
call fcn.004266a4
mov eax, dword [0x4e0ca4]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004423e4
pop ecx
test al, al
jne 0x459374
push closesocket
push str.c:_temp
mov ecx, edi
call fcn.0042fefd
mov eax, dword [0x4e0ca4]
test eax, eax
cmovne esi, eax
push esi
call fcn.00442070
pop ecx
push 0x5c
mov ecx, edi
call fcn.00427204
mov ecx, dword [ebp + 8]
call fcn.00428d6d
mov ecx, dword [ebp + 8]
push edi
call fcn.0042f989
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
mov esi, 0x4e0cb0
push esi
call fcn.0046c419
cmp dword [0x4e0cb0], 0xffffffff
pop ecx
jne 0x4592ac
mov ecx, edi
call fcn.00428d6d
push 0x49b236
call fcn.0046c208
push esi
call fcn.0046c3cf
pop ecx
pop ecx
jmp 0x4592ac
Function at 0x45a58c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x45a5ac
push 0x2736
call fcn.0045c403
xor al, al
jmp 0x45a711
cmp dword [esi + 0x20], 0xffffffff
jne 0x45a5b9
push 0x2726
jmp 0x45a5a0
push ebx
push edi
call fcn.0045b875
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x45a5de
mov ecx, dword [esi + 0xc]
shr ecx, 2
test cl, 1
jne 0x45a5eb
call fcn.0045aced
mov edi, eax
test edi, edi
je 0x45a5eb
xor eax, eax
cmp dword [edi], ebx
cmovne eax, edi
mov edi, eax
test edi, edi
jne 0x45a5f8
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0045b098
jmp 0x45a65b
cmp dword [edi + 4], ebx
lea eax, [esi + 0x1c]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, 0x49cb70
cmovne ecx, dword [edi + 4]
push eax
push ecx
call fcn.00438051
mov ebx, eax
push ebx
call fcn.00438927
add esp, 0x14
test al, al
je 0x45a649
push ebx
call fcn.0043879f
push eax
push ebx
lea eax, [esi + 0x44]
push str.Failed_to_resolve_the_proxy_server__code__d:__s
push eax
call fcn.0042872a
add esp, 0x14
mov ecx, esi
push 0xfffffffffffffffe
call fcn.0045c403
jmp 0x45a696
push dword [edi + 0x1c]
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045b043
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 0x45a69a
test edi, edi
je 0x45a69a
push closesocket
push str.Failed_to_connect_to_the_proxy_server.
lea ecx, [esi + 0x44]
call fcn.0042f9a7
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c403
and dword [esi + 0x10], 0xfffffffc
xor al, al
jmp 0x45a70f
test bl, bl
je 0x45a6e0
test edi, edi
je 0x45a6e0
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.0046a61c
push eax
lea ecx, [edi + 0x10]
call fcn.00408887
lea ecx, [ebp - 0x10]
call fcn.004266a4
push edi
mov ecx, esi
call fcn.0045b2bf
test al, al
jne 0x45a6e0
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c403
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 0x45a70d
test edi, edi
jne 0x45a70d
mov ecx, esi
call fcn.0045c3f1
mov al, bl
pop edi
pop ebx
pop esi
leave
ret
Function at 0x45aab3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 1
push dword [ebp + 8]
call fcn.0046a6f3
test al, al
je 0x45aad4
mov al, 1
jmp 0x45abb7
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call fcn.004310cc
pop ecx
test al, al
je 0x45aaf8
push 0x2726
call fcn.0045ca29
pop ecx
xor al, al
jmp 0x45abb6
lea ecx, [ebp - 0xc]
call fcn.00428d6d
push closesocket
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0042f9a7
lea ecx, [ebp - 0xc]
call fcn.004251cd
cmp dword [0x4dd8e0], ebx
je 0x45ab35
lea eax, [ebp - 0xc]
push eax
call fcn.0045ac75
pop ecx
test al, al
je 0x45ab35
push 0x2afc
jmp 0x45ab7a
call fcn.0045ca20
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45ab5e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2afc
jne 0x45abac
lea eax, [ebp - 0xc]
push eax
call fcn.0045abba
jmp 0x45ab7f
cmp word [eax + 8], 2
jne 0x45ab6c
cmp word [eax + 0xa], 4
je 0x45ab82
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x45abac
push 0x273e
call fcn.0045ca29
pop ecx
jmp 0x45abac
mov eax, dword [eax + 0xc]
mov ecx, esi
mov edx, dword [eax]
movzx eax, byte [edx + 3]
push eax
movzx eax, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push eax
movzx eax, byte [edx]
push eax
call fcn.0046a6b1
mov ecx, esi
call fcn.00439508
xor al, 1
mov bl, al
lea ecx, [ebp - 0xc]
call fcn.004266a4
mov al, bl
pop ebx
pop esi
leave
ret

Function at 0x45ad17
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x4e0e2c]
mov ecx, 0x49cb70
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45ad35
push 3
pop eax
ret
cmp word [eax + 8], 2
je 0x45ad40
push 4
pop eax
ret
cmp word [eax + 0xa], 4
je 0x45ad4b
push 5
pop eax
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
mov ecx, 0x4e0e38
push eax
call fcn.0046a6b1
xor eax, eax
ret
Function at 0x45aebe
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dd8f8]
sub esp, 0x1a0
cmp eax, 6
jne 0x45affc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45aefa
xor eax, eax
mov dword [0x4dd8f8], 1
inc eax
leave
ret
push ebx
push esi
push edi
push 0x45afff
call fcn.0046c208
pop ecx
push 0x63
mov esi, 0x4e0e2c
push 0x64
mov ecx, esi
call fcn.00423d6c
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.00429942
push 1
xor edi, edi
mov dword [ebp - 0x10], 0x49ce38
push str.Ws2_32.dll
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00434579
mov ebx, 0x4e0dfc
test al, al
je 0x45af85
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.GetHostNameW
lea ecx, [ebp - 0x10]
call fcn.0043450d
test al, al
je 0x45af85
mov esi, dword [ebp - 4]
mov ecx, ebx
push 0x63
push 0xc8
call fcn.00423d6c
push eax
call esi
mov ecx, ebx
call fcn.0042995d
mov esi, 0x4e0e2c
cmp dword [0x4e0e00], edi
jg 0x45af98
push edi
push ebx
push esi
call fcn.00459a80
add esp, 0xc
mov eax, dword [0x4e0e2c]
mov ecx, 0x49cb70
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45afdb
push dword [eax]
mov esi, 0x4e0e20
mov ecx, esi
call fcn.0042fa57
mov ecx, esi
call fcn.0043191f
mov ecx, esi
call fcn.00431907
push 1
push 0x2e
push 0x20
mov ecx, esi
call fcn.0042e1c9
call fcn.0045ad17
mov esi, eax
mov dword [ebp - 0x10], 0x49ce38
lea ecx, [ebp - 0x10]
mov dword [0x4dd8f8], esi
call fcn.004342c2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret