joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f9df
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x51fbef
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
imul esi, dword [esp + 0x20], 3
add ecx, dword [esp + 0x18]
push edi
mov edi, 0xff
cmp dword [esp + 0x3c], edi
jne 0x51fafd
lea ebp, [ecx + eax*4]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [ecx + 0xcc]
imul ebx, eax
mov dword [esp + 0x2c], ebp
add ebx, dword [ecx + 0xc8]
add ebx, esi
cmp dword [esp + 0x34], 0
jle 0x51facf
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x51fa54
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x51fae8
sub ebp, dword [esp + 0x20]
jmp 0x51faec
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test edx, edx
jne 0x51fa2c
jmp 0x51fbeb
lea ebx, [ecx + eax*4]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov ebp, dword [ecx + 0xcc]
imul ebp, eax
mov dword [esp + 0x2c], ebx
add ebp, dword [ecx + 0xc8]
add ebp, esi
cmp dword [esp + 0x34], 0
jle 0x51fbc2
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 3]
mov esi, 0xff
imul eax, dword [esp + 0x3c]
movzx ecx, byte [ebp + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebx + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebp + 1]
mov byte [ebp + 2], al
movzx eax, byte [ebx + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [ebp]
movzx ecx, byte [ebx]
lea ebx, [ebx + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebp], al
lea ebp, [ebp + 3]
jne 0x51fb3c
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x51fbdb
sub ebx, dword [esp + 0x20]
jmp 0x51fbdf
add ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x51fb14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x521a47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x521bde
push dword [esp + 0x28]
call fcn.004824aa
test eax, eax
je 0x521a87
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x521bde
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x521bcb
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x521bc3
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00490d60
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x521bc3
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x521bc3
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x521bc3
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x521bba
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x521b92
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x521b75
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x521d00
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 4], 0
je 0x521d27
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004ec760
mov dword [esp + 4], eax
jmp 0x521d41
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x521df8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x521d66
mov eax, dword [esp + 0x10]
pop esi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push edi
cmp al, 0xc0
jne 0x521d76
mov edi, 2
jmp 0x521d92
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x521d85
mov edi, 3
jmp 0x521d92
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x521de4
mov edi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [edi - 1]
mov byte [eax], cl
inc eax
cmp dword [esi + 4], 0
je 0x521dbe
push ebx
push eax
push esi
call fcn.004ec760
mov ecx, eax
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x522306
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
or eax, edx
push esi
mov esi, dword [esp + 0x14]
or eax, esi
push edi
mov edi, dword [esp + 0x1c]
or eax, edi
test al, 3
jne 0x522357
add edi, esi
cmp esi, edi
jae 0x52236f
sub ebx, esi
add ebx, edx
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + esi], edx
add esi, 4
cmp esi, edi
jb 0x52232f
jmp 0x52236f
add edi, edx
cmp edx, edi
jae 0x52236f
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x52235f
pop edi
pop esi
pop ebx
ret

Function at 0x522373
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x5223bb
lea ebp, [esi + edi]
cmp esi, ebp
jae 0x5223d3
sub ebx, esi
lea edi, [ebx + edx]
push dword [esi + 4]
push dword [esi]
call fcn.004ef453
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
add esi, 8
pop ecx
pop ecx
cmp esi, ebp
jb 0x52239f
jmp 0x5223d3
add edi, edx
cmp edx, edi
jae 0x5223d3
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x5223c3
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x523a2e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x523a6d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x523a6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x523a6d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x523a6d
cmp dword [ecx + 0x74], 0xe
jbe 0x523a6d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5271c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xc5d3e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004f7430
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f7430
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x52723a
cmp word [ecx], dx
je 0x52723a
mov eax, dword [0x56f3bc]
push edi
dec eax
push eax
push 0x56f2a8
call fcn.005273b3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5272ad
cmp word [eax], dx
je 0x5272ad
mov eax, dword [edi]
test eax, eax
je 0x52725e
cmp word [eax], dx
je 0x52725e
lea eax, [ebp - 0x10]
push eax
call fcn.00527414
jmp 0x527267
lea eax, [ebp - 0x10]
push eax
call fcn.00527702
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5272d7
mov eax, dword [0x56f2a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x56ef98
call fcn.005273b3
add esp, 0xc
test al, al
je 0x5272d7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5272a2
cmp word [eax], di
je 0x5272a2
lea eax, [ebp - 0x10]
push eax
call fcn.00527414
pop ecx
jmp 0x5272d9
lea eax, [ebp - 0x10]
push eax
call fcn.00527702
jmp 0x52729f
mov eax, dword [edi]
test eax, eax
je 0x5272c4
cmp word [eax], dx
je 0x5272c4
lea eax, [ebp - 0x10]
push eax
call fcn.00527836
pop ecx
jmp 0x5272d7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5273a2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00527928
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5273a2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5273a2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5273a2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52732f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f7e27
test ebx, ebx
je 0x52739d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f7e27
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5273a2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5273a2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004ed90b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5273a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005093ca
leave
ret
Function at 0x527a2e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f7430
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x527a9d
cmp esi, dword [ebp - 4]
je 0x527a98
cmp dword [ebp + 0xc], 0
je 0x527a98
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x527a75
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00527af7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x527a9f
xor eax, eax
inc eax
jmp 0x527a9f
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x527b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x527b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x527b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x540c16
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540c21
Function at 0x547c28
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x547cc5
push ebx
push esi
call fcn.00547cc8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005242df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x547c72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x547cc4
push edi
push eax
call fcn.004f6d02
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x547c92
call fcn.004f6cc8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x547cc3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005242df
add esp, 0x20
test eax, eax
jne 0x547cb1
push edi
call fcn.004f6cc8
jmp 0x547cb9
push ebx
call fcn.004f6cc8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x54d371
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0054d508
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x54d4e0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x54d4e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x54d495
jg 0x54d3cd
test eax, eax
je 0x54d48b
push 1
push 0x1000
call fcn.004f6c6b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x54d3f0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x54d482
push 0x8000
push ebx
call fcn.0054d26b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x54d419
jg 0x54d414
cmp ecx, 0x1000
jb 0x54d419
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00544a48
add esp, 0x10
cmp eax, 0xffffffff
je 0x54d45e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x54d414
jl 0x54d445
test ecx, ecx
jne 0x54d406
push dword [ebp - 0xc]
push ebx
call fcn.0054d26b
push esi
call fcn.004f6cc8
add esp, 0xc
xor ebx, ebx
jmp 0x54d4ee
cmp byte [edi + 0x24], 0
je 0x54d475
cmp dword [edi + 0x20], 5
jne 0x54d475
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x54d480
mov ebx, dword [edi + 0x18]
jmp 0x54d482
xor ebx, ebx
push esi
call fcn.004f6cc8
pop ecx
jmp 0x54d4ee
test ecx, ecx
jg 0x54d457
jl 0x54d495
test eax, eax
jae 0x54d457
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005227dd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54d4b5
cmp byte [edi + 0x1c], 0
je 0x54d457
jmp 0x54d4e6
push ebx
call fcn.00528fcd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54d457
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x54d4ee
cmp byte [edi + 0x1c], 0
je 0x54d4eb
mov ebx, dword [edi + 0x18]
jmp 0x54d4ee
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005227dd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x40b93831
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2bfb62da
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x198c57fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
test byte [0x19960040], 1
push esi
push edi
mov esi, 0x19960268
jne 0x198c582d
or dword [0x19960040], 1
mov ecx, esi
call fcn.198c3af1
push 0x1995d348
call fcn.198c3e97
pop ecx
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.198c55f5
cmp eax, edi
mov dword [ebp - 0x20], eax
jl 0x198c59c0
test byte [0x19960040], 2
push ebx
mov ebx, 0x80000002
jne 0x198c5890
or dword [0x19960040], 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x10
push 0x198c5a64
push 0x198c59d8
push ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x198c668c
mov byte [0x19960003], 0
cmp byte [0x19960003], 0
jne 0x198c59c9
cmp dword [ebp + 0x14], edi
mov dword [ebp + 0x14], edi
jne 0x198c59c9
cmp byte [0x19960002], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x198c5b08
jne 0x198c58d4
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
push ebx
call esi
test eax, eax
je 0x198c58d8
mov byte [0x19960002], 1
and dword [ebp - 4], 0
cmp byte [0x19960001], 0
jne 0x198c5902
cmp dword [ebp + 0x14], 0
jne 0x198c5902
lea eax, [ebp - 8]
push eax
push 1
push 0
push edi
push 0x80000001
call esi
test eax, eax
je 0x198c5906
mov byte [0x19960001], 1
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov edi, 0x198c5a90
push edi
push ebx
call esi
test eax, eax
jne 0x198c66a2
cmp byte [section..data], 0
jne 0x198c5949
cmp dword [ebp + 0x14], 0
jne 0x198c5949
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push edi
push 0x80000001
call esi
test eax, eax
je 0x198c594d
mov byte [section..data], 1
and dword [ebp - 0xc], 0
and dword [ebp + 0x14], 0
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jne 0x198c66ab
cmp dword [ebp - 8], 0
jne 0x198c66c5
cmp dword [ebp - 0xc], 0
jne 0x198c66df
cmp dword [ebp - 0x10], 0
je 0x198c5996
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 0x10]
call fcn.198c5b91
test al, al
jne 0x198c66f7
cmp dword [0x19960268], 0xffffffff
jne 0x198c59a5
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop ebx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
leave
ret 0x10
mov dword [ebp + 0x14], 1
jmp 0x198c58a9
cmp dword [ebp - 0x1c], 1
jne 0x198c5889
mov byte [0x19960003], 1
jmp 0x198c59c9
and dword [ebp - 0x10], 0
jmp 0x198c591f
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 4]
call fcn.199568f0
test al, al
je 0x198c5964
jmp 0x198c66f7
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 8]
call fcn.199568f0
test al, al
je 0x198c596e
jmp 0x198c66f7
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
push dword [ebp - 0xc]
call fcn.198c5b91
test al, al
je 0x198c5978
mov eax, dword [ebp + 0x14]
jmp 0x198c59a2
Function at 0x198c5b91
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x198c658a
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x14
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 4
pop edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x198c65ca
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
je 0x198c65c1
cmp eax, ebx
je 0x198c65c1
cmp eax, 1
jne 0x198c65ca
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
mov dword [ebp + 0xc], edi
cmp byte [ebp - 1], bl
jne 0x198c6606
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push 0x198dd850
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x198c6606
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
je 0x198c65fd
cmp eax, ebx
je 0x198c65fd
cmp eax, 1
jne 0x198c6606
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x198c5bb9

Function at 0x198e5734
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0
mov edi, str.SoftwareMicrosoftOffice9.0CommonOfficeArt
push edi
push 0x80000002
call esi
test eax, eax
je 0x198e5771
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
push 0x80000001
call esi
test eax, eax
jne 0x198e57ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x198e57ab
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x198e57ad
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x198e5813
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 6
jl 0x198e5827
xor al, al
jmp 0x198e58b0
cmp byte [ebp + 0x10], 0
push esi
lea esi, [eax*8 + 0x199606d4]
mov al, byte [ebp + 0xc]
mov byte [esi + 1], al
mov byte [esi], 1
je 0x198e58ad
push ebx
push edi
lea eax, [ebp + 0xc]
push eax
push 2
push 0
mov ebx, str.SoftwareMicrosoftOffice9.0CommonOfficeArt
push ebx
mov edi, 0x80000001
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x198e5877
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
xor eax, eax
push eax
push 2
push eax
push eax
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x198e58a9
movzx eax, byte [esi + 1]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [esi + 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x198e58ad
xor al, al
jmp 0x198e58af
mov al, 1
pop esi
pop ebp
ret 0xc