joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eac84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4eacc9
call fcn.004f1179
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4eacc9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4eace5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e1bea
mov ebx, eax
test edi, edi
je 0x4eace3
test esi, esi
je 0x4eace3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4eb381
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4eb43f
cmp dword [esi + 0x20], 0
je 0x4eb43f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4eb43f
cmp dword [ebp + 8], 0
je 0x4eb43f
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004f1179
push 0x621dd8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4eb410
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4eb43f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00502f27
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4eb430
test edi, edi
je 0x4eb430
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4eb43b
mov ecx, esi
call fcn.004eb15f
mov eax, ebx
jmp 0x4eb441
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4ef801
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x61385a
call fcn.00508068
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4ef827
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4ef887
call fcn.004e2479
push eax
lea ecx, [ebp - 0x10]
call fcn.00452c50
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x61e860]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00521e19
push eax
call fcn.004520eb
add esp, 0x14
test esi, esi
je 0x4ef87a
push esi
call fcn.005223bd
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00452239
mov eax, ebx
call fcn.00508031
ret 8

Function at 0x526173
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00526036
Function at 0x52a073
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00529d36

Function at 0x52a07e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00529eb7

Function at 0x52e654
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052dfc2

Function at 0x52e65f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052e1fd
Function at 0x568080
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.00598760
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005f85f0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x568125
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0056b200
push 0x638904
push esi
push 0x64b8f8
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.0056a680
add esp, 0x2c
call fcn.00518570
cmp dword [eax], 2
je 0x568102
call fcn.00518570
cmp dword [eax], 6
je 0x568102
lea eax, [edi + 2]
lea ecx, [edi + 0x53]
jmp 0x56810c
mov eax, 0x80
mov ecx, 0x51
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.0056b200
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x64b8a8
call fcn.00566960
mov esi, eax
add esp, 4
test esi, esi
jne 0x568147
push edi
call fcn.00518f74
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00566540
push edi
push ebx
push 0x6a
push esi
call fcn.00566570
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x585f60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00508210
mov eax, dword [0x710544]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xa8]
mov eax, dword [esi]
test ebx, ebx
je 0x585fc8
cmp ebx, eax
je 0x585fbf
test ebp, ebp
je 0x586149
test edi, edi
js 0x586149
mov ecx, 1
mov dword [esi], ebx
jmp 0x585fd2
test eax, eax
je 0x586149
mov ebx, eax
test ebp, ebp
je 0x586140
push ebx
call fcn.005663f0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x586006
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.00578e70
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x586057
push dword [esp + 0x10]
push ebx
push dword [esi + 4]
call fcn.0057a8f0
add esp, 0xc
test eax, eax
je 0x586149
push edi
push ebp
push dword [esi + 4]
call fcn.0057aa90
add esp, 0xc
test eax, eax
je 0x586149
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.0057a850
add esp, 0xc
test eax, eax
je 0x586149
mov edi, dword [esi + 0x10]
jmp 0x586074
cmp edi, 0x80
ja 0x586149
push edi
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.0050be00
add esp, 0xc
mov dword [esi + 0x10], edi
cmp edi, 0x80
je 0x586094
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x14]
add eax, edi
push 0
push eax
call fcn.0050c430
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x5860a0
push edx
push ebx
push dword [esi + 8]
call fcn.0057a8f0
add esp, 0xc
test eax, eax
je 0x586149
push ebx
call fcn.005663f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.0057aa90
add esp, 0x10
test eax, eax
je 0x586149
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x5860e5
push dword [esp + 0x10]
push ebx
push dword [esi + 0xc]
call fcn.0057a8f0
add esp, 0xc
test eax, eax
je 0x586149
push ebx
call fcn.005663f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.0057aa90
add esp, 0x10
test eax, eax
je 0x586149
push dword [esi + 8]
push dword [esi + 4]
call fcn.0057ac00
add esp, 8
test eax, eax
je 0x586149
mov eax, 1
jmp 0x58614b
test ecx, ecx
je 0x586127
jmp 0x586098
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507778
add esp, 0x8c
ret
Function at 0x592680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
push edi
sub ecx, 4
jb 0x5926b1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x5926b8
add edx, 4
add esi, 4
sub ecx, 4
jae 0x5926a0
xor edi, edi
cmp ecx, 0xfffffffc
je 0x5926f3
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x5926f3
cmp ecx, 0xfffffffd
je 0x5926f3
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x5926f3
cmp ecx, 0xfffffffe
je 0x5926f3
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x5926f3
cmp ecx, 0xffffffff
je 0x5926f3
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x59270e
push 0x159
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.00578e70
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x59272d
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x59272d
inc ecx
inc edx
cmp ecx, ebx
jl 0x592720
lea edx, [ebx - 1]
test edx, edx
js 0x592751
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x592751
cmp byte [eax], 0xff
jne 0x592751
dec eax
sub edx, 1
jns 0x592740
cmp ecx, edx
jl case.0x59277d.2
jle 0x592763
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x59277d.2
movzx eax, byte [eax + 0x5927f0]
jmp dword [eax*4 + 0x5927d0]
mov eax, 7
jmp 0x5927b3
mov eax, 6
jmp 0x5927b3
mov eax, 5
jmp 0x5927b3
mov eax, 4
jmp 0x5927b3
mov eax, 3
jmp 0x5927b3
mov eax, 2
jmp 0x5927b3
mov eax, 1
test dl, dh
jne case.0x59277d.2
and bl, dl
cmp bl, dl
jne case.0x59277d.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x5aec30
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 0xc]
push ebp
xor ebp, ebp
test edx, edx
jle 0x5aed12
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
inc edi
nop dword [eax + eax]
movzx eax, byte [edi - 1]
cmp edx, 3
jl 0x5aeca3
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
mov cl, byte [ecx + 0x65bf80]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
inc esi
and ecx, 0x3f
mov ebx, esi
mov cl, byte [ecx + 0x65bf80]
mov byte [esi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + 0x65bf80]
mov cl, byte [eax + 0x65bf80]
jmp 0x5aecec
shl eax, 0x10
cmp edx, 2
jne 0x5aecb3
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [esi + 1]
shr ecx, 0x12
mov cl, byte [ecx + 0x65bf80]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
mov esi, ebx
and ecx, 0x3f
mov cl, byte [ecx + 0x65bf80]
mov byte [ebx], cl
cmp edx, 1
jne 0x5aecde
mov cl, 0x3d
jmp 0x5aecea
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + 0x65bf80]
mov ch, 0x3d
lea eax, [esi + 2]
mov byte [ebx + 1], cl
sub edx, 3
mov byte [eax], ch
add ebp, 4
lea esi, [eax + 1]
add edi, 3
test edx, edx
jg 0x5aec50
pop edi
mov byte [esi], 0
mov eax, ebp
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
mov byte [eax], 0
mov eax, ebp
pop ebp
ret
Function at 0x5ccd00
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x80
call fcn.00508210
mov eax, dword [0x710544]
xor eax, esp
mov dword [esp + 0x7c], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5ccd7c
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x5ccd70
mov eax, 8
call fcn.00508210
movsd xmm0, qword [0x661b48]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.0056b610
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5ccde0
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x5ccdd4
mov eax, 8
call fcn.00508210
movsd xmm0, qword [0x661b48]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.0056b610
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x714f4c], 0
je 0x5cce29
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x5ccdff
mov dword [0x714f4c], eax
jmp 0x5cce29
mov eax, 8
call fcn.00508210
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movsd qword [esp], xmm0
push 8
push eax
call fcn.0056b610
add esp, 0x10
cmp dword [0x714f4c], 0
jne 0x5cce54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov eax, 8
call fcn.00508210
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 4
push eax
call fcn.0056b610
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.00508210
movsd xmm0, qword [0x6f3d68]
lea eax, [esp + 0x20]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.0056b610
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
mov eax, 8
call fcn.00508210
movsd xmm0, qword [0x6f3d68]
lea eax, [esp + 0x14]
movsd qword [esp], xmm0
push 4
push eax
call fcn.0056b610
mov ecx, dword [esp + 0x8c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.00507778
mov esp, ebp
pop ebp
ret
Function at 0x5f8a02
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x710544]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x22c]
push edi
push eax
xor edi, edi
mov dword [esp + 0x14], ebx
push edi
push edi
push dword [esp + 0x234]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi], eax
test eax, eax
jne 0x5f8a53
inc edi
jmp 0x5f8a60
push eax
push 0x67dc2c
call fcn.00609aff
pop ecx
pop ecx
lea eax, [esp + 0x14]
mov dword [ebp], edi
push eax
mov ecx, ebx
call fcn.0045290e
mov ecx, dword [esp + 0x21c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507778
add esp, 0x210
ret 0x10
Function at 0x5fa0f7
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x615119
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x710544]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], esi
and dword [ebp - 0x10], 0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.004e2479
push eax
mov ecx, esi
call fcn.00452c50
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
push 0x67fd9c
push esi
mov dword [ebp - 0x10], 1
call fcn.004533be
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00507778
add ebp, 0x210
leave
ret

Function at 0x5fa3a9
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], edx
push ebp
mov ebp, ecx
push esi
mov esi, ebp
test ebx, ebx
jne 0x5fa3c4
xor eax, eax
jmp 0x5fa48d
push edi
mov edi, dword [esp + 0x1c]
push 3
pop ecx
lea eax, [edi + 2]
cdq
idiv ecx
lea eax, [eax*4 + 1]
cmp dword [esp + 0x10], eax
jge 0x5fa45e
or eax, 0xffffffff
jmp 0x5fa48c
mov cl, byte [ebx]
lea edx, [esi + 2]
movzx eax, cl
dec edi
shr eax, 2
and cl, 3
shl cl, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, cl
mov dword [esp + 0x18], eax
test edi, edi
jle 0x5fa472
mov cl, byte [ebx + 1]
dec edi
movzx eax, cl
and cl, 0xf
shr eax, 4
or eax, dword [esp + 0x18]
shl cl, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea esi, [edx + 1]
movzx eax, cl
mov dword [esp + 0x18], eax
test edi, edi
jle 0x5fa464
mov al, byte [ebx + 2]
add ebx, 3
movzx ecx, al
dec edi
mov eax, ecx
and ecx, 0x3f
shr eax, 6
or eax, dword [esp + 0x18]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
inc esi
test edi, edi
jg 0x5fa3e7
jmp 0x5fa485
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov byte [esi], 0x3d
inc esi
jmp 0x5fa485
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov esi, edx
mov word [esi], 0x3d3d
add esi, 2
mov byte [esi], 0
sub esi, ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5fd127
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x615886
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x710544]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0x208
xor esi, esi
lea eax, [ebp]
push esi
push eax
call fcn.0050c430
add esp, 0xc
mov dword [ebp - 0x14], 0x208
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x5fd1f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [edi], eax
mov esi, 0x208
xor eax, eax
push esi
push eax
lea eax, [ebp]
push eax
call fcn.0050c430
add esp, 0xc
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x5fd1ee
mov ecx, dword [ebp - 0x18]
push eax
push 0x6921e8
call fcn.00452fb2
call ebx
mov dword [edi], eax
jmp 0x5fd22a
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x5fd1f9
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00452fb2
jmp 0x5fd22a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00507778
add ebp, 0x20c
leave
ret
Function at 0x5fdbef
Capabilities:
Create thread

Disassembly:
test ecx, ecx
je 0x5fdc01
push str.server_name_is_empty
call fcn.00609c05
pop ecx
xor al, al
ret
xor eax, eax
push eax
push eax
push eax
push 0x5fdc3b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5fdc1e
push str.ParseProxyPacTimer_:_thread_handle_is_null
jmp 0x5fdbf8
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5fdc35
push str.ParseProxyPacTimer_Thread_did_not_stop_on_its_own
jmp 0x5fdbf8
mov al, byte [0x7251c4]
ret

Function at 0x5fece5
Capabilities:
Check os version

Disassembly:
sub esp, 0x268
mov eax, dword [0x710544]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push 0x118
xor ebp, ebp
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0050c430
add esp, 0xc
mov dword [esp + 0x34], 0x11c
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0xc]
mov dword [esp + 8], ebp
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebp
push eax
call fcn.005feca7
push 3
pop ebx
test al, al
je 0x5fed53
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
jmp 0x5fedbc
cmp dword [esp + 0x38], 6
jne 0x5fedbc
cmp dword [esp + 0x3c], 2
jne 0x5fedbc
push esi
push edi
push 1
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov edi, eax
mov esi, edx
lea eax, [esp + 0x15c]
push ebp
push eax
call fcn.0050c430
add esp, 0xc
mov dword [esp + 0x158], 0x11c
lea eax, [esp + 0x158]
mov dword [esp + 0x160], ebx
push esi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0x44]
test eax, eax
pop edi
cmovne ecx, ebx
mov dword [esp + 0x40], ecx
pop esi
push 0x69fb74
push 0x69fbb4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
lea ecx, [esp + 0x10]
push ecx
cmove eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
mov eax, dword [esp + 0x38]
cmp eax, 0xa
jne 0x5fee01
xor ebx, ebx
cmp byte [esp + 0x14e], 1
setne bl
add ebx, 0xd
jmp 0x5fee9c
cmp eax, 6
jne 0x5fee63
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x5fee20
xor ebx, ebx
cmp byte [esp + 0x14e], 1
setne bl
add ebx, 0xb
jmp 0x5fee9c
cmp eax, 2
jne 0x5fee37
xor ebx, ebx
cmp byte [esp + 0x14e], 1
setne bl
add ebx, 9
jmp 0x5fee9c
cmp eax, 1
jne 0x5fee4d
xor ebx, ebx
cmp byte [esp + 0x14e], al
setne bl
add ebx, 7
jmp 0x5fee9c
test eax, eax
jne 0x5fee9a
xor ebx, ebx
cmp byte [esp + 0x14e], 1
setne bl
add ebx, 5
jmp 0x5fee9c
cmp eax, 5
jne 0x5fee9a
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x5fee87
cmp byte [esp + 0x14e], 1
jne 0x5fee9c
cmp word [esp + 0x10], 9
jne 0x5fee9c
push 4
jmp 0x5fee8e
cmp eax, 1
jne 0x5fee91
push 2
pop ebx
jmp 0x5fee9c
test eax, eax
jne 0x5fee9a
xor ebx, ebx
inc ebx
jmp 0x5fee9c
mov ebx, ebp
cmp ebx, dword [esp + 0x274]
mov ecx, dword [esp + 0x26c]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00507778
add esp, 0x268
ret 4
Function at 0x602af5
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 8
mov eax, 0x61662e
call fcn.00508068
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
lea ecx, [ebp - 0x10]
push 0x6a1b30
setne bl
call fcn.0045290e
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test al, 0x40
je 0x602b40
push 0x20
push 0x6a1ba0
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 2
je 0x602b56
push 0x19
push 0x6a1ac4
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 1
je 0x602b6c
push 0x1b
push 0x6a1af8
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 8
je 0x602b82
push 0x20
push 0x6a1c20
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 0x20
je 0x602b98
push 0x1d
push 0x6a1be4
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 4
je 0x602bae
push 0x1b
push 0x6a1b34
lea ecx, [ebp - 0x10]
call fcn.004531cd
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x602bc1
push 0x18
push 0x6a1b6c
lea ecx, [ebp - 0x10]
call fcn.004531cd
push dword [ebp - 0x10]
push str.WebForm::IsNetworkAvailable
push 0x6a1d40
call fcn.00609c05
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00452239
test bl, bl
je 0x602bf5
push 0x6a1c64
call fcn.00609c05
jmp 0x602c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6a1c98
call fcn.00609c05
pop ecx
pop ecx
mov al, bl
call fcn.00508031
ret