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

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x274]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x284]
push str._SerialNumber_GetCustomData
xor ebx, ebx
mov dword [ebp - 0x2c], esi
call fcn.00488b9a
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x48a434
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x48a531
or dword [esi], 0xffffffff
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
call fcn.00488595
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push closesocket
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x48a529
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1e8]
movsd dword es:[edi], dword [esi]
call fcn.00488484
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48a51f
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.00468010
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4c4ef8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x48a518
cmp dword [ebp - 0x80], edi
ja 0x48a518
mov eax, dword [ebp + 0x288]
dec eax
je 0x48a50a
sub eax, 6
je 0x48a4ff
mov dword [ebp - 0x30], 0xa0
jmp 0x48a518
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x48a513
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x38]
call ebx
jmp 0x48a524
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x30]
push str._SerialNumber_GetCustomData_dwReturnCode
call fcn.00488b9a
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00467fff
add ebp, 0x26c
leave
ret 0x18
Function at 0x48b1f7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.00468610
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x3fe4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x3ff4]
push eax
push dword [ebp + 0x3ff0]
mov esi, 0x1000
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0046d5d0
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x6e]
push 0xa
pop ecx
cdq
idiv ecx
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push str._02.2u:_02.2u:_02.2u__02.2u
lea eax, [ebp + 0x3fa4]
push 0x20
push eax
call fcn.004685e6
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4ecdd0], bx
je 0x48b2a4
push 0x4ecdd0
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.004685e6
add esp, 0x18
jmp 0x48b2ba
push eax
push 0x4c3e88
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.004685e6
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4ecdcc]
cmp eax, ebx
je 0x48b2dc
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4ecdc8]
cmp eax, ebx
je 0x48b309
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0x1fa4]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0x6c], 1
call edi
cmp dword [0x4ecdc0], ebx
je 0x48b37b
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4ecbb8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4c556c
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.004684d1
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.004687a8
pop ecx
push eax
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ecdc4], ebx
je 0x48b3dd
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4ecdd0], bx
je 0x48b3ac
push 0x4ecdd0
push 0x4c3e88
push esi
push eax
call fcn.004685e6
add esp, 0x14
jmp 0x48b3bb
push 0x4c5564
push esi
push eax
call fcn.004685e6
add esp, 0x10
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1fa4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x4a
push dword [0x4ecdc4]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467fff
add ebp, 0x3fe8
leave
ret
Function at 0x48bac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
push esi
push ecx
push 2
push 1
push 0x40000000
push str.Info.pad
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00493500
add esp, 0x1c
cmp dword [esp + 4], 0xffffffff
mov esi, eax
je 0x48bb5a
push 0x45
push 1
lea eax, [esp + 0x14]
push str._d._02.2d
push eax
call fcn.0046854e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push str.version_s_r_n
push edx
call fcn.0046854e
add esp, 0x1c
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48bb5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00467fff
add esp, 0xcc
ret

Function at 0x48bf30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48c06b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.NCnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
test eax, eax
jne 0x48bfcd
lea eax, [esp + 0x18]
push eax
call fcn.0047ff5d
add esp, 4
mov dword [edi], eax
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push str.NCnxModeExpire
push eax
mov dword [esp + 0x24], 0x10
call esi
test eax, eax
jne 0x48c012
lea ecx, [esp + 0x18]
push ecx
call fcn.0047ff5d
add esp, 4
mov dword [ebx], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push str.CnxTime
push edx
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call esi
mov esi, eax
test esi, esi
jne 0x48c05d
lea eax, [esp + 0x18]
push eax
call fcn.0047ff5d
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00467fff
add esp, 0x20
ret
Function at 0x48c910
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0xa80
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0xa7c], eax
mov eax, dword [esp + 0xa84]
push edi
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.0048c4c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x48caaf
push esi
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48caa8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48caa8
push 0x104
lea ecx, [esp + 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x48caa8
lea edx, [esp + 0x264]
push 0x5c
push edx
mov esi, str.APMessage.exe
call fcn.0046b183
add esp, 8
lea ebx, [ebx]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x48c9a0
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea eax, [esp + 0x678]
push eax
lea ecx, [esp + 0x26c]
push ecx
call esi
test eax, eax
jbe 0x48caa8
push 0x104
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jbe 0x48caa8
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00468010
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x684]
mov edx, 1
push ecx
mov word [esp + 0x5c], dx
lea edx, [esp + 0x890]
push 0x4c3e88
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
call fcn.0046854e
add esp, 0x1c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x89c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x48caa8
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0xa7c]
xor ecx, esp
call fcn.00467fff
add esp, 0xa80
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0xa80]
pop edi
xor ecx, esp
call fcn.00467fff
add esp, 0xa80
ret
Function at 0x48cad0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call fcn.0048c4c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48cb88
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48cb62
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 1
je 0x48cb3a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x48cb3a
call edi
mov esi, eax
test esi, esi
jne 0x48cb87
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48cb85
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00467fff
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48cb88
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00467fff
add esp, 0x20c
ret
mov eax, esi
pop edi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00467fff
add esp, 0x20c
ret
Function at 0x48d3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
push eax
call fcn.00495a60
mov ebx, eax
lea eax, [ebx + 8]
add esp, 4
mov dword [ebp - 0xc], ebx
cmp eax, 0x400
ja 0x48d3f3
call fcn.0046dc70
mov eax, esp
test eax, eax
je 0x48d409
mov dword [eax], 0xcccc
jmp 0x48d406
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x48d409
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x48d509
mov ecx, dword [esi]
push ecx
push ebx
push 0
push edi
call fcn.00468010
add esp, 0xc
push eax
push esi
call fcn.00495e00
add esp, 0xc
test eax, eax
jbe 0x48d502
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x48d483
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x48d47d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d447
sub eax, edx
cmp dword [ebx], eax
jbe 0x48d47d
mov edx, esi
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x48d460
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d470
sub eax, edx
mov dword [ebx], eax
jmp 0x48d483
mov dword [ebx], 0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push edx
push 2
push 2
push 0x40000000
push str.Global.pad
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00493500
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x48d4cd
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48d4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x48d4ec
push eax
call fcn.00468cf1
add esp, 4
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
mov esi, 0xffffffee
jmp 0x48d4d7
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x48d530
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x318]
sub esp, 0x398
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x314], eax
mov eax, dword [ebp + 0x328]
push ebx
push esi
mov esi, dword [ebp + 0x320]
push edi
mov edi, dword [ebp + 0x324]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], eax
mov ebx, 0xffffffec
test eax, eax
je 0x48d575
mov dword [eax], 0
call fcn.00490b10
test eax, eax
je 0x48d772
test edi, edi
je 0x48d76b
cmp word [edi], 0
je 0x48d76b
mov eax, dword [ebp + 0x32c]
push eax
push edi
push esi
call fcn.0048be40
lea ecx, [ebp + 0x194]
push ecx
push str.VPh_sCF
push esi
call fcn.0048cba0
add esp, 0x18
test eax, eax
jne 0x48d774
lea edx, [ebp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x48d5db
xor eax, eax
jmp 0x48d5f5
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.0041f650
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push str.SOFTWAREClassesCLSID_
lea edx, [ebp - 0x6c]
push 0x4c5a2c
push edx
call fcn.0046854e
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x6c]
push edx
push closesocket
call fcn.00491070
add esp, 0x2c
test eax, eax
jne 0x48d774
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.WriteAPSerial
call fcn.0048ec40
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d653
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x7c], eax
call fcn.00495a60
mov edi, eax
lea eax, [edi + 8]
add esp, 4
cmp eax, 0x400
ja 0x48d68e
call fcn.0046dc70
mov eax, esp
test eax, eax
je 0x48d6a4
mov dword [eax], 0xcccc
jmp 0x48d6a1
push eax
call fcn.00468c27
add esp, 4
test eax, eax
je 0x48d6a4
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x48d74f
mov eax, dword [ebp - 0x78]
lea edx, [ebp + 0x294]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48d6c0
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x48d6e8
xor esi, esi
jmp 0x48d706
lea esi, [eax + eax]
mov eax, esi
call fcn.0046dc70
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x294]
push ecx
push eax
call fcn.00423510
mov esi, eax
mov edx, dword [ebp - 0x7c]
push edx
push edi
push 0
push ebx
call fcn.00468010
add esp, 0xc
push eax
push esi
call fcn.00495e00
mov esi, eax
add esp, 0xc
test esi, esi
jbe 0x48d748
mov eax, dword [ebp - 0x70]
push edi
push ebx
push 1
push 0
push str.GlobalS
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x48d754
mov dword [eax], esi
jmp 0x48d754
mov edi, 0x1770
jmp 0x48d754
mov edi, 8
push ebx
call fcn.0041a740
mov ecx, dword [ebp - 0x70]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x48d774
mov eax, 0x57
jmp 0x48d774
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.00467fff
add ebp, 0x318
mov esp, ebp
pop ebp
ret
Function at 0x48e6d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x238]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x48e81c
cmp eax, ebp
je 0x48e81c
mov ecx, dword [esp + 0x230]
push ecx
push ebp
push edi
call fcn.00468010
lea edx, [esp + 0x2c]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48e740
lea eax, [esp + 0x20]
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x48e760
mov ecx, dword [0x4c5aa4]
mov dword [eax], ecx
mov ecx, dword [0x4c5aa8]
mov dword [eax + 4], ecx
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48e7e9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x230]
push ecx
push edi
push eax
push eax
push str.Data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48e7e9
cmp dword [esp + 0x230], ebp
jbe 0x48e7e9
mov ecx, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push ebx
lea ebp, [esi + 1]
call fcn.0048e2b0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48e7f7
mov dword [ecx], esi
test eax, eax
je 0x48e801
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00467fff
add esp, 0x214
ret
mov esi, 0xfffffffa
jmp 0x48e7ed
Function at 0x48eb10
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.InprocServer32
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48ec29
cmp dword [esp], eax
je 0x48ec29
push esi
push 0x208
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00468010
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x105
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x48ec0e
cmp eax, 0x7a
je 0x48ec0e
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.0046b183
add esp, 8
test eax, eax
je 0x48ec16
mov ecx, str.APAX.dll
lea edx, [eax + 2]
sub edx, ecx
jmp 0x48ebe0
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x48ebe0
mov edx, dword [esp + 4]
push 0x20a
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x48ec1b
test eax, eax
je 0x48ec16
mov esi, eax
jmp 0x48ec1b
mov esi, 2
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00467fff
add esp, 0x218
ret

Function at 0x48ee10
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor ebp, ebp
xor edi, edi
test esi, esi
jne 0x48ee24
mov esi, 0x1000
push ebx
mov ebx, dword [esp + 0x18]
lea esp, [esp]
test edi, edi
jne 0x48ee3f
push esi
call fcn.00468c27
add esp, 4
jmp 0x48ee4e
mov ecx, dword [ebx]
lea eax, [esi + edi]
push eax
push ecx
call fcn.0046ee54
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x48ee8a
push 0
lea edx, [esp + 0x24]
push edx
push esi
push esi
add eax, edi
push 0
push eax
call fcn.00468010
add esp, 0xc
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48ee82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x20]
add edi, eax
jmp 0x48ee93
xor eax, eax
mov dword [esp + 0x20], eax
lea ebp, [eax + 8]
cmp eax, esi
je 0x48ee30
mov eax, dword [esp + 0x1c]
pop ebx
test eax, eax
je 0x48eea2
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x48eeb0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
push esi
push 0
call ebx
cmp eax, 1
jne 0x48eee0
push edi
push 0
push 0
or esi, 0x8000
push esi
push 0
call ebx
pop edi
pop esi
pop ebx
ret