joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1111212
Capabilities:
Encode data using xor

Disassembly:
sub ecx, ecx
jmp 0x197223a
push 0xee87374
movsd dword es:[edi], dword ds:[esi]
out 0x5c, al
mov eax, dword [0x415203df]
invalid
or byte [ebx], ah
sub byte [edx + 0x648d9c60], ch
and al, 0x48
jmp fcn.019699f6
lea esp, [esp + 4]
call fcn.019789d0
push eax
pushal
pushal
call fcn.01118522
loopne 0x19721db
xchg ecx, eax
dec edi
imul ecx, dword [edx + 0x7d583348], 0xffffffb3
movsb byte es:[edi], byte [esi]
test dword [eax + 0x35], ebp
dec eax
pushfd
or esi, dword [edi - 0x16]
and byte [esi + 0x73200005], 0xb8
add byte [eax], ah
jae 0x197221e
wait
push ebx
add al, 0x25
enter 0xfffffffffffffd19, 0x7c
cmp byte [edi + 0x6d], 0x52
add edi, dword [edx - 0x47]
aam 0x57
xor dword [ecx], 0x5ac577da
push edx
cld
mov al, byte gs:[0x902b605d]
aad 0xd9
mov bh, 0x8e
mov byte [edx - 0x677dcec2], dl
jnp 0x1972262
inc eax
push eax
cwde
neg byte [ecx - 0x78]
mov ebx, 0x6c1ffef3
movsd dword es:[edi], dword [esi]
mov al, 0x29
pop ds
les esp, [eax - 0x80]
dec ecx
jl 0x1972323
cmp bl, al
fadd dword ss:[ebx + eax*4 + 0x47]
and dword [edi + edx*2 + 0x43], ebx
out 0x8c, al
dec edi
sbb byte [esi], bh
in al, 0x58
call [ebx + 8]
aas
sbb al, 0xdc
out 0xed, eax
jmp 0x127b6929
and byte [ecx + 0x3e620e6d], 0x2f
dec ebx
xchg edi, eax
sbb dword [esp + ecx*8 - 0x7f859662], ebx
sbb dword [edi + 8], eax
fnstsw word [esi + 0x3911b58c]
add ch, ah
push dword [esp + 4]
lea esp, [esp + 0x24]
jbe 0x1111ddf
rcr cl, 1
cmp dl, 0x6a
sal edi, 0x10
sar di, cl
mov edi, dword [edx + 0x24]
push 0x95169023
add edi, eax
cmc
mov ebx, dword [edx + 0x20]
clc
not ecx
pushal
add ebx, eax
adc ch, ch
bt si, 1
mov dword [ebp - 8], 0
call fcn.019677a3
pop es
dec esi
cmp ah, byte [ecx]
and cl, byte [ebx + 0x63]
int3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
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
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5ac43bcb
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7e7f644f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0xf9100a
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword fs:[0x18]
xor eax, eax
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0xc]
mov esi, edx
add esi, 0x14
mov edx, dword [edx + 0x14]
cmp edx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0xf910a8
jmp 0xf91137
mov al, byte [ebp - 0x21]
test al, 1
jne 0xf91094
jmp 0xf9115f
mov al, byte [ebp - 0x22]
test al, 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
jne 0xf910a8
jmp 0xf91094
mov eax, dword [ebp - 0x2c]
mov cx, word [eax + 0x24]
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x2d]
and bh, bl
test bh, 1
mov dword [ebp - 0x34], eax
mov word [ebp - 0x36], cx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], esi
jne 0xf910b3
jmp 0xf9104b
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x1c]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], eax
jne 0xf91066
mov eax, dword [ebp - 0x20]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff8
mov dword [ebp - 0x20], eax
jmp 0xf910a8
mov eax, dword [ebp - 0x40]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x3c]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x4a], si
mov word [ebp - 0x4c], bx
jb 0xf910ff
mov ax, word [ebp - 0x4a]
mov word [ebp - 0x4c], ax
mov ax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x22], bl
mov dword [ebp - 0x40], esi
jne 0xf910c0
jmp 0xf91057
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x14]
cmp edx, 0
sete ch
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x2d], cl
mov byte [ebp - 0x21], ch
mov dword [ebp - 0x2c], esi
jmp 0xf91066
xor eax, eax
mov cx, word [ebp - 0x36]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x40], eax
je 0xf91094
jmp 0xf910c0
Function at 0xf91856
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], pe_nt_image_headers32
mov dword [ecx + 0xc0], 0x4550
mov word [ecx + 0xc4], 0x14c
mov word [ecx + 0xc6], 3
mov word [ecx + 0xd4], 0xe0
mov dword [ecx + 0xe8], 0x10640
mov word [ecx + 0xd8], 0x10b
mov edx, dword [eax + 0x20]
mov esi, esp
mov dword [esi + 0xc], 4
mov dword [esi + 8], 0x1000
mov dword [esi + 4], 0x122000
mov dword [esi], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
call edx
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [ebp - 0x14], eax
call fcn.00f9141e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x48]
mov esi, dword [ecx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov dword [ebp - 0x18], eax
call fcn.00f91b48
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov di, cx
cmp di, 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0xf91937
mov eax, dword [ebp - 0x20]
add eax, 0xffff
and eax, 0xffff
add eax, 1
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c]
sub edx, dword [eax + 0x34]
mov esi, dword [ebp - 0x14]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [ebp - 0x24], eax
call fcn.00f91556
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [ebp - 0x28], eax
call fcn.00f923a5
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [edx + 0x3c], esi
mov dword [edx + 0x30], 3
mov dword [edx + 0x58], 0x10640
mov dword [edx + 0x44], 0x122000
mov edi, dword [ebp - 0x24]
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [ebp - 0x2c], eax
mov eax, ecx
add esp, 0x34
pop esi
pop edi
pop ebp
ret
Function at 0xf91b99
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
lea ecx, str.ntdll.dll
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
call fcn.00f9100a
mov ecx, dword [eax + 0x3c]
mov si, cx
cmp si, 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jne 0xf91c9c
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 0x18]
add edx, dword [edx + eax + 0x20]
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + eax + 0x18]
cmp edi, 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
je 0xf91c63
jmp 0xf91c36
mov al, byte [ebp - 0x31]
test al, 1
jne 0xf91c4a
jmp 0xf91cea
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0xf91cbb
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0xf91c17
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x54]
add edx, 1
mov ah, byte [ebp - 0x31]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0xf91cbb
jmp 0xf91c0b
mov eax, dword [ebp - 0x1c]
add eax, 0xffff
and eax, 0xffff
add eax, 1
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0xf91bdf
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x31], cl
je 0xf91c0b
jmp 0xf91c6e
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jb 0xf91c17
jmp 0xf91c63
Function at 0x403b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
sub ecx, dword [0x414074]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, dword [0x4140d0]
mov eax, dword [ebp + 0xc]
and eax, edx
test eax, eax
jne 0x403ba3
mov ecx, dword [ebp + 8]
add ecx, dword [0x4140a0]
test ecx, ecx
jne 0x403ba3
mov dword [ebp - 0x2c], 0
jmp 0x403baa
mov dword [ebp - 0x2c], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x78]
mov ecx, dword [edx + 0x7c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
and eax, dword [ebp + 0xc]
and eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx + 0x780b5346]
mov ecx, dword [0x4140c4]
imul ecx, dword [0x41409c]
add eax, ecx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00408383
add esp, 8
test eax, eax
je 0x403c2a
jmp 0x403c6c
mov dword [ebp - 0x18], 0
jmp 0x403c3c
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
jae 0x403c97
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + eax*4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00408383
add esp, 8
test eax, eax
jne 0x403c6c
jmp 0x403c33
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [ecx + edx*2]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + eax*4]
mov eax, ecx
jmp 0x403c99
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001e8ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test cl, 0x93
pushal
xor dl, 0xff
lea esp, [esp + 0x2a]
jp 0x1002c641
push ebp
mov word [esp], si
pushfd
pushfd
pushal
inc dl
cmp dx, 0x8d5
neg dl
test bh, al
clc
stc
std
push word [esp + 0x28]
popf
call fcn.1001e925
Function at 0x10030445
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stc
pushal
and ebx, 0xfff
jmp 0x1002d7a7
push edi
test ah, 0x17
cmp ebx, 1
lea esp, [esp + 4]
jbe 0x10028748
je 0x1002d409
jmp 0x1002d48e
pushfd
lea esp, [esp + 0x28]
je 0x100278ff
call 0x1002c1e4
call fcn.1001e430
add byte [eax], al
dec ecx
jae 0x10027c62
popal
insb byte es:[edi], dx
imul esp, dword [ebx + eax*2 + 0x6f], 0x61506564
add byte gs:[di + 0x2464], cl
lea esp, [esp + 0x30]
je 0x1002fd52
xchg di, bx
mov ecx, dword [esi + 4]
bsf di, dx
sub ecx, 8
and di, bp
shr ecx, 1
xchg di, bx
not bx
pushal
mov edi, dword [esi]
test eax, 0xb291b034
sar bl, 2
movsx bx, dl
add edi, dword [ebp + 0x10]
mov bx, word [esp]
xor bl, bh
add esi, 8
add esp, 0x20
or bl, bh
mov bl, 0xae
mov bx, word [esi]
test cx, 0x59bf
shr ebx, 0xc
bt edi, 3
jge 0x1002771d
sar dword [edi + 0xcebc159], 0xf
mov edx, 0x8d0f03e7
stosd dword es:[edi], eax
cli
invalid
cmp ebx, 1
pushal
pushal
lea esp, [esp + 0x40]
je 0x1002d409
stc
test ah, ah
pushal
cmp ebx, 2
call fcn.1002b6b4
call fcn.10027cfc
lea esp, [esp + 0x14]
ja 0x1002d17d
add al, 0x9e
sub ebx, edi
cmc
add ebx, esp
bsf edi, eax
setno al
rcr di, cl
sbb di, cx
mov edi, ebx
and al, al
adc al, 0x9c
sal al, cl
call fcn.100304e0
enter 0xffffffffffffd676, 0x5a
in al, dx
movsd dword es:[edi], dword [esi]
invalid
not al
clc
clc
cmc
cmc
sub al, 0xd5
stc
bt edi, eax
ror al, 4
bt bp, 0xf
sub esp, 0xffffffcc
jl 0x100303ff
cmp al, byte [edi]
cwde
lea edi, [edi + 1]
pushfd
push esi
movzx eax, bl
bswap ax
mov eax, dword [esp + 8]
jmp 0x10027c02
bt ax, 3
cmp ax, 0xca47
cmp byte [edi], 0x23
pushal
push dword [esp + 0xc]
lea esp, [esp + 0x24]
jne 0x1002ffb1
movsx ax, dl
cwde
xor edx, edx
movsx ax, dl
and eax, 0x23113ae1
das
bsf ax, sp
mov eax, edx
or al, bl
add edi, 1
adc al, bh
cmc
test cl, ch
sal al, cl
mov al, byte [edi]
push 0x5b78de12
cmp dl, ch
test al, al
push 0x3ee7388d
push edi
lea esp, [esp + 0xc]
je 0x1002ffa0
bt sp, si
stc
sub al, 0x30
push eax
clc
pushal
stc
cmp al, 9
pushal
lea esp, [esp + 0x44]
ja 0x1002c1bf
clc
clc
imul edx, edx, 0xa
cmc
add edx, eax
pushal
lea esp, [esp + 0x20]
jmp fcn.1003047f
clc
stc
bt ax, 1
cmp ch, 0x94
cmp ecx, dword [ebp - 4]
pushal
call fcn.1002c79b
pushal
mov bl, 0x49
mov bx, word [esi]
cmp ebp, 0xefe38998
jmp 0x1001e5b2
pushfd
cmp dh, 0xf9
cmp ebx, 2
pushal
jmp 0x10027925
clc
pushfd
cmp cl, cl
add word [edi + ebx], ax
push dword [esp]
pushfd
mov byte [esp], bh
lea esp, [esp + 0x4c]
jmp 0x1002b5b7
pushfd
jmp 0x10028816
test bl, 0x1a
cmp al, byte [edi]
seta ah
setge ah
lea eax, [ecx - 0x12bca111]
cwde
lea edi, [edi + 1]
setnp ah
cwde
pop eax
pushfd
pushal
lea esp, [esp + 0x24]
ja 0x1002cf79
push 0xce1de2cf
lea esp, [esp + 4]
jp 0x1002d3ed
pushfd
lea esp, [esp + 4]
jb 0x1002fe91
stc
call fcn.1001e6dd
bt bx, di
sub bl, al
pushal
movzx bx, al
mov ebx, eax
sub esp, 0xffffffe0
jnp 0x1002ccb3
pushfd
cmp ch, al
cmp byte [edi], 0x23
mov byte [esp], ch
lea esp, [esp + 4]
jne 0x1002ffb1
shl al, cl
cwde
aas
daa
xor edx, edx
rol ax, 5
btc ax, bp
mov eax, edx
Function at 0x401520
Capabilities:
Resume thread

Disassembly:
push esi
push 0
push 4
push 0
push 0
mov esi, ecx
push 0x411e40
call sub.MFC42.DLL_AfxBeginThread
mov dword [esi + 0x14], eax
mov dword [eax + 0x78], esi
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40154c
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret

Function at 0x4015d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
xor esi, esi
mov dword [esp + 0x24], eax
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x401603
mov al, byte [esp + 0x18]
xor edx, edx
cmp al, 1
sete dl
mov esi, edx
mov ebx, 4
mov dword [esp + 0xc], 0
test esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov eax, str.param0
jne 0x401626
mov eax, str.param1
lea ecx, [esp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push ecx
push eax
push 0x411774
push 0x80000002
call esi
test eax, eax
jne 0x40166e
mov eax, dword [esp + 0xc]
cmp eax, 0x8000
je 0x4016be
cmp eax, 8
ja 0x40166e
push 1
push 1
mov ecx, edi
call fcn.004019a0
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.Smoothing
push str.SoftwareSony_CorporationHotKey_UtilitySettingsAutoDimmerSmoothing
push 0x80000002
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x4016be
mov eax, dword [esp + 0xc]
mov ecx, edi
dec eax
neg eax
sbb eax, eax
add eax, 2
push eax
push eax
call fcn.004019a0
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 2
push 2
mov ecx, edi
call fcn.004019a0
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x4019a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [edi + 4], eax
je 0x4019b6
mov dword [edi + 8], ecx
cmp eax, 2
mov dword [esp + 0xc], 0
mov esi, 1
jne 0x401a04
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004016d0
test eax, eax
je 0x4019ff
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 2
call fcn.0040d4b0
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
push edx
push 3
call fcn.0040d4b0
add esp, 0x10
mov dword [esp + 0xc], esi
mov esi, 3
push esi
mov ecx, edi
call fcn.00401950
lea ecx, [esp + 0x10]
push 4
xor eax, eax
push ecx
cmp esi, 3
push 4
push str.Smoothing
push str.SoftwareSony_CorporationHotKey_UtilitySettingsAutoDimmerSmoothing
sete al
push 0x80000002
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 8
Function at 0x404c03
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x4d8]
test eax, eax
je 0x404cf5
push edi
mov dword [esp + 8], 0
call fcn.004054c0
mov ecx, dword [esi + 0x4d8]
mov edi, eax
call fcn.00405ae0
cmp eax, 2
jne 0x404c94
mov ecx, dword [esi + 0x4d8]
push eax
push 1
call fcn.004019a0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push str.SavedBrightnessVal
push 0x411950
push 0x80000001
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x404c80
shr edi, 1
mov dword [esp + 8], edi
mov ecx, dword [esi + 0x2d4]
mov edx, dword [esp + 8]
push edx
push 5
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x404cdf
cmp dword [esp + 0x18], edi
jb 0x404caf
mov ecx, dword [esi + 0x4d8]
push 1
push 2
call fcn.004019a0
mov dword [esp + 8], eax
jmp 0x404cdf
lea eax, [esp + 0x18]
push 4
push eax
push 4
push str.SavedBrightnessVal
push 0x411950
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esi + 0x2d4]
mov dword [esp + 8], edi
push edi
push 5
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 8]
push eax
push ecx
push 5
mov ecx, esi
call fcn.00404ba0
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4051b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push ebx
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov esi, 9
mov dword [esp + 0x10], 0x9c
call edi
mov ebx, eax
test ebx, ebx
jne 0x4051f5
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
mov eax, dword [esp + 0x1c]
dec eax
je 0x40525f
dec eax
jne 0x4052ac
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x405211
mov esi, 5
mov ecx, dword [esp + 0x14]
cmp eax, 5
jne 0x405223
test ecx, ecx
jne 0x405223
mov esi, 6
test ebx, ebx
je 0x4052ac
cmp byte [esp + 0xa6], 1
jne 0x4052ac
cmp eax, 5
jne 0x4052ac
cmp ecx, 1
jne 0x4052ac
mov esi, dword [esp + 0xa4]
pop edi
and esi, 0x200
neg esi
sbb esi, esi
add esi, 8
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp dword [esp + 0x10], 4
jne 0x4052ac
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40527f
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x4052a2
mov al, byte [esp + 0x21]
mov esi, 2
cmp al, 0x41
jne 0x4052ac
mov esi, 3
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x4052ac
mov esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x4057f9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push ebx
push eax
mov eax, dword [esi + 8]
mov ebp, 4
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 0x57
je 0x405832
cmp eax, 2
jne 0x405862
mov ecx, dword [esp + 0x24]
push ebp
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push edi
push ebp
push ebx
push eax
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
je 0x405862
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 0xc

Function at 0x4071f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40ffff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x120], esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [esp + 0x1c]
push 0x1c
push eax
push esi
mov byte [esp + 0x130], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040f320
lea edx, [esp + 8]
push str.Microsoft
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 2
call fcn.0040f290
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x12c]
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x130]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 4
call fcn.0040f290
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40730d
mov ecx, dword [esp + 0x12c]
push ecx
mov ecx, edi
call fcn.00407380
mov esi, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.0040f290
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 1
call fcn.0040f290
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call fcn.0040f290
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.0040f290
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8