joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40196c
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4025e8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x405680], eax
mov al, ah
and eax, 0xff
mov dword [0x40568c], eax
mov eax, dword [0x405680]
shr dword [0x405680], 0x10
and eax, 0xff
mov dword [0x405688], eax
shl eax, 8
add eax, dword [0x40568c]
mov dword [0x405684], eax
call fcn.0040253d
mov dword [ebp - 4], 0
call fcn.0040244f
call fcn.00402444
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40384c], eax
call fcn.00401fb8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x405658], eax
call fcn.00401eed
call fcn.00401b04
mov esi, dword [0x40384c]
mov al, byte [esi]
cmp al, 0x22
je 0x401a20
cmp al, 0x20
jbe 0x401a4c
inc esi
cmp byte [esi], 0x20
ja 0x401a18
jmp 0x401a4c
inc esi
cmp byte [esi], 0x22
je 0x401a4b
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401a46
movzx eax, bl
push eax
call fcn.00401eaa
add esp, 4
test eax, eax
je 0x401a40
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401a29
cmp byte [esi], 0x22
jne 0x401a4c
inc esi
cmp byte [esi], 0
je 0x401a5c
cmp byte [esi], 0x20
ja 0x401a5c
inc esi
cmp byte [esi], 0
jne 0x401a51
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x401a7c
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401b34
jmp 0x401ab8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b56
Capabilities:
Terminate process

Disassembly:
mov dword [0x4056b8], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4056b4], bl
jne 0x401bb2
cmp dword [0x403848], 0
je 0x401ba0
mov esi, dword [0x403840]
sub esi, 4
cmp dword [0x403848], esi
ja 0x401ba0
mov eax, dword [esi]
test eax, eax
je 0x401b95
call eax
sub esi, 4
cmp dword [0x403848], esi
jbe 0x401b8d
push 0x406118
push 0x406114
call fcn.00401bd5
add esp, 8
push 0x406120
push 0x40611c
call fcn.00401bd5
add esp, 8
test ebx, ebx
jne 0x401bd2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40115b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x401174
mov eax, dword [ebp - 4]
jmp 0x40124e
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x401229
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x446a48]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x446a48]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x446a48]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x446a48]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x446a48]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x446a48]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x446a48]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x446a48]
dec ebp
jne 0x401193
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x401245
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x446a48]
dec ecx
jne 0x401233
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4012d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40133f
cmp dword [ebp + 0x10], 1
je 0x401318
cmp dword [ebp + 0x10], 2
je 0x401318
push 0xd
pop eax
jmp 0x40133f
test edi, edi
mov eax, dword [ebp - 4]
je 0x401339
test eax, eax
je 0x401335
test al, 1
jne 0x401313
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401339
jmp 0x401313
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x401345
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4013c8
push ebx
push edi
push esi
push esi
push 3
mov eax, 0x446e68
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x446e60
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, eax
cmp ebx, esi
je 0x4013b7
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 4], esi
je 0x4013c1
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x4013ce
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x7a0], eax
mov eax, dword [ebp + 0x7b0]
push ebx
mov ebx, dword [ebp + 0x7ac]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x7b4]
push 0x7fe
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x5e]
push esi
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
xor edi, edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], esi
mov word [ebp - 0x60], si
call fcn.0042b8b0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x74], eax
je 0x40151d
push eax
call fcn.0042a208
mov edi, eax
cmp edi, esi
pop ecx
je 0x40151d
push edi
push dword [ebp - 0x74]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40151d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40151d
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 2]
push dword [ebp - 0x78]
movzx eax, word [eax]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push eax
lea eax, [ebp - 0x60]
push str.StringFileInfo_04x_04x_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4014fd
cmp dword [ebp - 0x74], 0x96
jb 0x40151d
push 0x800
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0042b8b0
lea eax, [edi + 0x86]
push eax
lea eax, [ebp - 0x60]
push str.StringFileInfo_sFileVersion
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40151d
mov eax, dword [ebp + 0x7b8]
lea ecx, [eax - 1]
push ecx
push dword [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call fcn.0042b7e0
add esp, 0x10
mov dword [ebp - 0x70], 1
cmp edi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], esi
je 0x40152e
push edi
call fcn.0042b7db
pop ecx
mov ecx, dword [ebp + 0x7a0]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b92a
add ebp, 0x7a4
leave
ret 0x10

Function at 0x40154b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
lea ecx, [ebp - 1]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040de31
mov ecx, eax
call fcn.0040ff26
lea ecx, [ebp - 1]
call fcn.0040de34
call fcn.00409b72
push 1
push esi
push esi
push dword [eax*4 + 0x446e48]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40159b
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x3e4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x2a]
push ebx
push eax
mov word [ebp - 0x2c], bx
call fcn.0042b8b0
push esi
lea eax, [ebp + 0x1de]
push ebx
push eax
mov word [ebp + 0x1dc], bx
call fcn.0042b8b0
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x446f5c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x446f58
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.0042b9b3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.0042b939
push 0x446f50
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.0042b939
push str.uninstall_uninstall1
lea eax, [ebp + 0x1dc]
push esi
push eax
call fcn.0042b939
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.0042b8b0
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
add esp, 0x3c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4016a8
push dword [ebp - 0x38]
call esi
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x3c], ebx
je 0x4016b2
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x3e4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0042b92a
add ebp, 0x3e8
leave
ret

Function at 0x401c1a
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], ecx
jne 0x401c2f
xor eax, eax
jmp 0x401ccc
push ebx
push ebp
push edi
push dword [esp + 0x1c]
mov ebx, str.SOFTWAREKingsoftAntiVirus
push esi
push str.kis2009
push ebx
mov edi, 0x80000002
push edi
call fcn.00401a4f
test eax, eax
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x401c6a
push str.kav32.exe
push esi
call ebp
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401cc2
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push esi
push str.kis2010
push ebx
push edi
call fcn.00401a4f
test eax, eax
jne 0x401c96
push str.kismain.exe
push esi
call ebp
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401cc2
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push esi
push str.kis2011
push ebx
push edi
call fcn.00401a4f
test eax, eax
jne 0x401cc7
push str.kismain.exe
push esi
call ebp
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401cc7
xor eax, eax
inc eax
jmp 0x401cc9
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
Function at 0x4033b0
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea edi, [eax + 1]
push edi
call fcn.00402d24
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00402c1b
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x405400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x1ec], edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
jne 0x405440
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0x1d8]
call fcn.00403d76
cmp dword [ebp + 0x1f0], 8
mov eax, dword [ebp + 0x1dc]
jae 0x405455
lea eax, [ebp + 0x1dc]
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
xor esi, esi
cmp ebx, edi
je 0x405538
cmp dword [ebp - 0x5c], edi
jle 0x405499
push dword [ebx + esi*4]
lea ecx, [ebp - 0x80]
call fcn.004040fd
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x80]
push eax
call fcn.004053ab
push edi
push 1
lea ecx, [ebp - 0x80]
call fcn.00401f6b
inc esi
cmp esi, dword [ebp - 0x5c]
jl 0x405471
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x206
lea eax, [ebp - 0x3a]
push edi
push eax
mov word [ebp - 0x3c], di
call fcn.0042b8b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], 7
call fcn.00401734
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00403d76
mov esi, dword [ebp - 0x60]
mov ecx, esi
call fcn.004016e7
test eax, eax
je 0x405524
push edi
mov ecx, esi
call fcn.004016fd
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00401ea8
test eax, eax
jne 0x405524
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x64]
call fcn.00401b83
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push dword [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00404f1b
mov ecx, esi
call fcn.004016e7
push edi
push 1
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00401f6b
push edi
push 1
lea ecx, [ebp + 0x1d8]
call fcn.00401f6b
mov ecx, dword [ebp + 0x1cc]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b92a
add ebp, 0x1d0
leave
ret 0x1c
Function at 0x406793
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4067e9
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x4067ff
push 0x80004005
call fcn.00401137
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x406802
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x406d5a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040126a
mov edi, eax
cmp edi, esi
je 0x406dc2
lea ecx, [ebp - 0x70]
call fcn.00401253
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b92a
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406dda
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406d5a
cmp eax, esi
jne 0x406e0d
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x406dca
lea ecx, [ebp - 0x70]
call fcn.00401253
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00401253
mov eax, esi
jmp 0x406da8
Function at 0x407c09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x4545d0]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x78], ebx
jne 0x407c74
call fcn.0040666a
mov esi, eax
jmp 0x407d40
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x407c91
call fcn.0040666a
jmp 0x407d35
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x407c87
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x407cea
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x407cc1
lea ecx, [ebp - 0x68]
call fcn.00406d0b
mov esi, 0x8007000e
lea ecx, [ebp - 0x70]
call fcn.00406c45
mov ecx, dword [ebp + 0x39c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b92a
add ebp, 0x3a0
leave
ret 0x10
push eax
lea ecx, [ebp - 0x68]
call fcn.00407193
mov ebx, dword [ebp - 0x68]
cmp ebx, edi
jne 0x407d01
mov esi, 0x8007000e
jmp 0x407d37
call dword [0x4545d0]
push esi
push ebx
push esi
push dword [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x407c87
mov ecx, dword [ebp - 0x68]
push dword [ebp + 0x3b4]
mov word [ecx + eax*2], di
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.00407ae8
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x407cc6
lea ecx, [ebp - 0x68]
call fcn.00406d0b
jmp 0x407cc6
Function at 0x4098dd
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], 2
je 0x409a1c
push edi
push 4
pop edi
push str.Global4AD5C1B1_C922_46dc_87EB_EEEEA805350C
push esi
push 0x1f0001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x409a1b
push ebx
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
mov dword [ebp - 4], 5
call ebx
cmp eax, 0x102
je 0x409a08
push str.Global9911015F_D698_48d7_BB1B_040EA452E003
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 4], edi
mov edi, 0x1f0003
push edi
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x409a08
push str.Global689DC529_FC99_42cc_9ADD_E879C5B7B9DE
push 0
push edi
call esi
xor edi, edi
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x4099ff
push str.Global25290102_9898_4d43_8199_61F3DF41832E
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4099f6
mov esi, 0x1000
push esi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4099ed
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 3
call fcn.00408bde
cmp eax, esi
ja 0x4099e6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp + 0xc]
call ebx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 4], 1
call fcn.004097bb
test eax, eax
jne 0x4099e6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
and dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x40a04c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a4]
push edi
push 0x446e68
mov ecx, esi
call fcn.00403d76
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftkswsvc
push 0x80000002
xor ebx, ebx
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a108
push 0x206
lea eax, [ebp - 0x6e]
push edi
push eax
mov word [ebp - 0x70], di
call fcn.0042b8b0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.Version
push dword [ebp - 0x74]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a108
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push 0x447db4
push 0x104
push eax
call fcn.00409b2a
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.00403d76
inc ebx
cmp dword [ebp - 0x74], edi
je 0x40a116
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042b92a
add ebp, 0x19c
leave
ret 4

Function at 0x40a132
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, 0x447e08
push ebx
mov dword [ebp - 0x418], ecx
call fcn.00403d76
and word [ebp - 0x20c], 0
mov edi, 0x206
push edi
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0042b8b0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ksversion.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a213
and word [ebp - 0x414], 0
push edi
lea eax, [ebp - 0x412]
push 0
push eax
call fcn.0042b8b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push ebx
push 0x447ddc
push str.VERSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40a210
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.00403d76
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b92a
leave
ret 4