joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov byte [ebp - 0x21], al
lea ecx, [ebx + 0x768]
call fcn.0051c4e0
mov ecx, dword [ebp + 8]
cmp ecx, eax
jl 0x4e26c3
mov byte [ebp - 0x21], 1
jmp 0x4e2780
mov edi, dword [ebx + ecx*4 + 0x76c]
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x28], esi
cmp esi, dword [0x75dc70]
jge 0x4e2777
push esi
mov ecx, 0x75dc68
call fcn.004ce870
cmp edi, dword [eax]
jne 0x4e2771
push esi
mov ecx, 0x75dc68
call fcn.004ce870
add eax, 8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.004017e0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4e2713
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e2777
mov byte [ebp - 0x21], 0
lea ecx, [ebx + 0x5f0]
call fcn.004d6e50
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4e2738
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004e2280
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00620b8d
mov esp, ebp
pop ebp
ret 4
inc esi
jmp 0x4e26ce
cmp byte [ebp - 0x21], 0
je 0x4e2723
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebx + 0x768]
call fcn.0051c4f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x4e2753
Function at 0x4e63f0
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
mov eax, esi
and eax, 0x3ff
mov ecx, 9
cmp cx, ax
jne 0x4e64b4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov edx, esi
and edx, 0x3ff
mov eax, 9
cmp ax, dx
jne 0x4e64b4
push str.Kernel32
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4e6468
push str.Kernel32.dll
call fcn.00447cb0
mov edi, eax
add esp, 4
mov dword [esp + 0x10], 1
test edi, edi
je 0x4e64b4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push edi
call ebp
push 0x68e5e0
push edi
mov ebx, eax
call ebp
mov ebp, eax
test ebx, ebx
je 0x4e648b
call ebx
movzx esi, ax
mov ecx, esi
and ecx, 0x3ff
mov edx, 9
cmp dx, cx
jne 0x4e64a6
test ebp, ebp
je 0x4e64a6
call ebp
movzx esi, ax
cmp dword [esp + 0x10], 0
je 0x4e64b4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
and eax, 0x3ff
mov ecx, 9
cmp cx, ax
jne 0x4e655e
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call ebp
mov edi, eax
test edi, edi
je 0x4e655e
xor ecx, ecx
lea eax, [edi*4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e655e
push ebx
push edi
call ebp
xor edx, edx
test eax, eax
jbe 0x4e6549
xor ecx, ecx
lea esp, [esp]
movzx ecx, word [ebx + ecx*4]
mov edi, ecx
and edi, 0x3ff
mov ebp, 9
cmp bp, di
je 0x4e6541
inc dword [esp + 0x10]
movzx ecx, cx
mov dword [esp + 0x14], ecx
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x4e6520
push ebx
call fcn.005f4e52
add esp, 4
cmp dword [esp + 0x10], 1
jne 0x4e655e
movzx esi, word [esp + 0x14]
mov eax, esi
and eax, 0x3ff
cmp esi, 0x416
je 0x4e66bb
cmp esi, 0x403
je 0x4e66bb
mov edx, 0x16
cmp dx, ax
jne 0x4e6594
pop edi
pop esi
pop ebp
mov eax, 0x816
pop ebx
add esp, 8
ret
mov ecx, 0x3e
cmp cx, ax
jne 0x4e65ab
pop edi
pop esi
pop ebp
mov eax, 0x43e
pop ebx
add esp, 8
ret
cmp esi, 0x813
jne 0x4e65bd
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp esi, 0x804
je 0x4e66ae
cmp esi, 4
je 0x4e66ae
cmp esi, 0x7804
je 0x4e66ae
cmp esi, 0x1004
je 0x4e66ae
cmp esi, 0x181a
je 0x4e66a1
cmp esi, 0x701a
je 0x4e66a1
cmp esi, 0x7c1a
je 0x4e66a1
cmp esi, 0x2c1a
je 0x4e66a1
cmp esi, 0x241a
je 0x4e66a1
cmp esi, 0x81a
je 0x4e66a1
cmp esi, 0x1c1a
je 0x4e6694
cmp esi, 0x6c1a
je 0x4e6694
cmp esi, 0x301a
je 0x4e6694
cmp esi, 0x281a
je 0x4e6694
cmp esi, 0xc1a
je 0x4e6694
cmp esi, 0x141a
je 0x4e6687
cmp esi, 0x681a
je 0x4e6687
cmp esi, 0x781a
je 0x4e6687
cmp esi, 0x480
je 0x4e667a
cmp esi, 0x80
jne 0x4e66be
pop edi
pop esi
pop ebp
mov eax, 0x480
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x141a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xc1a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x81a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x804
pop ebx
add esp, 8
ret
movzx eax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4e6910
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x668e98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x14], cx
mov dword [esp + 0x28], ecx
mov edx, dword [0x75dd28]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00401970
mov edx, dword [esp + 0x10]
mov eax, edx
test edx, edx
jne 0x4e6987
lea eax, [esp + 0x14]
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e6990
sub eax, esi
sar eax, 1
mov ecx, edx
test edx, edx
jne 0x4e69a9
lea ecx, [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401210
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00620b8d
add esp, 0x1c
ret
Function at 0x4e7e80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x655656
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
xor eax, eax
mov dword [edi + 0x6c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x288], ebx
mov eax, dword [0x75dc58]
cmp eax, ebx
jne 0x4e7ee6
mov eax, 0x75dc5c
push ebx
push eax
push str._sLanguagesidm_.lng
lea ecx, [esp + 0x20]
call fcn.004021a0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4e7f02
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e7fa3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
xor edx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], dx
mov byte [esp + 0x288], 1
mov eax, dword [0x75dc58]
cmp eax, ebx
jne 0x4e7f45
mov eax, 0x75dc5c
push ebx
lea ecx, [esp + 0x5c]
push ecx
push eax
push str._sLanguages_s
lea ecx, [esp + 0x30]
call fcn.00402310
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4e7f66
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004e7790
lea edx, [esp + 0x2c]
push edx
push esi
call ebp
test eax, eax
je 0x4e7f8c
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.00401210
jmp 0x4e7f20
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.00401210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401210
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00620b8d
add esp, 0x278
ret
Function at 0x4f3930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6559ab
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0044ad90
mov ecx, esi
call fcn.004e7e80
mov ecx, esi
call fcn.004ecd60
mov edi, dword [esp + 0xb4]
mov ebx, 4
mov dword [esp + 0x18], ebx
test di, di
je 0x4f3a16
mov ecx, dword [0x75dbe4]
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.LIDwa
mov ebp, 1
push ecx
mov dword [esp + 0x2c], ebp
call ebx
push 0
push edi
mov ecx, esi
call fcn.004f36e0
mov ecx, dword [0x75dbe4]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
movzx edx, di
push str.LanguageID
push ecx
mov dword [esp + 0x34], edx
call ebx
cmp di, word [esi + 0x3c]
je 0x4f3af6
mov word [esi + 0x30], di
mov edi, dword [esp + 0xb8]
mov eax, edi
mov dword [esi + 0x2c], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f39f8
sub eax, edx
je 0x4f3a0c
push edi
lea ecx, [esi + 0x1c]
call fcn.0054f750
call fcn.0047d9f0
jmp 0x4f3af6
mov ecx, esi
call fcn.004e63f0
mov ecx, dword [0x75dbe4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
movzx edi, ax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.LanguageID
push ecx
call ebp
push 0
mov ecx, esi
test eax, eax
jne 0x4f3a59
mov edx, dword [esp + 0x18]
push edx
call fcn.004f36e0
jmp 0x4f3af6
push edi
call fcn.004f36e0
cmp dword [0x75dbcc], 0
jne 0x4f3af6
mov eax, 9
cmp ax, word [esi + 0x3c]
je 0x4f3af6
cmp dword [esi + 0x40], 0
je 0x4f3af6
mov eax, dword [0x75dbe4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.LIDwa
push eax
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
je 0x4f3af6
push 0
lea ecx, [esp + 0x28]
call fcn.0052ccb0
mov dword [esp + 0xac], 0
lea ecx, [esp + 0x24]
call fcn.005f6e33
mov edx, dword [0x75dbe4]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push str.LIDwa
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004e66d0
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8
Function at 0x4f4590
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6613d8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x4f4642
lea ecx, [esp + 0x24]
call fcn.004024f0
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402840
lea edx, [esp + 0x28]
push edx
mov esi, eax
push esi
push 0
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x4f4631
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f4610
sub eax, edx
cmp eax, 1
jbe 0x4f4631
mov eax, dword [esp + 0x2c]
push esi
push 0x678ea8
push eax
call fcn.00402f60
add esp, 0xc
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402560
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4f5840
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x655dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
push 0x68559c
push esi
mov ebp, ecx
call fcn.0062385d
mov edi, eax
add esp, 8
test edi, edi
jne 0x4f591f
call fcn.006263a4
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov word [esp + 0x2c], cx
mov dword [esp + 0x40], ecx
push ecx
push ecx
lea edx, [esp + 0x18]
push edx
push 0x400
push eax
push ecx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [0x75dd28]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x75f190]
push eax
push ecx
push esi
push edx
lea ecx, [esp + 0x38]
call fcn.00402310
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4f58f5
lea eax, [esp + 0x2c]
mov ecx, dword [0x75f1b0]
push 0x30
push ecx
push eax
push 0
call fcn.00473810
add esp, 0x10
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00401210
jmp 0x4f59d5
lea ecx, [esp + 0x14]
call fcn.004024f0
mov dword [esp + 0x40], 1
lea ecx, [esp + 0x1c]
call fcn.004c2300
mov byte [esp + 0x40], 2
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
mov dword [esp + 0x10], eax
je 0x4f59ad
add ebp, 8
mov edi, edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004f5650
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._ld__s_n_s_n
push edx
call fcn.00402f60
mov edx, dword [esp + 0x28]
mov eax, edx
add esp, 0x14
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5990
push edi
sub eax, esi
push eax
push 1
push edx
call fcn.00623715
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x4f5950
push edi
call fcn.00623537
add esp, 4
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x1c]
call fcn.004c2360
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00620b8d
add esp, 0x34
ret 4
Function at 0x4f5b70
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x655e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
push 0
mov ebp, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x14]
call fcn.004c2300
mov dword [esp + 0x194], 0
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
mov dword [esp + 0x20], eax
je 0x4f5c70
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.004f5650
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4f5c65
push 0x160
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00621270
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0x4411
push 0x160
lea ecx, [esp + 0x30]
push ecx
push 0x80
push edx
call ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004f5530
mov esi, eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00405900
lea eax, [esp + 0x18]
lea ecx, [esi + 4]
push eax
call fcn.00405900
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
cmp dword [esp + 0x20], 0
jne 0x4f5be3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4f5c90
push 0
push 0x1446
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esp + 0x194], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004c2360
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.00620b8d
add esp, 0x184
ret
Function at 0x4f61c0
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x164]
sub esp, 0x164
push 0xffffffffffffffff
push 0x655f60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x160], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0x16c]
mov eax, dword [ebp + 0x170]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea edi, [esi + 0x24]
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ecx, edi
call fcn.004f52e0
test eax, eax
je 0x4f6288
lea ecx, [ebp - 0x34]
call fcn.004c2300
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 8]
call fcn.004f55c0
test eax, eax
je 0x4f6274
mov ecx, dword [ebp - 0x30]
push ecx
push 0x678ea8
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004c2360
mov eax, dword [ebp - 0x14]
jmp 0x4f6354
push ebx
mov ecx, edi
call fcn.00423740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004c2360
inc dword [esi + 0x40]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
call fcn.004c2300
mov byte [ebp - 4], 2
push ebx
push 0x678ea8
lea eax, [ebp - 0x28]
push eax
call fcn.00402f60
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x160
push 0
lea ecx, [ebp]
push ecx
call fcn.00621270
add esp, 0xc
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0x110]
push ecx
push 0x678ea8
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f60
lea eax, [ebp + 0x110]
push eax
push 0x678ea8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402f60
add esp, 0x18
lea edx, [ebp - 0x28]
push edx
push edi
lea ecx, [esi + 8]
call fcn.004f5610
push ebx
mov ecx, dword [ebp - 0x1c]
call fcn.00423ad0
mov dword [eax], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004c2360
mov eax, edi
jmp 0x4f6354
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x160]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x164
mov esp, ebp
pop ebp
ret 8
Function at 0x4f6400
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x655fe8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CLastCatchedUrl.0
call fcn.004024f0
xor edi, edi
mov dword [esp + 0x18], edi
lea ecx, [esi + 0xc]
call fcn.004024f0
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x10]
call fcn.004024f0
mov byte [esp + 0x18], 2
lea ecx, [esi + 0x14]
call fcn.004024f0
mov byte [esp + 0x18], 3
lea ecx, [esi + 0x18]
call fcn.004024f0
mov byte [esp + 0x18], 4
lea ecx, [esi + 0x1c]
call fcn.004024f0
mov byte [esp + 0x18], 5
lea ecx, [esi + 0x28]
call fcn.004024f0
mov byte [esp + 0x18], 6
lea ecx, [esi + 0x2c]
call fcn.004024f0
mov byte [esp + 0x18], 7
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x48], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4f7d20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x656260
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004f7970
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x40], 1
lea edx, [esp + 0x1c]
push edx
call fcn.006246b1
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push str._lu_n
push ecx
call fcn.00402f60
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, ebx
jne 0x4f7db0
lea eax, [esp + 0x2c]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f7dfb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push esi
call edi
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x2d08
add ebp, 0x48
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x40], bl
lea ecx, [esp + 0x14]
call fcn.00402560
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00401210
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00620b8d
add esp, 0x30
ret

Function at 0x4f93c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f93f2
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4f9410
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f941b
cmp dword [esp + 0x14], 0
ja 0x4f941b
test ebx, ebx
jne 0x4f942c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
push ebp
push esi
lea ebp, [ebx + 1]
push ebp
call fcn.005f4e47
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f9453
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
push ebp
push 0
push esi
call fcn.00621270
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4f94a7
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4f94a7
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004f8930
push esi
call fcn.005f4e52
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 8
ret 4
push esi
call fcn.005f4e52
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret 4
Function at 0x4fb7f0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push ebx
mov esi, ecx
call fcn.00403e40
push 0x2f
push ebx
mov dword [esp + 0x1c], eax
call fcn.00622170
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4fb8db
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fb820
sub eax, edx
lea eax, [eax + ebx - 2]
cmp ebp, eax
jae 0x4fb8db
mov eax, dword [esi + 8]
push edi
add ebp, 2
xor edi, edi
test eax, eax
jle 0x4fb895
xor ebx, ebx
test ebx, ebx
jl 0x4fb8fa
cmp edi, eax
jge 0x4fb8fa
test ebp, ebp
je 0x4fb8e4
mov ecx, dword [esi + 4]
mov eax, dword [ebx + ecx]
push ebp
push eax
call fcn.0062431a
add esp, 8
test eax, eax
jne 0x4fb886
cmp edi, dword [esi + 8]
jge 0x4fb8fa
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + ebx + 4]
je 0x4fb8ee
mov eax, dword [esi + 8]
inc edi
add ebx, 0xc
cmp edi, eax
jl 0x4fb844
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerMCN
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fb8da
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push 0x80004005
call fcn.00401090
push 1
push edi
mov ecx, esi
call fcn.004fb580
jmp 0x4fb891
call fcn.005f4f65
int3