joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c79
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x429b2c
push 1
push 0
push 0x429d5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x416d32
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x50]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 0x1c]
lea eax, [ebp - 0xc]
push eax
push 0x42a18c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx]
cmp dword [ebp - 8], 0
jl 0x416d26
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
call dword [edx + 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4170d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x108], 0
mov al, byte [0x439abc]
mov byte [ebp - 0x20c], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x439ac0]
mov byte [ebp - 0x104], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x20c]
push edx
push 0x104
push 0x439ac4
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x41715c
jmp 0x4171ea
push str.KPluginInteractive.dll__s
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x417193
jmp 0x4171e8
push str._regsvr32.exe
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0x20
jg 0x4171d4
jmp 0x4171e6
mov dword [ebp - 0x210], 1
mov eax, dword [ebp - 0x210]
jmp 0x4171ec
jmp 0x4171de
jmp 0x4171de
jmp 0x4171de
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4171f1
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push edi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x10], 0
mov al, byte [0x439ac8]
mov byte [ebp - 0x11c], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x439acc]
mov byte [ebp - 0x224], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x18]
call fcn.0041d630
mov dword [ebp - 4], 0
push 0x435538
push 0x80000002
lea ecx, [ebp - 0x18]
call fcn.0041d66d
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x4172b0
push 0
push str.UpdateAutoRun_Register_open_fail_
call fcn.00410257
add esp, 8
jmp 0x417358
cmp dword [ebp + 8], 1
jne 0x417321
lea edx, [ebp - 0x11c]
push edx
push 0x104
push 0x43558c
call fcn.00405071
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push str.__s___n
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
push 0x4355a0
lea ecx, [ebp - 0x18]
call fcn.0041d752
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x41731f
push 0
push str.RegKey.Write___fail_
call fcn.00410257
add esp, 8
jmp 0x417358
jmp 0x41734e
push str.KANUPDATE
lea ecx, [ebp - 0x18]
call fcn.0041d9b9
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x41734e
push 0
push str.RegKey.DeleteValue___fail_
call fcn.00410257
add esp, 8
jmp 0x417358
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0x18]
call fcn.0041d6c6
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041d651
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41768c
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push edi
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x108], 0
mov al, byte [0x439ae0]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x168]
call fcn.00417404
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x4176f6
push 0
push str.KANUpdate2::ExecuteTheFile___Not_need_to_Execute_
call fcn.00410257
add esp, 8
mov eax, 1
jmp 0x4178fe
mov dword [ebp - 0x10c], 0
jmp 0x417711
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 1
jge 0x4178f9
mov edx, dword [ebp - 0x10c]
xor eax, eax
mov al, byte [edx + 0x4397c4]
test eax, eax
jne 0x417732
jmp 0x417702
lea ecx, [ebp - 0x104]
push ecx
push 0x104
mov edx, dword [ebp - 0x10c]
imul edx, edx, 0x104
add edx, str.KANSMB.EXE
push edx
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x41776f
xor eax, eax
jmp 0x4178fe
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417796
push 0
push str.KANUpdate2::ExecuteTheFile___PathFileExists_Fail
call fcn.00410257
add esp, 8
xor eax, eax
jmp 0x4178fe
mov dword [ebp - 0x164], 0x44
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x138], 0
mov word [ebp - 0x132], 0
mov dword [ebp - 0x130], 0
push 0x10
push 0
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x4357a8
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x10c]
imul eax, eax, 0x104
add eax, str._silent
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x164]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 1
je 0x41786a
push 0
push str.KANUpdate2::ExecuteTheFile___CreateProcess_Fail
call fcn.00410257
add esp, 8
cmp dword [ebp - 0x108], 1
je 0x41787a
xor eax, eax
jmp 0x4178fe
mov dword [ebp - 0x120], 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x4178b3
cmp dword [ebp - 0x120], 0x103
jne 0x4178da
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x108], eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41789e
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417702
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x417eef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push edi
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x110]
cmp dword [eax + 0x2c], 0xffffffff
je 0x417f19
mov ecx, dword [ebp - 0x110]
mov eax, dword [ecx + 0x2c]
jmp 0x417fd3
mov dl, byte [0x439b00]
mov byte [ebp - 0x104], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x104]
push eax
push 0x104
push 0x435b0c
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x417f84
push 0
push str.GetFileWithProgramPathEx_error_
call fcn.00410257
add esp, 8
jmp 0x417fd1
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x435b38
push 0x435b40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x2c], eax
mov dword [ebp - 0x108], 1
cmp dword [ebp - 0x108], 0
jne 0x417fc6
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x110]
mov eax, dword [ecx + 0x2c]
jmp 0x417fd3
jmp 0x417fb0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x418634
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.0041d630
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.0041d66d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x418694
push 0
push str.KANUpdate2::DeleteKANSARegister_RegKey.Open_KAN_REGISTER_AUTORUN_PATH_fail
call fcn.00410257
add esp, 8
jmp 0x4186a4
push str.KANSA
lea ecx, [ebp - 0x14]
call fcn.0041d9b9
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041d651
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x418fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push edi
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov al, byte [0x439b68]
mov byte [ebp - 0x218], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x25c], 0x44
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22a], 0
mov dword [ebp - 0x228], 0
mov word [ebp - 0x22c], 0
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__s___s
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x25c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x4190e1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419101
push 0
push str.CreateProcessSafty_Fail
call fcn.00410257
add esp, 8
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00410257
add esp, 8
mov eax, dword [ebp - 0x264]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x419ab2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [str.KAN_SVR_RPC_SERVER]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x436334]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x436338]
mov dword [ebp - 0x18], edx
mov eax, dword [0x43633c]
mov dword [ebp - 0x14], eax
mov cx, word [0x436340]
mov word [ebp - 0x10], cx
mov dl, byte [0x436342]
mov byte [ebp - 0xe], dl
xor eax, eax
mov dword [ebp - 0xd], eax
mov dword [ebp - 9], eax
mov word [ebp - 5], ax
mov byte [ebp - 3], al
mov ecx, dword [str.ncalrpc]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x436348]
mov dword [ebp - 0x34], edx
xor eax, eax
mov word [ebp - 0x30], ax
push 0x439b4c
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x419b5b
jmp 0x419b90
push 0x439d9c
mov eax, dword [0x439b4c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x419b77
jmp 0x419b8e
push str.KANUpdateAction.cpp::InitRPCClientForService
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
jmp 0x419b92
jmp 0x419b89
jmp 0x419b89
mov esp, ebp
pop ebp
ret

Function at 0x419b96
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0x439b4c
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419bb9
jmp 0x419be8
push 0x439d9c
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419bcf
jmp 0x419be6
push str.KANUpdateAction::UnInitRPCClientForService
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
jmp 0x419bea
jmp 0x419be1
jmp 0x419be1
mov esp, ebp
pop ebp
ret
Function at 0x41a479
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push 0x20019
push 0
push str.SOFTWAREKingsoftAntivirusKANClient
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x41a4bd
xor eax, eax
jmp 0x41a531
mov cl, byte [0x439b84]
mov byte [ebp - 0x64], cl
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x70], 0x64
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push str.Version
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x41a510
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a531
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
mov edx, dword [ebp + 8]
fstp qword [edx]
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41a540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x41b437
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x41b461
push str.Parameter_pszProcessName_is_NULL_Fail_n
push 0xc0
push 0x437130
call fcn.0041ad27
add esp, 0xc
xor eax, eax
jmp 0x41b4e9
mov eax, dword [ebp + 8]
push eax
call fcn.0041b397
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41b491
push str.GetProcessIdFromName___Fail_n
push 0xc5
push 0x43719c
call fcn.0041ad27
add esp, 0xc
xor eax, eax
jmp 0x41b4e9
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41b4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess___ErrorCode_d_Fail_n
push 0xcc
push 0x43720c
call fcn.0041ad27
add esp, 0x10
xor eax, eax
jmp 0x41b4e9
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41bd60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x118], 0
cmp dword [ebp + 0x10], 0
jne 0x41bdf0
lea eax, [ebp - 0x104]
push eax
push 0x104
push str.KANGUI.EXE
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x10c], eax
jmp 0x41be1c
cmp dword [ebp + 0x10], 1
jne 0x41be17
lea ecx, [ebp - 0x104]
push ecx
push 0x104
push str.KANSGUI.EXE
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x10c], eax
jmp 0x41be1c
jmp 0x41bfc3
cmp dword [ebp - 0x10c], 0
jne 0x41be2a
jmp 0x41bfc1
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x41be51
jmp 0x41bfbf
mov ecx, dword [ebp - 0x108]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x114], edx
cmp dword [ebp - 0x114], 0
jne 0x41be80
jmp 0x41bfbd
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
push 0
lea edx, [ebp - 0x104]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x41beb0
jmp 0x41bfbb
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0x437f34
mov edx, dword [ebp - 0x114]
push edx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x41bee3
jmp 0x41bfb9
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx + 8]
and edx, 0xffff
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
push ecx
push str._u._u._u._u
push 0x439bb4
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov dword [0x439ce4], 1
cmp dword [ebp + 8], 0
je 0x41bf65
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
cmp dword [ebp + 0xc], 0
je 0x41bf79
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x120], 1
cmp dword [ebp - 0x114], 0
je 0x41bfb1
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x120]
jmp 0x41bfc5
jmp 0x41bf83
jmp 0x41bf83
jmp 0x41bf83
jmp 0x41bf83
jmp 0x41bf83
jmp 0x41bf83
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41c545
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push edi
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1a0], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x19f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1ac], 0xffffffff
lea eax, [ebp - 0x1a0]
push eax
push 0x104
push str.KAEngine.DAT
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x41c5d1
jmp 0x41c701
push 0
push 0xa7
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0xffffffff
jne 0x41c604
jmp 0x41c6ff
push 0
lea edx, [ebp - 0x98]
push edx
push 0x94
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x41c63a
jmp 0x41c6fd
cmp dword [ebp - 0x98], 0x94
je 0x41c64b
jmp 0x41c6fb
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1a4]
shr edx, 0x10
push edx
mov eax, dword [ebp - 0x1a8]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1a8]
shr ecx, 0x10
push ecx
push 0x437f60
push 0x439c18
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov dword [0x439ce8], 1
cmp dword [ebp + 8], 0
je 0x41c6b8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1a8]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
je 0x41c6c9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1a4]
mov dword [ecx], edx
mov dword [ebp - 0x1b0], 1
cmp dword [ebp - 0x1ac], 0xffffffff
je 0x41c6f3
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1ac], 0xffffffff
mov eax, dword [ebp - 0x1b0]
jmp 0x41c703
jmp 0x41c6d3
jmp 0x41c6d3
jmp 0x41c6d3
jmp 0x41c6d3
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41c876
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x188], 0xffffffff
mov word [ebp - 0x178], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
push 0
push 0xa7
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0xffffffff
jne 0x41c8f4
jmp 0x41c9f0
push 0
lea ecx, [ebp - 0x174]
push ecx
push 0x170
lea edx, [ebp - 0x170]
push edx
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x41c92a
jmp 0x41c9ee
cmp dword [ebp - 0x174], 0x170
je 0x41c93b
jmp 0x41c9ec
mov ecx, dword [ebp - 0x11c]
shr ecx, 8
and ecx, 0xff
mov word [ebp - 0x178], cx
mov edx, dword [ebp - 0x11c]
and edx, 0xffff0000
mov eax, dword [ebp - 0x178]
and eax, 0xffff
add edx, eax
mov dword [ebp - 0x184], edx
mov ecx, dword [ebp - 0x11c]
and ecx, 0xff
mov word [ebp - 0x178], cx
mov edx, dword [ebp - 0x178]
and edx, 0xffff
shl edx, 0x10
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x18c], 1
cmp dword [ebp + 0xc], 0
je 0x41c9b3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x184]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x41c9c4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x180]
mov dword [edx], eax
cmp dword [ebp - 0x188], 0xffffffff
je 0x41c9e4
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x188], 0xffffffff
mov eax, dword [ebp - 0x18c]
jmp 0x41c9f2
jmp 0x41c9a2
jmp 0x41c9a2
jmp 0x41c9a2
mov esp, ebp
pop ebp
ret