joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455a05
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x45c
mov eax, 0x5f8910
call fcn.005bdef1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x438]
mov esi, dword [ebp + 0xc]
push eax
call fcn.00423920
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x440], 0
mov edi, 0x65e8e0
push 7
pop ebx
push edi
mov dword [ebp - 0x43c], ebx
mov word [ebp - 0x450], ax
call fcn.005be166
pop ecx
push eax
push edi
lea ecx, [ebp - 0x450]
call fcn.00423820
mov dword [ebp - 0x454], ebx
xor eax, eax
mov edi, 0x60a758
mov byte [ebp - 4], 1
xor ebx, ebx
mov word [ebp - 0x468], ax
push edi
mov dword [ebp - 0x458], ebx
call fcn.005be166
pop ecx
push eax
push edi
lea ecx, [ebp - 0x468]
call fcn.00423820
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00455c73
add esp, 0xc
lea ecx, [ebp - 0x468]
push ebx
push 1
call fcn.00424f30
push ebx
push 1
lea ecx, [ebp - 0x450]
call fcn.00424f30
push 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.005be17f
lea eax, [ebp - 0x218]
push eax
call fcn.005be166
add esp, 0x10
test eax, eax
je 0x455b60
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x21a], cx
je 0x455b07
mov word [ebp + eax*2 - 0x218], cx
xor eax, eax
cmp dword [ebp - 0x424], 8
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x60d870
push eax
call fcn.00433410
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x455b60
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push 1
lea ecx, [ebp - 0x438]
call fcn.00424f30
call fcn.005bdea0
ret
Function at 0x455b74
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
xor edi, edi
mov dword [ebp - 0x238], eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x455bb7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 3
push dword [ebp - 0x238]
push esi
call fcn.00460c42
mov esi, eax
lea eax, [ebp - 0x234]
push eax
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x238], esi
call fcn.00460ae1
mov eax, dword [ebp - 0x234]
add esp, 0x18
mov dword [ebp - 0x23c], eax
test eax, eax
jle 0x455c59
lea eax, [ebp - 0x234]
push eax
push edi
push esi
call fcn.00460ae1
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x455c17
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00455a05
pop ecx
pop ecx
jmp 0x455c50
push dword [ebp - 8]
call fcn.005a4c05
push 3
push dword [ebp - 8]
mov esi, eax
push esi
push edi
push dword [ebp - 0x238]
call fcn.00460ff7
push dword [ebp - 0x28]
lea eax, [ebp - 0x230]
push dword [ebp - 8]
push esi
push ebx
push eax
call fcn.00455871
mov esi, dword [ebp - 0x238]
add esp, 0x2c
inc edi
cmp edi, dword [ebp - 0x23c]
jl 0x455bef
push esi
call fcn.004603fc
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret

Function at 0x456dac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x456e36
cmp dword [esi + 0x10], 0
je 0x456e36
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005bea30
mov ebx, esp
test ebx, ebx
je 0x456e36
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.0044bb7a
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x60beac
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.00451381
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0044e1a2
test al, al
je 0x456e36
mov ecx, dword [esi + 0x10]
call fcn.00453094
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x460446
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4604fc
movzx eax, word [esi]
test ax, ax
je 0x4604fc
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x460486
cmp ax, 0x5c
jne 0x460488
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x46047a
cmp edi, esi
je 0x4604cf
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005be17f
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x46050c
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00460446
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005be05a
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005be02b
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
call fcn.005c0618
int3

Function at 0x460bba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x460c36
cmp dword [edi + 4], 0xffffffff
jne 0x460c36
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x65e8e0
push esi
call fcn.005be02b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x460c08
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x460c08
mov eax, 0x2000000
jmp 0x460c3b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004630c0
add esp, 0x10
test eax, eax
jne 0x460c26
mov eax, dword [ebp - 4]
jmp 0x460c3b
push eax
call fcn.004637c7
mov dword [edi], eax
mov eax, dword [0x6933a8]
pop ecx
jmp 0x460c3b
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4631cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x463201
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4631fc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x463228
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x463211
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.005bac20
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x46339b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4633a9
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x463464
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
dec edi
jne 0x4633c7
pop edi
test esi, esi
je 0x46347d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x60e548]
inc edx
dec esi
jne 0x463468
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x46444e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5f8cf9
call fcn.005bdef1
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004647e1
call fcn.0044dfcd
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ba08
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044dfd3
mov ecx, eax
call fcn.0044c26d
test al, al
je 0x464564
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044bd0a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0044c110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x4644d5
push 0x60ff8c
jmp 0x464645
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4645de
cmp edi, 0x400000
ja 0x4645ef
and dword [ebp - 0x2c8], 0
push edi
call fcn.005a4c05
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x46454d
push ebx
call fcn.005bbf8e
pop ecx
mov ecx, esi
call fcn.004647e1
push 0
push 0x60fff0
jmp 0x464645
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00464694
push dword [ebp - 0x2cc]
jmp 0x464673
call fcn.0044dfd3
push eax
lea ecx, [ebp - 0x94]
call fcn.0044bc85
call fcn.0044e195
test al, al
je 0x464585
call fcn.0044dfd9
jmp 0x46459c
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0044c110
push eax
call fcn.00460c42
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4645ad
push eax
push 0x610018
jmp 0x464645
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0046059a
add esp, 0x14
test eax, eax
je 0x4645d4
push 0
push 0x610048
jmp 0x464645
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x4645e7
push 0
push 0x60ffb4
jmp 0x464645
cmp ebx, 0x400000
jbe 0x4645f8
push 0
push 0x60ffd0
jmp 0x464645
push ebx
call fcn.005a4c05
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00460ff7
add esp, 0x18
test eax, eax
je 0x464650
cmp eax, 0x600
je 0x464650
push dword [ebp - 0x2c8]
call fcn.005bbf8e
pop ecx
call fcn.0044e195
test al, al
jne 0x46463e
push edi
call fcn.004603fc
pop ecx
push 0
push 0x61007c
mov ecx, esi
call fcn.00464809
mov bl, al
jmp 0x46467b
call fcn.0044e195
test al, al
jne 0x464660
push edi
call fcn.004603fc
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00464694
push edi
mov bl, al
call fcn.005bbf8e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044baf0
mov al, bl
call fcn.005bdea0
ret 8
Function at 0x471935
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x471959
cmp dword [esi + 8], edi
jge 0x471951
push esi
call fcn.0046dd3d
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x47197f
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x471965
mov dword [esi + 8], edx
jmp 0x471994
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47198a
xor dl, dl
jmp 0x47198f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x47197f
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4719ce
push 0x611190
call fcn.0046dc66
add esp, 4
jmp 0x471a0e
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4719de
push 0x6111a0
jmp 0x4719c4
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4719f8
push edi
push ecx
push esi
call fcn.0047449c
add esp, 0xc
test eax, eax
je 0x471a0e
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005bac20
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x484c39
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5f8a24
call fcn.005bdef1
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], ebx
cmp dword [edi + 4], ebx
jne 0x484ccb
lea eax, [ebp - 0xa8]
push eax
call fcn.004848a6
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00421590
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0044b1d1
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004696f4
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.0044db5e
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044c26d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0044baf0
mov esi, 0x6d8
test bl, bl
je 0x484d0a
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.005bdea0
ret 4
Function at 0x487d46
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x5f99fd
call fcn.005bdef1
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
call fcn.0044dfcd
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ba08
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044dfd3
mov ecx, eax
call fcn.0044c26d
test al, al
je 0x487e3d
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044bd0a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0044c110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x487dd7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044baf0
jmp 0x487f1e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x487dee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x487dc3
push esi
mov dword [ebp - 0x2cc], edi
call fcn.005a4c05
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x487f09
push edi
call fcn.005bbf8e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044baf0
jmp 0x487f1c
call fcn.0044dfd3
push eax
lea ecx, [ebp - 0x94]
call fcn.0044bc85
call fcn.0044e195
test al, al
je 0x487e5e
call fcn.0044dfd9
jmp 0x487e75
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0044c110
push eax
call fcn.00460c42
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x487dc3
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.0046059a
add esp, 0x14
test eax, eax
jne 0x487dc3
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x487dc3
push esi
call fcn.005a4c05
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00460ff7
add esp, 0x18
test eax, eax
je 0x487ef9
cmp eax, 0x600
je 0x487ef9
push edi
call fcn.005bbf8e
pop ecx
call fcn.0044e195
test al, al
jne 0x487e29
push ebx
call fcn.004603fc
jmp 0x487e28
call fcn.0044e195
test al, al
jne 0x487f09
push ebx
call fcn.004603fc
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044baf0
test edi, edi
jne 0x487f99
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x487f95
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x487f58
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x487f95
push esi
mov dword [ebp - 0x2c8], edi
call fcn.005a4c05
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x487f91
push edi
call fcn.005bbf8e
pop ecx
xor edi, edi
test edi, edi
jne 0x487f99
xor eax, eax
jmp 0x487fb1
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00487fb9
push edi
mov esi, eax
call fcn.005bbf8e
pop ecx
mov eax, esi
call fcn.005bdea0
ret 4
Function at 0x489460
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4894a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x615558
push 1
push 0x32
push 0x615580
push 0x615598
call fcn.004f87f0
add esp, 0x18
xor al, al
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 4]
shr al, 2
and al, 1
mov esp, ebp
pop ebp
ret

Function at 0x489860
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
cmp dword [eax + 0x14], 8
push edi
mov edi, ecx
jb 0x489889
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48993b
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x489934
jmp 0x4898e0
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x489932
push 0
lea ecx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x489934
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4898e0
jmp 0x489934
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 4
Function at 0x489950
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9c8d
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x68a300]
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 edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 4], 0
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x82c], 0
jmp 0x4899d0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005bc550
add esp, 0xc
lea eax, [ebp - 0x82c]
push eax
push 0x7ff
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x6c]
call ebx
test eax, eax
je 0x489a76
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0xf
push eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
call fcn.00421120
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00423410
cmp dword [ebp - 0x814], 0x10
mov byte [ebp - 4], 0
jb 0x489a69
push dword [ebp - 0x828]
call fcn.005ba02a
add esp, 4
cmp dword [ebp - 0x82c], 0
ja 0x4899d0
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 - 0x10]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 4

Function at 0x489ab0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x6c]
sub esp, 0xc
test eax, eax
je 0x489b15
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 4
push ecx
push 0
push 0x20000005
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x489b1d
push 0x615794
push 0x6156a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6157b4
call fcn.00489d60
add esp, 0x10
xor al, al
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x48b0b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa010
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005bc230
mov dword [esi], 0x615d94
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi + 0x30], 0x615ccc
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x48b13e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], 0x615fe8
mov dword [esi + 0x30], 0x615ff4
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 0x48b240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa010
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005bc230
mov dword [esi], 0x615d94
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi], 0x615f94
mov dword [esi + 0x30], 0x615ccc
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x48b2d4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], 0x616054
mov dword [esi + 0x30], 0x616060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4