joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1417063
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x422cfe
call fcn.0142affc
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.0140ca01
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.014170bd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x141706e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x422cfe
call fcn.0142affc
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.0140ca01
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.014170bd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x141710f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422d49
call fcn.0142affc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.01418f31
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0140b535
push dword [esi + 0x24]
call fcn.0140d09d
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.01421373
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.014175ef
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x141711a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422d49
call fcn.0142affc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.01418f31
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0140b535
push dword [esi + 0x24]
call fcn.0140d09d
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.01421373
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.014175ef
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x142982c
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x1429d2c
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], pe_nt_image_headers32
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x1429d61
jmp 0x1429d4c
and edi, 0x3f
jne 0x1429d57
push esi
call fcn.0142986c
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x1429d4c
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0142986c
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x1429d83
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x15a7fe7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x422cfe
call fcn.015bbf80
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.0159d985
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.015a8041
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x15a7ff2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x422cfe
call fcn.015bbf80
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.0159d985
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.015a8041
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x15a8093
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422d49
call fcn.015bbf80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.015a9eb5
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0159c4b9
push dword [esi + 0x24]
call fcn.0159e021
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.015b22f7
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.015a8573
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x15a809e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422d49
call fcn.015bbf80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.015a9eb5
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0159c4b9
push dword [esi + 0x24]
call fcn.0159e021
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.015b22f7
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.015a8573
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x15ba7b0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x15bacb0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], pe_nt_image_headers32
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x15bace5
jmp 0x15bacd0
and edi, 0x3f
jne 0x15bacdb
push esi
call fcn.015ba7f0
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x15bacd0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.015ba7f0
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x15bad07
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x16ed15e
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x16ed196
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x16ed18c
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x16ed198
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x16ed17e
xor eax, eax
pop ebx
pop esi
ret

Function at 0x16eee86
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov byte [esp + 0xb], 0
movzx ebp, byte [esp + 0xb]
mov dword [esp + 4], ebx
xor esi, esi
mov dword [esp + 0xc], eax
lea ecx, [eax + ebp*4]
mov dword [esp], ecx
call fcn.016f0286
mov eax, dword [esp + 0xc]
movzx ecx, byte [ebx + esi]
mov cl, byte [ecx + 0x40ec40]
mov byte [ebx + esi], cl
inc esi
cmp esi, 0x10
jne 0x16eeeb8
mov ecx, 4
lea edi, [esp + 0x10]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov ecx, esi
and ecx, 3
lea ecx, [esi + ecx*4]
and ecx, 0xf
mov cl, byte [esp + ecx + 0x10]
mov byte [ebx + esi], cl
inc esi
cmp esi, 0x10
jne 0x16eeeda
movzx ecx, byte [eax + 0xc0]
lea esi, [ecx*4 - 4]
cmp ebp, esi
jge 0x16eef4d
xor esi, esi
mov edx, dword [ebx + esi]
mov ecx, edx
mov ebp, edx
and ecx, 0x80808080
rol ebp, 8
shr ecx, 7
imul edi, ecx, 0x1b
mov ecx, edx
and ecx, 0x7f7f7f7f
add ecx, ecx
xor ecx, edi
mov edi, edx
rol edi, 0x10
xor edi, ebp
xor edi, ecx
xor ecx, edx
ror ecx, 8
xor edi, ecx
mov dword [ebx + esi], edi
add esi, 4
cmp esi, 0x10
jne 0x16eef06
add byte [esp + 0xb], 4
jmp 0x16eee9a
shl ecx, 4
mov dword [esp + 0x38], ebx
add eax, ecx
mov dword [esp + 0x34], eax
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.016f0286

Function at 0x16efdce
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + ebx]
mov eax, ecx
and eax, 0x80808080
shr eax, 7
imul edx, eax, 0x1b
mov eax, ecx
and eax, 0x7f7f7f7f
add eax, eax
xor eax, edx
mov edi, eax
and edi, 0x80808080
shr edi, 7
imul edx, edi, 0x1b
mov edi, eax
and edi, 0x7f7f7f7f
add edi, edi
xor edi, edx
mov edx, edi
and edx, 0x80808080
shr edx, 7
imul ebp, edx, 0x1b
mov edx, edi
and edx, 0x7f7f7f7f
add edx, edx
xor edx, ebp
xor edi, edx
mov ebp, edi
xor ebp, eax
xor eax, ecx
xor eax, edx
xor edx, ecx
xor ecx, edi
ror eax, 8
rol edx, 8
rol ecx, 0x10
xor eax, ebp
xor eax, edx
xor eax, ecx
mov dword [esi + ebx], eax
add ebx, 4
cmp ebx, 0x10
jne 0x16efdd8
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x16f0286
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
xor eax, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + eax]
xor dword [edx + eax], ecx
add eax, 4
cmp eax, 0x10
jne 0x16f0291
pop ebx
ret
Function at 0x179e7b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xe55015
lea edi, [esi - 0xa54015]
push edi
jmp 0x179e7ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x179e7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x179e7c0
mov eax, 1
add ebx, ebx
jne 0x179e7e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x179e7f4
jne 0x179e813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x179e813
dec eax
add ebx, ebx
jne 0x179e800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x179e7d8
add ebx, ebx
jne 0x179e80f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x179e865
xor ecx, ecx
sub eax, 3
jb 0x179e82b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x179e89a
sar eax, 1
mov ebp, eax
jmp 0x179e836
add ebx, ebx
jne 0x179e836
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x179e804
inc ecx
add ebx, ebx
jne 0x179e844
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x179e804
add ebx, ebx
jne 0x179e851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x179e846
jne 0x179e862
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x179e846
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x179e884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x179e876
jmp 0x179e7c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x179e884
add edi, ecx
jmp 0x179e7c6
pop esi
mov edi, esi
mov ecx, 0x4ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x179e8a2
cmp byte [edi], 0x13
jne 0x179e8a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x179e8a7
lea edi, [esi + 0x139a000]
mov eax, dword [edi]
or eax, eax
je 0x179e916
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13b2af8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13b2cfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x179e8d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13b2d04]
or eax, eax
je 0x179e910
mov dword [ebx], eax
add ebx, 4
jmp 0x179e8f1
call dword [esi + 0x13b2d00]
mov ebp, dword [esi + 0x13b2d08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x179e94a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x54277d66
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x31f334b9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0xcf2000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xcf200a
jmp 0xcf400f
jmp fcn.009f4058
Function at 0x406010
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [0x4121dc]
push esi
sub ebx, 0x58
push edi
test eax, eax
mov dword [esp + 0xc], 0
jne 0x406095
mov eax, dword [0x41217c]
push str.CAVE
push 0x8a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x41217c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
mov esi, eax
mov ecx, edx
mov edi, ebx
shl ecx, 7
add ecx, edx
lea edx, [ecx + ecx*2]
lea ecx, [edx*4 + 0x58]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [0x4123a0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
push 0
push pe_nt_image_headers32
push 3
push 0
mov ecx, 0x16
mov esi, ebx
lea edi, [esp + 0x20]
push 0
push 0x80000000
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40612f
mov eax, dword [0x4121dc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
add eax, 0xffffffa8
push 0x58
push eax
push esi
call edi
cmp dword [ebx], 0x45564143
jne 0x406122
lea ecx, [esp + 0xc]
push 0
push ecx
mov ecx, dword [ebx + 4]
mov eax, ecx
shl eax, 7
add eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [0x4121dc]
shl edx, 2
push edx
push eax
push esi
call edi
mov ecx, dword [ebx + 4]
push esi
mov dword [0x4123a0], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov ecx, 0x16
lea esi, [esp + 0x10]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
Function at 0x4064a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41217c]
sub esp, 0x30
and eax, 0xffff
push ebx
push esi
push edi
push str.WAVE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x41217c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00401d70
add esp, 0x10
test eax, eax
jne 0x4064fa
pop edi
pop esi
pop ebx
add esp, 0x30
ret
xor edx, edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], edx
mov dword [esp + 0x2c], pe_nt_image_headers32
mov dword [esp + 0x30], edx
push 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [0x411bac]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x406556
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea edx, [esp + 0x20]
push 0
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x4c]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
push edx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
je 0x40658c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x4c]
test eax, eax
je 0x4065d1
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
xor edi, edi
mov dword [ebx], eax
lea esi, [ebx + 4]
mov eax, dword [0x411bac]
mov edx, dword [ebx]
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x406608
inc edi
add esi, 4
cmp edi, 3
jne 0x4065e0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x30
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x407ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x87f03c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
mov dword [esp + 4], esi
cmp dword [eax + 0x14], 0x10
push edi
mov edi, dword [esp + 0x244]
jb 0x407bde
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ca6
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], 0x200
jb 0x407c0a
mov edi, dword [edi]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407ca6
cmp dword [esp + 8], 1
jne 0x407ca6
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x18], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c48
sub ecx, edx
lea eax, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401290
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004016b0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
jb 0x407ccb
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407c9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407c9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
jmp 0x407ccb
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [esp + 0x230]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040e6c4
add esp, 0x22c
ret