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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100af257
add ebx, 0
push ecx
call 0x100af26c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x72dc63ab
sub ebx, dword [0x72de5bea]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x72de5bda
call fcn.100aad36
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.100aa244
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100af3ca
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100af3ca
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100af381
mov eax, 1
lock xchg dword [0x72de5be6], eax
push 0x3dd1fc71
call 0x100af30e
push esi
add esp, 8
cmp eax, 0
jne 0x100af2f7
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100af31d
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100af332
cmp ecx, edx
cmp eax, 0
je 0x100af357
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x100af341
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100af370
dec eax
loope 0x100af373
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72de5be6], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100af3a7
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100af3bc
jmp 0x100af3c7
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100af2b5
Function at 0x100b642f
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x100b6705
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x72dd285e
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x72dc9824
push 0xffffffffffffffff
call fcn.100ad62f
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100b6499
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100b64b1
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100b66f9
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100b66cd
Function at 0x100c5eff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100c5f21
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100c5f21
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100c5f21
ret
cmp word [ebx + 4], 0x14c
jne 0x100c5f21
test word [ebx + 0x16], 2
je 0x100c5f21
test word [ebx + 0x16], 0x100
je 0x100c5f21
cmp word [ebx + 0x18], 0x10b
jne 0x100c5f21
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100c5f21
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100c5fad
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100c5f41
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100ace8c
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100c5f21
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x100c5fad
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100c5f21
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100c5f21
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100c5f21
ret
cmp word [ebx + 4], 0x14c
jne 0x100c5f21
test word [ebx + 0x16], 2
je 0x100c5f21
test word [ebx + 0x16], 0x100
je 0x100c5f21
cmp word [ebx + 0x18], 0x10b
jne 0x100c5f21
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100c5f21
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100c5fad
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100c5f41
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100ace8c
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100c5f21
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100c6064
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100c60bd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100c6064
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100c6073
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104cbd16
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100c60c4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100acf3a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100c6163
add edi, 4
add eax, 2
dec ecx
jne 0x100c60a9
call 0x100c6110
loope 0x100c6106
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100c6160
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100c6171
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100c6124
cmp eax, ecx
ja 0x100c6124
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100c61ae
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100c61a4
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ad419
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100c6073
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100c60bd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100c6064
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100c6073
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104cbd16
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100c60c4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100acf3a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100c6163
add edi, 4
add eax, 2
dec ecx
jne 0x100c60a9
call 0x100c6110
loope 0x100c6106
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100c6160
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100c6171
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100c6124
cmp eax, ecx
ja 0x100c6124
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100c61ae
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100c61a4
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ad419
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x430003
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
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x100b6481
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x22955ba7
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
inc esi
cmp al, 0x22
jne 0x1000104f
call fcn.100010f0
test eax, eax
push 0x22
push esi
je 0x10001024
call fcn.100017a0
jmp 0x10001029
call fcn.100016e0
mov edx, eax
add esp, 8
test edx, edx
je 0x10001076
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
ja 0x1000104a
mov esi, 0x100084b0
jmp 0x10001076
lea esi, [edx + 2]
jmp 0x10001076
call fcn.100010f0
test eax, eax
push 0x20
push esi
je 0x10001062
call fcn.100017a0
jmp 0x10001067
call fcn.100016e0
add esp, 8
mov esi, 0x100084b4
test eax, eax
je 0x10001076
lea esi, [eax + 1]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
push 0x3e8
push ecx
push esi
push edx
push eax
call sub.PBVM90.dll_Ordinal_137
pop edi
pop esi
ret 0x10

Function at 0x10002480
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000243a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10002458
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100024b6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
add byte [eax - 0x77], al
jge 0x10002495
add byte [eax - 0x77], al
jge 0x10002495
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000249d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100024a6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100024b0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10002492
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000241c
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x40dec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553358
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6a5f90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d420
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [str.SOFTWAREMetronAxm001]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df85
mov dword [ebp - 0x24], 0x104
lea edx, [ebp - 0x24]
push edx
push 0x104
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d590
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [str.DefLicensePath]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40df5d
cmp dword [ebp - 0x18], 1
je 0x40df6b
cmp dword [ebp - 0x18], 2
je 0x40df6b
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d420
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040dd90
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d7d0
movzx ecx, al
test ecx, ecx
je 0x40e073
lea ecx, [ebp - 0x14]
call fcn.0040ce20
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040d590
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040dd90
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0040de40
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40dff6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ce90
jmp 0x40e073
mov edx, dword [str.Axm001.lic]
push edx
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d860
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040cfb0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040cf90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040ce90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040ce90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ce90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410074
xor eax, eax
jmp 0x4100f4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41008b
xor eax, eax
jmp 0x4100f4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4100d7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4100d7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4100ae
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4100e3
xor eax, eax
jmp 0x4100f4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4100f1
xor eax, eax
jmp 0x4100f4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419749
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6a9c48]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x419795
push 0x63d24c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4197b2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6a9c48], eax
jmp 0x41979e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4197b2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41981f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4197cd
xor eax, eax
jmp 0x41981f
lea eax, [ebp - 0x210]
push eax
call fcn.00535e22
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4197fe
push 0x63d284
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00536ebf
add esp, 0xc
test eax, eax
jne 0x4197c9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00536ebf
add esp, 0xc
test eax, eax
jne 0x4197c9
lea eax, [ebp - 0x210]
push eax
call fcn.0041e54c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00532cdb
leave
ret
Function at 0x419fce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41a013
call fcn.00420355
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a013
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41a02f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429a86
mov ebx, eax
test edi, edi
je 0x41a02d
test esi, esi
je 0x41a02d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41eae8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55ce91
call fcn.00535cee
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41eb0e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41eb62
call fcn.00411c7d
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cc90
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00535c46
push eax
call fcn.0040f060
add esp, 0x14
test edi, edi
je 0x41eb55
push edi
call fcn.00532c50
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd50
mov eax, esi
call fcn.00535cbc
ret 8

Function at 0x41ef7f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x41efa1
cmp dword [ebx + 0x74], 0
jne 0x41efa1
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00420355
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f208
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41efdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00420355
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f013
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041f032
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x420b23
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x553f90
call fcn.00535cee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ea10
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420b85
call fcn.004203a3
cmp eax, 1
jne 0x420b85
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040eec0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cf00
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.0040dd50
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x420b97
call fcn.00414a9e
jmp 0x420b9d
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040dd50
mov eax, esi
call fcn.00535cbc
ret 0xc

Function at 0x420c4e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x553f90
call fcn.00535cee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ea10
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420cac
call fcn.004203a3
cmp eax, 1
jne 0x420cac
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040eec0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cf00
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040dd50
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040dd50
mov eax, esi
call fcn.00535cbc
ret 0x10

Function at 0x420cd3
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x553f90
call fcn.00535cee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ea10
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420d31
call fcn.004203a3
cmp eax, 1
jne 0x420d31
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040eec0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040cf00
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040dd50
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040dd50
mov eax, esi
call fcn.00535cbc
ret 0x14