joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68acb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x234000]
push edi
jmp 0x68acca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68acd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68acc0
mov eax, 1
add ebx, ebx
jne 0x68ace3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68acf4
jne 0x68ad13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ad13
dec eax
add ebx, ebx
jne 0x68ad00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x68acd8
add ebx, ebx
jne 0x68ad0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68ad65
xor ecx, ecx
sub eax, 3
jb 0x68ad2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68ad9a
sar eax, 1
mov ebp, eax
jmp 0x68ad36
add ebx, ebx
jne 0x68ad36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ad04
inc ecx
add ebx, ebx
jne 0x68ad44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ad04
add ebx, ebx
jne 0x68ad51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68ad46
jne 0x68ad62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68ad46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68ad84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68ad76
jmp 0x68acc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68ad84
add edi, ecx
jmp 0x68acc6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68ada2
cmp byte [edi], 0x11
jne 0x68ada2
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 0x68ada7
lea edi, [esi + 0x283000]
mov eax, dword [edi]
or eax, eax
je 0x68ae1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43c5d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x43c754]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68add4
mov ecx, edi
jns 0x68ae03
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 + 0x43c758]
or eax, eax
je 0x68ae19
mov dword [ebx], eax
add ebx, 4
jmp 0x68adf1
call dword [esi + 0x43c768]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x68ae50
cmp al, 0xef
ja 0x68ae43
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x68ae25
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x68ae32
mov ebp, dword [esi + 0x43c75c]
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 0x68ae84
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x46c35355
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0xad934c2
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x552d2f
Capabilities:
Encode data using xor

Disassembly:
salc
sub ah, bl
add ecx, dword [eax + 0x3c]
push edi
pushal
xchg ebp, eax
test dword [edx + 0x5f98ea3f], edx
jne 0x552d0a
xchg esp, eax
fdiv qword [eax - 0x72]
mov ss, word [edx]
inc edx
dec ebx
adc cl, byte [ecx - 0x21]
bound esp, qword [ebx + 0x7e]
movsd dword es:[edi], dword [esi]
mov ebp, 0x20e4c1f5
mov eax, dword [esi + 0x305256df]
sbb dword [eax - 0x43], 0xb15784fa
scasd eax, dword es:[edi]
dec esi
popfd
aas
leave
mov al, byte [0x2946e57a]
xor bl, 0xaf
push edx
and edi, ebx
popal
mov edx, 0x717947c8
rol dword [ebp - 0x3e], cl
neg ah
adc byte [esi - 0x55], ch
jne 0x552d3e
mov dword [esi + 0x14206192], edx
out 0x94, al
sti
jne 0x552d09
out 0x64, eax
push edi
adc al, 0x98
jb fcn.00552d2f
cmp dh, byte [ecx + 0x6cd58c4a]
cmp edx, dword [esi - 0x42fb1e9c]
push cs
sub al, 0xc5
outsd dx, dword [esi]
adc byte [ebx + eax*4], al
Function at 0x512ebb
Capabilities:
Encode data using xor

Disassembly:
xor dl, byte [edi - 0x596bc916]
jg 0x512f1e
xor al, 0x3c
and al, 0xb1
dec esi
mov dh, 5
adc al, 0xb7
push es
in eax, 0x3b
and dword [esi], esp
push ds
or al, 0x59
xchg ebp, eax
dec esp
pop ecx
rol dword [ecx - 0x4193714b], 0x9e
mov dword [0x406638c5], eax
cdq
xchg esi, eax
push eax
xlatb
jb 0x512f13
push ds
je 0x512f03
int3
pop eax
retf 0x5462
sbb eax, 0xbdcd02fc
ret 0x4400
inc esp
invalid
pop dword [ebp + edx*8 - 0x1f]
cmp esi, dword [0x630e55a6]
push ds
dec edi
push 0x2628d837
outsb dx, byte [esi]
xchg esi, eax
mov dl, 1
or dword [edi - 0x3ca81d1c], eax
movsd dword es:[edi], dword [esi]
mov dword [ebx - 0x80], ebp
sal byte [eax - 0x50], 1
xor al, 0x7e
lock add ecx, dword [ebx + 0x20]
jno 0x512f3d
jns 0x512f1b
fisttp qword [eax - 0x1e70c6c7]
retf

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5de676f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5e9f472d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40127d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401287
repz ret
jmp fcn.0040184b

Function at 0x40765f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040463f
and dword [ebp - 0x14], 0
cmp dword [0x40eb2c], 0
mov dword [ebp - 0x18], eax
jne 0x407712
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077ba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4077ba
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40eb2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40eb30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40eb34], eax
call edi
push eax
call esi
mov dword [0x40eb3c], eax
test eax, eax
je 0x407712
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40eb38], eax
mov eax, dword [0x40eb38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40776b
cmp dword [0x40eb3c], ecx
je 0x40776b
push eax
call esi
push dword [0x40eb3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40776b
test ebx, ebx
je 0x40776b
call edi
test eax, eax
je 0x407762
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407762
test byte [ebp - 8], 1
jne 0x40776b
or dword [ebp + 0x10], 0x200000
jmp 0x40779e
mov eax, dword [0x40eb30]
cmp eax, dword [ebp - 0x18]
je 0x40779e
push eax
call esi
test eax, eax
je 0x40779e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40779e
mov eax, dword [0x40eb34]
cmp eax, dword [ebp - 0x18]
je 0x40779e
push eax
call esi
test eax, eax
je 0x40779e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eb2c]
call esi
test eax, eax
je 0x4077ba
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040127d
leave
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x687f3543
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7b201631
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401499
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014af
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014a6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4014e2
nop
cmp esi, ecx
jae 0x4014a6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4014d0
cmp esi, ecx
jae 0x4014a6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00551063
mov ebx, eax
test ebx, ebx
jne 0x403040
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403113
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403113
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403113
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4030a4
cmp esi, ecx
jae 0x403113
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403092
cmp esi, ecx
jae 0x403113
movzx eax, word [esi]
test ax, ax
je 0x403113
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4030da
push edi
mov ecx, ebx
call fcn.00403b50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x4030dd
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0057455e
push eax
call fcn.004012e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40311e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004013a0
int3
Function at 0x403710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4037ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4037ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037ed
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403783
cmp esi, ecx
jae 0x4037ed
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403771
cmp esi, ecx
jae 0x4037ed
movzx eax, word [esi]
test ax, ax
je 0x4037ed
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4037b6
push edi
mov ecx, ebx
call fcn.00403b50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x4037b9
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0057455e
push eax
call fcn.004012e0
mov ecx, dword [ebx]
add esp, 0x14
cmp edi, dword [ecx - 8]
jg 0x4037f6
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.004013a0
int3

Function at 0x405860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x105
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405901
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405895
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x4058cc
push 0x5c692c
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00574a48
add esp, 0xc
test eax, eax
jne 0x405901
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00574a48
add esp, 0xc
test eax, eax
jne 0x405901
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599b16
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x608554]
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 dword [ebp - 0x460], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
push str.OperateReg::DeleteRegAppointPrinter
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x406eb3
test byte [ecx + 0x1c], 1
je 0x406e78
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c6ad0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x406eb3
test byte [ecx + 0x1c], 1
je 0x406eb3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5c6ad0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xb
call fcn.00405920
add esp, 0x10
lea ecx, [ebp - 0x488]
call fcn.004066e0
mov byte [ebp - 4], 1
test edi, edi
je 0x406fe9
test esi, esi
je 0x406fe9
lea ecx, [ebp - 0x488]
call fcn.004068b0
lea eax, [ebp - 0x488]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406fe9
xor ebx, ebx
jmp 0x406f06
mov ebx, dword [ebp - 0x45c]
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
mov eax, dword [ebp - 0x488]
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x45c], 0x410
xor esi, esi
test eax, eax
je 0x406f66
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406f6b
cmp eax, 0x103
mov esi, 0x80010080
mov eax, 1
cmove edi, eax
jmp 0x406f6b
mov esi, 0x80010001
inc ebx
mov dword [ebp - 0x45c], ebx
test esi, esi
jne 0x406fd8
mov ecx, dword [ebp - 0x460]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x488]
call fcn.00406de0
mov ebx, eax
test ebx, ebx
je 0x406fd1
mov eax, dword [ebp - 0x488]
test eax, eax
je 0x406fb0
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
jmp 0x406fb5
mov esi, 0x80010001
test esi, esi
je 0x406fc5
cmp esi, 2
je 0x406fc5
xor ebx, ebx
mov esi, 0x103
mov dword [ebp - 0x45c], 0
jmp 0x406fdf
mov esi, 0x103
jmp 0x406fdf
xor ebx, ebx
test edi, edi
setne bl
test esi, esi
je 0x406f00
jmp 0x406feb
xor ebx, ebx
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x407033
test byte [ecx + 0x1c], 1
je 0x407033
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5c6ad0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xc
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x488]
call fcn.004067f0
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, ebx
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.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x407070
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599b56
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push ecx
push str.OperateReg::CheckRegSubKeyExistUnderAppointKey
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x407139
test byte [ecx + 0x1c], 1
je 0x4070fe
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c6ad0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xd
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x407139
test byte [ecx + 0x1c], 1
je 0x407139
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5c6ad0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00405920
add esp, 0x10
lea ecx, [ebp - 0x484]
call fcn.004066e0
mov byte [ebp - 4], 1
test esi, esi
je 0x407224
lea ecx, [ebp - 0x484]
call fcn.004068b0
lea eax, [ebp - 0x484]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40721a
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00571c00
mov eax, dword [ebp - 0x484]
add esp, 0xc
mov dword [ebp - 0x45c], 0x410
test eax, eax
je 0x407224
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407224
cmp eax, 0x103
jne 0x407224
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x45c], 0x410
test eax, eax
je 0x40720c
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x407226
mov eax, 0x57
xor ebx, ebx
test eax, eax
setne bl
jmp 0x407226
cmp eax, 2
jne 0x407224
lea ebx, [eax - 1]
jmp 0x407226
xor ebx, ebx
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x40726e
test byte [ecx + 0x1c], 1
je 0x40726e
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5c6ad0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x484]
call fcn.004067f0
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x408820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x2008]
test eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
cmovne edx, eax
add ecx, 4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2008], esi
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2008], 0
jb 0x40886c
mov ecx, dword [ecx]
push ecx
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x2004]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088a0
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004035d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4088e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x4088ee
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebp
ret 0xc