joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf91
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x5889a2
call fcn.00475b46
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.0040306a
push ebx
lea ecx, [ebp - 0x428]
call fcn.0040306a
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d0ab
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0048d110
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d092
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x40d0a3
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x40d195
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.0040306a
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.0040306a
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d195
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0048d110
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d184
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x40d195
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.004019e0
mov eax, esi
call fcn.00475af0
ret
Function at 0x40d613
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40d6a6
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0048d110
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40d6a6
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40d68f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040a29b
pop ecx
pop ecx
test al, al
jne 0x40d695
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d66f
jmp 0x40d69b
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40d6a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755fc
leave
ret
Function at 0x415748
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x5897ba
call fcn.00475b46
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004152bd
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41577a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x58eebc
call fcn.0040306a
push 0x58eec0
mov ecx, esi
call fcn.0040306a
push 0x58e084
mov ecx, esi
call fcn.0040306a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004016b0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4157cf
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415867
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048d110
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00415191
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415826
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040306a
push 0x58e084
mov ecx, esi
call fcn.0040306a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004016b0
cmp dword [esi + 0x14], 8
jb 0x41586f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415887
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x58eebc
call fcn.0040306a
push 0x58eec0
mov ecx, esi
call fcn.0040306a
push 0x58e084
mov ecx, esi
call fcn.0040306a
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0041531c
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ab10
lea ecx, [ebp - 0x248]
call fcn.004019e0
lea ecx, [ebp - 0x230]
call fcn.004019e0
call fcn.00475af0
ret
Function at 0x416b32
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x589948
call fcn.00475b46
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x416b53
push dword [esi + 0x1c]
call fcn.004a0a2f
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00415ed5
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00499e29
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x416bd7
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00415ed5
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00415ed5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004019e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004019e0
sub edi, 1
jns 0x416b81
mov ecx, esi
call fcn.004169d1
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004019e0
call fcn.00475af0
ret

Function at 0x416bf0
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x589948
call fcn.00475b46
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x416c11
push dword [esi + 0x1c]
call fcn.004a0a2f
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00415ed5
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00499e29
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x416c95
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00415ed5
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00415ed5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004019e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004019e0
sub edi, 1
jns 0x416c3f
mov ecx, esi
call fcn.00416a68
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004019e0
call fcn.00475af0
ret

Function at 0x417ef0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x418717
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0048d110
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004186cc
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x418796
cmp dword [ebp - 0x118], ebx
jbe 0x4187dc
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4187dc
cmp eax, 6
jne 0x4187c1
cmp byte [ebp - 6], 1
jne 0x4187bc
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4187b8
sub eax, 1
je 0x4187b4
push 7
jmp 0x4187be
push 5
jmp 0x4187be
push 3
jmp 0x4187be
push 4
pop ebx
jmp 0x4187dc
push 0xa
pop ecx
cmp eax, ecx
jne 0x4187d9
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4187dc
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004755fc
leave
ret

Function at 0x419c54
Capabilities:
Check if file exists

Disassembly:
push 0x68
mov eax, 0x589da2
call fcn.00475b46
mov esi, ecx
cmp dword [esi + 0x10], 0
ja 0x419cd9
lea eax, [ebp - 0x28]
push str.APPDATA_HTTP_CACHE_FOLDER
push eax
call fcn.004066b3
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.0040ff17
mov ecx, eax
call fcn.00412dd3
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x419c9a
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x419ca2
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x40]
push 0x58ecd4
push eax
call fcn.00409f65
add esp, 0x10
mov ecx, esi
push eax
call fcn.00409dbb
lea ecx, [ebp - 0x40]
call fcn.004019e0
lea ecx, [ebp - 0x58]
call fcn.004019e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004019e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x419ce3
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419cff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x419cf8
mov eax, dword [esi]
push eax
call fcn.0041d765
pop ecx
cmp dword [esi + 0x28], 0
ja 0x419d36
push 0
sub esp, 0x18
mov eax, esp
push 0x58e030
push eax
call fcn.00406611
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0040a883
add esp, 0x20
lea ecx, [esi + 0x18]
push eax
call fcn.00405bc6
lea ecx, [ebp - 0x28]
call fcn.00407c6b
cmp dword [esi + 0x40], 0
ja 0x419d6d
push 0
sub esp, 0x18
mov eax, esp
push str.RESPONES_DW_CBC_CHAIN
push eax
call fcn.00406611
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
call fcn.0040a883
add esp, 0x20
lea ecx, [esi + 0x30]
push eax
call fcn.00405bc6
lea ecx, [ebp - 0x70]
call fcn.00407c6b
call fcn.00475af0
ret
Function at 0x41a94d
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x589ff9
call fcn.00475b46
push 0x67
push 0x6f
push 0x6c
push 0x74
pop eax
push eax
push 0x6e
push 0x65
push eax
push 0x6e
push 0x6f
push 0x43
push 0x70
push eax
push eax
push 0x48
push 0x77
push 0x6f
push 0x68
push 0x53
lea eax, [ebp - 0x40]
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c._c_c_c
push eax
call fcn.00409f65
add esp, 0x50
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x58eebc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040306a
push 0x58eec0
lea ecx, [ebp - 0x28]
call fcn.0040306a
push 0x58e084
lea ecx, [ebp - 0x28]
call fcn.0040306a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004016b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.004019e0
lea ecx, [ebp - 0x40]
call fcn.004019e0
mov al, bl
call fcn.00475af0
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x41ab16
cmp dword [ebp + 0xc], 0
je 0x41ab16
push 0
push 0x80
push 3
push 0
push 5
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41aaab
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ab19
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x41aaa3
jb 0x41aac7
push 8
pop eax
jmp 0x41ab19
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aad3
mov dword [eax], edi
inc esi
push esi
call fcn.00475cf1
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.0048d110
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x41aaa3
cmp dword [ebp + 8], edi
jne 0x41ab16
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41ab19
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x41ab1d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x41ac2e
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x41ac2d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41ab4c
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x41ac2d
push 0x60ec82
push eax
call fcn.004760ad
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x41ac2d
cmp dword [esi + 0x14], 0x10
jb 0x41ab81
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x41ac1b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ac1b
mov eax, dword [ebp - 0x10]
push 0x60ec82
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.004760ad
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ac1b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41abe4
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0040983a
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ac19
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00407df7
mov bl, 1
push esi
call fcn.00475cec
pop ecx
test edi, edi
je 0x41ac2d
push edi
call fcn.00475cec
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x41ac34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x41ac97
xor edi, edi
cmp word [eax], di
je 0x41ac97
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ac6d
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41ac8c
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41ac9a
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x41ad1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
push 0x58f168
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x41ad9d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58f1b0
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x41ad9d
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x41ad9f
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x41adc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.0048d110
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41ae8b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41ae7f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x41aeb0
cmp edi, reloc.WS2_32.dll_bind
jne 0x41aeb0
cmp ebx, 0x20019
jne 0x41aeb0
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x41ae15
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004755fc
leave
ret
Function at 0x41c49d
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x58a168
call fcn.00475b12
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x41c4bc
mov eax, 0x80004003
jmp 0x41c58f
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c4e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c58f
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x41c4de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, ebx
ja 0x41c58c
cmp edi, 0xffffffff
jae 0x41c58c
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041d377
mov ebx, dword [ebp - 0x28]
cmp edi, ebx
mov edi, dword [ebp - 0x2c]
jne 0x41c578
xor eax, eax
cmp dword [ebp - 0x10], eax
jne 0x41c578
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c559
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c574
cmp dword [ebp + 8], ebx
je 0x41c563
push 0x26
pop esi
jmp 0x41c57d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
call fcn.0041c284
mov esi, eax
jmp 0x41c57d
mov esi, 0x8007000e
test edi, edi
je 0x41c588
push edi
call fcn.00491396
pop ecx
mov eax, esi
jmp 0x41c58f
xor eax, eax
inc eax
call fcn.00475adb
ret 4

Function at 0x41d0aa
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x58a222
call fcn.00475b12
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d155
xor edi, edi
cmp word [eax], di
je 0x41d155
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d0f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d15a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0041cf2c
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
js 0x41d146
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41d13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41d146
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test edi, edi
je 0x41d151
push edi
call fcn.00491396
pop ecx
mov eax, esi
jmp 0x41d15a
mov eax, 0x80070057
call fcn.00475adb
ret 0xc
Function at 0x41d765
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x41d777
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00475cf1
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.0048d110
push dword [ebp + 8]
push esi
push ebx
call fcn.00499aea
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x41d7fc
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x41d7f1
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d7ea
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d7f8
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x41d7c7
jmp 0x41d7fc
mov byte [ebp - 1], 0
push ebx
call fcn.00475cec
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d80b
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x58a270
call fcn.00475b46
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x41d8f2
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.0041d73e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41d8f2
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00475cf1
push esi
mov ebx, eax
push 0
push ebx
call fcn.0040af5b
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41d8eb
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00495207
add esp, 0xc
test eax, eax
je 0x41d8e0
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41d8cb
movzx eax, word [esi]
test ax, ax
je 0x41d8eb
jmp 0x41d8a9
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0041d73e
push ebx
call fcn.00475cec
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00409d58
lea ecx, [ebp - 0x40]
call fcn.004019e0
lea ecx, [ebp - 0x28]
call fcn.004019e0
mov eax, edi
call fcn.00475af0
ret