joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403efc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40ccf8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40cda1
test eax, edx
je 0x40cda4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40cd21
push edx
mov edx, eax
mov eax, esp
call fcn.0040725c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40cd37
push eax
lea eax, [esp + 8]
call fcn.0040725c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40cd46
movzx eax, word [eax]
sub eax, ecx
jmp 0x40cd6d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40cd87
add ecx, 4
js 0x40cd5e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40cd84
push eax
mov eax, ecx
mov edx, 2
call fcn.00405ea0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40cd6b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40cd6d
xor eax, eax
ret
test eax, eax
je 0x40cdb4
test edx, edx
jne 0x40cd08
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x413feb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040625c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040a37c
mov edi, eax
cmp edi, 0x104
jbe 0x41400e
mov eax, edi
add eax, eax
call fcn.00403c18
mov esi, eax
jmp 0x414010
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040a37c
push edi
push esi
call fcn.0040a784
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414049
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x414033
mov eax, esp
cmp esi, eax
je 0x414056
mov eax, esi
call fcn.00403c34
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x414090
cmp bl, 0
je 0x41408c
cmp bl, 0x41
jl 0x414087
cmp bl, 0x5a
jg 0x414087
or bl, 0x20
xor al, bl
inc esi
jmp 0x41406b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413fd0

Function at 0x430724
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43072a
ret
Function at 0x4826fc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x489d14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x489ec4
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.00488928
pop ecx
test al, al
jne 0x489d5b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489ff8
xor ebx, ebx
jmp 0x489ec4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x489d79
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00489ff8
xor ebx, ebx
jmp 0x489ec4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.004a0c8c
test eax, eax
jne 0x489db0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00489ff8
xor ebx, ebx
jmp 0x489ec4
test byte [edi + 4], 1
je 0x489ebd
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.00488928
pop ecx
test al, al
jne 0x489de4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489ff8
xor ebx, ebx
jmp 0x489ec4
mov edx, dword [0x485360]
mov eax, 0xc
call fcn.0040826c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48928f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406930
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004066c4
mov edx, dword [ebp - 4]
call fcn.00488928
pop ecx
test al, al
jne 0x489e52
mov edx, dword [0x485360]
mov eax, dword [ebp - 8]
call fcn.00408280
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489ff8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489ec4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00483628
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00483a40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489ebd
dec esi
jne 0x489d32
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ac000
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x50b43c
mov eax, esi
mov edx, 8
test al, 1
je 0x4ac01c
shr eax, 1
xor eax, 0xedb88320
jmp 0x4ac01e
shr eax, 1
dec edx
jne 0x4ac00f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4ac008
pop esi
ret
Function at 0x4ac04b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x50b438], 0
jne 0x4ac057
call fcn.004ac000
push 1
push 0x50b438
call fcn.0040a130
mov eax, edi
test esi, esi
je 0x4ac082
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x50b43c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4ac05d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4acbec
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret
Function at 0x4b92a8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x4b88d5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.004b5f38
cmp dword [ebp - 0x1084], 0x418
jle 0x4b936a
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xc3
call fcn.004ac73c
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [fcn.0040aafc]
call fcn.00412530
call fcn.00405674
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.004061f4
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b8c04
mov edx, dword [ebp - 0x11ec]
mov eax, dword [edi]
add eax, 0x14
call fcn.00407048
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.004061f4
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b8c04
mov edx, dword [ebp - 0x11f4]
mov eax, dword [edi]
add eax, 0x18
call fcn.00407048
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4b9496
push ebp
mov eax, esi
mov edx, 0xa
call fcn.004b9230
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.004b66ec
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x4b9437
push ebp
call fcn.004b9088
pop ecx
xor eax, eax
push ebp
push 0x4b8868
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.004b9230
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b9482
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call fcn.004b6728
dec ebx
jne 0x4b9400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b88dc
lea eax, [ebp - 0x11f8]
call fcn.00405e7c
lea eax, [ebp - 0x11f4]
call fcn.00407038
lea eax, [ebp - 0x11f0]
call fcn.00405e7c
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.00407040
ret
Function at 0x4e51bc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e51e1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x3f75642b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x150b1e28
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40856a
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], 2
push esi
xor esi, esi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov ebx, esi
mov eax, 0x8694
mov dword [ebp - 0x21a], esi
push edi
mov edi, esi
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x216], esi
mov dword [ebp - 0x212], esi
cmp dword [0x431408], ebx
jle 0x4086bb
test ebx, ebx
jne 0x408614
push str.INSTALLPATH
push str._sInit
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
lea eax, [ebp - 0x108]
push eax
call fcn.004086ea
add esp, 0x14
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x43140c]
imul esi, ebx, 0x104
push 0x5c
add eax, esi
push eax
call fcn.0040ec10
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040e980
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040e980
mov eax, dword [0x43140c]
add eax, esi
mov esi, 0x104
push eax
push 0x426cf0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00403cbc
push str.INSTALLPATH
push str._sInit
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00403cbc
add esp, 0x40
push dword [ebp - 0x220]
call fcn.004086ea
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
lea ecx, [edi + 1]
push 0
cmove ecx, edi
inc ebx
mov edi, ecx
pop esi
cmp ebx, dword [0x431408]
jl 0x4085d8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5ca
leave
ret
Function at 0x425070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42509d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42509d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552e68
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.0040cf30
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 0x40da95
mov dword [ebp - 0x24], 0x104
lea edx, [ebp - 0x24]
push edx
push 0x104
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d0a0
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 0x40da6d
cmp dword [ebp - 0x18], 1
je 0x40da7b
cmp dword [ebp - 0x18], 2
je 0x40da7b
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040cf30
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d8a0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.0040d2e0
movzx ecx, al
test ecx, ecx
je 0x40db83
lea ecx, [ebp - 0x14]
call fcn.0040c930
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040d0a0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d8a0
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0040d950
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40db06
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c9a0
jmp 0x40db83
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.0040d370
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.0040cac0
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.0040caa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040c9a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040c9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c9a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40fb60
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 0x40fb84
xor eax, eax
jmp 0x40fc04
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 0x40fb9b
xor eax, eax
jmp 0x40fc04
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 0x40fbe7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40fbe7
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 0x40fbbe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40fbf3
xor eax, eax
jmp 0x40fc04
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40fc01
xor eax, eax
jmp 0x40fc04
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x419259
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 0x4192a5
push 0x63d24c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4192c2
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 0x4192ae
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4192c2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41932f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4192dd
xor eax, eax
jmp 0x41932f
lea eax, [ebp - 0x210]
push eax
call fcn.00535922
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41930e
push 0x63d284
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005369bf
add esp, 0xc
test eax, eax
jne 0x4192d9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005369bf
add esp, 0xc
test eax, eax
jne 0x4192d9
lea eax, [ebp - 0x210]
push eax
call fcn.0041e05d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005327db
leave
ret
Function at 0x419ade
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 0x419b23
call fcn.0041fe65
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419b23
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x419b3f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042959e
mov ebx, eax
test edi, edi
je 0x419b3d
test esi, esi
je 0x419b3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e5f9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55c99f
call fcn.005357ee
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41e61f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e673
call fcn.0041178d
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c7a0
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.00535746
push eax
call fcn.0040eb70
add esp, 0x14
test edi, edi
je 0x41e666
push edi
call fcn.00532750
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040d860
mov eax, esi
call fcn.005357bc
ret 8

Function at 0x41ea90
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 0x41eab2
cmp dword [ebx + 0x74], 0
jne 0x41eab2
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.0041fe65
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.0041ed18
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 0x41eaec
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.0041fe65
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 0x41eb23
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.0041eb42
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 0x420636
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x553aa0
call fcn.005357ee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e520
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420698
call fcn.0041feb3
cmp eax, 1
jne 0x420698
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040e9d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ca10
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.0040d860
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x4206aa
call fcn.004145ae
jmp 0x4206b0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040d860
mov eax, esi
call fcn.005357bc
ret 0xc

Function at 0x420761
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x553aa0
call fcn.005357ee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e520
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x4207bf
call fcn.0041feb3
cmp eax, 1
jne 0x4207bf
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040e9d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ca10
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040d860
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.0040d860
mov eax, esi
call fcn.005357bc
ret 0x10

Function at 0x4207e6
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x553aa0
call fcn.005357ee
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e520
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x420844
call fcn.0041feb3
cmp eax, 1
jne 0x420844
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040e9d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ca10
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040d860
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.0040d860
mov eax, esi
call fcn.005357bc
ret 0x14