joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f24c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47f255
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47f393
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x47f2ba
lea eax, [ebp - 4]
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.0040713c
mov eax, edi
call fcn.00408b7c
mov ebx, eax
test ebx, ebx
jl 0x47f2c7
inc ebx
xor esi, esi
push dword [ebp - 4]
push dword [edi + esi*4]
push 0x47f3b0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407d1c
inc esi
dec ebx
jne 0x47f29c
jmp 0x47f2c7
lea eax, [ebp - 4]
mov edx, 0x47f3b0
call fcn.0040713c
lea eax, [ebp - 4]
mov edx, 0x47f3b0
call fcn.00407c3c
mov eax, dword [ebp - 4]
call fcn.0040720c
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
push 7
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407a40
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0047d678
test al, al
jne 0x47f370
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0047d69c
push dword [ebp - 0x14]
push 0x47f3c0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x51bd48]
call fcn.0040aa54
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.0041d304
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00407d1c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421a24
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f39a
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00406d74
lea eax, [ebp - 4]
call fcn.00406d14
ret
Function at 0x47f3c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47f4cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, ebx
call fcn.0047f710
cmp al, 5
je 0x47f41d
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x51bc74]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421c28
call fcn.00406448
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, esi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47f4b4
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0047d69c
push dword [ebp - 0x20]
push 0x47f4f0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x51c028]
call fcn.0040aa54
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0x11
lea edx, [ebp - 0x18]
xor ecx, ecx
pop eax
call fcn.0041d304
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407d1c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421a24
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f4d6
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00406d74
ret

Function at 0x47f6bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47f701
cmp esi, 0xea
jne 0x47f706
mov eax, dword [ebp - 4]
jmp 0x47f708
xor eax, eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47f710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov esi, eax
mov edx, esi
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47f755
cmp esi, 0xea
jne 0x47f761
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047d7e4
jmp 0x47f763
xor eax, eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47f76c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
xor ecx, ecx
mov edx, 8
call fcn.00404ba4
lea eax, [esi + 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, eax
mov edx, edi
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47f7c1
cmp edi, 0xea
je 0x47f7c1
xor eax, eax
jmp 0x47f7c3
mov al, 1
mov byte [ebp - 1], al
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047d7e4
mov byte [esi], al
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47fb00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
call fcn.00408b74
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47fba6
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47fb5b
mov byte [ebp - 5], 0
jmp 0x47fbfd
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x417528]
call fcn.00408d28
add esp, 4
jmp 0x47fba6
cmp dword [ebx + 0x1c], 0xea
je 0x47fb85
mov byte [ebp - 5], 0
jmp 0x47fbfd
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x417528]
call fcn.00408d28
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0047d678
test al, al
je 0x47fb76
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x417528]
call fcn.00408d28
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047d7e4
mov edx, dword [ebp - 4]
mov byte [edx], al
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x481930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
cmp byte [0x522110], 0
jne 0x481bb7
lea eax, [ebp - 0x11c]
mov edx, 0x11c
call fcn.0040d5bc
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_GetVersionExW
mov eax, dword [ebp - 0x110]
mov dword [0x522114], eax
mov byte [0x522110], 0
mov byte [0x522111], 0
mov eax, dword [ebp - 0x10c]
sub eax, 1
jb 0x48199a
je 0x4819ad
dec eax
je 0x481a0b
jmp 0x481bb7
mov byte [0x522110], 1
mov byte [0x522111], 0
jmp 0x481bb7
mov byte [0x522111], 0
cmp dword [ebp - 0x118], 4
jne 0x481bb7
mov eax, dword [ebp - 0x114]
cmp eax, 0x5a
jb 0x4819d8
mov byte [0x522110], 6
jmp 0x481bb7
cmp eax, 0xa
jb 0x4819ff
cmp word [ebp - 0x106], 0x41
jne 0x4819f3
mov byte [0x522110], 5
jmp 0x481bb7
mov byte [0x522110], 4
jmp 0x481bb7
mov byte [0x522110], 2
jmp 0x481bb7
movzx eax, byte [ebp - 2]
cmp al, 2
jne 0x481a1c
mov byte [0x522111], 2
jmp 0x481a30
cmp al, 3
jne 0x481a29
mov byte [0x522111], 1
jmp 0x481a30
mov byte [0x522111], 0
mov eax, dword [ebp - 0x118]
cmp eax, 6
jb 0x481a44
cmp dword [ebp - 0x114], 4
jae 0x481a49
cmp eax, 0xa
jb 0x481a6b
movzx eax, byte [ebp - 2]
add al, 0xfe
sub al, 2
jae 0x481a5f
mov byte [0x522110], 0x15
jmp 0x481bb7
mov byte [0x522110], 0x14
jmp 0x481bb7
cmp dword [ebp - 0x118], 6
jb 0x481a9f
cmp dword [ebp - 0x114], 3
jb 0x481a9f
movzx eax, byte [ebp - 2]
add al, 0xfe
sub al, 2
jae 0x481a93
mov byte [0x522110], 0x13
jmp 0x481bb7
mov byte [0x522110], 0x12
jmp 0x481bb7
cmp dword [ebp - 0x118], 6
jb 0x481ad3
cmp dword [ebp - 0x114], 2
jb 0x481ad3
movzx eax, byte [ebp - 2]
add al, 0xfe
sub al, 2
jae 0x481ac7
mov byte [0x522110], 0x11
jmp 0x481bb7
mov byte [0x522110], 0x10
jmp 0x481bb7
mov eax, dword [ebp - 0x118]
cmp eax, 6
jb 0x481b09
cmp dword [ebp - 0x114], 1
jb 0x481b09
movzx eax, byte [ebp - 2]
add al, 0xfe
sub al, 2
jae 0x481afd
mov byte [0x522110], 0xe
jmp 0x481bb7
mov byte [0x522110], 0xf
jmp 0x481bb7
cmp eax, 6
jb 0x481b30
movzx eax, byte [ebp - 2]
add al, 0xfe
sub al, 2
jae 0x481b24
mov byte [0x522110], 0xd
jmp 0x481bb7
mov byte [0x522110], 0xc
jmp 0x481bb7
cmp dword [ebp - 0x118], 5
jb 0x481b85
cmp dword [ebp - 0x114], 2
jb 0x481b85
movzx eax, word [ebp - 4]
and ax, 0x8000
cmp ax, 0x8000
jne 0x481b59
mov byte [0x522110], 0xb
jmp 0x481bb7
cmp byte [ebp - 2], 1
jne 0x481b68
mov byte [0x522110], 8
jmp 0x481bb7
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x481b7c
mov byte [0x522110], 0xa
jmp 0x481bb7
mov byte [0x522110], 9
jmp 0x481bb7
mov eax, dword [ebp - 0x118]
cmp eax, 5
jb 0x481ba2
cmp dword [ebp - 0x114], 1
jb 0x481ba2
mov byte [0x522110], 8
jmp 0x481bb7
cmp eax, 5
jb 0x481bb0
mov byte [0x522110], 7
jmp 0x481bb7
mov byte [0x522110], 3
mov esp, ebp
pop ebp
ret
Function at 0x482838
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x40]
mov edx, 0x3c
call fcn.0040d5bc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x4400
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, ebx
call fcn.0040720c
test eax, eax
jle 0x482881
mov eax, ebx
call fcn.00407a40
mov dword [ebp - 0x34], eax
mov eax, esi
call fcn.0040720c
test eax, eax
jle 0x482896
mov eax, esi
call fcn.00407a40
mov dword [ebp - 0x30], eax
mov eax, edi
call fcn.0040720c
test eax, eax
jle 0x4828ab
mov eax, edi
call fcn.00407a40
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
call fcn.0040720c
test eax, eax
jle 0x4828c2
mov eax, dword [ebp + 0xc]
call fcn.00407a40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x482de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, edx
lea eax, [ebp - 0x208]
mov edx, 0x208
call fcn.0040d5bc
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov eax, ebx
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00407ae4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485034
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4850c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040713c
lea eax, [ebp - 4]
call fcn.004072e4
mov edx, 0x4850e4
mov eax, 0x48511c
call fcn.00472064
mov ebx, eax
test ebx, ebx
je 0x48509a
mov eax, dword [ebp + 8]
push eax
push edi
push esi
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
mov eax, dword [ebp - 8]
push eax
call ebx
mov ebx, eax
jmp 0x4850b0
mov eax, dword [ebp + 8]
push eax
push edi
push esi
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.version.dll_GetFileVersionInfoW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4850cd
lea eax, [ebp - 4]
call fcn.00406d14
ret

Function at 0x487be8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487c70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
mov edx, 0x208
call fcn.0040d5bc
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW
mov eax, ebx
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00407ae4
lea edx, [ebp - 0x20c]
mov eax, dword [ebx]
call fcn.00422dec
mov edx, dword [ebp - 0x20c]
mov eax, ebx
call fcn.004070f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487c77
lea eax, [ebp - 0x20c]
call fcn.00406d14
ret
Function at 0x487c7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487d04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
mov edx, 0x208
call fcn.0040d5bc
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov eax, ebx
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00407ae4
lea edx, [ebp - 0x20c]
mov eax, dword [ebx]
call fcn.00422dec
mov edx, dword [ebp - 0x20c]
mov eax, ebx
call fcn.004070f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487d0b
lea eax, [ebp - 0x20c]
call fcn.00406d14
ret

Function at 0x4c066c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4c06d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00404ba4
push 4
lea eax, [ebp - 0xa]
push eax
push 3
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 0xa]
call fcn.00407aa8
mov eax, dword [ebp - 0x10]
mov edx, esi
call fcn.0041b48c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c06db
lea eax, [ebp - 0x10]
call fcn.00406d14
ret

Function at 0x4c1aa4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [eax + 0xc]
push eax
call sub.user32.dll_ShowWindow
pop ebp
ret

Function at 0x4c1ab4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4c1b55
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [ebp - 8], eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x4c1af9
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_AttachThreadInput
xor eax, eax
push ebp
push 0x4c1b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1b3c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x4c1b34
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_AttachThreadInput
ret
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
jne 0x4c1ac8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c221c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c22bd
push 0
push 0
push 0xe
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
test ebx, ebx
jbe 0x4c22bd
lea eax, [ebx + 1]
mov edi, eax
add edi, edi
push edi
call fcn.0040a5ec
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c22b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00404ba4
mov eax, dword [ebp - 8]
push eax
inc ebx
push ebx
push 0xd
mov eax, dword [esi + 0xc]
push eax
call sub.user32.dll_SendMessageW
test eax, eax
jle 0x4c229e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c22bd
mov eax, dword [ebp - 8]
push eax
call fcn.0040a5fc
pop ecx
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5075ec
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x50776e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
mov eax, esi
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
mov dword [ebp - 0xc], 0x824
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.0040a5ec
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x50774c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
add edx, edx
mov eax, dword [ebp - 8]
call fcn.0040d5bc
push 0x2000000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.00407a40
push eax
call sub.wininet.dll_InternetCanonicalizeUrlW
test eax, eax
jne 0x50768c
mov byte [ebp - 1], 0
call fcn.0040653c
jmp 0x507753
lea eax, [ebp - 0x48]
mov edx, 0x3c
call fcn.0040d5bc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x34], pe_nt_image_headers32
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x18], 0x800
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 0x48]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCrackUrlW
test eax, eax
jne 0x5076ec
mov byte [ebp - 1], 0
call fcn.0040653c
jmp 0x507753
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x50770e
push ebx
lea eax, [ebp - 0x4c]
mov edx, edi
call fcn.00407aa8
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
mov edx, 1
call fcn.00407e04
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x507730
push esi
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00407aa8
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call fcn.00407e04
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507753
mov eax, dword [ebp - 8]
push eax
call fcn.0040a5fc
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507775
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00406d74
ret
Function at 0x50cc84
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x50ce4a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040713c
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenW
mov dword [0x5223a0], eax
cmp dword [0x5223a0], 0
je 0x50ce2f
cmp dword [0x5223b0], 0
jbe 0x50cd14
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5223b0]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x50ce68
call fcn.0041d304
mov eax, dword [ebp - 8]
call fcn.00407a40
mov edi, eax
jmp 0x50cd26
lea eax, [ebp - 8]
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.0040713c
xor edi, edi
mov esi, dword [ebp - 8]
test esi, esi
je 0x50cd32
sub esi, 4
mov esi, dword [esi]
push 0
push 0x4000200
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
mov eax, dword [0x5223a0]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [0x5223a4], eax
cmp dword [0x5223a4], 0
je 0x50ce2f
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
mov eax, dword [0x5223a4]
push eax
call sub.wininet.dll_HttpQueryInfoW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x50ce2f
cmp dword [0x5223b0], 0
ja 0x50cdb1
cmp dword [ebp - 0x14], 0xc8
sete bl
jmp 0x50cdd2
cmp dword [ebp - 0x14], 0xcb
je 0x50cdd0
cmp dword [ebp - 0x14], 0xce
je 0x50cdd0
cmp dword [ebp - 0x14], 0x1a0
je 0x50cdd0
xor ebx, ebx
jmp 0x50cdd2
mov bl, 1
test bl, bl
je 0x50ce2f
cmp dword [ebp - 0x14], 0x1a0
jne 0x50cde8
xor eax, eax
mov dword [0x5223a8], eax
jmp 0x50ce17
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5223a8
push 0x20000005
mov eax, dword [0x5223a4]
push eax
call sub.wininet.dll_HttpQueryInfoW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x50ce2f
cmp dword [0x5223b0], 0
jbe 0x50ce2f
mov eax, dword [0x5223b0]
add dword [0x5223a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ce51
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d74
ret
Function at 0x50cec8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x5223ac
xor ebx, ebx
cmp dword [0x5223ac], 0
je 0x50cee6
cmp dword [0x5223ac], 0xffffffff
jne 0x50cf4a
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [0x51bd84]
mov eax, dword [eax]
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [0x5223ac], eax
cmp dword [0x5223ac], 0
je 0x50cf4a
cmp dword [0x5223ac], 0xffffffff
je 0x50cf4a
push 2
push 0
push 0
mov eax, dword [0x5223ac]
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
setne bl
push 0
mov eax, dword [0x5223ac]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [0x5223b0], eax
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x50cf84
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
lea eax, [ebp - 4]
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x5223a4]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x50cfeb
cmp dword [ebp - 4], 0
ja 0x50cfbc
xor eax, eax
jmp 0x50cfeb
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x5223ac]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x50cfeb
mov edx, dword [ebp - 8]
add dword [0x5223b0], edx
mov esp, ebp
pop ebp
ret

Function at 0x50dcf4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, edx
mov eax, ebx
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
lea eax, [ebp - 0x20c]
xor ecx, ecx
mov edx, 0x208
call fcn.00404ba4
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x50dd4e
mov eax, ebx
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call fcn.00407ae4
pop ebx
mov esp, ebp
pop ebp
ret