joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x4c51d0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [eax], edi
cmp esi, edi
je 0x45a1a6
lea ebx, [esi + 0x24]
jmp 0x45a1a8
xor ebx, ebx
mov eax, dword [0x4cfa0c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
call fcn.00402930
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x3e9
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [esi + 4]
push edx
lea edi, [esi + 0x38]
call fcn.0045a2c0
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x3c]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x3c]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret 4

Function at 0x45a230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4971e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [eax], 0
call fcn.0045a010
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov edi, dword [esi + 0x30]
push edx
call fcn.0045a470
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a2a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45ad10
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x45ad2b
push 0x80070057
call fcn.00401af0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x45ad46
push esi
mov ecx, edi
call fcn.00401a50
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45ad6d
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x45ad71
push ecx
push eax
call fcn.00470a8b
add esp, 8
test eax, eax
js 0x45ad21
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x45ad21
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret
Function at 0x45aea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c51d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
mov byte [esi + 0x36], 1
call fcn.0046e8ee
add esp, 4
test eax, eax
je 0x45aede
mov dword [eax], esi
jmp 0x45aee0
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [0x4cfa0c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45af40
mov ecx, dword [esi + 8]
mov dword [ebp - 0x24], ecx
mov edx, 0x45add0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4ae278
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.004026e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x45af40
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x2c]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call eax
call fcn.0046f031
add eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x30], 0
jne 0x45af5d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret 4

Function at 0x45bf50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ebd3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x4cf99c
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], 0x4a9bf4
mov dword [edi], 0x4cf99c
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x4aaaf7
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.0045cda0
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45c120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45c177
cmp byte [ebx + 0x2c], 0
jne 0x45c16d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [0x4c87e8]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c150
sub eax, esi
push edx
lea edi, [ebx + 0x34]
mov esi, eax
call fcn.0045cda0
or eax, 0xffffffff
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x45c191
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
test esi, esi
jne 0x45c180
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
push edi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004716c4
push edi
call fcn.004718d4
push 0
mov esi, eax
push 0
push edi
mov dword [ebp - 4], esi
call fcn.004716c4
add esp, 0x1c
test esi, esi
jg 0x45c1ef
cmp byte [ebx + 0x2c], 0
jne 0x45c16d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xc
mov edx, dword [0x4c8810]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c1e3
jmp 0x45c157
lea eax, [esi + 1]
push eax
call fcn.0046e8ee
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edi, eax
push esi
push edi
mov byte [edi], 0
call fcn.0048afa8
add esp, 0x14
cmp eax, 1
je 0x45c24c
push edi
call fcn.0046e5ca
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x45c16d
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [0x4c87e8]
mov eax, edx
lea esi, [eax + 1]
jmp 0x45c240
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45c240
jmp 0x45c157
mov edx, dword [ebp - 4]
mov byte [edi + edx], 0
cmp byte [edi], 0
mov eax, edi
mov esi, edi
je 0x45c27c
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0xd
jne 0x45c273
mov byte [esi], 0xa
inc eax
inc esi
cmp byte [eax], 0xa
jne 0x45c277
jmp 0x45c276
mov byte [esi], cl
inc esi
inc eax
cmp byte [eax], 0
jne 0x45c260
push 0
mov byte [esi], 0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, ebx
call edx
push edi
call fcn.0046e5ca
add esp, 4
xor eax, eax
cmp byte [ebx + 0x2c], al
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45ef30
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4c51d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
mov ebx, ecx
mov esi, dword [ebx + 0x28]
push 0
push eax
mov edi, edx
mov byte [ebp - 0x108], 0
call fcn.004720e0
push edi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.00478b61
push 0x4ae7bc
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.0047f816
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0047f816
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov word [ebp - 0x310], cx
call fcn.004720e0
add esp, 0x3c
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x310]
push edx
xor edi, edi
call esi
test eax, eax
je 0x45f045
lea esp, [esp]
movzx eax, word [ebp + edi*2 - 0x310]
cmp eax, 0x5c
je 0x45f012
cmp eax, 0x2f
jne 0x45f037
xor eax, eax
push eax
lea ecx, [ebp - 0x310]
push ecx
mov word [ebp + edi*2 - 0x310], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
mov word [ebp + edi*2 - 0x310], dx
lea eax, [ebp - 0x310]
push eax
inc edi
call esi
cmp edi, eax
jne 0x45f000
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x318]
push ecx
mov esi, ebx
mov dword [ebp - 0x314], 0x23
mov dword [ebp - 0x318], 0
call fcn.00460dd0
test eax, eax
jne 0x45f0d5
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45f0a7
pop edi
pop esi
lea eax, [ebx + 0x23]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x318]
push ebx
lea eax, [ebp - 0x31c]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x31c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45f0ce
mov dword [ebp - 0x314], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret
Function at 0x461e70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4c87cc]
test eax, eax
je 0x462050
push ebx
xor edx, edx
mov dword [0x4c87cc], 0
xor eax, eax
push edi
lea ecx, [ecx]
movzx edi, byte [eax + 0x4a4569]
movzx ebx, byte [eax + 0x4a4568]
mov ecx, 0x1f
sub ecx, edi
mov edi, 1
shl edi, cl
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
add eax, 2
or edi, ebx
or edx, edi
cmp eax, 0xe
jb 0x461e90
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x461ed3
xor eax, edx
test al, 1
je 0x461edd
shr eax, 1
xor eax, edx
jmp 0x461edf
shr eax, 1
test al, 1
je 0x461ee9
shr eax, 1
xor eax, edx
jmp 0x461eeb
shr eax, 1
test al, 1
je 0x461ef5
shr eax, 1
xor eax, edx
jmp 0x461ef7
shr eax, 1
test al, 1
je 0x461f01
shr eax, 1
xor eax, edx
jmp 0x461f03
shr eax, 1
test al, 1
je 0x461f0d
shr eax, 1
xor eax, edx
jmp 0x461f0f
shr eax, 1
test al, 1
je 0x461f19
shr eax, 1
xor eax, edx
jmp 0x461f1b
shr eax, 1
test al, 1
je 0x461f25
shr eax, 1
xor eax, edx
jmp 0x461f27
shr eax, 1
mov dword [ecx*4 + 0x4cd8c8], eax
inc ecx
cmp ecx, 0x100
jl 0x461ec8
mov ecx, 0x4cecc8
lea esp, [esp]
mov eax, dword [ecx - 0x1400]
mov edi, eax
and edi, 0xff00
mov ebx, eax
shl ebx, 0x10
add edi, ebx
shl edi, 8
mov edx, eax
shr edx, 8
mov ebx, edx
and ebx, 0xff00
add edi, ebx
mov ebx, eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx - 0x400], edi
and eax, 0xff
mov eax, dword [eax*4 + 0x4cd8c8]
xor eax, edx
mov edi, eax
and edi, 0xff00
mov ebx, eax
shl ebx, 0x10
add edi, ebx
mov edx, eax
shr edx, 8
shl edi, 8
mov ebx, edx
and ebx, 0xff00
add edi, ebx
mov ebx, eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx], edi
mov dword [ecx - 0x1000], eax
and eax, 0xff
mov eax, dword [eax*4 + 0x4cd8c8]
xor eax, edx
mov edi, eax
and edi, 0xff00
mov ebx, eax
mov edx, eax
shr edx, 8
shl ebx, 0x10
add edi, ebx
mov ebx, edx
shl edi, 8
and ebx, 0xff00
add edi, ebx
mov ebx, eax
mov dword [ecx - 0xc00], eax
shr ebx, 0x18
add edi, ebx
mov dword [ecx + 0x400], edi
and eax, 0xff
mov eax, dword [eax*4 + 0x4cd8c8]
xor eax, edx
mov edx, eax
and edx, 0xff00
mov edi, eax
shl edi, 0x10
add edx, edi
mov edi, eax
shr edi, 8
shl edx, 8
and edi, 0xff00
mov dword [ecx - 0x800], eax
add edx, edi
shr eax, 0x18
add edx, eax
mov dword [ecx + 0x800], edx
add ecx, 4
cmp ecx, 0x4cf0c8
jl 0x461f40
pop edi
mov dword [0x4c87c8], 0
pop ebx
ret
mov eax, dword [0x4c87c8]
test eax, eax
jne 0x462050
ret
Function at 0x465140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4d14c0], ecx
inc edx
cmp edx, 0x100
jb 0x465142
ret

Function at 0x4651f0
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x46521a
push esi
jmp 0x465200
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4d14c0]
inc edx
dec ecx
jne 0x465200
pop esi
ret
Function at 0x467f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x467f52
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x467f80
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x467f80
inc edi
cmp edi, edx
jb 0x467f71
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x468087
cmp eax, 3
jbe 0x467fb7
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x467ff4
cmp al, 0xff
je 0x467ff4
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x467f65
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x467f9b
movzx eax, byte [esi + 0x4a3b60]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x4a3b58], 0
mov al, byte [ecx + 4]
je 0x467fe0
test al, al
je 0x467fe0
cmp al, 0xff
jne 0x467f9b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x467f65
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x468057
movzx edx, byte [esi + 0x4a3b60]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x46803e
cmp cl, 0xff
jne 0x468054
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x468012
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x467f65
cmp eax, 3
jbe 0x46809c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469e90
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491668
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c51d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov ebx, ecx
mov word [ebp - 0x2c], ax
mov eax, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x469ed7
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.0040e520
mov ecx, esi
mov dword [ebp - 4], edi
push ecx
mov edi, 1
call fcn.0046af00
push 0x4a59e4
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00401c40
or edi, 0xffffffff
mov byte [ebp - 4], 1
cmp esi, edi
je 0x469fea
push esi
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.0046abb0
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x469f3f
mov edx, dword [eax]
jmp 0x469f41
mov edx, eax
test edx, edx
jne 0x469f49
xor eax, eax
jmp 0x469f5f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469f50
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401b40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x469f7e
mov edx, dword [ebp - 0x48]
push edx
call fcn.0046e5ca
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x469fd0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ebx, 0x4a56e4
call fcn.00406750
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x50]
push 0
push 0x80
push 2
push 0
push 5
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x469fef
mov esi, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], esi
jb 0x46a023
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0046e5ca
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret
Function at 0x46a690
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x46a6df
cmp esi, 0x130
je 0x46a6df
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46a6f0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490df8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c51d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46a740
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040e520
mov dword [ebp - 4], ebx
mov ebx, edi
mov ecx, esi
call fcn.00469da0
test al, al
sete bl
cmp dword [ebp - 0x18], 8
jb 0x46a77b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0046e5ca
add esp, 4
test bl, bl
jne 0x46a7c6
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x30]
push ecx
mov dword [edi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x30]
and dl, 4
sub dl, 4
movzx eax, dl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push 0x4aedc8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x46a7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x4c], eax
xor al, al
jmp 0x46a7d1
call fcn.0046a7f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret 8

Function at 0x46a890
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x20000013
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46a91a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp ecx, 0xc8
jne 0x46a8da
cmp eax, esi
je 0x46a8e6
cmp ecx, 0x12e
jne 0x46a91a
cmp eax, esi
jne 0x46a91a
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000005
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46a91a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ce70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c51d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ecx
mov word [ebp - 0x20c], dx
call fcn.004720e0
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov ebx, dword [ebx]
mov edi, dword [edi]
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
jmp 0x46cef0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46cef0
sub eax, ecx
mov ecx, dword [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401b40
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e5d5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46cfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4968a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.004078b0
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404f50
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d05c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004015d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00403f40
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.004040f0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d0b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret