joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
push 2
push 4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x10]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x220], eax
push 0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x220]
mov eax, dword [edx + 0x138]
call eax
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4d0b30
call fcn.004bfce0
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x5139c0
lea eax, [ebp - 0x210]
push eax
call fcn.0044ac1a
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call fcn.00485120
add esp, 4
cdq
mov ecx, 0x15180
idiv ecx
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jle 0x4d0ba3
mov edx, dword [ebp - 0x214]
cmp edx, dword [ebp - 0x218]
jge 0x4d0ba3
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
push 0
push 0
push 2
push 4
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax + 0x110]
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret

Function at 0x4d1a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4d1a3a
xor al, al
jmp 0x4d1a74
lea eax, [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4d1a68
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4d1a74
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d2500
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x438]
call fcn.00419540
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00419540
mov byte [ebp - 4], 1
push 0x2001f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00419460
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0
jmp 0x4d2582
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x440], 0
jne 0x4d26e0
mov dword [ebp - 0x430], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4d26db
cmp dword [ebp + 0x20], 0
je 0x4d25f8
mov ecx, dword [ebp + 0x20]
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.0044b463
add esp, 8
test eax, eax
jne 0x4d25f8
jmp 0x4d2573
push 0x2001f
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00419460
test eax, eax
jne 0x4d26db
mov dword [ebp - 0x430], 0x104
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004193a0
test eax, eax
jne 0x4d26db
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.0044b463
add esp, 8
test eax, eax
jne 0x4d26db
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00448da2
add esp, 4
add eax, 1
mov dword [ebp - 0x430], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x430]
cmp eax, dword [edx]
ja 0x4d2698
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.0044ac48
add esp, 8
jmp 0x4d26a0
xor eax, eax
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x430]
mov dword [edx], eax
mov dword [ebp - 0x444], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00419520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00419520
mov eax, dword [ebp - 0x444]
jmp 0x4d270e
jmp 0x4d2573
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00419520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00419520
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4d2730
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebabe
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x648], ecx
mov dword [ebp - 0x220], 0x104
push 0x5143d0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x5143e0
push 0x5143f0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d2500
add esp, 0x1c
test eax, eax
je 0x4d27ce
lea edx, [ebp - 0x21c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486170
add esp, 8
mov dword [ebp - 0x220], 0x104
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x5144e0
push 0x5144f0
push str.InstallerProducts
push SysReAllocStringLen
call fcn.004d2500
add esp, 0x1c
test eax, eax
je 0x4d2953
lea ecx, [ebp - 0x21c]
push ecx
push str.InstallerProducts_s
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push SysReAllocStringLen
call fcn.00486170
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
push str.InstallerFeatures_s
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push SysReAllocStringLen
call fcn.00486170
add esp, 8
lea ecx, [ebp - 0x63c]
call fcn.00419540
mov dword [ebp - 4], 0
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x63c]
call fcn.00419460
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], 0
jmp 0x4d28b9
mov ecx, dword [ebp - 0x640]
add ecx, 1
mov dword [ebp - 0x640], ecx
cmp dword [ebp - 0x644], 0
jne 0x4d2941
mov dword [ebp - 0x220], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x634]
push eax
mov ecx, dword [ebp - 0x640]
push ecx
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
jne 0x4d293c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x634]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserData_sProducts_s
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486170
add esp, 8
jmp 0x4d28aa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x63c]
call fcn.00419520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4d2b60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef725
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
cmp dword [ebp + 8], 0
je 0x4d2ba5
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xb4], eax
jmp 0x4d2baf
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0xb0]
add ecx, 0x1c
je 0x4d2bcb
mov edx, dword [ebp - 0xb0]
add edx, 0x20
mov dword [ebp - 0xb8], edx
jmp 0x4d2bd5
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.00407b10
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00417720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00414bf0
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
lea ecx, [ebp - 0x50]
call fcn.00414990
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.0048dce0
add esp, 8
push 0
lea ecx, [ebp - 0x50]
push ecx
call fcn.0048ded0
add esp, 8
movzx edx, al
test edx, edx
je 0x4d2d0a
lea eax, [ebp - 0x50]
test eax, eax
je 0x4d2c78
lea ecx, [ebp - 0x50]
add ecx, 4
mov dword [ebp - 0xc4], ecx
jmp 0x4d2c82
mov dword [ebp - 0xc4], 0
push str..del
mov edx, dword [ebp - 0xc4]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00407a80
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x70]
call fcn.00417720
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.00414bf0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00413e50
push eax
lea ecx, [ebp - 0x4c]
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [ebp - 0x6c]
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00414a10
push 1
push 0
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0048df40
add esp, 0x14
movzx edx, al
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 4
Function at 0x4d2ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef7ae
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4d2f07
cmp dword [ebp + 8], 0
jne 0x4d2f0e
xor al, al
jmp 0x4d30ce
push 8
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044aec0
add esp, 0xc
mov cx, word [0x5142a8]
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0044aec0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x5142ac
lea edx, [ebp - 0x21c]
push edx
call fcn.0044ac1a
add esp, 8
lea ecx, [ebp - 0x241]
call fcn.0040b800
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.00414c40
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.0048ded0
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x21d], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00414a10
movzx eax, byte [ebp - 0x21d]
test eax, eax
je 0x4d3076
push 0x5142c8
mov ecx, dword [ebp + 8]
push ecx
push 0x5142e4
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x265]
call fcn.0040b800
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00414c40
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x264]
push ecx
call fcn.0048ded0
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x242], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00414a10
movzx eax, byte [ebp - 0x242]
test eax, eax
je 0x4d3076
mov ecx, dword [ebp + 8]
push ecx
push str._sDataBabylon.dat
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x289]
call fcn.0040b800
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x288]
call fcn.00414c40
mov dword [ebp - 4], 2
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x288]
push edx
call fcn.0048db70
add esp, 0xc
mov byte [ebp - 0x266], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.00414a10
mov al, byte [ebp - 0x266]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4d7490
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb810
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5392a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00419540
mov dword [ebp - 4], 0
push 0
push 0
push 0x2001f
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041d020
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4d7500
lea ecx, [ebp - 0x14]
call fcn.004194d0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419520
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d8a30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d270
add esp, 8
mov byte [ebp - 9], al
movzx edx, byte [ebp - 9]
test edx, edx
je 0x4d8b25
mov eax, dword [ebp - 4]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d8b08
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x102
jne 0x4d8b06
cmp dword [ebp + 0x10], 0
je 0x4d8b06
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_close__s_process__timeout_going_to_termination
push 0xc0b70004
call fcn.00418990
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d8ae9
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4d8b06
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_open__s_process_for_termination
push 0xc0b70004
call fcn.00418990
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4d8b25
mov edx, dword [ebp + 8]
push edx
push str.Failed_to_open__s_process_for_waiting
push 0xc0b70004
call fcn.00418990
add esp, 0xc
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4d8d40
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4d8d67
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x4d8d93
movzx edx, byte [ebp + 0xc]
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 8]
cmp edx, ecx
je 0x4d8d93
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov al, byte [ebp + 0xc]
mov byte [edx + 8], al
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x4d8dcf
movzx edx, byte [ebp + 0xc]
neg edx
sbb edx, edx
and edx, 0xf0000000
add edx, 0x10000000
push edx
push 0
push 0
push 0
push 0x5158f4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x4d8e0c
push 4
lea eax, [ebp + 0x10]
push eax
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x80080000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx + 4], 0
setne al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d9040
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef94b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5392a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00416df0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00417070
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.BDownloader.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], vtable.BDownloader.1.0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x31], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x32], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004200f0
mov byte [ebp - 4], 1
mov ecx, dword [0x595b3c]
and ecx, 0x10
setne dl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x31], dl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4db860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9b6
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or eax, 0xffffffff
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
lea ecx, [ebp - 0x51]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x50]
call fcn.004148f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x52]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x30]
call fcn.004148f0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00481370
mov ecx, eax
call fcn.00481420
movzx edx, al
test edx, edx
je 0x4db92c
push 5
push 0
lea ecx, [ebp - 0x2c]
call fcn.00413e50
push eax
lea ecx, [ebp - 0x4c]
call fcn.00413e50
push eax
push 0x515bac
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov eax, dword [ebp - 0x58]
jmp 0x4db96d
push 5
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push str.open
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4dd830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1a03
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x28]
call fcn.0043ead0
mov eax, dword [ebp + 0x28]
push eax
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp + 8]
push edx
call fcn.00414990
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0043e900
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
push ecx
push 0x4dd730
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 0x28]
call fcn.004333f0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0042e490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00414a10
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 0x24
Function at 0x4dd900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1a38
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax]
test ecx, ecx
je 0x4dda17
lea ecx, [ebp - 0x51]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x50]
call fcn.004148f0
mov dword [ebp - 4], 0
push str.__restore_last_session
push 0x13
lea edx, [ebp - 0x30]
push edx
call fcn.00481370
mov ecx, eax
call fcn.004812b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.0047ef90
add esp, 4
test eax, eax
jne 0x4dd9a3
mov dword [ebp - 0x58], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov eax, dword [ebp - 0x58]
jmp 0x4dda19
push 0x5054f8
lea ecx, [ebp - 0x4c]
call fcn.00410d00
push 1
push 0
lea ecx, [ebp - 0x2c]
call fcn.00413e50
push eax
lea ecx, [ebp - 0x4c]
call fcn.00413e50
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x4dd9fc
mov dword [ebp - 0x5c], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov eax, dword [ebp - 0x5c]
jmp 0x4dda19
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret