joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477fd8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.004056b8
xor eax, eax
push ebp
push 0x478078
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x478006
mov esi, dword [0x5a37f8]
jmp 0x478016
mov eax, dword [ebp - 8]
call fcn.004056c8
push eax
call fcn.00407cf8
mov esi, eax
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov edx, dword [ecx]
mov eax, edx
cmp esi, dword [eax + 0x18]
jne 0x47805c
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 0x10]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
jmp 0x478062
mov edx, dword [edx]
cmp edx, ecx
jne 0x47802b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47807f
lea eax, [ebp - 8]
call fcn.00405238
ret

Function at 0x478944
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403a34
ret
Function at 0x4fdf2c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4fdf5a
mov eax, ebx
call fcn.004fe9e0
cmp dword [ebx + 0x40], 0
je 0x4fdf53
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4fdfcb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4fdfbd
cmp dword [ebx + 8], 0
je 0x4fdf7c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4fdf8e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4fdfbd
cmp dword [ebx + 8], 0
je 0x4fdf6f
cmp eax, 3
je 0x4fdfa1
dec eax
jne 0x4fdf6f
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 0x4fdf6f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4fdf6f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4fdfe9
cmp dword [ebx + 0x14], 0xcc
je 0x4fdfe9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004fdff4
pop ebx
ret

Function at 0x50f168
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor esi, esi
xor ecx, ecx
mov ebx, edx
add ebx, ebx
add ebx, ebx
add ebx, ecx
lea ebx, [eax + ebx*4]
movzx ebx, byte [ebx + esi + 0x27]
lea edi, [eax + esi*4]
xor byte [edi + ecx + 0x117], bl
inc ecx
cmp ecx, 4
jne 0x50f16f
inc esi
cmp esi, 4
jne 0x50f16d
pop edi
pop esi
pop ebx
ret
Function at 0x50f19c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 5]
dec eax
test eax, eax
jl 0x50f1e6
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov eax, esi
add eax, eax
add eax, eax
movzx edx, byte [ebx + eax + 7]
mov byte [ebx + esi*4 + 0x27], dl
movzx edx, byte [ebx + eax + 8]
mov byte [ebx + esi*4 + 0x28], dl
movzx edx, byte [ebx + eax + 9]
mov byte [ebx + esi*4 + 0x29], dl
movzx eax, byte [ebx + eax + 0xa]
mov byte [ebx + esi*4 + 0x2a], al
inc esi
dec dword [esp + 4]
jne 0x50f1b5
movzx esi, byte [ebx + 5]
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 6]
inc edx
imul edx
dec eax
sub eax, esi
jl 0x50f2e6
inc eax
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, esp
lea edx, [ebx + esi*4]
movzx edx, byte [edx + ecx + 0x23]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x50f207
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x50f284
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0050f658
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0050f5cc
mov ecx, 4
mov ebp, 0x5a0240
mov edi, esp
movzx eax, byte [ebx + 5]
push eax
mov eax, esi
pop edx
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
movzx eax, byte [ebp + eax*4]
xor byte [edi], al
inc edi
inc ebp
dec ecx
jne 0x50f267
jmp 0x50f2b7
movzx ecx, byte [ebx + 5]
cmp cl, 6
jbe 0x50f2b7
movzx eax, cl
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
cmp edx, 4
jne 0x50f2b7
lea eax, [esp + 2]
push eax
lea eax, [esp + 7]
push eax
lea ecx, [esp + 9]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0050f5cc
xor ecx, ecx
mov eax, esp
movzx edx, byte [ebx + 5]
mov edi, esi
sub edi, edx
lea edx, [ebx + edi*4]
movzx edx, byte [edx + ecx + 0x27]
xor dl, byte [eax]
lea edi, [ebx + esi*4]
mov byte [edi + ecx + 0x27], dl
inc ecx
inc eax
cmp ecx, 4
jne 0x50f2bb
inc esi
dec dword [esp + 4]
jne 0x50f203
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50f2f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x5a0140
xor ecx, ecx
xor edx, edx
lea eax, [esi + ecx*4]
movzx eax, byte [eax + edx + 0x117]
mov ebx, eax
and bl, 0xf
movzx ebx, bl
movzx eax, al
shr eax, 4
add eax, eax
lea eax, [edi + eax*8]
movzx eax, byte [eax + ebx]
lea ebx, [esi + ecx*4]
mov byte [ebx + edx + 0x117], al
inc edx
cmp edx, 4
jne 0x50f2fe
inc ecx
cmp ecx, 4
jne 0x50f2fc
pop edi
pop esi
pop ebx
ret
Function at 0x50f3b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
xor edx, edx
mov ecx, esp
xor edi, edi
mov eax, ecx
lea ebx, [esi + edx*4]
movzx ebx, byte [ebx + edi + 0x117]
mov byte [eax], bl
inc edi
inc eax
cmp edi, 4
jne 0x50f3c8
inc edx
add ecx, 4
cmp edx, 4
jne 0x50f3c4
xor edi, edi
mov ebx, esp
movzx edx, byte [ebx]
mov eax, esi
call fcn.0050f580
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.0050f530
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.0050f554
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.0050f508
pop edx
xor dl, al
mov byte [esi + edi + 0x117], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.0050f508
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.0050f580
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.0050f530
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.0050f554
pop edx
xor dl, al
mov byte [esi + edi + 0x11b], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.0050f554
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.0050f508
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.0050f580
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.0050f530
pop edx
xor dl, al
mov byte [esi + edi + 0x11f], dl
movzx edx, byte [ebx]
mov eax, esi
call fcn.0050f530
push eax
movzx edx, byte [ebx + 4]
mov eax, esi
call fcn.0050f554
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 8]
mov eax, esi
call fcn.0050f508
pop edx
xor dl, al
push edx
movzx edx, byte [ebx + 0xc]
mov eax, esi
call fcn.0050f580
pop edx
xor dl, al
mov byte [esi + edi + 0x123], dl
inc edi
inc ebx
cmp edi, 4
jne 0x50f3e9
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x50f5cc
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx ebx, byte [esi]
and bl, 0xf
movzx ebx, bl
movzx edi, byte [esi]
shr edi, 4
add edi, edi
lea edi, [edi*8 + 0x5a0040]
movzx ebx, byte [edi + ebx]
mov byte [esi], bl
movzx ebx, byte [eax]
and bl, 0xf
movzx ebx, bl
movzx esi, byte [eax]
shr esi, 4
add esi, esi
lea esi, [esi*8 + 0x5a0040]
movzx ebx, byte [esi + ebx]
mov byte [eax], bl
movzx eax, byte [ecx]
and al, 0xf
movzx eax, al
movzx ebx, byte [ecx]
shr ebx, 4
add ebx, ebx
lea ebx, [ebx*8 + 0x5a0040]
movzx eax, byte [ebx + eax]
mov byte [ecx], al
movzx eax, byte [edx]
and al, 0xf
movzx eax, al
movzx ecx, byte [edx]
shr ecx, 4
add ecx, ecx
lea ecx, [ecx*8 + 0x5a0040]
movzx eax, byte [ecx + eax]
mov byte [edx], al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5b9320
Capabilities:
Encode data using xor

Disassembly:
xchg dword [esp + 0xc], edi
movsx di, dl
lea edi, [ecx + 0x4c632092]
not di
pushal
mov edi, 0x58943d
push edi
jmp 0x5bff34
mov edi, dword [edi + 0x29cf7]
mov edi, 0x29cf7
push 0xa12317f4
call fcn.005b9f32
xor byte [esi - 0x67449d24], dl
inc edx
jg 0x5bff35
outsb dx, byte [esi]
imul edi, edi, 0xffffffff

Function at 0x686cf0
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
mov byte [esp + 8], dh
lea esp, [esp + 0x24]
je fcn.00677829
xor cl, 0x5c
pushal
bt di, 4
add edx, eax
bswap cx
bswap cx
mov ecx, dword [esi + 0x7c]
pushal
push esi
add ecx, edx
test si, cx
mov dword [ebp - 0x10], ecx
movsx cx, dl
mov ecx, dword [ebp + 0xc]
pushfd
test dl, al
cmc
stc
cmp ecx, 0xffff
mov byte [esp], bh
lea esp, [esp + 0x48]
jbe 0x689702
rcl cx, cl
mov edi, dword [edx + 0x24]
rol bl, 5
pushfd
push ebp
add edi, eax
setno bl
shrd cx, bx, cl
movsx cx, bl
call fcn.00669eb1
push eax
invalid
push edi
inc ah
inc ah
shrd ax, si, 0xc
movsx ax, al
push ebx
rol al, 1
bts eax, edi
aaa
bswap ax
push edx
aam 0x25
pushal
and al, 0x16
mov eax, dword [ebp + 8]
pushfd
push dword [esp + 4]
mov byte [esp + 4], 0x53
test eax, eax
mov byte [esp + 0x10], ah
jmp 0x688cf1
bsr ax, si
adc ah, 0x36
push ebp
pushal
bts bp, sp
rol ebp, 0x1f
ror bp, cl
lea ebp, [esp + 0x20]
sar ah, cl
bts ax, 1
aas
sub esp, 0xfffffff8
aam 0xe1
aam 0xec
lahf
movzx ax, cl
push esi
not eax
lahf
test dh, 0xd4
jmp 0x6801f6
lea esp, [esp + 0x28]
je fcn.00677829
cmp ah, 0x6e
add esi, edi
ror dl, 4
bswap dx
mov esi, dword [eax + 0x3c]
xor dl, 0xb
sar dl, 4
add esi, eax
bsr dx, sp
shr dx, cl
bsr dx, dx
xor dl, al
mov edx, dword [esi + 0x78]
clc
cmp bx, di
test edx, edx
pushal
pushfd
jmp 0x668be8
Function at 0x4ecd70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
lea eax, [edi + 0x846fc]
push dword [eax]
mov dword [eax], 0x2d801960
push eax
push edi
jmp 0x4ecd9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ecda1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ecd90
mov eax, 1
add ebx, ebx
jne 0x4ecdb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ecdc4
jne 0x4ecde3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ecde3
dec eax
add ebx, ebx
jne 0x4ecdd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ecda8
add ebx, ebx
jne 0x4ecddf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ece35
xor ecx, ecx
sub eax, 3
jb 0x4ecdfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ece6a
sar eax, 1
mov ebp, eax
jmp 0x4ece06
add ebx, ebx
jne 0x4ece06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ecdd4
inc ecx
add ebx, ebx
jne 0x4ece14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ecdd4
add ebx, ebx
jne 0x4ece21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ece16
jne 0x4ece32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ece16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ece54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ece46
jmp 0x4ecd96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ece54
add edi, ecx
jmp 0x4ecd96
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2717
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ece76
cmp byte [edi], 0x21
jne 0x4ece76
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ece7b
lea edi, [esi + 0xe7000]
mov eax, dword [edi]
or eax, eax
je 0x4ecef3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xed2d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xed404]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ecea8
mov ecx, edi
jns 0x4eced7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xed40c]
or eax, eax
je 0x4eceed
mov dword [ebx], eax
add ebx, 4
jmp 0x4ecec5
call dword [esi + 0xed408]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ecf24
cmp al, 0xef
ja 0x4ecf17
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ecef9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ecf06
mov ebp, dword [esi + 0xed410]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ecf58
sub esp, 0xffffff80
jmp 0x43d47b
Function at 0x40330b
Capabilities:
Terminate process

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

Function at 0x4049de
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516744
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.00404c45
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.00404f88
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x404a49
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x404a6a
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x404aa4
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.00403fa0
cmp dword [ebp - 0x220], 8
jb 0x404c27
mov eax, dword [ebp - 0x234]
push eax
jmp 0x404c1f
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.0040941d
push eax
call fcn.00409a84
add esp, 0x14
cmp eax, ebx
je 0x404b0f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.00409a84
add esp, 0x14
cmp eax, ebx
jne 0x404b52
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b1e
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.0040392d
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00405221
cmp dword [ebp - 0x224], ebx
jne 0x404bf2
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.0040941d
push eax
call fcn.00409a84
add esp, 0x14
cmp eax, ebx
je 0x404bad
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.00409a84
add esp, 0x14
cmp eax, ebx
jne 0x404bf2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x404bbe
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404bbe
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.0040392d
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00405221
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.00403fa0
cmp dword [ebp - 0x220], 8
jb 0x404c27
mov edx, dword [ebp - 0x234]
push edx
call fcn.00404f7d
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 0x4059f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516c08
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 0x405aa6
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a99
jmp 0x405af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x405b07
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 0x405b07
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ae9
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.0040392d
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 0x4062c1
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.00406341
add esp, 8
test eax, eax
setne al
mov byte [esi + 0x10], al
test al, al
je 0x40633d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x40633d
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 0x40682a
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 0x40688b
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 0x406909
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 0x406909
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 0x406943
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 0x523df0
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 0x406b38
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51158b
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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.00404e84
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
jne 0x406bb8
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 0x406b9f
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040392d
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
push edx
call fcn.00406d88
test eax, eax
jne 0x406be1
cmp dword [ebp - 0x18], 8
jb 0x406bd9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
or eax, 0xffffffff
jmp 0x406d4d
mov ecx, esi
call fcn.00407a93
mov ecx, esi
call fcn.00407e12
mov ecx, dword [esi]
call fcn.00407ec8
dec eax
cmp eax, 6
ja case.default.0x406c00
jmp dword [eax*4 + 0x406d6c]
push str.UpPower
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [esi]
mov byte [ebp - 4], 1
call fcn.00407bd5
mov ecx, dword [esi + 8]
push eax
call fcn.0042a3e7
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0040dcc2
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
mov ecx, dword [esi + 8]
call fcn.0042996e
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
mov ecx, dword [esi + 8]
call fcn.0042a5e4
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
mov ecx, dword [esi + 8]
call fcn.00429b70
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
mov ecx, esi
call fcn.0041c181
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0041c6be
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
lea ecx, [ebp - 0x65]
call fcn.0041708e
lea ecx, [ebp - 0x65]
call fcn.004172cb
cmp byte [esi + 0x20], 0
je 0x406cf2
call fcn.0042c5f6
lea ecx, [ebp - 0x65]
call fcn.0042c670
lea ecx, [ebp - 0x65]
call fcn.004172cb
push str.TD_WPS_EXEC_HOST
lea ecx, [ebp - 0x64]
mov dword [esi + 4], 2
call fcn.0040bc49
lea edx, [ebp - 0x64]
push edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041c7e6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.0040dcc2
mov ecx, esi
call fcn.0041c704
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040dcc2
mov eax, esi
jmp 0x406d4d
cmp dword [ebp - 0x18], 8
jb 0x406d48
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
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