joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47292c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a90
xor eax, eax
push ebp
push 0x472aca
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x472967
lea eax, [ebp - 4]
mov edx, 0x472ae0
call fcn.004048b0
inc esi
mov eax, dword [ebp - 4]
call fcn.004048a8
cmp eax, 3
jl 0x472959
jmp 0x472984
lea eax, [ebp - 4]
mov edx, 0x472ae0
call fcn.004048b0
inc esi
mov eax, dword [ebp - 4]
call fcn.004048a8
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x472976
mov eax, edi
call fcn.004045f0
mov ebx, 1
jmp 0x472a6c
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
mov byte [ebp - 5], dl
mov edx, dword [ebp - 4]
shl eax, 4
and al, 0x3f
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx]
shr edx, 4
or al, dl
mov byte [ebp - 6], al
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
shl edx, 2
and dl, 0x3f
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx + 1]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 7], dl
mov edx, dword [ebp - 4]
and al, 0x3f
mov byte [ebp - 8], al
push dword [edi]
lea eax, [ebp - 0xc]
xor edx, edx
mov dl, byte [ebp - 5]
mov ecx, 0x472aec
mov dl, byte [ecx + edx]
call fcn.004047d0
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
xor edx, edx
mov dl, byte [ebp - 6]
mov ecx, 0x472aec
mov dl, byte [ecx + edx]
call fcn.004047d0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
xor edx, edx
mov dl, byte [ebp - 7]
mov ecx, 0x472aec
mov dl, byte [ecx + edx]
call fcn.004047d0
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
xor edx, edx
mov dl, byte [ebp - 8]
mov ecx, 0x472aec
mov dl, byte [ecx + edx]
call fcn.004047d0
push dword [ebp - 0x18]
mov eax, edi
mov edx, 5
call fcn.00404968
add ebx, 3
mov eax, dword [ebp - 4]
call fcn.004048a8
sub eax, 2
cmp ebx, eax
jle 0x4729a9
test esi, esi
jle 0x472aa7
mov eax, dword [edi]
call fcn.004048a8
mov ebx, eax
cmp ebx, 1
jl 0x472aa7
mov eax, edi
call fcn.00404af8
mov byte [eax + ebx - 1], 0x3d
dec esi
test esi, esi
je 0x472aa7
dec ebx
test ebx, ebx
jne 0x472a91
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ad1
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404614
lea eax, [ebp - 4]
call fcn.004045f0
ret
Function at 0x475c64
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x475c92
mov eax, ebx
call fcn.0047671c
cmp dword [ebx + 0x3c], 0
je 0x475c8b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x475d03
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x475cf5
cmp dword [ebx + 8], 0
je 0x475cb4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x475cc6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x475cf5
cmp dword [ebx + 8], 0
je 0x475ca7
cmp eax, 3
je 0x475cd9
dec eax
jne 0x475ca7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x475ca7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x475ca7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x475d21
cmp dword [ebx + 0x10], 0xcc
je 0x475d21
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00475d2c
pop ebx
ret
Function at 0x48f7d0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0xf
call fcn.00404858
add esp, 0x14
pop ebx
ret

Function at 0x4903f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x490472
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.00404c2c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa0
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404c2c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004089c8
cmp dword [ebp - 8], 0xfd
jne 0x49045c
mov eax, ebx
mov edx, 0x490488
call fcn.00404644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490479
lea eax, [ebp - 4]
call fcn.004045f0
ret

Function at 0x490610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x490775
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x490758
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x499568]
mov byte [eax], 1
lea eax, [ebp - 4]
call fcn.00490c98
test bl, bl
jne 0x4906c6
mov eax, dword [ebp - 4]
mov edx, 0x490788
call fcn.004049ec
je 0x490684
mov eax, dword [ebp - 4]
mov edx, 0x49079c
call fcn.004049ec
je 0x490684
mov eax, dword [ebp - 4]
mov edx, 0x4907ac
call fcn.004049ec
je 0x490684
mov eax, dword [ebp - 4]
mov edx, 0x4907bc
call fcn.004049ec
jne 0x4906a0
mov eax, 0x4907cc
call fcn.00462254
test al, al
jne 0x4906ba
push 0
push 0x4907d8
call sub.kernel32.dll_WinExec
jmp 0x4906ba
mov eax, 0x4907f8
call fcn.00462254
test al, al
jne 0x4906ba
push 0
push 0x490804
call sub.kernel32.dll_WinExec
mov eax, 0x490824
call fcn.0048fcb0
jmp 0x490742
mov eax, dword [ebp - 4]
mov edx, 0x490788
call fcn.004049ec
je 0x490702
mov eax, dword [ebp - 4]
mov edx, 0x49079c
call fcn.004049ec
je 0x490702
mov eax, dword [ebp - 4]
mov edx, 0x4907ac
call fcn.004049ec
je 0x490702
mov eax, dword [ebp - 4]
mov edx, 0x4907bc
call fcn.004049ec
jne 0x49071e
mov eax, 0x4907cc
call fcn.00462254
test al, al
jne 0x490738
push 0
push 0x49082c
call sub.kernel32.dll_WinExec
jmp 0x490738
mov eax, 0x4907f8
call fcn.00462254
test al, al
jne 0x490738
push 0
push 0x490844
call sub.kernel32.dll_WinExec
mov eax, 0x490864
call fcn.0048fcb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49075f
mov eax, dword [0x499568]
mov byte [eax], 0
ret
Function at 0x490d74
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a90
xor eax, eax
push ebp
push 0x490e47
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403088
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403088
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404aa0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x490de9
call fcn.0040dbf8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov esi, eax
test esi, esi
je 0x490e0f
mov eax, dword [0x499898]
mov eax, dword [eax]
call fcn.00460264
test esi, esi
jne 0x490de9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0
jne 0x490e28
mov bl, 1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490e4e
lea eax, [ebp - 4]
call fcn.004045f0
ret

Function at 0x4915f4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4916ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x491704
call fcn.00404644
lea eax, [ebp - 4]
mov edx, 0x80
call fcn.00404c2c
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404aa0
push eax
push 0x1001
call sub.kernel32.dll_GetUserDefaultLangID
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4916cb
mov eax, dword [ebp - 4]
call fcn.00404aa0
mov edx, ebx
call fcn.0040952c
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404aa0
push eax
push 0x1002
call sub.kernel32.dll_GetUserDefaultLangID
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4916cb
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov eax, dword [ebp - 4]
call fcn.00404aa0
lea edx, [ebp - 0x1c]
call fcn.0040952c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x491718
call fcn.00409aa8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4916f5
lea eax, [ebp - 0x1c]
call fcn.004045f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404614
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x8d223b4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x638648f6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..3ean
nop
mov ebx, 0x40915c
mov ecx, 0x66610c5b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x6b00190d
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401283
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
test esi, esi
jne 0x40129a
xor al, al
jmp 0x40132f
call fcn.00401231
test al, al
je 0x4012f5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00401bf5
add esp, 0xc
lea ecx, [ebp - 0x208]
mov edx, 0x104
push esi
call fcn.004011c9
push str.lbmini.exe
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40132d
push 0
push 0x1c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401293
push str.lbmini
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40132d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40132f
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401334
Capabilities:
Get file attributes

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str..zip
push eax
push str.TEMP_MIN_LIEBAO
push esi
push str._s_s__d_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
pop esi
ret

Function at 0x40137d
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push ebx
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.00401bf5
xor eax, eax
xorps xmm0, xmm0
push 0x7fe
mov word [ebp - 0x85c], ax
lea eax, [ebp - 0x85a]
push edi
push eax
movdqu xmmword [ebp - 0x14], xmm0
call fcn.00401bf5
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40145c
push str.____install
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x85c]
push str.__s__s
push eax
call esi
add esp, 0x10
test bl, bl
jne 0x40140f
push str._____disable_shortcut
lea eax, [ebp - 0x85c]
push eax
push str._s_s
push eax
call esi
add esp, 0x10
cmp byte [ebp + 8], 0
jne 0x40142c
push str._____no_start
lea eax, [ebp - 0x85c]
push eax
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x85c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40145c
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401463
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push eax
push 0x80
push 3
push eax
inc ebx
mov dword [ebp - 4], eax
push ebx
push 0x80000000
mov edi, edx
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4015bf
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x401505
mov edi, dword [ebp - 0x10]
push edi
push str._s.new
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov byte [eax], bl
cmp ecx, 0xffffffff
jne 0x401505
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4015bf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4015ae
push esi
call fcn.00401bdf
mov edi, eax
pop ecx
test edi, edi
je 0x4015ae
push esi
push 0
push edi
call fcn.00401bf5
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
add esp, 0xc
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
shl eax, 2
push eax
mov dword [ebp - 0x10], eax
call fcn.00401bdf
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x4015a5
push dword [ebp - 0x10]
push 0
push eax
call fcn.00401bf5
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.00401057
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40159c
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
push dword [ebp - 8]
call fcn.00401bc9
pop ecx
push edi
call fcn.00401bc9
pop ecx
jmp 0x4015b1
mov esi, dword [ebp - 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
mov edi, ecx
xor ebx, ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x401685
cmp esi, 0x800
ja 0x401685
push 0x7ff
lea eax, [ebp - 0x80f]
mov byte [ebp - 0x810], bl
push ebx
push eax
call fcn.00401bf5
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401685
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x40221c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401685
cmp dword [ebp - 0xc], ebx
je 0x401685
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push 0x402220
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40168e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb04
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401813
xor eax, eax
xor esi, esi
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push esi
push eax
call fcn.00401bf5
push 0x40
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0x44
push esi
push eax
call fcn.00401bf5
xor eax, eax
xorps xmm0, xmm0
push 0x7fe
mov word [ebp - 0xb00], ax
lea eax, [ebp - 0xafe]
push esi
push eax
movdqu xmmword [ebp - 0x10], xmm0
call fcn.00401bf5
xor eax, eax
push 0x206
mov word [ebp - 0x300], ax
lea eax, [ebp - 0x2fe]
push esi
push eax
call fcn.00401bf5
add esp, 0x30
lea eax, [ebp - 0x300]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x402238
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x401772
push 0x402240
add esi, 6
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x401772
cmp eax, esi
jbe 0x401772
sub eax, esi
sar eax, 1
cmp eax, 0x20
jg 0x401772
push esi
lea edx, [eax + 1]
lea ecx, [ebp - 0x50]
call fcn.004011c9
test ebx, ebx
jne 0x401793
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp - 0xb00]
push str.__s_____install_pid_s____install_error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x4017de
xor eax, eax
push 0x5e
push eax
mov word [ebp - 0xf8], ax
lea eax, [ebp - 0xf6]
push eax
call fcn.00401bf5
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x300]
call fcn.004015c8
lea eax, [ebp - 0xf8]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp - 0xb00]
push str.__s_____install_pid_s____install_error_d____install_ver_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
xor ecx, ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0xb00]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401813
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40181a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor eax, eax
xor esi, esi
push 0x5e
mov word [ebp - 0x68], ax
mov ebx, ecx
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.00401bf5
xor eax, eax
push 0x3e
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa6]
push esi
push eax
call fcn.00401bf5
add esp, 0x18
mov dword [ebp - 4], 0x30
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 8]
push eax
push str.lbmini_version
push str.SoftwareKingsoftLBMINI
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x4018c6
lea edx, [ebp - 0x68]
mov ecx, ebx
call fcn.004015c8
lea ecx, [ebp - 0x68]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40189a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push str.lbmini_version
push str.SoftwareKingsoftLBMINI
push 0x80000001
call esi
jmp 0x4018c8
xor ebx, ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 8]
push eax
push str.lbmini_pid
push str.SoftwareKingsoftLBMINI
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40190c
push ebx
push ebx
push 1
push str.lbmini_pid
push str.SoftwareKingsoftLBMINI
push 0x80000001
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret