joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c3d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6c3d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6c3d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6c3d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6c3d94
push eax
push esi
call fcn.006c620b
add esp, 8
pop esi
ret 0x10

Function at 0x6c3da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c3e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6c3e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6dc320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006c5dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6c3dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6c3e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c3ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6c3eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6dc320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006c5dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6c3eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6c3e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6c4000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6c4131
push esi
call fcn.006c7145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006b6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6c4131
push 0
push ebp
call fcn.006b63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006b6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6c408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006b62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6c4121
push 0x6dc918
push edi
call fcn.006c53f0
push eax
push ebx
push esi
call fcn.006c3f60
push 0x6dc8f8
push edi
call fcn.006c53f0
push eax
push ebx
push esi
call fcn.006c3f60
push 0x6dc8d8
push edi
call fcn.006c53f0
push eax
push ebx
push esi
call fcn.006c3f60
push 0x6dc8c0
push edi
call fcn.006c53f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006c3f60
push 0x6dc8a0
push edi
call fcn.006c53f0
push eax
push ebx
push esi
call fcn.006c3f60
push 0x6dc888
push edi
call fcn.006c53f0
push eax
push ebx
push esi
call fcn.006c3f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6c51b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006c5140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006c5140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006c5140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006c5140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6c5bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6c5c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6d787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6c5c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6c5c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401fc0
Capabilities:
Check if file exists
Enumerate processes
Get file attributes
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x47b452
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x49a6f0]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
mov dword [esp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
mov dword [esp + 0x1c], ebp
mov byte [ebp + 4], 0
push 0
mov dword [esp + 0x470], 0
push 2
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x4021d9
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4021d2
lea ecx, [esp + 0x44]
push 0x483c38
push ecx
call fcn.004763c3
add esp, 8
test eax, eax
je 0x4020c2
lea edx, [esp + 0x44]
push str.pd.exe
push edx
call fcn.004763c3
add esp, 8
test eax, eax
je 0x4020c2
lea eax, [esp + 0x44]
push str.ltm.exe
push eax
call fcn.004763c3
add esp, 8
test eax, eax
je 0x4020c2
lea ecx, [esp + 0x44]
push str.nos.exe
push ecx
call fcn.004763c3
add esp, 8
test eax, eax
jne 0x4021bf
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40219e
push 0x104
lea eax, [esp + 0x35d]
push 0
push eax
mov byte [esp + 0x364], 0
call fcn.00460ae0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x35c]
push ecx
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edi, 0x483c32
lea esi, [esp + 0x358]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402193
push 0x104
push edx
lea eax, [esp + 0x259]
push eax
mov byte [esp + 0x25c], dl
call fcn.00460ae0
lea ecx, [esp + 0x25c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x35c]
call fcn.00401cf0
add esp, 4
lea edx, [esp + 0x250]
push 0x5c
push edx
call fcn.0045b100
add esp, 8
test eax, eax
je 0x402193
lea ecx, [esp + 0x250]
sub eax, ecx
mov edx, ecx
push eax
push edx
mov ecx, ebp
call fcn.00402ed0
push 7
push 0x483c78
mov eax, ebp
call fcn.00403930
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov eax, ebp
call fcn.00402fa0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4021d2
push 0
push 0x483c32
mov ecx, ebp
call fcn.00402ed0
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402066
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0045b0e4
add esp, 0x45c
ret
Function at 0x402210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47a1fd
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x49a6f0]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a4]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edx, 0xf
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov byte [ebp + 4], bl
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], vtable.CLmMv_struct_ns_config::_tagInterProcessParamEx_.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [esp + 0x1b8], eax
push 0x26
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], ebx
push str.897184E9_DF31_4542_A244_3CBBA1334575
mov byte [ecx + 4], bl
call fcn.00402ed0
lea esi, [esp + 0x30]
call fcn.004031a0
cmp al, bl
je 0x402350
push 0x5b
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.00460ae0
push 0x104
lea ecx, [esp + 0x98]
push ebx
push ecx
call fcn.00460ae0
mov esi, dword [esp + 0x34]
add esp, 0x18
cmp esi, ebx
je 0x4022f3
mov ecx, 0x58
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x88]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402300
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
mov ecx, ebp
call fcn.00402ed0
push 6
push str.SERVER
mov eax, ebp
call fcn.00403930
cmp dword [ebp + 0x18], 0x10
jb 0x402334
mov eax, dword [ebp + 4]
jmp 0x402337
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402350
push ebx
push 0x483c32
mov ecx, ebp
call fcn.00402ed0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40235f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40236e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0045b0e4
add esp, 0x18c
ret
Function at 0x404c30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x49a6f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], bl
call fcn.00460ae0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0xc
push ebx
push 0x19
lea ecx, [esp + 0x18]
push ecx
push ebx
call edi
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x404c80
mov edx, dword [str.360]
mov ecx, dword [0x483d20]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [eax], edx
mov edx, dword [0x483d24]
mov dword [eax + 4], ecx
mov ecx, dword [0x483d28]
mov dword [eax + 8], edx
mov dx, word [0x483d2c]
mov dword [eax + 0xc], ecx
mov cl, byte [0x483d2e]
mov word [eax + 0x10], dx
lea edx, [esp + 0x10]
push edx
mov byte [eax + 0x12], cl
call ebp
cmp eax, 0xffffffff
je 0x404d01
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404ce7
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402ed0
jmp 0x404d73
push ebx
push 0x10
lea ecx, [esp + 0x18]
push ecx
push ebx
call edi
lea eax, [esp + 0x10]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x404d13
mov edx, dword [str.360]
mov ecx, dword [0x483d20]
mov dword [eax], edx
mov edx, dword [0x483d24]
mov dword [eax + 4], ecx
mov ecx, dword [0x483d28]
mov dword [eax + 8], edx
mov dx, word [0x483d2c]
mov dword [eax + 0xc], ecx
mov cl, byte [0x483d2e]
mov word [eax + 0x10], dx
lea edx, [esp + 0x10]
push edx
mov byte [eax + 0x12], cl
call ebp
cmp eax, 0xffffffff
mov ecx, esi
je 0x404d69
lea eax, [esp + 0x10]
push eax
jmp 0x404d6e
push 0x483c32
call fcn.00402de0
mov ecx, dword [esp + 0x114]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0045b0e4
add esp, 0x10c
ret

Function at 0x404d90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x49a6f0]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404e2c
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404e25
lea ecx, [esp + 0x30]
push str.explorer.exe
push ecx
call fcn.004763c3
add esp, 8
test eax, eax
jne 0x404dee
lea edx, [esp + 0x14]
push edx
jmp 0x404e11
lea eax, [esp + 0x30]
push str.svchost.exe
push eax
call fcn.004763c3
add esp, 8
test eax, eax
jne 0x404e16
cmp edi, 2
jge 0x404e16
lea ecx, [esp + 0x14]
add edi, 1
push ecx
call fcn.00406640
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404dd1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b0e4
add esp, 0x238
ret
Function at 0x40e7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c431
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push 1
push eax
push ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], 1
call fcn.0040e8c0
push eax
push esi
call fcn.00446910
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0xc], 1
je 0x40e833
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40ed50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47ab2e
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x49a6f0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1ac]
xor ebx, ebx
push 0x103
mov dword [esp + 0x1a8], ebx
lea eax, [esp + 0x95]
push ebx
mov dword [esp + 0x20], ebx
push eax
mov dword [esp + 0x28], ebp
mov byte [esp + 0x9c], bl
call fcn.00460ae0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0xf
lea eax, [esp + 0x90]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea esi, [eax + 1]
jmp 0x40edf0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40edf0
sub eax, esi
push eax
lea edx, [esp + 0x94]
push edx
mov ecx, ebp
call fcn.00402ed0
mov dword [esp + 0x1a4], ebx
push 4
mov esi, 1
push str..exe
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00402ed0
mov dword [esp + 0x1a4], esi
lea esi, [esp + 0x58]
call fcn.0040ec30
push eax
mov ecx, 0x483c34
lea edi, [esp + 0x78]
mov byte [esp + 0x1a8], 2
call fcn.00406fc0
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push eax
lea edi, [esp + 0x44]
mov byte [esp + 0x1ac], 3
call fcn.0040f3a0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov esi, ebp
mov byte [esp + 0x1b0], 4
call fcn.00403840
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x40eea6
mov edx, dword [esp + 0x40]
push edx
call fcn.0045ac5a
add esp, 4
cmp dword [esp + 0x8c], esi
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x40eecd
mov eax, dword [esp + 0x78]
push eax
call fcn.0045ac5a
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x40eef2
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045ac5a
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x40ef11
mov edx, dword [esp + 0x24]
push edx
call fcn.0045ac5a
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045b0e4
add esp, 0x194
ret
Function at 0x40ef40
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x479bb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40ef85
lea eax, [esp + 0x2c]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40effa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0045a198
mov edi, eax
add esp, 4
test edi, edi
je 0x40eff3
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40efea
cmp dword [esp + 0x10], esi
jne 0x40efea
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.00402ed0
push edi
call fcn.0045b2fe
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x40], 0x10
jb 0x40f00e
mov edx, dword [esp + 0x2c]
push edx
call fcn.0045ac5a
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40f030
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov ebx, 0x10
cmp dword [esp + 0x24], ebx
push edi
mov esi, ecx
jae 0x40f048
lea eax, [esp + 0x14]
push 0x48492c
push eax
call fcn.0045b5d2
mov edi, eax
add esp, 8
test edi, edi
je 0x40f09f
cmp dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
jb 0x40f069
mov esi, dword [esi + 4]
jmp 0x40f06c
add esi, 4
push edi
push 1
push eax
push esi
call fcn.0045b48c
push edi
mov esi, eax
call fcn.0045b657
add esp, 0x14
cmp esi, 1
jne 0x40f09f
cmp dword [esp + 0x28], ebx
jb 0x40f099
mov eax, dword [esp + 0x14]
push eax
call fcn.0045ac5a
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
cmp dword [esp + 0x28], ebx
jb 0x40f0b2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045ac5a
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x40f1c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x101
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetiCafe8
push 0x80000002
xor bl, bl
mov dword [esp + 0x24], esi
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40f230
mov eax, 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push esi
push str.Admin
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x40f230
cmp dword [esp + 0x14], 1
jne 0x40f230
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40f37b
lea eax, [esp + 0x10]
push eax
push 0x101
push esi
push str.SOFTWAREEYOOCLIENTSTATUS
push 0x80000002
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x40f29c
mov eax, 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push esi
push str.SuperLogin
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x40f29c
cmp dword [esp + 0x14], 1
jne 0x40f29c
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40f37b
lea eax, [esp + 0x10]
push eax
push 0x101
push esi
push str.SYSTEMCurrentControlSet
push 0x80000002
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x40f308
mov eax, 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push esi
push str.superadmin
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x40f308
cmp dword [esp + 0x14], 1
jne 0x40f308
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40f37b
lea eax, [esp + 0x10]
push eax
push 0x101
push esi
push str.SYSTEM_nVos
push 0x80000002
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x40f370
mov eax, 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push esi
push str.SupperMode
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x40f370
cmp dword [esp + 0x14], 1
jne 0x40f370
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret