joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403000
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x401540], 1
push 0
push 0x401540
push 0x401550
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x403059
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x402e7d], eax
push 0
push 0x403061
push 0
push 1
push eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
push dword [0x401550]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x40413a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
pushal
lea edi, [ebp - 0x20c]
lea eax, [ebp - 0x214]
push eax
push edi
push 0x104
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
push edi
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
or eax, eax
je 0x4041d3
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
add edi, eax
mov dword [ebp - 0x210], edi
std
mov ecx, edi
sub ecx, dword [ebp - 0x214]
mov al, 0x2e
repne scasb al, byte es:[edi]
cld
or ecx, ecx
je 0x40419e
inc edi
mov byte [edi], 0
inc edi
mov dword [ebp - 0x210], edi
lea edi, [ebp - 0x108]
lea ebx, [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 4]
push ebx
push 0x4041e2
push edi
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
or eax, eax
je 0x4041d3
inc dword [ebp - 4]
jmp 0x40419e
push edi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_lstrcpyA]
popal
leave
ret 8

Function at 0x40452f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov al, pe_nt_image_headers32
xor edx, edx
movsb byte es:[edi], byte [esi]
mov ebx, 3
add al, al
jne 0x40454a
lodsb al, byte [esi]
adc al, al
jae 0x40453d
add al, al
jne 0x404553
lodsb al, byte [esi]
adc al, al
jb 0x4045ae
call fcn.00404598
sub ecx, ebx
jae 0x404565
call fcn.00404598
jmp 0x40458c
mov edx, ecx
shl edx, 8
mov dl, byte [esi]
inc esi
call fcn.00404598
cmp edx, 0x7d00
jae 0x40458a
cmp edx, 0x500
jae 0x40458b
cmp edx, 0x80
jae 0x40458c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, edx
rep movsb byte es:[edi], byte [esi]
pop esi
mov bl, 2
jmp 0x404543
xor ecx, ecx
add al, al
jne 0x4045b7
lodsb al, byte [esi]
adc al, al
jb 0x4045c6
movzx edx, byte [esi]
inc esi
inc ecx
shr dl, 1
je 0x4045fb
adc ecx, ecx
jmp 0x40458c
add al, al
jne 0x4045cd
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x4045d6
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x4045df
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x4045e8
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
xchg ecx, eax
je 0x4045f3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
stosb byte es:[edi], al
mov eax, ecx
jmp 0x40453e
sub edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
popal
leave
ret 8
Function at 0x404607
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x1000
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
xor ebx, ebx
lodsb al, byte [esi]
or al, al
je 0x4046a2
cmp al, 0x22
je 0x404685
cmp ebx, 1
je 0x40465a
cmp al, 0x20
je 0x404664
cmp al, 9
je 0x404664
stosb byte es:[edi], al
mov dword [ebp - 4], 1
jmp 0x404644
mov al, 0
stosb byte es:[edi], al
inc dword [ebp - 8]
mov dword [ebp - 4], 0
lodsb al, byte [esi]
or al, al
je 0x4046a2
cmp al, 0x22
je 0x404689
cmp al, 0x20
je 0x404671
cmp al, 9
je 0x404671
dec esi
jmp 0x404644
or ebx, ebx
jne 0x404697
cmp dword [ebp + 0xc], 1
jne 0x404690
stosb byte es:[edi], al
mov ebx, 1
jmp 0x404644
cmp dword [ebp + 0xc], 1
jne 0x40469e
stosb byte es:[edi], al
xor ebx, ebx
jmp 0x404664
xor eax, eax
stosw word es:[edi], ax
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov ecx, edi
sub ecx, dword [ebp - 0xc]
push ecx
push ecx
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
pop ecx
mov edi, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
shl eax, 2
push eax
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov esi, dword [eax + 8]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
or eax, eax
je 0x404714
mov dword [edi], esi
add edi, 4
add esi, eax
inc esi
jmp 0x4046ff
popal
leave
ret 8
Function at 0x401057
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [ecx]
and dword [ebp - 0xc], 0
push ebx
push esi
mov byte [edx], al
or esi, 0xffffffff
lea eax, [edx + 1]
mov dword [ebp - 8], edx
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.00401000
test eax, eax
je 0x4011a1
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0x18]
test eax, eax
je 0x401117
call fcn.00401000
test eax, eax
je 0x4010d9
push 4
xor edi, edi
pop ebx
lea ecx, [ebp - 0x18]
call fcn.00401000
lea edi, [eax + edi*2]
dec ebx
jne 0x4010ae
mov edx, dword [ebp - 0x14]
test edi, edi
je 0x4010cd
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4010d0
mov byte [edx], 0
mov ebx, dword [ebp - 4]
inc edx
jmp 0x4011b0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx esi, byte [eax]
inc eax
mov ecx, esi
mov dword [ebp - 0x18], eax
and ecx, 1
add ecx, 2
shr esi, 1
je 0x40110c
test ecx, ecx
je 0x40119c
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4010fe
jmp 0x401199
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40119c
call fcn.00401036
test edi, edi
jne 0x40114a
cmp eax, 2
jne 0x401145
lea ecx, [ebp - 0x18]
call fcn.00401036
mov edx, dword [ebp - 0x14]
mov edi, eax
test edi, edi
je 0x40119c
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x40113a
jmp 0x401199
sub eax, 3
jmp 0x40114d
sub eax, 2
mov ecx, dword [ebp - 0x18]
mov esi, eax
shl esi, 8
movzx eax, byte [ecx]
add esi, eax
inc ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
call fcn.00401036
mov ecx, eax
cmp esi, 0x7d00
jb 0x401171
inc ecx
cmp esi, 0x500
jb 0x40117a
inc ecx
cmp esi, 0x80
jae 0x401185
add ecx, 2
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x40119c
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x401190
mov dword [ebp - 0x14], edx
xor edi, edi
inc edi
jmp 0x4011b5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [ebp - 0x18], ecx
xor edi, edi
mov dword [ebp - 0x14], edx
test ebx, ebx
je 0x401081
sub edx, dword [ebp - 8]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
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.00401c77
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
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push 0
push eax
mov bl, dl
mov esi, ecx
call fcn.00401c77
and dword [ebp - 0x14], 0
lea edi, [ebp - 0x10]
xor eax, eax
stosd dword es:[edi], eax
push 0x7fe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x85c], ax
xor edi, edi
lea eax, [ebp - 0x85a]
push edi
push eax
call fcn.00401c77
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401461
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 0x401414
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 0x401431
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 0x401461
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 0x401468
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 0x4015c4
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 0x40150a
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 0x40150a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4015c4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4015b3
push esi
call fcn.00401c61
mov edi, eax
pop ecx
test edi, edi
je 0x4015b3
push esi
push 0
push edi
call fcn.00401c77
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.00401c61
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x4015aa
push dword [ebp - 0x10]
push 0
push eax
call fcn.00401c77
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
call fcn.00401057
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4015a1
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.00401c4b
pop ecx
push edi
call fcn.00401c4b
pop ecx
jmp 0x4015b6
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 0x4015cd
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 0x40168a
cmp esi, 0x800
ja 0x40168a
push 0x7ff
lea eax, [ebp - 0x80f]
mov byte [ebp - 0x810], bl
push ebx
push eax
call fcn.00401c77
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 0x40168a
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 0x40168a
cmp dword [ebp - 0xc], ebx
je 0x40168a
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 0x40171e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401844
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push 0
push eax
call fcn.00401c77
and dword [ebp - 0x14], 0
lea edi, [ebp - 0x10]
xor eax, eax
stosd dword es:[edi], eax
push 0x7fe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0xac4], ax
xor edi, edi
lea eax, [ebp - 0xac2]
push edi
push eax
call fcn.00401c77
xor eax, eax
push 0x206
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x2c2]
push edi
push eax
call fcn.00401c77
add esp, 0x24
lea eax, [ebp - 0x2c4]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [ebp + 8], edi
jne 0x4017ca
push edi
push ebx
push esi
lea eax, [ebp - 0xac4]
push str.__s_____install_pid_s____install_error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x401814
xor eax, eax
push 0x5e
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0xba]
push edi
push eax
call fcn.00401c77
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x2c4]
call fcn.004015cd
lea eax, [ebp - 0xbc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xac4]
push ebx
push esi
push str.__s_____install_pid_s____install_error_d____install_ver_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
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 - 0xac4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401844
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 0x40184b
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.00401c77
xor eax, eax
push 0x3e
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa6]
push esi
push eax
call fcn.00401c77
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 0x4018f7
lea edx, [ebp - 0x68]
mov ecx, ebx
call fcn.004015cd
lea ecx, [ebp - 0x68]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4018cb
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 0x4018f9
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 0x40193d
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
Function at 0x401943
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa44
push ebx
push esi
push edi
push 0xa
push str.LIEBAOSETUP
push 0
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1a], cl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401b51
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401b51
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401b51
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esp + 0x840]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401b51
lea edx, [esp + 0x630]
lea ecx, [esp + 0x840]
call fcn.00401334
mov esi, eax
cmp esi, 0xffffffff
je 0x401b51
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
jg 0x4019f8
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4019ef
sub ecx, edx
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x224], ax
xor ebx, ebx
lea eax, [esp + 0x226]
push ebx
push eax
call fcn.00401c77
add esp, 0xc
lea ecx, [esp + 0x220]
call fcn.00401693
xor eax, eax
push esi
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push ebx
push eax
call fcn.00401c77
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401283
test al, al
je 0x401b43
push str.lbmini.exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x18]
call fcn.0040184b
xor eax, eax
mov byte [esp + 0xd], bl
push esi
mov word [esp + 0x42c], ax
lea eax, [esp + 0x42e]
push ebx
push eax
call fcn.00401c77
add esp, 0xc
lea eax, [esp + 0x18]
mov edx, 0x104
lea ecx, [esp + 0x428]
push eax
call fcn.004011c9
lea eax, [esp + 0xd]
push eax
lea edx, [esp + 0x42c]
lea ecx, [esp + 0x634]
call fcn.00401468
lea edx, [esp + 0x224]
pop ecx
test eax, eax
jne 0x401b38
push ebx
lea ecx, [esp + 0x42c]
call fcn.0040171e
pop ecx
cmp byte [esp + 0xd], bl
jne 0x401afb
mov byte [esp + 0x10], 1
cmp byte [esp + 0xe], bl
je 0x401aff
mov byte [esp + 0x10], bl
push 4
push str.duba
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x401b20
mov byte [esp + 0x10], bl
mov al, bl
jmp 0x401b24
mov al, byte [esp + 0xf]
push dword [esp + 0x10]
mov dl, al
lea ecx, [esp + 0x42c]
call fcn.0040137d
jmp 0x401b42
push eax
lea ecx, [esp + 0x1c]
call fcn.0040171e
pop ecx
lea eax, [esp + 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b5a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor esi, esi
xor al, al
mov dword [ebp - 8], ecx
mov bl, 1
mov byte [ebp + 0x13], al
cmp dword [ebp - 4], esi
jle 0x401c15
push edi
mov edx, dword [ecx + esi*4]
mov ecx, str.__upgrade
mov eax, edx
mov di, word [eax]
cmp di, word [ecx]
jne 0x401bba
test di, di
je 0x401bb6
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x401bba
add eax, 4
add ecx, 4
test di, di
jne 0x401b94
xor eax, eax
jmp 0x401bbf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401bca
mov al, 1
mov byte [ebp + 0x13], al
jmp 0x401c07
mov eax, str.__disable_shortcut
mov cx, word [edx]
cmp cx, word [eax]
jne 0x401bf5
test cx, cx
je 0x401bf1
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x401bf5
add edx, 4
add eax, 4
test cx, cx
jne 0x401bcf
xor eax, eax
jmp 0x401bfa
sbb eax, eax
or eax, 1
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov al, byte [ebp + 0x13]
cmove ebx, ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jl 0x401b8a
pop edi
mov dl, bl
mov cl, al
call fcn.00401943
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402e70
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.004202e1
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
test esi, esi
je 0x402eb4
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
push 1
push edi
push ebx
call ebp
jmp 0x402ebc
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test esi, esi
je 0x402ed4
push 0
push edi
push ebx
call ebp
mov ecx, dword [esp + 0x10]
call fcn.00422ba9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x407c90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea ebx, [esi + 4]
mov dword [esi], 0x42dfe4
mov edi, ebx
lea ebp, [esi + 0x108]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esi + 0x20c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push 0x43818c
push ecx
push 0x438128
push ebx
call edi
lea edx, [esp + 0x24]
push 0x43817c
push edx
push 0x438128
push ebp
call edi
add esp, 0x20
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00408f70
mov ecx, dword [eax]
push 0x43817c
push ecx
lea eax, [esi + 0x20c]
push 0x438174
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.0041f9d9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x407d80
Capabilities:
Read .ini file

Disassembly:
add ecx, 0x108
push ecx
push 0
push 0x4381a4
push 0x438198
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret