joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40330b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403315
repz ret
jmp fcn.0044eb98

Function at 0x404968
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493427
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.00404bcf
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.00404f12
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4049d3
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x4049f4
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f07
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x404a2e
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00403c9c
cmp dword [ebp - 0x220], 8
jb 0x404bb1
mov eax, dword [ebp - 0x234]
push eax
jmp 0x404ba9
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.00402e70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.00406776
push eax
call fcn.00406e79
add esp, 0x14
cmp eax, ebx
je 0x404a99
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.00406e79
add esp, 0x14
cmp eax, ebx
jne 0x404adc
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404aa8
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00403bac
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004051ab
cmp dword [ebp - 0x224], ebx
jne 0x404b7c
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.00406776
push eax
call fcn.00406e79
add esp, 0x14
cmp eax, ebx
je 0x404b37
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.00406e79
add esp, 0x14
cmp eax, ebx
jne 0x404b7c
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x404b48
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b48
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00403bac
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.004051ab
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00403c9c
cmp dword [ebp - 0x220], 8
jb 0x404bb1
mov edx, dword [ebp - 0x234]
push edx
call fcn.00404f07
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x405983
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493828
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.00402e70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x405a30
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a23
jmp 0x405a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x405a91
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.00402e70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405a91
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a73
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00403bac
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x40640d
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.enableetw
push eax
call fcn.0040648d
add esp, 8
test eax, eax
setne al
mov byte [esi + 0x10], al
test al, al
je 0x406489
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x406489
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventRegister
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.EventWrite
push eax
call edi
mov ecx, dword [esi]
push str.EventUnregister
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x4069c4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x406aab
cmp word [ebx], 0
je 0x406aab
test edi, edi
je 0x406aab
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x406a1f
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00402e70
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406a87
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.00406acb
add esp, 8
test eax, eax
jne 0x406a76
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00406b5c
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406a54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
Function at 0x406cfb
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x406e3d
cmp dword [ebp + 0xc], 0
je 0x406e3d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x406d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x406d49
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00405aff
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x406e29
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x406e29
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x406e29
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x406db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406e1e
mov eax, dword [ebp + 8]
push eax
call fcn.00405aff
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x406e0f
mov ebx, dword [esi]
test ebx, ebx
je 0x406e0f
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x406e0f
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.00406e64
push esi
call fcn.00406e64
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00406e64
push esi
call fcn.00406e64
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00406e64
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406e79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406eb9
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00403bac
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x406ee9
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406f08
cmp dword [ebp - 0xc], esi
jmp 0x406f76
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406f72
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x406f4e
cmp eax, 2
jne 0x406f72
cmp dword [ebp - 0xc], 8
jb 0x406f60
mov edx, dword [ebp - 0x20]
push edx
call fcn.00404f07
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x406f84
mov eax, dword [ebp - 0x20]
push eax
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x408055
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x40806e
cmp ebx, 0x20
jne 0x40825f
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x408080
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x40825e
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x4080de
add eax, 5
jmp 0x4080b5
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x4080b5
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x4081d2
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x408161
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x49e418]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x49e3f8]
xor ebx, eax
movzx eax, byte [edx + 0x49e418]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x49e418]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x49e418]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x4081b7
cmp ebx, 6
jle 0x4081b7
cmp edx, 4
jne 0x4081b7
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x49e418]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x49e418]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x49e418]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x49e418]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x4080f7
xor edx, edx
dec esi
js 0x40825d
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x40824c
cmp esi, 4
jl 0x40824c
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x49e418]
mov eax, dword [eax*4 + 0x49fa18]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x49e418]
xor eax, dword [ebx*4 + 0x49fe18]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x49e418]
xor eax, dword [ebx*4 + 0x49f618]
and ecx, 0xff
movzx ecx, byte [ecx + 0x49e418]
xor eax, dword [ecx*4 + 0x4a0218]
jmp 0x40824e
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x4081e5
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40892e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408a97
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x408a97
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x408981
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x4089fc
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x40898e
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x408a5e
dec eax
jne 0x408a8d
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a94f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push str.SOFTWAREkingsoftOffice6.0Common
push 0x80000002
mov dword [ebp - 0x214], 0
call edi
mov esi, eax
test esi, esi
je 0x40a9b0
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push 0
push str.SOFTWAREWOW6432NodekingsoftOffice6.0Common
push 0x80000002
call edi
mov esi, eax
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.00402e70
add esp, 0xc
pop edi
test esi, esi
pop esi
jne 0x40aa2e
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push str.InstallRoot
push eax
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa2e
push str.office6cfgs_setup.cfg
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
jmp 0x40aa68
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4a0800
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
push 0x409
push str.UILanguage
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x40abcc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49141b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00404e0e
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
jne 0x40ac4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ac33
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403bac
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
push edx
call fcn.0040adec
test eax, eax
jne 0x40ac75
cmp dword [ebp - 0x18], 8
jb 0x40ac6d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
or eax, 0xffffffff
jmp 0x40adb3
mov ecx, esi
call fcn.0040c021
mov ecx, esi
call fcn.0040c227
mov ecx, dword [esi]
call fcn.0040c2dd
dec eax
cmp eax, 6
ja case.default.0x40ac94
jmp dword [eax*4 + 0x40add0]
push str.UpPower
lea ecx, [ebp - 0x48]
call fcn.00409037
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [esi]
mov byte [ebp - 4], 1
call fcn.0040c163
mov ecx, dword [esi + 8]
push eax
call fcn.00438090
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0040a4bf
lea ecx, [ebp - 0x2c]
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
mov ecx, dword [esi + 8]
call fcn.0043757e
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
mov ecx, dword [esi + 8]
call fcn.0043828d
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
mov ecx, dword [esi + 8]
call fcn.00437780
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
mov ecx, esi
call fcn.0042b940
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0042be7d
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
lea ecx, [ebp - 0x49]
call fcn.0043a228
lea ecx, [ebp - 0x49]
call fcn.004150a2
cmp byte [esi + 0x20], 0
je 0x40ad80
call fcn.00439f77
lea ecx, [ebp - 0x49]
call fcn.0043a206
lea ecx, [ebp - 0x49]
call fcn.004150a2
mov ecx, esi
mov dword [esi + 4], 2
call fcn.0042bec3
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040a4bf
mov eax, esi
jmp 0x40adb3
cmp dword [ebp - 0x18], 8
jb 0x40adae
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f07
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 4
Function at 0x40b1d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491782
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
jb 0x40b222
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40b2b6
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x30], ebx
jle 0x40b2af
mov ecx, dword [eax + ecx*4]
cmp ecx, ebx
je 0x40b2a0
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40b260
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403bac
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040b2f1
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x40b2a0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f07
add esp, 4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x30]
jl 0x40b242
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret