joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10447a3d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x11d0bcb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10447a80
cmp word [esi], dx
jne 0x10447a80
or byte [edi + eax + 0x28], 4
jmp 0x10447a85
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10447bd8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10447bb8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10447ac7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10447afd
cmp eax, edx
jae 0x10447b09
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10447a9f
jmp 0x10447bd8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10447bb4
cmp dword [ebp - 0x14], 0
je 0x10447bb4
mov eax, dword [ebx*4 + 0x11d0bcb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10447b8c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10447b55
mov word [esi], cx
jmp 0x10447b88
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x11d0bcb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x11d0bcb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x11d0bcb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10447bd8
pop ebx
cmp word [ebp - 4], bx
jne 0x10447b9d
cmp esi, dword [ebp + 0xc]
jne 0x10447b9d
mov word [esi], bx
jmp 0x10447bd5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1044866a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10447bd8
push 0xd
jmp 0x10447bd1
mov ecx, dword [ebx*4 + 0x11d0bcb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10447bcf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10447bd8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x104498a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10449711

Function at 0x1044d718
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 0x1044d7b5
push ebx
push esi
call fcn.1044d6e1
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.10445838
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1044d762
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1044d7b4
push edi
push eax
call fcn.10441fce
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1044d782
call fcn.10441f94
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1044d7b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10445838
add esp, 0x20
test eax, eax
jne 0x1044d7a1
push edi
call fcn.10441f94
jmp 0x1044d7a9
push ebx
call fcn.10441f94
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 0x1044d7b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1044d7c9
pop esi
ret
push ebx
push edi
push esi
call fcn.1044d6e1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10441fce
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1044d7f1
push ebx
push esi
push edi
call fcn.10425d60
add esp, 0xc
push 0
call fcn.10441f94
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x104518a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x104518cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x104518cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10477120
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 2], 0x16
je 0x10477134
pop edi
mov eax, 0x80000000
pop esi
ret
test edi, edi
je 0x104772d4
movzx eax, byte [esi + 1]
and eax, 7
mov dword [edi + 0x39d4], eax
movzx eax, byte [esi + 3]
shr al, 7
mov byte [edi + 0x39d8], al
movzx eax, byte [esi + 3]
shr al, 6
and al, 1
mov byte [edi + 0x39d9], al
movzx eax, byte [esi + 3]
shr eax, 3
and eax, 3
mov dword [edi + 0x39e0], eax
movzx eax, byte [esi + 3]
and eax, 7
mov dword [edi + 0x39dc], eax
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 4]
and ecx, 0x30
add ecx, ecx
and eax, 0xf
or ecx, eax
inc ecx
mov dword [edi + 0x39e4], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 4]
shr ecx, 1
and ecx, 0x7fffffe0
shr eax, 4
or ecx, eax
inc ecx
mov dword [edi + 0x39e8], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
and ecx, 0xc
shl ecx, 3
shr eax, 4
or ecx, eax
mov dword [edi + 0x39ec], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
and ecx, 3
shl ecx, 5
and eax, 0xf
or ecx, eax
mov dword [edi + 0x39f0], ecx
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 7]
shl ecx, 8
or ecx, eax
inc ecx
mov dword [edi + 0x39f4], ecx
movzx ecx, byte [esi + 0xa]
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
inc ecx
mov dword [edi + 0x39f8], ecx
movzx eax, byte [esi + 0xb]
movzx ecx, byte [esi + 0xc]
imul ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 3
mov dword [edi + 0x39fc], edx
movzx eax, byte [esi + 0xb]
movzx ecx, byte [esi + 0xd]
imul ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, 0xcccccccd
shr edx, 3
mov dword [edi + 0x3a00], edx
movzx edx, byte [esi + 0xe]
movzx ecx, byte [esi + 0xb]
imul edx, ecx
mul edx
shr edx, 3
mov dword [edi + 0x3a04], edx
movzx edx, byte [esi + 0xf]
movzx ecx, byte [esi + 0xb]
mov eax, 0xcccccccd
imul edx, ecx
mul edx
shr edx, 3
mov dword [edi + 0x3a08], edx
movzx ecx, byte [esi + 0x10]
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x3a0c], ecx
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x13]
shl cx, 8
or cx, ax
mov word [edi + 0x3a10], cx
movzx ecx, byte [esi + 0x18]
movzx eax, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x3a14], ecx
pop edi
xor eax, eax
pop esi
ret
Function at 0x1047ce50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 2], 0xf8
jbe 0x1047ce64
pop edi
mov eax, 0x80000000
pop esi
ret
test edi, edi
je 0x1047d01b
mov al, byte [esi + 1]
test al, al
jne 0x1047ce80
cmp dword [edi + 0x1bc], 0
jne 0x1047d01b
movzx eax, al
mov dword [edi + 0x180], eax
movzx eax, byte [esi + 3]
shr al, 7
mov byte [edi + 0x184], al
movzx eax, byte [esi + 3]
shr al, 6
and al, 1
mov byte [edi + 0x185], al
movzx eax, byte [esi + 3]
shr eax, 3
and eax, 3
mov dword [edi + 0x18c], eax
movzx eax, byte [esi + 3]
and eax, 7
mov dword [edi + 0x188], eax
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 4]
and ecx, 0x10
add ecx, ecx
and eax, 0xf
or ecx, eax
inc ecx
mov dword [edi + 0x190], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 4]
and ecx, 0x40
shr eax, 3
or ecx, eax
shr ecx, 1
inc ecx
mov dword [edi + 0x194], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
and ecx, 4
shl ecx, 3
shr eax, 4
or ecx, eax
mov dword [edi + 0x198], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
and ecx, 1
shl ecx, 5
and eax, 0xf
or ecx, eax
mov dword [edi + 0x19c], ecx
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 7]
shl ecx, 8
or ecx, eax
inc ecx
mov dword [edi + 0x1a0], ecx
movzx ecx, byte [esi + 0xa]
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
inc ecx
mov dword [edi + 0x1a4], ecx
movzx eax, byte [esi + 0xb]
mov dword [edi + 0x1a8], eax
movzx eax, byte [esi + 0xb]
movzx ecx, byte [esi + 0xc]
imul ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 3
mov dword [edi + 0x1ac], edx
movzx eax, byte [esi + 0xb]
movzx ecx, byte [esi + 0xd]
imul ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, 0xcccccccd
shr edx, 3
mov dword [edi + 0x1b0], edx
movzx edx, byte [esi + 0xe]
movzx ecx, byte [esi + 0xb]
imul edx, ecx
mul edx
shr edx, 3
mov dword [edi + 0x1b4], edx
movzx ecx, byte [esi + 0xb]
mov eax, 0xcccccccd
movzx edx, byte [esi + 0xf]
imul edx, ecx
mul edx
shr edx, 3
mov dword [edi + 0x1b8], edx
movzx ecx, byte [esi + 0x12]
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1bc], ecx
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x13]
shl cx, 8
or cx, ax
mov word [edi + 0x1c0], cx
movzx ecx, byte [esi + 0x18]
movzx eax, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c4], ecx
pop edi
xor eax, eax
pop esi
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x110f008], 0x8088405
inc edx
mov dword [ebx + 0x110f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x10f29f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10f29f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x10f3d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x111173c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x111173c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x1110538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10f3d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x427550]
push ebx
mov ebx, dword [0x422130]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x42212c]
lea edx, [esp + 0x10]
push edx
push 0x20019
xor eax, ebp
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x422124]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x422128]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401624
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015fe
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00401310
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
jmp 0x401639
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret 4
Function at 0x401660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x427550]
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x10]
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
movzx ecx, ah
push ecx
movzx eax, al
push eax
movzx ecx, bh
push ecx
movzx eax, bl
push eax
mov eax, edx
mov ecx, edx
shr ecx, 0x18
push ecx
shr eax, 0x10
movzx eax, al
push eax
movzx eax, word [esp + 0x36]
movzx ecx, dh
push ecx
movzx ecx, word [esp + 0x38]
mov dword [esp + 0x3c], edx
movzx edx, dl
push edx
push eax
push ecx
push esi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
mov dword [esp + 0x5c], ebx
call fcn.0041313e
add esp, 0x38
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401749
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401749
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x30]
mov esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401755
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401782
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405899
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4058ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4058ce
cmp esi, eax
jae 0x4058a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4058c0
cmp esi, eax
jae 0x4058a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret