joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a35
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x43d9b1
xor eax, eax
inc eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x43d9c6
push edi
push 0x4b8514
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43d9da
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43dab5
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43da91
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x43da96
push 4
jmp 0x43da93
push 3
pop ebx
jmp 0x43da99
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x43dab8
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x404a53
Function at 0x42017b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
xor ebx, ebx
mov dword [ebp - 4], edx
push esi
inc ebx
mov dword [ebp - 0x10], edx
push edi
cmp dword [eax + 4], edx
je 0x455b4f
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov edi, edx
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov byte [ecx], dl
mov dword [ebp - 8], 0x23
push edi
mov ecx, esi
call fcn.00407b20
push 0x2b
pop ecx
push 0x5e
movzx eax, word [eax]
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x455b56
cmp ax, cx
je 0x455b56
cmp ax, dx
je 0x455b56
cmp ax, word [ebp - 8]
je 0x455b56
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.00407b20
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x455bd1
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00407b76
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.00420292
test al, al
je 0x42028e
push dword [ebp - 0x20]
push dword [esi*4 + 0x4a4a10]
call fcn.0042307d
pop ecx
pop ecx
test eax, eax
je 0x42025a
inc esi
cmp esi, 0x63
jl 0x42023f
cmp esi, 0x63
je 0x455b88
cmp byte [esi + 0x4a49a8], 0
jne 0x42028e
movzx eax, byte [esi + 0x4a4940]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00405a64
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor bl, bl
jmp 0x420275
lea ecx, [ebp - 0x20]
call fcn.00405a64
xor al, al
jmp 0x420285
cmp ax, word [ebp - 0xc]
jne 0x455b61
mov eax, dword [ebp + 0x10]
jmp 0x455b80
cmp ax, cx
jne 0x455b6b
mov eax, dword [ebp + 0x14]
jmp 0x455b80
cmp ax, dx
jne 0x455b75
mov eax, dword [ebp + 0x18]
jmp 0x455b80
push 0x23
pop ecx
cmp ax, cx
jne 0x455b82
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x4201c7
push 0
lea ecx, [ebp - 0x20]
call fcn.00407b52
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x455b47
test eax, 0x200
je 0x455bb0
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x455bbc
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x420275
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x420275
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x455b4f
test eax, 0x200
je 0x455bf0
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x455bfc
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x42027d
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x42027d
Function at 0x435bfc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bed50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00429fd9
mov dword [ebp - 0x14], eax
cmp dword [0x4c40e8], esi
jne 0x435cef
push 0x800
push esi
push 0x4a0d98
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435dcf
push esi
push esi
push 0x4a0d98
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435dcf
push 0x4a0db0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435dcf
push eax
call ebx
push 0x4a0dbc
push edi
mov dword [0x4c40e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a0dcc
push edi
mov dword [0x4c40ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a0de0
push edi
mov dword [0x4c40f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c40f8], eax
test eax, eax
je 0x435cec
push 0x4a0dfc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c40f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435d14
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435d07
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435d29
push 4
pop eax
jmp 0x435dd1
cmp dword [ebp - 0x14], esi
je 0x435d29
push dword [0x4c40e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435d0e
mov eax, dword [0x4c40f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435d87
cmp dword [0x4c40f8], edi
je 0x435d87
push eax
call ebx
push dword [0x4c40f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435d87
test eax, eax
je 0x435d87
call ecx
test eax, eax
je 0x435d7c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435d7c
test byte [ebp - 8], 1
jne 0x435d87
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435db7
mov eax, dword [0x4c40ec]
cmp eax, edi
je 0x435db4
push eax
call ebx
test eax, eax
je 0x435db4
call eax
mov esi, eax
test esi, esi
je 0x435db4
mov eax, dword [0x4c40f0]
cmp eax, edi
je 0x435db4
push eax
call ebx
test eax, eax
je 0x435db4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c40e8]
call ebx
test eax, eax
je 0x435dcf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435dd1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c776
mov esp, ebp
pop ebp
ret
Function at 0x457b04
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 8], ebx
call fcn.004077c7
lea ecx, [ebp - 0x20]
call fcn.004077c7
lea ecx, [ebp - 0x40]
call fcn.004077c7
push 0x4b7728
lea ecx, [ebp - 0x30]
call fcn.00407d2c
push esi
lea ecx, [ebp - 0x30]
call fcn.00407e0b
push 0x4b774c
lea ecx, [ebp - 0x30]
call fcn.00407e0b
lea ecx, [ebp - 0x20]
call fcn.00407eec
test edi, edi
je 0x457b87
push 0x5c
pop eax
cmp word [edi], ax
je 0x457b87
cmp word [edi + 2], ax
je 0x457b87
push 0x4b775c
lea ecx, [ebp - 0x20]
call fcn.00407d2c
push edi
lea ecx, [ebp - 0x20]
call fcn.00407e0b
cmp dword [ebp + 0xc], ebx
je 0x457bd8
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422f60
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.004081a7
push 0x4b7764
lea ecx, [ebp - 0x40]
call fcn.00407e0b
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x457c64
lea eax, [ebp - 0x10]
push eax
push 0x80000002
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x457c64
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x457c5f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x457c5a
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00405a64
lea ecx, [ebp - 0x20]
call fcn.00405a64
lea ecx, [ebp - 0x30]
call fcn.00405a64
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4644db
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x464500
xor al, al
jmp 0x4646a8
push esi
call fcn.00420f36
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00422d7c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f36
mov edi, eax
push 0x48fac0
push edi
call fcn.00422f3c
push 0x48fac0
push esi
call fcn.004236cc
add esp, 0x18
test eax, eax
je 0x4645ec
push 0x4b8610
push edi
call fcn.00422f0d
push 0x48fac0
push esi
call fcn.00423afa
add esp, 0x10
test eax, eax
jne 0x4645e3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b8630
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4645bf
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041fcb1
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041fcb1
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4645cc
push 0x4b8664
push edi
call fcn.00422f0d
pop ecx
pop ecx
push 0x48fac0
push edi
call fcn.00422f0d
push esi
push edi
call fcn.00422f0d
add esp, 0x10
jmp 0x4645ec
push esi
push edi
call fcn.00422f0d
pop ecx
pop ecx
push 0x4b8678
push esi
call fcn.0042307d
pop ecx
pop ecx
test eax, eax
jne 0x464627
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.0042422e
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.00420fac
push edi
call fcn.00420fac
add esp, 0x14
mov al, 1
jmp 0x4646a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x464695
push 0x48fac0
push esi
call fcn.004236cc
pop ecx
pop ecx
test eax, eax
jne 0x464677
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push 0x4b86a0
push ebx
call fcn.00423818
add esp, 0x18
jmp 0x464691
push 0x200
push dword [ebp - 8]
push ebx
call fcn.0042422e
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.00420fac
push edi
call fcn.00420fac
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4651ca
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00431ac0
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.004646af
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00464ad8
test al, al
je 0x46525f
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x465215
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x46525f
call fcn.00422d7c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465264
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, edx
push 0x4b877c
lea ecx, [ebp - 0x10]
call fcn.004635f1
push ecx
lea ecx, [ebp - 0x10]
call fcn.00458aa3
test al, al
jne 0x46528e
xor esi, esi
jmp 0x4652db
cmp ebx, 0x20
je 0x4652cd
cmp ebx, 0x40
je 0x4652c9
test bl, 0xb
jne 0x4652a8
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4652d9
xor ecx, ecx
test bl, 0x14
je 0x4652b0
inc ecx
xor eax, eax
test bl, 2
je 0x4652b8
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x4652d9
xor eax, eax
jmp 0x4652d0
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.004584f3
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4652eb
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x465369
jne 0x4652fe
push 0
jmp 0x465363
cmp esi, 0xf
jae 0x465362
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x465362
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4a4900]
call fcn.0043b536
cmp eax, esi
jb 0x46531b
jmp 0x465369
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466f13
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x466f4e
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x466f89
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x466f73
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x466f46
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x466fc0
or eax, 0xffffffff
jmp 0x466f46
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x466f97
cmp eax, 0xffffffff
je 0x466f97
push 1
mov edx, esi
mov ecx, eax
call fcn.00466d0f
pop ecx
jmp 0x466f44
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x4b87f8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x466f42
test eax, eax
je 0x466f42
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00466d0f
pop ecx
mov ecx, esi
call fcn.00466cde
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x466f44
Function at 0x468e3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x468e5f
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420fc0
add esp, 0xc
jmp 0x468e72
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00425752
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4b886c
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.00425800
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x468f48
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x468f5e
cmp eax, ecx
jne 0x468f79
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.00425752
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x468f91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x468fd8
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.004249d3
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x468fde
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x469006
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.004249d3
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x4691b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00469008
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.0046904e
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4691f6
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00469186
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4691e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4722ec
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x472307
movzx eax, word [edi + 0x8c]
jmp 0x47230b
movzx eax, word [edi + 0x58]
lea edx, [edi + 0xb0]
movsx ecx, ax
cmp dword [ebp + 8], ebx
je 0x47231c
lea edx, [edi + 0x7c]
mov eax, dword [edi + 0xc0]
xor esi, esi
push esi
cmp ecx, ebx
jne 0x47232e
push esi
push esi
push ebx
jmp 0x472341
cmp ecx, 2
jne 0x47233e
push 0x4b8c48
push dword [edx]
push 3
jmp 0x472341
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
cmp eax, esi
jne 0x472353
xor al, al
jmp 0x472373
cmp byte [edi + 0xdc], 0
je 0x472371
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x472404
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x472413
pop ebp
jmp fcn.004724d4
pop ebp
jmp fcn.00472419

Function at 0x4726a4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00422f60
xor eax, eax
mov dword [ebp - 0x4c], 0x7c
inc eax
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp + 8]
call fcn.00422d7c
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4726fb
xor al, al
jmp 0x4727ab
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
call fcn.004078ad
push dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
push esi
push dword [ebp - 0x3c]
call fcn.004078ad
push dword [ebp - 0x2c]
lea ecx, [ebx + 0x20]
push esi
push dword [ebp - 0x30]
call fcn.004078ad
push dword [ebp - 0x24]
lea ecx, [ebx + 0x30]
push esi
push dword [ebp - 0x28]
call fcn.004078ad
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x40]
push esi
push dword [ebp - 0x20]
call fcn.004078ad
push dword [ebp - 0x14]
lea esi, [ebx + 0x50]
push 0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004078ad
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x40]
call fcn.00457f03
push eax
lea ecx, [ebx + 0x60]
call fcn.004081a7
lea ecx, [ebp - 0x10]
call fcn.00405a64
mov ax, word [ebp - 0x34]
mov word [ebx + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x74], eax
dec eax
je 0x4727a0
dec eax
je 0x472797
mov dword [ebx + 0x70], 3
jmp 0x4727a7
mov dword [ebx + 0x70], 2
jmp 0x4727a7
mov dword [ebx + 0x70], 1
pop edi
mov al, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8