joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538e07
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00450720
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x538f74
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.0051e9c0
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0051ea40
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0051ceb0
push ebp
call fcn.0051e9c0
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.0051ea40
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0051ceb0
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x538e23
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0043dd0c
add esp, 0xa0
ret
Function at 0x540530
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x540549
mov esi, edi
mov edi, eax
jmp 0x54054b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x54055b
mov eax, ebx
jmp 0x540565
push eax
push ebx
call fcn.004c1db0
add esp, 8
test eax, eax
jne 0x54056d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x540589
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x540574
cmp eax, dword [esi + 4]
jge 0x5405a0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x540590
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x5405c1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x5405be
dec eax
test eax, eax
jg 0x5405b0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x566fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589150
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ed130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x15], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x567044
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x56703a
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x567063
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x567370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5892a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00438d80
mov dword [ebp - 0x34], eax
push 0
push 0x5db91c
lea ecx, [ebp + 8]
call fcn.00408bc0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.00401550
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
push 0x5db920
lea ecx, [ebp + 8]
call fcn.00408bc0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x56742d
mov ecx, dword [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp + 8]
call fcn.00408c50
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00401600
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0xffffffff
jne 0x5673c8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret

Function at 0x567470
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0x9e3779b9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x5674cd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x567522
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
shl edx, 4
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
xor edx, eax
mov ecx, dword [ebp - 0xc]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
xor edx, eax
mov ecx, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x5674c4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x5675a0
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
jmp 0x5675f3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
jae 0x56764b
mov ecx, dword [ebp - 0x14]
sub ecx, 0x61c88647
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x18]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
jmp 0x5675ea
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov esp, ebp
pop ebp
ret

Function at 0x567660
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
jmp 0x5676b3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
jae 0x56770f
mov ecx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
xor ecx, edx
mov eax, dword [ebp - 8]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
mov edx, dword [ebp - 4]
sub edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
xor eax, ecx
mov edx, dword [ebp - 4]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x61c88647
mov dword [ebp - 0x14], edx
jmp 0x5676aa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x5681c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58916b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x128
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], 0
push 0
push 1
push 0
push 0x5dbb28
mov eax, dword [ebp - 0x138]
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x56825a
push 8
push 1
push 0
push str.YMCD_CSP
mov ecx, dword [ebp - 0x138]
add ecx, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x56825a
lea edx, [ebp - 0x118]
mov dword [ebp - 0x120], edx
push 0x5e5f68
lea eax, [ebp - 0x120]
push eax
call fcn.0044636a
mov ecx, dword [ebp - 0x138]
add ecx, 8
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x56829e
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], ecx
push 0x5e5f68
lea edx, [ebp - 0x124]
push edx
call fcn.0044636a
mov eax, dword [ebp + 8]
push eax
call fcn.0043f980
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5682e8
lea edx, [ebp - 0x118]
mov dword [ebp - 0x128], edx
push 0x5e5f68
lea eax, [ebp - 0x128]
push eax
call fcn.0044636a
mov ecx, dword [ebp - 0x138]
push ecx
push 0
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 8]
push eax
push 0x6601
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x568331
lea eax, [ebp - 0x118]
mov dword [ebp - 0x12c], eax
push 0x5e5f68
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0044636a
push 0
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x568369
lea edx, [ebp - 0x118]
mov dword [ebp - 0x130], edx
push 0x5e5f68
lea eax, [ebp - 0x130]
push eax
call fcn.0044636a
jmp 0x5683cf
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret 8
Function at 0x5684c0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x5684db
cmp dword [ebp + 0xc], 0
je 0x5684db
cmp dword [ebp + 0x10], 0
jne 0x5684e9
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
xor eax, eax
jmp 0x568538
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042acb0
add esp, 0x10
test eax, eax
jne 0x568511
xor eax, eax
jmp 0x568538
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x568533
xor eax, eax
jmp 0x568538
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x568800
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
je 0x568815
cmp dword [ebp + 8], 0
jne 0x56881c
xor eax, eax
jmp 0x5688e6
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax + 0x10]
push ecx
call fcn.0043d429
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax + 0x10]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0043fa10
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0043dec0
add esp, 0xc
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax + 8]
push ecx
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x56889b
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0043deaa
add esp, 4
xor eax, eax
jmp 0x5688e6
push 2
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042a950
add esp, 0x14
test eax, eax
jne 0x5688cf
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0043deaa
add esp, 4
xor eax, eax
jmp 0x5688e6
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043deaa
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x568a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x10
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043fa10
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x568a40
xor al, al
jmp 0x568aac
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x568a64
xor al, al
jmp 0x568aac
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x138]
mov dword [ebp - 4], eax
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x568a9c
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
Function at 0x568f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp - 0x224]
call fcn.00568ed0
cmp dword [ebp + 8], 0
je 0x568f98
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x568f9f
xor al, al
jmp 0x569093
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x568fc2
xor al, al
jmp 0x569093
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x568fe0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x568fe0
mov byte [ebp + 0x10], 0
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
neg eax
lea ecx, [ebp - 0x110]
call fcn.0042dad0
mov edx, dword [ebp - 0x224]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x224]
cmp dword [eax + 4], 0
je 0x569084
cmp dword [ebp + 0xc], 0
jne 0x569057
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00445659
add esp, 0x14
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x224]
add eax, 8
push eax
call fcn.004456a5
add esp, 0x14
jmp 0x569084
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x569084
push 0
push 0x5db153
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 0x224]
add eax, 8
push eax
call fcn.004456a5
add esp, 0x14
mov ecx, dword [ebp - 0x224]
xor eax, eax
cmp dword [ecx + 4], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56a580
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58992e
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5ed130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
call fcn.004016a0
push 0
push 0
push 0
push 0
push str.TokenGetTitle
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56a709
push 0
push accept
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x56a709
mov byte [0x603890], 0
lea edx, [ebp - 0x10]
push edx
push 0xfff
push 0x603890
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x10], 0
jbe 0x56a6ff
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x603890], 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x34]
call fcn.00401580
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401580
mov byte [ebp - 4], 1
push 0x603890
lea ecx, [ebp - 0x6c]
call fcn.00401580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0056a480
add esp, 0x10
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00401620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401600
mov ecx, dword [ebp + 0x14]
call fcn.00401720
movzx ecx, al
test ecx, ecx
jne 0x56a6ff
jmp 0x56a709
cmp dword [ebp - 0x10], 0
ja 0x56a611
cmp dword [ebp - 0x14], 0
je 0x56a719
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x56a729
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0x14]
call fcn.00401700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10