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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c613
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
call fcn.0040cdc0
mov dword [ebp - 4], 8
mov edx, eax
push edi
lea ecx, [ebp - 0x34]
call fcn.004089d0
add esp, 4
mov byte [ebp - 4], 9
mov ecx, esi
push eax
call fcn.00409ab0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408c20
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40dc23
push dword [eax - 0xc]
mov ecx, esi
call fcn.004098d0
push dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40dd9c
lea ecx, [ebp - 0x34]
call fcn.0040cf90
mov dword [ebp - 4], 0xa
mov edx, eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.004089d0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, esi
push eax
call fcn.00409ab0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408c20
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40dc8d
push dword [eax - 0xc]
mov ecx, esi
call fcn.004098d0
push dword [esi]
call edi
test eax, eax
jne 0x40dd9c
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40dcb8
push ebx
lea ecx, [ebp - 0x34]
call fcn.00408d00
mov dword [ebp - 4], 0xc
mov ebx, 1
jmp 0x40dcec
lea eax, [ebp - 0x28]
push eax
call fcn.0040dab0
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], 2
jb 0x40dcd7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408c40
mov dword [ebp - 4], 0xe
mov ebx, 6
push eax
mov ecx, esi
mov dword [ebp - 0x30], ebx
call fcn.00409ab0
mov dword [ebp - 4], 0xd
test bl, 4
je 0x40dd11
and ebx, 0xfffffffb
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
call fcn.00408c20
mov dword [ebp - 4], 0xc
test bl, 2
je 0x40dd4c
and ebx, 0xfffffffd
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40dd38
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040f4b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40dd66
and ebx, 0xfffffffe
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call fcn.00408c20
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x40dd9c
push dword [ebp - 0x38]
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004089d0
add esp, 4
mov dword [ebp - 4], 0x12
mov ecx, esi
push eax
call fcn.00409ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408c20
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x40ddae
push dword [eax - 0xc]
mov ecx, esi
call fcn.004098d0
push dword [esi]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e5e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c7d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4cd378], 0
jne 0x40e790
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.DataPlugin.dll
mov byte [0x4cd378], 1
mov dword [0x4cb954], 0
call fcn.00408c40
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0041e750
add esp, 4
test eax, eax
je 0x40e660
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub esp, 8
push str.DataPlugin.dll
call fcn.0040e960
mov ecx, eax
call fcn.0040ddd0
mov edi, eax
test edi, edi
je 0x40e64d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LM_Store_Initd
push edi
call esi
push str.LM_Init_With
push edi
call esi
push str.LM_Initd
push edi
mov dword [0x4cba80], eax
call esi
push str.LM_Finish
push edi
mov dword [0x4cba6c], eax
call esi
push str.LM_TrackEvent
push edi
mov dword [0x4cba7c], eax
call esi
push str.LM_TrackEvent2
push edi
mov dword [0x4cba78], eax
call esi
push str.LM_TrackEventS
push edi
mov dword [0x4cba68], eax
call esi
push str.LM_SetDefaultChannle
push edi
mov dword [0x4cba64], eax
call esi
push str.LM_SetChannle
push edi
mov dword [0x4cba58], eax
call esi
push str.LM_SetAppKey
push edi
mov dword [0x4cba74], eax
call esi
push str.SetReportToUDSPSwitch
push edi
mov dword [0x4cba5c], eax
call esi
push str.LM_SetVersion
push edi
mov dword [0x4cba60], eax
call esi
cmp dword [0x4cba6c], 0
mov ecx, eax
mov dword [0x4cba70], ecx
je 0x40e790
cmp dword [0x4cba7c], 0
je 0x40e790
cmp dword [0x4cba78], 0
je 0x40e790
cmp dword [0x4cba68], 0
je 0x40e790
cmp dword [0x4cba64], 0
je 0x40e790
cmp dword [0x4cba58], 0
je 0x40e790
cmp dword [0x4cba74], 0
je 0x40e790
cmp dword [0x4cba5c], 0
je 0x40e790
cmp dword [0x4cba60], 0
je 0x40e790
mov eax, dword [0x4cb954]
test ecx, ecx
mov edx, 1
cmovne eax, edx
mov dword [0x4cb954], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4cb954]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412c30
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d739
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.00412680
mov ebx, eax
mov dword [ebp - 0x22c], 1
push ebx
mov dword [ebp - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4cd4ec]
cmp eax, dword [ecx + 4]
jle 0x412cef
push 0x4cd4ec
call fcn.0044b58d
add esp, 4
cmp dword [0x4cd4ec], 0xffffffff
jne 0x412cef
mov byte [ebp - 4], 2
mov ecx, 0x4cd4dc
call fcn.00408d30
push 0x497d10
call fcn.0044b9e8
mov byte [ebp - 4], 1
push 0x4cd4ec
call fcn.0044b54e
add esp, 8
mov eax, dword [0x4cd4dc]
cmp dword [eax - 0xc], 0
jne 0x412db6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004640b0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0
push 0x23
push eax
push 0
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d32
sub ecx, edx
sar ecx, 1
jne 0x412d52
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x4a69bc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0046b924
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x412d8c
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412d95
sub edx, edi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, 0x4cd4dc
push edx
push eax
call fcn.0040a2a0
push 0x4cd4dc
mov ecx, esi
call fcn.00408d00
mov dword [ebp - 0x21c], 1
mov byte [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
Function at 0x41b1f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e6b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x41b332
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b332
lea eax, [ebx + 0x10]
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00408d30
mov byte [ebp - 4], 3
lea edx, [ebp + 8]
mov ecx, esi
call fcn.0041a860
test al, al
je 0x41b2f2
lea ecx, [ebp + 8]
call fcn.0040ef90
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x41b29a
push str.lenovo
push eax
call fcn.00463a2e
add esp, 8
test eax, eax
je 0x41b29a
sub eax, dword [edi]
sar eax, 1
jns 0x41b2ee
lea ecx, [ebp + 8]
call fcn.0040ef90
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x41b2c4
push str.microsoft
push eax
call fcn.00463a2e
add esp, 8
test eax, eax
je 0x41b2c4
sub eax, dword [edi]
sar eax, 1
jns 0x41b2ee
lea ecx, [ebp + 8]
call fcn.0040ef90
mov edi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x41b2f2
push str.huorong
push eax
call fcn.00463a2e
add esp, 8
test eax, eax
je 0x41b2f2
sub eax, dword [edi]
sar eax, 1
js 0x41b2f2
mov bl, 1
jmp 0x41b2fc
push esi
mov ecx, ebx
call fcn.0041b370
mov bl, al
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push 0x242
push str.DigitalCertify.cpp
push str.file_not_exit._check_signature_error:_s
push 3
call fcn.0040bb40
push eax
call fcn.0040bdd0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41bc80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 2
mov dword [ebp - 0x234], edx
mov edi, ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bcca
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41bd1c
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0046e5a0
add esp, 8
test eax, eax
je 0x41bd36
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call esi
test eax, eax
jne 0x41bcf0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x234]
lea esi, [ebp - 0x230]
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0044b43a
mov esp, ebp
pop ebp
ret

Function at 0x41d8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e898
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x5000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408d30
mov byte [ebp - 4], 3
push 0x5000
call fcn.0044bc96
add esp, 4
mov esi, eax
test esi, esi
je 0x41d972
push 0x5000
push 0
push esi
call fcn.004640b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x20119
push 0
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d969
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d960
push esi
mov ecx, edi
call fcn.00408bd0
mov bl, 1
mov byte [ebp - 0x11], bl
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0044bc91
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408c20
mov dword [ebp - 4], 1
jmp 0x41d997
movzx esi, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 4], 1
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x5000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00408d30
mov byte [ebp - 4], 3
push 0x5000
call fcn.0044bc96
add esp, 4
mov esi, eax
test esi, esi
je 0x41daae
push 0x5000
push 0
push esi
call fcn.004640b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
cmp dword [ebp + 0x10], 0
je 0x41da5b
push 0x20119
jmp 0x41da60
push 0x20019
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41daa5
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41da9c
push esi
mov ecx, edi
call fcn.00408bd0
mov bl, 1
mov byte [ebp - 0x11], bl
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0044bc91
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00408c20
mov dword [ebp - 4], 1
jmp 0x41dad3
movzx esi, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e060
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e9dc
mov eax, dword fs:[0]
push eax
sub esp, 0x364
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4cd534]
cmp eax, dword [edx + 4]
jle 0x41e0ea
push 0x4cd534
call fcn.0044b58d
add esp, 4
cmp dword [0x4cd534], 0xffffffff
jne 0x41e0ea
mov dword [ebp - 4], 0
mov ecx, 0x4cd538
call fcn.00408d30
push 0x497d90
call fcn.0044b9e8
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x4cd534
call fcn.0044b54e
add esp, 4
mov eax, dword [0x4cd538]
cmp dword [eax - 0xc], 0
jle 0x41e101
push 0x4cd538
mov ecx, ebx
jmp 0x41e1d9
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x10]
push eax
push 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
je 0x41e11f
cmp eax, 0x6f
jne 0x41e142
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41e142
lea eax, [ebp - 0x10]
push eax
push edi
call esi
test eax, eax
je 0x41e156
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, edi
nop dword [eax + eax]
push 0x35a
lea eax, [ebp - 0x36e]
push 0
push eax
call fcn.004640b0
mov eax, dword [ebp - 0x16c]
add esp, 0xc
cmp eax, 1
je 0x41e186
cmp eax, 0x18
jne 0x41e18e
mov esi, dword [esi]
test esi, esi
jne 0x41e160
jmp 0x41e1cc
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push 0x4a825c
push ebx
call fcn.0040a450
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
mov ecx, 0x4cd538
call fcn.00409ab0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], 0x104
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x11c], 1
push edi
push 0x4a6c78
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e5bf
push esi
lea eax, [ebp - 0x10c]
push str._sConnection
push eax
call fcn.00418540
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41e5d1
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e640
push 3
lea eax, [ebp - 0x10c]
push 0x4a6d38
push eax
call fcn.0046ece0
add esp, 0xc
test eax, eax
je 0x41e63b
push 3
lea eax, [ebp - 0x10c]
push 0x4a6d3c
push eax
call fcn.0046ece0
add esp, 0xc
test eax, eax
jne 0x41e640
mov edi, 1
push dword [ebp - 0x114]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x110]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044b43a
mov esp, ebp
pop ebp
ret
Function at 0x420fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eec8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x421107
cmp byte [ebx + 0x3e], 0
je 0x421107
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x42103f
xor al, al
jmp 0x421109
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0041bd70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408690
lea ecx, [ebp - 0x28]
mov esi, dword [eax]
lea eax, [ebp - 0x34]
push eax
call fcn.00408690
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
call fcn.00401750
mov ecx, dword [ebx + 0x38]
add eax, esi
lea esi, [ebp - 0x2c]
push esi
push eax
mov edx, dword [ecx]
lea eax, [ebx + 0x40]
push edi
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42109d
sub eax, 1
je 0x4210a1
sub eax, 2
je 0x4210f2
xor bl, bl
jmp 0x4210f4
mov byte [ebx + 0x3e], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408690
mov esi, dword [ebp - 0x2c]
sub esi, dword [eax]
je 0x4210d4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408690
push dword [ebx + 0x4c]
push esi
push 1
push dword [eax]
call fcn.004702b3
add esp, 0x10
cmp esi, eax
jne 0x421099
cmp byte [ebx + 0x3e], 0
je 0x4210f2
test esi, esi
jne 0x421052
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004178d0
jmp 0x421052
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408790
mov al, bl
jmp 0x421109
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret

Function at 0x421340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ef58
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00417b00
mov dword [ebp - 4], 0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x48], 0
mov byte [esi + 0x3e], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x4cd53c]
mov dword [esi + 0x40], eax
mov eax, dword [0x4cd540]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4222b0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f108
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408d00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x42230b
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004098d0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408c20
test esi, esi
je 0x42245b
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x422359
sub esp, 8
push 3
push ecx
push 1
push 1
push dword [ebp + 8]
call fcn.004221b0
jmp 0x422371
push 0
push 0x80
push 3
push 0
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x42238a
call fcn.00422190
test eax, eax
jne 0x4223bc
mov eax, dword [ebp - 0x24]
jmp 0x42238d
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4223c6
call fcn.00422190
test eax, eax
jns 0x4223c3
je 0x4223ce
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4223bc
push eax
call edi
mov dword [ebp - 0x24], 0
xor esi, esi
jmp 0x422446
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x4223e2
push 1
push eax
call fcn.0044b9fd
add esp, 8
mov edi, dword [ebx]
inc edi
push edi
call fcn.0044bc96
mov esi, eax
add esp, 4
test esi, esi
je 0x422402
push edi
push 0
push esi
call fcn.004640b0
add esp, 0xc
jmp 0x422404
xor esi, esi
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov eax, dword [ebx]
inc eax
push eax
push 0
push esi
call fcn.004640b0
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebx]
push dword [edi]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42243b
call fcn.00422190
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42245b
push eax
call edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret