joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b7a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.004c03f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
cmp dword [ebp + 0xc], 0x80
jle 0x5b7a89
mov dword [ebp + 0xc], 0x80
cmp dword [ebp + 0x14], 0
jg 0x5b7a96
mov dword [ebp + 0x14], 0x400
cmp dword [ebp + 0x14], 0x400
jle 0x5b7aa6
mov dword [ebp + 0x14], 0x400
mov dword [ebp - 4], 0
jmp 0x5b7ab8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x5b7ad2
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x5b7aaf
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0xc]
movzx edx, byte [ecx - 1]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x5b7b00
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 4], 0x80
jge 0x5b7b32
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
and ecx, 0xff
movzx edx, byte [ecx + 0x6ba510]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
jmp 0x5b7aee
mov edx, dword [ebp + 0x14]
add edx, 7
sar edx, 3
mov dword [ebp - 0x18], edx
mov eax, 0x80
sub eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
neg ecx
and ecx, 7
mov edx, 0xff
sar edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
and ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x6ba510]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
test edx, edx
je 0x5b7bb3
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
xor eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x6ba510]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x10]
mov byte [edx], al
jmp 0x5b7b7c
mov ecx, dword [ebp + 8]
add ecx, 0xfc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x7f
jmp 0x5b7bd1
mov edx, dword [ebp - 4]
sub edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jl 0x5b7c05
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx - 1]
or ecx, eax
and ecx, 0xffff
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
jmp 0x5b7bc8
mov esp, ebp
pop ebp
ret
Function at 0x5d3920
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.004c03f0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x5d3958
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x5d397b
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x5d397b
push 0x3d
push str.crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004e9ee0
add esp, 0x14
or eax, 0xffffffff
jmp 0x5d3a87
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp ecx, 0x6b
jne 0x5d3a36
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x5d39ae
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x5d3a05
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
movzx eax, byte [ebp - 0xd]
cmp eax, 0xba
jne 0x5d39d4
jmp 0x5d3a05
movzx ecx, byte [ebp - 0xd]
cmp ecx, 0xbb
je 0x5d3a03
push 0x48
push str.crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004e9ee0
add esp, 0x14
or eax, 0xffffffff
jmp 0x5d3a87
jmp 0x5d39a5
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
jne 0x5d3a34
push 0x50
push str.crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004e9ee0
add esp, 0x14
or eax, 0xffffffff
jmp 0x5d3a87
jmp 0x5d3a3f
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x5d3a70
push 0x59
push str.crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004e9ee0
add esp, 0x14
or eax, 0xffffffff
jmp 0x5d3a87
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004bd990
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5e4ff0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00546810
add esp, 4
push 0x20
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.00547000
add esp, 0xc
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.005468e0
add esp, 8
movzx edx, byte [ebp - 0x160]
and edx, 0xf8
mov byte [ebp - 0x160], dl
movzx eax, byte [ebp - 0x141]
and eax, 0x3f
mov byte [ebp - 0x141], al
movzx ecx, byte [ebp - 0x141]
or ecx, 0x40
mov byte [ebp - 0x141], cl
lea edx, [ebp - 0xe0]
push edx
call fcn.00546810
add esp, 4
push 0x20
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00547000
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00547000
add esp, 0xc
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.005468e0
add esp, 8
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.005ea600
add esp, 4
lea edx, [ebp - 0x1a0]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.005e8770
add esp, 8
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005e51f0
add esp, 8
lea eax, [ebp - 0xe0]
push eax
call fcn.00546810
add esp, 4
push 0x20
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.00547000
add esp, 0xc
push 0x20
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00547000
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00547000
add esp, 0xc
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.005468e0
add esp, 8
lea ecx, [ebp - 0x120]
push ecx
call fcn.005ea600
add esp, 4
lea edx, [ebp - 0x1a0]
push edx
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
call fcn.005ed0d0
add esp, 0x10
push 0xd8
lea eax, [ebp - 0xe0]
push eax
call fcn.0051c1a0
add esp, 8
push 0x40
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.0051c1a0
add esp, 8
push 0x40
lea edx, [ebp - 0x160]
push edx
call fcn.0051c1a0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret
Function at 0x5f38e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xe8
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push eax
push 0x20
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005472b0
add esp, 0xc
movzx edx, byte [ebp - 0x48]
and edx, 0xf8
mov byte [ebp - 0x48], dl
movzx eax, byte [ebp - 0x29]
and eax, 0x3f
mov byte [ebp - 0x29], al
movzx ecx, byte [ebp - 0x29]
or ecx, 0x40
mov byte [ebp - 0x29], cl
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.005e8770
add esp, 8
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005e51f0
add esp, 8
push 0x40
lea eax, [ebp - 0x48]
push eax
call fcn.0051c1a0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret
Function at 0x5f4370
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bd990
add esp, 0xc
movzx edx, byte [ebp - 0x118]
and edx, 0xf8
mov byte [ebp - 0x118], dl
movzx eax, byte [ebp - 0xf9]
and eax, 0x7f
mov byte [ebp - 0xf9], al
movzx ecx, byte [ebp - 0xf9]
or ecx, 0x40
mov byte [ebp - 0xf9], cl
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.005e8770
add esp, 8
lea ecx, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.005e8c60
add esp, 0xc
lea ecx, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.005e8cb0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.005e7200
add esp, 8
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.005e5680
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e5290
add esp, 8
push 0x20
lea edx, [ebp - 0x118]
push edx
call fcn.0051c1a0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret
Function at 0x64c040
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x64c12a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x64c0bd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.0064b800
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x64c083
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x64c1f3
call 0x64c0cf
pop edx
lea ecx, [edx + 0x171]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x64c18a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.0064bc20
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x64c13b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x64c1f3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.0064bc20
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x64c1ee
jmp 0x64c1f3
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6634b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x6634d7
call fcn.004bf53a
mov dword [eax], esi
call fcn.004bf527
push 0x16
pop esi
mov dword [eax], esi
call fcn.004cb2a8
mov eax, esi
jmp 0x66352c
test dword [ebp + 0xc], 0xfffffff9
jne 0x6634bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x663504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf54d
pop ecx
call fcn.004bf527
mov eax, dword [eax]
jmp 0x66352c
test al, 0x10
jne 0x66352a
test al, 1
je 0x66352a
test byte [ebp + 0xc], 2
je 0x66352a
call fcn.004bf53a
mov dword [eax], 5
call fcn.004bf527
mov dword [eax], 0xd
jmp 0x6634fb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x66366e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x663696
call fcn.004bf53a
and dword [eax], 0
call fcn.004bf527
mov dword [eax], 0x16
call fcn.004cb2a8
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6636b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf54d
pop ecx
jmp 0x663691
test byte [ebp + 0xc], 0x80
je 0x6636be
and eax, 0xfffffffe
jmp 0x6636c1
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x6636a4
xor eax, eax
pop ebp
ret
Function at 0x664b8e
Capabilities:
Enumerate processes

Disassembly:
push 0x140
push 0x6eb088
call fcn.0066f8f0
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x1c], ebx
push ebx
call fcn.004c0299
pop ecx
mov esi, eax
mov edi, edx
sub eax, dword [0x6fce58]
mov ecx, edi
sbb ecx, dword [0x6fce5c]
mov dword [ebp - 0x24], ecx
js 0x664bf8
jg 0x664bcd
cmp eax, 1
jbe 0x664bf8
mov eax, dword [0x6fce54]
test eax, eax
je 0x664bdd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [0x6fce54], eax
mov dword [0x6fce58], esi
mov dword [0x6fce5c], edi
mov eax, dword [0x6fce54]
cmp eax, 0xffffffff
jne 0x664c09
or eax, eax
jmp 0x664caf
mov dword [ebp - 0x150], 0x128
lea ecx, [ebp - 0x150]
push ecx
push eax
mov esi, dword [sym.imp.KERNEL32.dll_Process32First]
call esi
test eax, eax
jne 0x664c2f
push 0x12
pop eax
jmp 0x664caf
xor eax, eax
inc eax
test eax, eax
je 0x664ca7
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x148], eax
jne 0x664cb5
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x664ca7
mov ecx, dword [ebp + 0x10]
cmp ebx, dword [ecx]
jae 0x664ca0
and dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
lea eax, [ebp - 0x150]
push eax
push dword [0x6fce54]
call esi
jmp 0x664c32
mov dword [ebp - 0x1c], 0xea
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
call fcn.0066f92b
ret
lea eax, [ebp - 0x150]
push eax
push dword [0x6fce54]
call dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x664c32
Function at 0x664d17
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x670ada
call fcn.004c5428
sub esp, 0xb1c
push ebx
push esi
mov esi, 0x6fcddc
push edi
mov ecx, esi
mov dword [ebp - 0x24], esi
call fcn.004b3d1b
mov byte [ebp - 0x20], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00664819
test eax, eax
je 0x664e72
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x548]
push 0x3ff
push eax
call fcn.004bb7f9
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x149], bl
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x548]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
push str._02d__02d__04d__02d:_02d:_02d._03d__s
lea eax, [ebp - 0xb28]
push 0x5dc
push eax
call fcn.004bb677
add esp, 0x2c
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], eax
push 3
lea eax, [ebp - 0xb28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0040cb34
mov byte [ebp - 4], 1
push dword [ebp - 0x148]
lea ecx, [ebp - 0x44]
call fcn.0040c96b
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x148], eax
je 0x664e0a
push dword [ebp - 0x148]
call fcn.004bd194
pop ecx
cmp dword [0x6fce08], 0x10
mov eax, dword [0x6fcdf4]
jae 0x664e1d
mov eax, 0x6fcdf4
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x664e4d
lea eax, [ebp - 0x44]
push ebx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040cab0
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004b3d30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x6650be
Capabilities:
Get hostname

Disassembly:
mov eax, 0x670b97
call fcn.004c5428
sub esp, 0x160
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
xor eax, eax
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x14], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x665118
sub eax, edx
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040182b
push 8
push str.COMSCORE
lea ecx, [ebp - 0x30]
call fcn.00402f56
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x66514c
lea eax, [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.00411dd1
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x44]
call fcn.00411df8
mov esi, dword [ebp - 0x44]
push 0
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], esi
call fcn.004010ac
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x665fdd
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x670bec
call fcn.004c5428
sub esp, 0x12c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [esi + 0xff8]
push str.text_xml
push eax
mov dword [ebp - 4], ebx
call fcn.004bd44f
pop ecx
pop ecx
push 3
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x666027
push 0x6e6a50
jmp 0x66602c
push 0x6e6a54
call fcn.0040182b
push 0x103
lea eax, [ebp - 0x137]
push ebx
push eax
mov byte [ebp - 0x138], bl
call fcn.004bee40
add esp, 0xc
cmp dword [esi + 0x1118], ebx
jne 0x666064
lea ecx, [esi + 0x1108]
push str.HTTP_1.0_200_OK_r_n_r_n
call fcn.0040189f
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x666070
lea ecx, [ebp - 0x2c]
mov eax, dword [esi + 8]
push ebx
lea edx, [ebp - 0x138]
push edx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryA]
test eax, eax
jne 0x666094
push str.WinInetRequest::CacheURLInfo._Unable_to_create_URL_cache_entry._r_n
jmp 0x66613e
push 0x6e6ab4
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004be5f3
add esp, 0xc
cmp dword [ebp - 0x10], ebx
jne 0x6660be
push str.WinInetRequest::CacheURLInfo._Unable_to_open_cache_file._r_n
jmp 0x66613e
push dword [ebp - 0x10]
mov edi, dword [esi + 8]
mov eax, dword [esi]
push edi
push 1
push eax
call fcn.004be791
add esp, 0x10
cmp eax, edi
je 0x6660f8
mov esi, dword [0x6f9628]
push str.WinInetRequest::CacheURLInfo._Error_writing_cache_file._r_n
push 0xbfffffff
call fcn.00666d3d
push dword [ebp - 0x10]
call fcn.004be878
add esp, 0xc
jmp 0x666150
push dword [ebp - 0x10]
call fcn.004be878
lea eax, [esi + 0x1108]
xor edx, edx
xor edi, edi
cmp dword [eax + 0x14], 0x10
pop ecx
mov ecx, dword [esi + 0x1118]
jb 0x666119
mov eax, dword [eax]
push ebx
push ebx
push ecx
push eax
push 1
push ebx
xor eax, eax
push eax
push edx
push edi
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryA]
test eax, eax
jne 0x666150
push str.WinInetRequest::CacheURLInfo._Unable_to_commit_URL_cache_entry._r_n
mov esi, dword [0x6f9628]
push 0xbfffffff
call fcn.00666d3d
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010ac
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x666b6d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2808
call fcn.004c03f0
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
test eax, eax
je 0x666be7
lea eax, [ebp - 0x2808]
push eax
push 0x2800
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
cmp eax, 1
jne 0x666be7
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x6e56e8
lea eax, [ebp - 0x2808]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
movzx edx, ax
shr eax, 0x10
mov edi, eax
mov eax, dword [ecx + 8]
movzx ecx, ax
shr eax, 0x10
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edx
xor eax, eax
pop edi
jmp 0x666bea
push 2
pop eax
leave
ret 4

Function at 0x666d3d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8034
call fcn.004c03f0
cmp byte [esi], 0
je 0x666e1f
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x1c]
ja 0x666e1f
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x8034]
push 0x8000
push eax
call fcn.004bb7f9
add esp, 0x10
cmp byte [esi + 2], 0
mov dword [ebp - 0x14], eax
jne 0x666d9b
lea eax, [ebp - 0x8034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 1], 0
je 0x666e17
cmp byte [esi + 3], 0
je 0x666dfa
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push 0x64
pop ecx
cdq
idiv ecx
movzx eax, word [ebp - 0xa]
push edx
push eax
movzx eax, word [ebp - 0xe]
push eax
push str._02d__02d__02d__02d:_02d:_02d._03d:
lea eax, [ebp - 0x34]
push 0x20
push eax
call fcn.004bb677
push eax
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x20]
call fcn.004bcf60
add esp, 0x34
push dword [ebp - 0x14]
lea eax, [ebp - 0x8034]
push eax
push dword [esi + 0x20]
call fcn.004bcf60
push dword [esi + 0x20]
call fcn.004bc641
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
leave
ret