joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df86
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 0x40e062
mov eax, dword [0x50e594]
mov ecx, 0x50e594
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.0042318c
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 0x40e057
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40e04e
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.0040ebb7
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40e045
cmp dword [ebp + 8], edi
jne 0x40e045
mov eax, edi
call fcn.0040deb6
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 0x40e065
xor eax, eax
mov edx, esi
call fcn.0040decf
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 0x40e0b3
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 0x40e0d2
xor eax, eax
jmp 0x40e122
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40e0ce
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40e0ce
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0040ebb7
test eax, eax
je 0x40e10e
push edi
push dword [ebp - 4]
push eax
call fcn.004870c0
add esp, 0xc
mov eax, ebx
call fcn.0040deb6
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 0x40e239
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40e291
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 0x40e282
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40e282
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 0x40e291
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40e295
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40e2b5
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40e312
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 0x40e317
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40e317
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40e312
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40e309
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.0040d0d1
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e312
cmp dword [edi + 0x18], esi
je 0x40e312
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40e326
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 0x40f65a
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 0x40f671
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40f6a6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40f6a2
cmp edi, eax
jae 0x40f6a6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40f694
cmp edi, eax
jb 0x40f6aa
xor eax, eax
jmp 0x40f6b4
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x414bee
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 0x414c51
cmp dword [ebp + 0xc], 1
je 0x414c2a
cmp dword [ebp + 0xc], 2
je 0x414c2a
push 0xd
pop eax
jmp 0x414c51
test edi, edi
mov eax, dword [ebp - 4]
je 0x414c4b
test eax, eax
je 0x414c47
test al, 1
jne 0x414c25
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x414c4b
jmp 0x414c25
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x41b34a
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 0x41b379
mov ecx, dword [ebp + 0x18]
lea eax, [edi + 0xac]
mov dword [eax], esi
and dword [ecx], 0
cmp dword [eax], 0
je 0x41b3b0
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x41b3d1
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 0x41b3aa
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41b3aa
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 0x41b370
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.004236ae
jmp 0x41b372
cmp eax, 0x47
jne 0x41b3f6
push dword [ebp + 0x14]
lea ebx, [edi + 0xac]
mov eax, edi
mov dword [ebx], esi
call fcn.0041b41c
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jmp 0x41b36e
cmp eax, 0x18
jne 0x41b3b0
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0xac]
mov dword [ebx], esi
call fcn.0041b4f3
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jne 0x41b370
jmp 0x41b3b0

Function at 0x424b0a
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.004745b3
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 0x424b59
call fcn.0047460b
test al, al
je 0x424b59
mov dword [esi + 4], 5
xor al, al
jmp 0x424b83
call fcn.004d9d40
test eax, eax
je 0x424b6b
mov dword [esi + 4], 8
jmp 0x424b55
call fcn.00424b88
test al, al
jne 0x424b7d
mov dword [esi + 4], 6
jmp 0x424b55
xor eax, eax
inc eax
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424eca
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 0x424f58
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 0x424f01
cmp dword [ebp - 8], 2
jne 0x424f57
push esi
mov esi, dword [ebp + 0xc]
call fcn.00414b73
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 0x424f56
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 0x424f48
push eax
call fcn.0048650a
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 0x425391
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0042a752
lea eax, [esp + 0x10]
mov dword [esp], str.btbg.gif
call fcn.00423978
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
call fcn.004070d4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
push str..kid
lea eax, [esp + 0x10]
call fcn.00423978
lea eax, [esp + 0xc]
push eax
call fcn.004070d4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x42542d
push str.scom.xml
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.00415360
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 edi, edi
inc edi
cmp dword [eax - 0xc], ebx
je 0x425453
push eax
call fcn.004254ae
test eax, eax
je 0x425453
push esi
push 0x4256d0
push ebx
push edi
push dword [esi]
call fcn.0042a666
add esp, 0x14
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x425474
push eax
call fcn.004254ae
test eax, eax
je 0x425474
push ebx
push ebx
push edi
push edi
push dword [esi + 4]
call fcn.0042a666
add esp, 0x14
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x425495
push eax
call fcn.004254ae
test eax, eax
je 0x425495
push ebx
push ebx
push edi
push edi
push dword [esi + 8]
call fcn.0042a666
add esp, 0x14
push edi
call fcn.0042a752
pop ecx
lea esi, [esp + 0x10]
call fcn.0040709c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50e594]
push esi
push edi
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.00425c27
lea edi, [ebp - 0xc]
call fcn.004259d0
push dword [eax]
mov esi, dword [ebp - 8]
push esi
push str._sdesk_s
lea eax, [ebp - 4]
call fcn.0042318c
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 0x4259a5
lea eax, [ebp - 4]
push eax
call fcn.00425acf
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4259bd
test al, 0x10
je 0x4259c4
push edi
call fcn.0046b2fe
pop ecx
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
leave
ret
Function at 0x4259d0
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.00486d70
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 0x425a21
push str.defaultuser
mov eax, edi
call fcn.00423978
jmp 0x425a6a
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
call fcn.00423978
lea eax, [ebp - 4]
call fcn.00425eb6
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jne 0x425a53
push str.defaultuser
mov eax, edi
call fcn.00423978
lea eax, [esi - 0x10]
jmp 0x425a64
add esi, 0xfffffff0
mov eax, esi
call fcn.004249f2
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401023
pop esi
mov eax, edi
leave
ret

Function at 0x425acf
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 [0x50e594]
push ebx
push esi
mov esi, 0x50e594
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x50e594]
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.00414b2b
lea edi, [ebp - 0xc]
call fcn.004259d0
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._skingsoftkdeskdatadesk_s
call fcn.0042318c
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 0x425c0f
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.00485550
mov edi, eax
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.00486d70
push dword [ebp - 4]
push esi
push edi
call fcn.004874eb
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.00485550
lea ecx, [esi + esi]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.00486d70
mov eax, dword [ebp + 8]
push dword [eax]
push esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004874eb
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.004883a2
push esi
call fcn.004883a2
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 0x425c27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x50e594
mov ecx, edi
call fcn.0040f75c
mov eax, dword [0x50e594]
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.00414b2b
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.0042318c
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x425c91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x50e594
mov ecx, edi
call fcn.0040f75c
mov eax, dword [0x50e594]
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.00414b2b
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.0042318c
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x426247
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.00423978
push dword [ebp - 4]
lea edi, [ebp - 0x34]
call fcn.0043f190
push 0x4eda10
mov eax, edi
call fcn.0043f5a7
test eax, eax
je 0x4262ae
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp eax, 0x12
jne 0x4262ae
lea ebx, [esi + 0x10]
lea eax, [ebp - 4]
mov edi, ebx
call fcn.00424a4a
call fcn.00426163
test eax, eax
mov eax, str.__action:2
jne 0x4262a5
mov eax, str.__action:3
push eax
push ebx
call fcn.00401000
jmp 0x4262cf
push str.usepacp
lea eax, [ebp - 0x34]
call fcn.0043f56c
lea ebx, [esi + 0x10]
test al, al
mov edi, ebx
lea eax, [ebp - 4]
jne 0x4262ca
lea eax, [esi + 0xc]
call fcn.00424a4a
push dword [ebx]
lea edi, [ebp - 0x1c]
call fcn.0043f190
push str.action
mov eax, edi
call fcn.0043f56c
test al, al
jne 0x4262f2
push dword [esi + 0x14]
call fcn.004261e9
pop ecx
push str.from
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
jne 0x42630e
push str.__from:7
push ebx
call fcn.00401000
push dword [ebx]
lea edi, [ebp - 0x4c]
call fcn.0043f190
push str.action
mov eax, edi
call fcn.0043f5a7
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, edi
mov dword [0x50f8e8], eax
call fcn.0043f1e5
lea ecx, [ebp - 0x1c]
call fcn.0043f1e5
lea ecx, [ebp - 0x34]
call fcn.0043f1e5
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
pop ebx
leave
ret
Function at 0x426912
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42698e
cmp dword [ebp + 0xc], edi
je 0x42698e
push dword [ebp + 8]
call fcn.004730af
test al, al
pop ecx
je 0x42698e
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.00486d70
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push 0x100
push eax
push edi
push dword [ebp + 0xc]
push str.SPCfg
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x426989
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x200]
call fcn.0042cdeb
xor esi, esi
mov eax, esi
pop esi
jmp 0x426993
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x426bb1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x426bcd
mov eax, 0x80004005
jmp 0x426c4e
push dword [ebp + 8]
call fcn.004730af
test al, al
pop ecx
je 0x426bc3
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.00486d70
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 0x426c4b
lea eax, [ebp - 0x800]
call fcn.0042cdeb
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.0042c3aa
cmp word [eax], 0x5c
je 0x426c49
push 0x4e66bc
push esi
call fcn.0042c38c
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x426cc6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
je 0x426d48
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x426d48
push dword [ebp + 8]
call fcn.004730af
test al, al
pop ecx
je 0x426d48
and word [ebp - 0x800], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov ebx, 0x80004005
call fcn.00486d70
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 0x426d43
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x800]
call fcn.0042cdeb
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x426d4d
mov eax, 0x80004005
pop esi
leave
ret

Function at 0x426f26
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x426f7e
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 + 0x4ed8f8]
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 + 0x4ed8f8]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x426f32
pop edi
pop esi
ret
Function at 0x42712b
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 0x427140
xor eax, eax
jmp 0x4271f3
push 0x28
push esi
push edi
call fcn.00486d70
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00414f7d
push esi
lea ecx, [ebp - 0x1c]
call fcn.00442c38
cmp eax, esi
je 0x42717f
cmp byte [eax], 0
mov ecx, eax
je 0x42717f
mov al, byte [ecx]
cmp al, 0x41
jl 0x427179
cmp al, 0x5a
jg 0x427179
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x42716b
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00442c38
call fcn.00426f26
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x4271a5
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.00442c38
push eax
push esi
call fcn.004870c0
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 0x4271e4
test ecx, ecx
je 0x4271e4
xor eax, eax
test ecx, ecx
jbe 0x4271e4
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x4271db
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040f444
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4272f5
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.0042cdeb
cmp dword [0x50e330], 8
mov eax, dword [0x50e31c]
jae 0x427330
mov eax, 0x50e31c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c38c
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x427346
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x427382
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x42735f
xor edi, edi
jmp 0x427385
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x42737f
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x42735b
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.00407e9d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret