joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c60
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413e84
sub esp, 0x18
mov eax, dword [0x63b384]
test eax, eax
jne 0x413e6d
nop
lea eax, [0x63b370]
mov dword [esp], eax
call fcn.00409680
mov eax, dword [0x63b374]
test eax, eax
je 0x413ca9
cmp dword [eax + 8], 0xcc
jne 0x413d1f
mov edx, dword [0x63b368]
test edx, edx
jne 0x413d01
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x63dc50]
mov dword [esp + 8], eax
call fcn.0040ba70
mov eax, dword [esp + 0xc]
mov dword [0x63b368], eax
mov ecx, dword [0x63b32c]
mov dword [eax], ecx
mov eax, dword [0x63b368]
mov dword [0x63b32c], eax
movzx eax, byte [0x63b8c0]
test al, al
jne 0x413d01
xor eax, eax
jmp 0x413e19
mov edx, dword [0x63b368]
mov ebx, dword [edx + 4]
mov dword [0x63b368], ebx
mov ebx, dword [0x63b374]
mov dword [edx + 4], ebx
mov dword [0x63b374], edx
mov edx, dword [0x63b374]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x413e01
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x63b5a0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x413d7d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x413d8a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00461550
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x63b5a0]
test edx, edx
jne 0x413db6
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x413dd7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00461550
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00461550
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00461550
nop
lea eax, [0x63b370]
mov dword [esp], eax
call fcn.00409880
nop
lea eax, [0x63b36c]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004022c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.004615e0
lea esi, [0x63b8c0]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x413d01
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x413e63
lea edx, [0x5d323c]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x413e0b
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.004615d0
mov ecx, 5
call fcn.004615d0
lea eax, [0x512c1f]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00413c60
Function at 0x427280
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4273f0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00425010
mov eax, dword [esp + 4]
test eax, eax
je 0x4273d9
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x7c]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.00422d90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + 6]
mov byte [esp + 0xb], bl
lea ebp, [ecx + 0x48]
mov dword [esp + 0x18], ebp
nop
mov dword [esp], ebp
call fcn.00409680
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x427317
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x42737d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x42732c
cmp byte [ebp + 6], dl
je 0x427337
cmp esi, ebx
ja 0x42737d
jne 0x427315
cmp byte [ebp + 6], dl
jbe 0x427315
jmp 0x42737d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x427374
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x427374
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov word [edx + 4], bx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov dword [ecx], edx
mov dword [esp], eax
call fcn.00427180
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4273d0
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4273d0
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x51460e]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427280
Function at 0x427870
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42798c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x427905
cmp cl, 2
je 0x4278ad
cmp cl, 3
jne 0x427975
mov byte [eax + 8], 1
jmp 0x427971
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042caa0
nop
lea eax, [0x61f938]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f904]
sub eax, dword [0x61f8e8]
mov dword [0x61f904], eax
mov eax, dword [0x61f8f4]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f8f4], ecx
nop
lea eax, [0x61f938]
mov dword [esp], eax
call fcn.00409880
jmp 0x427971
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00413c60
nop
lea eax, [0x61f938]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f8dc]
sub eax, dword [0x61f8c0]
mov dword [0x61f8dc], eax
mov eax, dword [0x61f8cc]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f8cc], ecx
nop
nop
lea eax, [0x61f938]
mov dword [esp], eax
call fcn.00409880
add esp, 0x14
ret
lea eax, [0x50f9b1]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427870
Function at 0x454660
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x454760
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00454ef0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4f4180]
mov dword [esp], ecx
call fcn.0040b720
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x61f9d0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00453ee0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.00453300
add esp, 0x28
ret
call fcn.00460140
jmp fcn.00454660
Function at 0x461400
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x63b6a0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45fbcb
je 0x45fc1e
cmp ebx, 0x20
jbe 0x45fc24
cmp ebx, 0x40
jbe 0x45fc6a
jmp 0x45fd0b
test ebx, ebx
je 0x45fc14
add eax, 0x10
test ax, 0xff0
je 0x45fc00
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x5410c0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5412c0]
jmp 0x45fbe8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45fbe8
pxor xmm1, xmmword [0x63b6b0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63b6b0]
pxor xmm2, xmmword [0x63b6c0]
pxor xmm3, xmmword [0x63b6d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63b6b0]
pxor xmm2, xmmword [0x63b6c0]
pxor xmm3, xmmword [0x63b6d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45fd6a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x63b2ef], 0
je 0x46141a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45fb90
jmp fcn.004080e0
Function at 0x461420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40293e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004080e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00460140
jmp 0x402900
cmp byte [0x63b2ef], 0
je 0x46143b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45fb90
jmp 0x402900
Function at 0x4b10b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b126e
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00461727
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4b10ea
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4b1113
lea eax, [0x4f6580]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.004493f0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00461727
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0x6c]
movzx edx, word [esp + 0x70]
shl edx, 0xb
movzx ebx, word [esp + 0x78]
or ebx, edx
movzx edx, byte [esp + 0x75]
test dl, dl
je 0x4b115b
or ebx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4b116a
or ebx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4b1179
or ebx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4b1188
or ebx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4b1197
or ebx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4b11a3
or ebx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4b11af
or ebx, 0x10
mov word [esp + 0x46], cx
mov word [esp + 0x48], bx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0xc]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
cmp edx, ecx
jae 0x4b121a
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xc
lea eax, [0x4f6580]
mov dword [esp + 0x10], eax
call fcn.004494b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00461e20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00461be6
add esp, 0x5c
ret
call fcn.00460140
jmp fcn.004b10b0
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x30f06eb4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x60992fec
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x7c122067
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x7c133774]
push ebx
push esi
push edi
mov dword [ebp + 0x398], eax
mov esi, ecx
call dword [0x7c132050]
xor ebx, ebx
push 2
push ebx
push dword [ebp + 0x3a4]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x74], edi
jne 0x7c1220bd
call fcn.7c1216c3
mov esi, eax
jmp 0x7c12215d
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x7c122133
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x7c122133
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + edi]
lea eax, [esi + 2]
cmp eax, 0x400
jbe 0x7c122107
push eax
lea ecx, [ebp - 0x6c]
call fcn.7c122198
jmp 0x7c12210d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], ebx
jne 0x7c122119
mov esi, 0x8007000e
jmp 0x7c122154
call dword [0x7c132050]
push edi
push dword [ebp - 0x6c]
push edi
push dword [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x7c12213a
call fcn.7c1216c3
jmp 0x7c122152
mov eax, dword [ebp - 0x6c]
push dword [ebp + 0x3b0]
mov word [esi + eax], bx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
call fcn.7c1221bd
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x7c12216d
lea ecx, [ebp - 0x6c]
call fcn.7c12218f
lea ecx, [ebp - 0x70]
call fcn.7c1217b2
mov ecx, dword [ebp + 0x398]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.7c12c444
add ebp, 0x39c
leave
ret 0x10
Function at 0x7c122db1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x7c133774]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.7c122ce6
cmp eax, esi
jne 0x7c122e39
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x7c122e02
lea eax, [ebp - 0x70]
push eax
call fcn.7c122db1
cmp eax, esi
jne 0x7c122e38
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x7c122df5
call fcn.7c122ccf
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.7c122ccf
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.7c12c444
add ebp, 0x194
leave
ret 4
Function at 0x7c12317d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x7c123188
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x7c12336b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x7c133774]
push ebx
push esi
mov dword [ebp + 0x7a0], eax
mov esi, ecx
call dword [0x7c132050]
xor ebx, ebx
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 0x7ac]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x7c1233c5
call fcn.7c1216c3
mov esi, eax
jmp 0x7c1234f8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
mov edi, 0x400
cmp eax, edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], eax
jbe 0x7c1233ed
push eax
lea ecx, [ebp - 0x68]
call fcn.7c122198
jmp 0x7c1233f3
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
jne 0x7c123407
mov dword [ebp + 0x7ac], 0x8007000e
jmp 0x7c1234d8
push ebx
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7c123430
call fcn.7c1216c3
cmp eax, ebx
mov dword [ebp + 0x7ac], eax
jl 0x7c1234d8
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x78]
mov byte [ecx + eax], bl
lea eax, [esi + esi + 2]
cmp eax, edi
mov dword [ebp + 0x39c], ebx
jbe 0x7c123455
push eax
lea ecx, [ebp + 0x39c]
call fcn.7c122198
jmp 0x7c123461
lea eax, [ebp + 0x3a0]
mov dword [ebp + 0x39c], eax
cmp dword [ebp + 0x39c], ebx
jne 0x7c12347d
lea eax, [ebp + 0x3a0]
mov dword [ebp + 0x7ac], 0x8007000e
test eax, eax
jmp 0x7c1234cb
call dword [0x7c132050]
push dword [ebp - 0x70]
push dword [ebp + 0x39c]
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x7c1234a5
call fcn.7c1216c3
jmp 0x7c1234b9
push dword [ebp + 0x7b0]
lea ecx, [ebp - 0x80]
push dword [ebp + 0x39c]
call fcn.7c1221bd
mov dword [ebp + 0x7ac], eax
lea eax, [ebp + 0x3a0]
cmp dword [ebp + 0x39c], eax
je 0x7c1234d8
lea ecx, [ebp + 0x39c]
call fcn.7c12218f
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
pop edi
je 0x7c1234f2
lea ecx, [ebp - 0x68]
call fcn.7c12218f
mov esi, dword [ebp + 0x7ac]
lea ecx, [ebp - 0x74]
call fcn.7c1217b2
mov ecx, dword [ebp + 0x7a0]
mov eax, esi
pop esi
pop ebx
call fcn.7c12c444
add ebp, 0x7a4
leave
ret 8
Function at 0x7c129efc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL71.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c129fcc
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c129f52
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x7c129fb0
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c129fb0
push ebp
push edi
call fcn.7c124114
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x7c129f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c129fba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c129fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c129fcc
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x7c129fd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL71.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c12a0a7
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c12a02d
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x7c12a08b
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c12a08b
push ebp
push edi
call fcn.7c124114
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x7c12a077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c12a095
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c12a095
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c12a0a7
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret