joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd8d4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x55d4c7
call fcn.0052a9a8
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004cdc63
call fcn.004c5e60
push eax
lea ecx, [ebp - 0x94]
call fcn.004c3e36
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004c5e66
mov ecx, eax
call fcn.004c4608
test al, al
je 0x4cd9ea
push ebx
lea ecx, [ebp - 0x94]
call fcn.004c4075
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004c44ae
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x4cd95b
push str.Error_opening_file
jmp 0x4cdacb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4cda64
cmp edi, 0x400000
ja 0x4cda75
and dword [ebp - 0x2c8], 0
push edi
call fcn.004bc98d
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 0x4cd9d3
push ebx
call fcn.004bc996
pop ecx
mov ecx, esi
call fcn.004cdc63
push 0
push str.Could_not_read_file
jmp 0x4cdacb
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004cdb16
push dword [ebp - 0x2cc]
jmp 0x4cdaf9
call fcn.004c5e66
push eax
lea ecx, [ebp - 0x94]
call fcn.004c4058
call fcn.004c5f92
test al, al
je 0x4cda0b
call fcn.004c5e6c
jmp 0x4cda22
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004c44ae
push eax
call fcn.004e5c9d
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4cda33
push eax
push str.Error_opening_zip_file
jmp 0x4cdacb
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004e56de
add esp, 0x14
test eax, eax
je 0x4cda5a
push 0
push str.Could_not_find_ziped_file
jmp 0x4cdacb
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x4cda6d
push 0
push str.File_is_empty
jmp 0x4cdacb
cmp ebx, 0x400000
jbe 0x4cda7e
push 0
push 0x566918
jmp 0x4cdacb
push ebx
call fcn.004bc98d
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004e605d
add esp, 0x18
test eax, eax
je 0x4cdad6
cmp eax, 0x600
je 0x4cdad6
push dword [ebp - 0x2c8]
call fcn.004bc996
pop ecx
call fcn.004c5f92
test al, al
jne 0x4cdac4
push edi
call fcn.004e5538
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004cdc8b
mov bl, al
jmp 0x4cdb01
call fcn.004c5f92
test al, al
jne 0x4cdae6
push edi
call fcn.004e5538
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004cdb16
push edi
mov bl, al
call fcn.004bc996
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004c3f71
mov al, bl
call fcn.0052a963
ret 8
Function at 0x4d0dca
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d0dfc
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4e4c20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x4e4c8a
cmp dword [ebp + 8], 0x100
jne 0x4e4c79
cmp word [ebp + 0xc], 0xd
jne 0x4e4c79
cmp byte [esi + 0x4f2], 0
je 0x4e4c60
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e4c79
cmp byte [esi + 0x4f3], 0
jne 0x4e4c79
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4e4c75
push edi
push edi
push edi
push str.return
push esi
call fcn.004c84f7
xor eax, eax
jmp 0x4e4c8d
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4e558a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5c30d8]
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 0x4e5640
movzx eax, word [esi]
test ax, ax
je 0x4e5640
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4e55ca
cmp ax, 0x5c
jne 0x4e55cc
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4e55be
cmp edi, esi
je 0x4e5613
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0050f78d
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4e5650
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004e558a
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00519409
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005193d8
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.004bcc20
mov esp, ebp
pop ebp
ret
call fcn.004bd478
int3

Function at 0x4e5c15
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4e5c91
cmp dword [edi + 4], 0xffffffff
jne 0x4e5c91
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x560cec
push esi
call fcn.005193d8
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4e5c63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4e5c63
mov eax, 0x2000000
jmp 0x4e5c96
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e8130
add esp, 0x10
test eax, eax
jne 0x4e5c81
mov eax, dword [ebp - 4]
jmp 0x4e5c96
push eax
call fcn.004e8838
mov dword [edi], eax
mov eax, dword [0x5d0b84]
pop ecx
jmp 0x4e5c96
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e823d
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 0x4e8271
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 0x4e826c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4e8298
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x4e8281
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.00507280
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 0x4e840b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4e8419
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4e84d8
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
sub edi, 1
jne 0x4e8431
pop edi
test esi, esi
je 0x4e84f4
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5699e0]
inc edx
sub esi, 1
jne 0x4e84dc
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4f0a3d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4f0aaa
cmp dword [esi + 0x10], 0
je 0x4f0aaa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0052ab60
mov ebx, esp
test ebx, ebx
je 0x4f0aaa
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1bc
call fcn.004c4001
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004c84f7
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f1887
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x55e55f
call fcn.0052a9a8
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.004c5e60
push eax
lea ecx, [ebp - 0x94]
call fcn.004c3e36
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004c5e66
mov ecx, eax
call fcn.004c4608
test al, al
je 0x4f1975
push ebx
lea ecx, [ebp - 0x94]
call fcn.004c4075
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004c44ae
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4f1918
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004c3f71
jmp 0x4f1a56
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4f1904
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004bc98d
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 0x4f1a41
push edi
call fcn.004bc996
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004c3f71
jmp 0x4f1a54
call fcn.004c5e66
push eax
lea ecx, [ebp - 0x94]
call fcn.004c4058
call fcn.004c5f92
test al, al
je 0x4f1996
call fcn.004c5e6c
jmp 0x4f19ad
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004c44ae
push eax
call fcn.004e5c9d
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4f1904
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.004e56de
add esp, 0x14
test eax, eax
jne 0x4f1904
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x4f1904
push esi
call fcn.004bc98d
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.004e605d
add esp, 0x18
test eax, eax
je 0x4f1a31
cmp eax, 0x600
je 0x4f1a31
push edi
call fcn.004bc996
pop ecx
call fcn.004c5f92
test al, al
jne 0x4f1961
push ebx
call fcn.004e5538
jmp 0x4f1960
call fcn.004c5f92
test al, al
jne 0x4f1a41
push ebx
call fcn.004e5538
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004c3f71
test edi, edi
jne 0x4f1ac8
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f1ac4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4f1ac4
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004bc98d
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
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 - 0x2d0], esi
je 0x4f1ac0
push edi
call fcn.004bc996
pop ecx
xor edi, edi
test edi, edi
jne 0x4f1ac8
xor eax, eax
jmp 0x4f1ae3
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.004f1aeb
push 1
push edi
mov esi, eax
call fcn.004bc97f
pop ecx
pop ecx
mov eax, esi
call fcn.0052a963
ret 4
Function at 0x4f3da9
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x55e71a
call fcn.0052a9a8
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5d0], ebx
cmp dword [edi + 4], ebx
jne 0x4f3e3b
lea eax, [ebp - 0xa8]
push eax
call fcn.004f3aaa
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 + 0x2c]
mov ecx, eax
call fcn.004c5e40
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004d09a1
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004d2af0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004c5b74
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.004c4608
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004c3f71
mov esi, 0x5c0
test bl, bl
je 0x4f3e76
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.0052a963
ret 4

Function at 0x4fac08
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 0x4fac2c
cmp dword [esi + 8], edi
jge 0x4fac24
push esi
call fcn.004f8ea9
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 0x4fac55
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 0x4fac38
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4fac72
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x4fac60
xor eax, eax
jmp 0x4fac68
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x4fac57
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 0x4faca7
push str.zlib_corrupt
call fcn.004f8d64
add esp, 4
jmp 0x4face4
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4facb7
push str.read_past_buffer
jmp 0x4fac9d
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4facce
push edi
push esi
call fcn.004f8d73
pop ecx
pop ecx
test eax, eax
je 0x4face4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00507280
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 0x4fe270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
mov dword [ebp - 0x10c], eax
mov edi, ecx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00507800
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4fe2b3
mov eax, dword [esi]
jmp 0x4fe2b5
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esi + 0x14], 8
jb 0x4fe2d2
mov esi, dword [esi]
push 0
push 0
push eax
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x10c]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x108]
push eax
call fcn.004fe440
mov esi, dword [edi + 4]
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
push 0x4fe370
push 0
push 0
mov dword [ebp - 0x10c], 0
call fcn.0051a396
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x4fe34c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fe34c
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, byte [eax + 4]
pop esi
call fcn.004bcc20
mov esp, ebp
pop ebp
ret 8
Function at 0x4fe650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x4fe6aa
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
mov dword [ebp - 4], ecx
jb 0x4fe6c7
mov eax, dword [edi + 0x20]
jmp 0x4fe6ca
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4fe6e4
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4fe708
mov eax, dword [ecx]
jmp 0x4fe70a
mov eax, ecx
push 0
push 0x560c7c
mov byte [eax], 0
call fcn.004a5cb0
push 0
mov byte [ebp - 4], 3
call fcn.005106f2
push eax
call fcn.0051944c
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00507800
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4fe7c8
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.00507800
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4fe7b9
test eax, eax
je 0x4fe7b9
add eax, eax
cmp eax, 0x412
jae 0x4fe7b4
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x4fe7bf
call fcn.004bd478
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.004a1230
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4fe7f4
cmp dword [edi + 0x34], 8
jb 0x4fe7da
mov ecx, dword [edi + 0x20]
jmp 0x4fe7dd
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4fe7f4
push 1
push 0x560cec
lea ecx, [edi + 0x20]
call fcn.004a5a50
cmp dword [edi + 0x30], 0
jne 0x4fe809
push 3
push 0x565df4
lea ecx, [edi + 0x20]
call fcn.00499940
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x500560
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x50059e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x50059e
mov eax, dword [ebp - 4]
xor edx, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x500b7e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x56e380
call fcn.00518e1c
pop ecx
lea ecx, [ebp - 0xfa4]
lea eax, [ecx + eax*2]
push eax
call fcn.00519409
lea eax, [ebp - 0xfa4]
push esi
push eax
call fcn.005193d8
push 0x3c
xor edi, edi
lea eax, [ebp - 0xfe0]
push edi
push eax
call fcn.00507800
add esp, 0x1c
mov dword [ebp - 0xfdc], 0x200
xor eax, eax
mov dword [ebp - 0xfcc], esi
inc eax
mov ecx, str.open
mov dword [ebp - 0xfd4], ecx
push eax
push edi
push edi
push esi
push ecx
push edi
mov dword [ebp - 0xfc4], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
ja 0x500c2c
lea eax, [ebp - 0xfa4]
push eax
call fcn.00500cc4
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x500c3a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00518e1c
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bc98d
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.00519409
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x500cb4
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x500cab
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x500ca1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x500cb2
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x500c7e
jmp 0x500cb4
xor edi, edi
push esi
call fcn.004bc996
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret