joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd46
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
push edi
mov dword [ebp - 8], ebx
je 0x40de22
mov eax, dword [0x509500]
mov ecx, 0x509500
call dword [eax + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 4]
push str._s_d._s
call fcn.00422cb5
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40de17
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40de0e
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.0040e964
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40de05
cmp dword [ebp + 8], edi
jne 0x40de05
mov eax, edi
call fcn.0040dc76
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
inc eax
jmp 0x40de25
xor eax, eax
mov edx, esi
call fcn.0040dc8f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40de73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40de92
xor eax, eax
jmp 0x40dee2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40de8e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40de8e
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0040e964
test eax, eax
je 0x40dece
push edi
push dword [ebp - 4]
push eax
call fcn.00484d60
add esp, 0xc
mov eax, ebx
call fcn.0040dc76
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40dff9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40e051
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40e042
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40e042
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40e051
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40e055
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40e075
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40e0d2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40e0d7
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40e0d7
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40e0d2
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40e0c9
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.0040cde1
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e0d2
cmp dword [edi + 0x18], esi
je 0x40e0d2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40e0e6
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8

Function at 0x40f4ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x40f4c2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40f4f7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40f4f3
cmp edi, eax
jae 0x40f4f7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40f4e5
cmp edi, eax
jb 0x40f4fb
xor eax, eax
jmp 0x40f505
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4148b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41491a
cmp dword [ebp + 0xc], 1
je 0x4148f3
cmp dword [ebp + 0xc], 2
je 0x4148f3
push 0xd
pop eax
jmp 0x41491a
test edi, edi
mov eax, dword [ebp - 4]
je 0x414914
test eax, eax
je 0x414910
test al, 1
jne 0x4148ee
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x414914
jmp 0x4148ee
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x41b0ed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
inc esi
cmp eax, 0xf
push edi
mov edi, ecx
jne 0x41b11c
mov ecx, dword [ebp + 0x18]
lea eax, [edi + 0xac]
mov dword [eax], esi
and dword [ecx], 0
cmp dword [eax], 0
je 0x41b153
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x41b174
push dword [edi + 0x10]
mov dword [edi + 0xac], esi
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x41b14d
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41b14d
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi + 0xac], 0
jne 0x41b113
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004231ba
jmp 0x41b115
cmp eax, 0x47
jne 0x41b199
push dword [ebp + 0x14]
lea ebx, [edi + 0xac]
mov eax, edi
mov dword [ebx], esi
call fcn.0041b1bf
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jmp 0x41b111
cmp eax, 0x18
jne 0x41b153
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0xac]
mov dword [ebx], esi
call fcn.0041b296
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jne 0x41b113
jmp 0x41b153

Function at 0x4245f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, ecx
call fcn.00473b1d
push str.kbasesrv.exe
lea eax, [ebp - 4]
push eax
call fcn.00401000
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.00401023
test bl, bl
je 0x424640
call fcn.00473b75
test al, al
je 0x424640
mov dword [esi + 4], 5
xor al, al
jmp 0x42466a
call fcn.004d50b0
test eax, eax
je 0x424652
mov dword [esi + 4], 8
jmp 0x42463c
call fcn.0042466f
test al, al
jne 0x424664
mov dword [esi + 4], 6
jmp 0x42463c
xor eax, eax
inc eax
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4249b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x424a3f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4249e8
cmp dword [ebp - 8], 2
jne 0x424a3e
push esi
mov esi, dword [ebp + 0xc]
call fcn.0041483c
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004010cd
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x424a3d
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x424a2f
push eax
call fcn.00483779
pop ecx
mov edx, esi
call fcn.004010ac
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x424e78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0042a1e0
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.00423484
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
call fcn.00406ef0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str..kid
lea eax, [esp + 0x10]
call fcn.00423484
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
call fcn.00406ef0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x424f18
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.00415037
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [esi]
xor ebx, ebx
inc ebx
cmp dword [eax - 0xc], edi
je 0x424f3e
push eax
call fcn.00424f99
test eax, eax
je 0x424f3e
push esi
push 0x4251be
push edi
push ebx
push dword [esi]
call fcn.0042a0f4
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x424f5f
push eax
call fcn.00424f99
test eax, eax
je 0x424f5f
push edi
push edi
push ebx
push ebx
push dword [esi + 4]
call fcn.0042a0f4
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], edi
je 0x424f80
push eax
call fcn.00424f99
test eax, eax
je 0x424f80
push edi
push edi
push ebx
push ebx
push dword [esi + 8]
call fcn.0042a0f4
add esp, 0x14
push ebx
call fcn.0042a1e0
pop ecx
lea esi, [esp + 0x10]
call fcn.00406e9e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425443
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x509500]
push esi
push edi
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.0042572a
lea edi, [ebp - 0xc]
call fcn.004254d3
push dword [eax]
mov esi, dword [ebp - 8]
push esi
push str._sdesk_s
lea eax, [ebp - 4]
call fcn.00422cb5
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401023
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4254a8
lea eax, [ebp - 4]
push eax
call fcn.004255d2
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4254c0
test al, 0x10
je 0x4254c7
push edi
call fcn.0046b4cd
pop ecx
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
leave
ret
Function at 0x4254d3
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
push 0x208
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x425524
push str.defaultuser
mov eax, edi
call fcn.00423484
jmp 0x42556d
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
call fcn.00423484
lea eax, [ebp - 4]
call fcn.004259da
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jne 0x425556
push str.defaultuser
mov eax, edi
call fcn.00423484
lea eax, [esi - 0x10]
jmp 0x425567
add esi, 0xfffffff0
mov eax, esi
call fcn.004244f5
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
pop esi
mov eax, edi
leave
ret

Function at 0x4255d2
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x509500]
push ebx
push esi
mov esi, 0x509500
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x509500]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.004010cd
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.004147f4
lea edi, [ebp - 0xc]
call fcn.004254d3
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._skingsoftkdeskdatadesk_s
call fcn.00422cb5
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425712
push 6
xor eax, eax
pop ecx
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [esi - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004827bc
mov edi, eax
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004857c0
push dword [ebp - 4]
push esi
push edi
call fcn.00483ac6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004827bc
lea ecx, [esi + esi]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.004857c0
mov eax, dword [ebp + 8]
push dword [eax]
push esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00483ac6
add esp, 0x38
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x1c], 0x614
mov dword [ebp - 0x16], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call fcn.00483868
push esi
call fcn.00483868
mov esi, dword [ebp - 4]
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42572a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x509500
mov ecx, edi
call fcn.0040f32d
mov eax, dword [0x509500]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004010cd
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.004147f4
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.00422cb5
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x425794
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x509500
mov ecx, edi
call fcn.0040f32d
mov eax, dword [0x509500]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004010cd
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.004147f4
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.00422cb5
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x425d66
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea eax, [ebp - 4]
call fcn.00423484
push dword [ebp - 4]
lea edi, [ebp - 0x34]
call fcn.0043f1e7
push 0x4e9558
mov eax, edi
call fcn.0043f5fe
test eax, eax
je 0x425dcd
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp eax, 0x12
jne 0x425dcd
lea ebx, [esi + 0x10]
lea eax, [ebp - 4]
mov edi, ebx
call fcn.0042454d
call fcn.00425c82
test eax, eax
mov eax, str.__action:2
jne 0x425dc4
mov eax, str.__action:3
push eax
push ebx
call fcn.00401000
jmp 0x425dee
push str.usepacp
lea eax, [ebp - 0x34]
call fcn.0043f5c3
lea ebx, [esi + 0x10]
test al, al
mov edi, ebx
lea eax, [ebp - 4]
jne 0x425de9
lea eax, [esi + 0xc]
call fcn.0042454d
push dword [ebx]
lea edi, [ebp - 0x1c]
call fcn.0043f1e7
push str.action
mov eax, edi
call fcn.0043f5c3
test al, al
jne 0x425e11
push dword [esi + 0x14]
call fcn.00425d08
pop ecx
push str.from
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
jne 0x425e2d
push str.__from:7
push ebx
call fcn.00401000
push dword [ebx]
lea edi, [ebp - 0x4c]
call fcn.0043f1e7
push str.action
mov eax, edi
call fcn.0043f5fe
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, edi
mov dword [0x50a840], eax
call fcn.0043f23c
lea ecx, [ebp - 0x1c]
call fcn.0043f23c
lea ecx, [ebp - 0x34]
call fcn.0043f23c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
pop ebx
leave
ret

Function at 0x4263bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4263d2
test al, 0x10
jne 0x4263d2
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x42644b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4264c7
cmp dword [ebp + 0xc], edi
je 0x4264c7
push dword [ebp + 8]
call fcn.004263bb
test al, al
pop ecx
je 0x4264c7
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.004857c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push pe_nt_image_headers32
push eax
push edi
push dword [ebp + 0xc]
push str.SPCfg
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x4264c2
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x200]
call fcn.0042c8b0
xor esi, esi
mov eax, esi
pop esi
jmp 0x4264cc
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x4266ea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x426706
mov eax, 0x80004005
jmp 0x426787
push dword [ebp + 8]
call fcn.004263bb
test al, al
pop ecx
je 0x4266fc
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.004857c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x426784
lea eax, [ebp - 0x800]
call fcn.0042c8b0
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.0042be81
cmp word [eax], 0x5c
je 0x426782
push 0x4e26ac
push esi
call fcn.0042be63
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4267ff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
je 0x426881
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x426881
push dword [ebp + 8]
call fcn.004263bb
test al, al
pop ecx
je 0x426881
and word [ebp - 0x800], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov ebx, 0x80004005
call fcn.004857c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
push esi
push str.ProductInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x42687c
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x800]
call fcn.0042c8b0
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x426886
mov eax, 0x80004005
pop esi
leave
ret

Function at 0x426a5f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x426ab7
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x4e9440]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x4e9440]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x426a6b
pop edi
pop esi
ret
Function at 0x426c64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x426c79
xor eax, eax
jmp 0x426d2c
push 0x28
push esi
push edi
call fcn.004857c0
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00414c46
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042b209
cmp eax, esi
je 0x426cb8
cmp byte [eax], 0
mov ecx, eax
je 0x426cb8
mov al, byte [ecx]
cmp al, 0x41
jl 0x426cb2
cmp al, 0x5a
jg 0x426cb2
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x426ca4
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042b209
call fcn.00426a5f
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x426cde
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.0042b209
push eax
push esi
call fcn.00484d60
mov ecx, dword [ebp + 8]
mov al, cl
add esp, 0xc
add al, 2
test esi, esi
mov word [edi + 1], bx
mov byte [edi], al
pop ebx
je 0x426d1d
test ecx, ecx
je 0x426d1d
xor eax, eax
test ecx, ecx
jbe 0x426d1d
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x426d14
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040f27a
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x426e2e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
mov eax, str.Global_
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], 7
mov dword [ebp - 8], ebx
mov word [ebp - 0x18], bx
call fcn.0042c8b0
cmp dword [0x509290], 8
mov eax, dword [0x50927c]
jae 0x426e69
mov eax, 0x50927c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042be63
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x426e7f
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x426ebb
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x426e98
xor edi, edi
jmp 0x426ebe
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x426eb8
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x426e94
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.00407c5b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret