joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c650
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.0048c200
mov edi, eax
add esp, 8
test edi, edi
jne 0x48c7ef
push esi
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c7e8
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48c7e8
push 0x104
lea ecx, [esp + 0x268]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x48c7e8
lea edx, [esp + 0x264]
push 0x5c
push edx
mov esi, str.APMessage.exe
call fcn.0046aed3
add esp, 8
lea ebx, [ebx]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x48c6e0
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 0x48c7e8
push 0x104
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jbe 0x48c7e8
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00467d60
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 0x4c3e08
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
call fcn.0046829e
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 0x48c7e8
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.00467d4f
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.00467d4f
add esp, 0xa80
ret
Function at 0x48c810
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.0048c200
mov esi, eax
add esp, 8
test esi, esi
jne 0x48c8c8
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c8a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 1
je 0x48c87a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x48c87a
call edi
mov esi, eax
test esi, esi
jne 0x48c8c7
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48c8c5
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00467d4f
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48c8c8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00467d4f
add esp, 0x20c
ret
mov eax, esi
pop edi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00467d4f
add esp, 0x20c
ret
Function at 0x48d0f0
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.004957a0
mov ebx, eax
lea eax, [ebx + 8]
add esp, 4
mov dword [ebp - 0xc], ebx
cmp eax, 0x400
ja 0x48d133
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x48d149
mov dword [eax], 0xcccc
jmp 0x48d146
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x48d149
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x48d249
mov ecx, dword [esi]
push ecx
push ebx
push 0
push edi
call fcn.00467d60
add esp, 0xc
push eax
push esi
call fcn.00495b40
add esp, 0xc
test eax, eax
jbe 0x48d242
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x48d1c3
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x48d1bd
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d187
sub eax, edx
cmp dword [ebx], eax
jbe 0x48d1bd
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 0x48d1a0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d1b0
sub eax, edx
mov dword [ebx], eax
jmp 0x48d1c3
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.00493240
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x48d20d
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 0x48d20d
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 0x48d22c
push eax
call fcn.00468a41
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.00467d4f
mov esp, ebp
pop ebp
ret
mov esi, 0xffffffee
jmp 0x48d217
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x48d270
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 0x48d2b5
mov dword [eax], 0
call fcn.00490840
test eax, eax
je 0x48d4b2
test edi, edi
je 0x48d4ab
cmp word [edi], 0
je 0x48d4ab
mov eax, dword [ebp + 0x32c]
push eax
push edi
push esi
call fcn.0048bb80
lea ecx, [ebp + 0x194]
push ecx
push str.VPh_sCF
push esi
call fcn.0048c8e0
add esp, 0x18
test eax, eax
jne 0x48d4b4
lea edx, [ebp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x48d31b
xor eax, eax
jmp 0x48d335
lea eax, [esi + esi]
call fcn.0046d9c0
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 0x4c59ac
push edx
call fcn.0046829e
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.00490da0
add esp, 0x2c
test eax, eax
jne 0x48d4b4
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.WriteAPSerial
call fcn.0048e970
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d393
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x7c], eax
call fcn.004957a0
mov edi, eax
lea eax, [edi + 8]
add esp, 4
cmp eax, 0x400
ja 0x48d3ce
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x48d3e4
mov dword [eax], 0xcccc
jmp 0x48d3e1
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x48d3e4
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x48d48f
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 0x48d400
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x48d428
xor esi, esi
jmp 0x48d446
lea esi, [eax + eax]
mov eax, esi
call fcn.0046d9c0
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.00467d60
add esp, 0xc
push eax
push esi
call fcn.00495b40
mov esi, eax
add esp, 0xc
test esi, esi
jbe 0x48d488
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 0x48d494
mov dword [eax], esi
jmp 0x48d494
mov edi, 0x1770
jmp 0x48d494
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 0x48d4b4
mov eax, 0x57
jmp 0x48d4b4
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.00467d4f
add ebp, 0x318
mov esp, ebp
pop ebp
ret
Function at 0x48e400
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 0x48e54c
cmp eax, ebp
je 0x48e54c
mov ecx, dword [esp + 0x230]
push ecx
push ebp
push edi
call fcn.00467d60
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 0x48e470
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 0x48e490
mov ecx, dword [0x4c5a24]
mov dword [eax], ecx
mov ecx, dword [0x4c5a28]
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 0x48e519
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 0x48e519
cmp dword [esp + 0x230], ebp
jbe 0x48e519
mov ecx, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push ebx
lea ebp, [esi + 1]
call fcn.0048dfe0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48e527
mov dword [ecx], esi
test eax, eax
je 0x48e531
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.00467d4f
add esp, 0x214
ret
mov esi, 0xfffffffa
jmp 0x48e51d
Function at 0x48e840
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 0x48e959
cmp dword [esp], eax
je 0x48e959
push esi
push 0x208
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00467d60
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 0x48e93e
cmp eax, 0x7a
je 0x48e93e
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.0046aed3
add esp, 8
test eax, eax
je 0x48e946
mov ecx, str.APAX.dll
lea edx, [eax + 2]
sub edx, ecx
jmp 0x48e910
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x48e910
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 0x48e94b
test eax, eax
je 0x48e946
mov esi, eax
jmp 0x48e94b
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.00467d4f
add esp, 0x218
ret

Function at 0x48eb40
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 0x48eb54
mov esi, 0x1000
push ebx
mov ebx, dword [esp + 0x18]
lea esp, [esp]
test edi, edi
jne 0x48eb6f
push esi
call fcn.00468977
add esp, 4
jmp 0x48eb7e
mov ecx, dword [ebx]
lea eax, [esi + edi]
push eax
push ecx
call fcn.0046eba4
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x48ebba
push 0
lea edx, [esp + 0x24]
push edx
push esi
push esi
add eax, edi
push 0
push eax
call fcn.00467d60
add esp, 0xc
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48ebb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x20]
add edi, eax
jmp 0x48ebc3
xor eax, eax
mov dword [esp + 0x20], eax
lea ebp, [eax + 8]
cmp eax, esi
je 0x48eb60
mov eax, dword [esp + 0x1c]
pop ebx
test eax, eax
je 0x48ebd2
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x48ebe0
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 0x48ec10
push edi
push 0
push 0
or esi, 0x8000
push esi
push 0
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48ec20
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
xor ecx, ecx
test ebp, ebp
je 0x48edba
movzx eax, word [ebp]
test ax, ax
je 0x48edba
cmp ax, 0x5c
jne 0x48ec6f
lea eax, [ebp + 2]
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48ec60
push 0x5c
push ebp
call fcn.0046aed3
add esp, 8
lea edx, [esp + 4]
test eax, eax
je 0x48eca1
add eax, 2
sub edx, eax
jmp 0x48ec90
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48ec90
jmp 0x48ecb4
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48eca5
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x48ed46
mov eax, dword [esp + 0x424]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48ecd4
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0046aed3
add esp, 8
test eax, eax
je 0x48ed46
xor ecx, ecx
mov word [eax + 2], cx
mov eax, ebp
mov edx, ebp
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48ed03
push ebx
push edi
lea edi, [esp + 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x48ed20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
pop edi
pop ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x48ed7f
lea eax, [esp + 8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x48ed60
push 0
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindOnPathW]
push ebp
call esi
test eax, eax
je 0x48ed9b
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00467d4f
add esp, 0x414
ret
xor edx, edx
pop esi
mov word [ebp], dx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00467d4f
add esp, 0x414
ret
mov eax, ecx
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00467d4f
add esp, 0x414
ret
Function at 0x48ede0
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x48eeab
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48eeab
push esi
push eax
push edi
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 0x48eeb5
cmp eax, 0x7a
je 0x48eeb5
push ebx
push 0x2e
push edi
xor ebx, ebx
call fcn.0046aed3
add esp, 8
test eax, eax
je 0x48ee51
mov ecx, str..ini
mov esi, eax
sub esi, ecx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x48ee40
jmp 0x48ee8a
mov eax, edi
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x48ee60
mov ecx, dword [str..ini]
mov dword [eax], ecx
mov ecx, dword [0x4c5b08]
mov dword [eax + 4], ecx
mov cx, word [0x4c5b0c]
mov word [eax + 8], cx
mov eax, edx
test eax, eax
je 0x48eea2
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48eeb2
pop ebx
pop esi
mov eax, 2
pop edi
ret
pop ebx
pop esi
mov eax, 0x7a
pop edi
ret
mov eax, 0x57
pop edi
ret
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x490390
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4903ac
pop edi
pop ebx
ret 4
push esi
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4903ee
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4903f6
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, esi
pop esi
pop edi
pop ebx
ret 4
Function at 0x490f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
je 0x491072
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x491072
mov eax, dword [eax]
test eax, eax
je 0x491072
shr eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
add eax, 8
cmp eax, 0x400
ja 0x490fae
call fcn.0046d9c0
mov edi, esp
test edi, edi
je 0x491059
mov dword [edi], 0xcccc
add edi, 8
jmp 0x490fc6
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x490fc4
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x491059
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x49102e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x491001
xor eax, eax
jmp 0x491015
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0041f650
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.0046a6ad
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [eax], edx
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x491043
push eax
call fcn.00468a41
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x491090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x491191
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4910b1
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
lea eax, [ebx + ebx + 8]
cmp eax, 0x400
ja 0x4910e8
call fcn.0046d9c0
mov esi, esp
test esi, esi
je 0x491178
mov dword [esi], 0xcccc
add esi, 8
jmp 0x491100
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x4910fe
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
je 0x491178
push edi
push ebx
push esi
call fcn.0046a6ad
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x491122
xor eax, eax
jmp 0x491138
lea edi, [eax + eax]
mov eax, edi
call fcn.0046d9c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00423510
mov ecx, dword [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
mov edi, eax
jne 0x491162
push esi
call fcn.00468a41
add esp, 4
mov eax, edi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret
Function at 0x493170
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x220]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
mov word [esp + 0x20], cx
call fcn.00467d60
push 1
push 0x208
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004930e0
add esp, 0x1c
test eax, eax
je 0x493212
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4c55cc
mov eax, edx
push 0x104
push eax
call fcn.00468336
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493208
lea edi, [ebx + 1]
jmp 0x493217
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x493217
mov ebx, 0xa1
mov eax, edi
test ebp, ebp
je 0x493220
mov dword [ebp], ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00467d4f
add esp, 0x210
ret

Function at 0x493320
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
je 0x493389
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push 2
push 2
push 0x40000000
push str.Mac.pad
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00493240
mov edi, dword [esp + 0x2c]
add esp, 0x1c
mov esi, eax
cmp edi, 0xffffffff
je 0x493381
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x493381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49339f
mov ecx, esi
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, esi
pop esi
pop ecx
ret