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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x407390
jl 0x407387
cmp dword [ebp + 0xc], 0
ja 0x407390
xor eax, eax
xor edx, edx
jmp 0x4074c7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4073b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00407ce0
jmp 0x4074c7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0040a840
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x407421
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004074d0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040a9a0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040bbb0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040a920
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4074b8
mov ecx, dword [ebp - 8]
call fcn.0040a3f0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x407491
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00423515
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40748f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4074c7
jmp 0x40743d
cmp dword [ebp - 4], 0
jbe 0x4074b8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00423515
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41796e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4179ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4179ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4179ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4179ad
cmp dword [ecx + 0x74], 0xe
jbe 0x4179ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4299bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d580
push 0x43d578
push str.FlsAlloc
push 0x1e
call fcn.00429887
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4299f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x439180]
call esi
jmp 0x4299f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429a3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d590
push 0x43d588
push str.FlsGetValue
push 0x20
call fcn.00429887
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429a72
push dword [ebp + 8]
mov ecx, esi
call dword [0x439180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42c0e3
Capabilities:
Read file on windows

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

Function at 0x42c0ee
Capabilities:
Read file on windows

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

Function at 0x42c4e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00417bd0
mov eax, dword [0x446140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00427eae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42c52a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42c686
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004378c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x493d68]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042dcc7
mov ecx, dword [esi*4 + 0x493d68]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42c67f
cmp eax, dword [edi + ecx + 0x24]
jne 0x42c67f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c67f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042dcc7
add esp, 0x14
test edx, edx
jl 0x42c67f
jg 0x42c5f5
test eax, eax
jb 0x42c67f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42c67f
jl 0x42c60f
cmp dword [ebp - 0x1008], eax
ja 0x42c67f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42c62d
test ebx, ebx
je 0x42c666
cmp ecx, edi
jae 0x42c666
mov al, byte [ecx]
cmp al, 0xd
jne 0x42c647
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42c653
cmp byte [ecx + 1], 0xa
jne 0x42c653
inc ecx
jmp 0x42c653
movzx eax, al
movsx eax, byte [eax + 0x446428]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42c62d
cmp edx, ebx
jne 0x42c62d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42c684
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416c40
leave
ret
Function at 0x42d165
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x493d68]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d1a5
cmp byte [ebx], 0xa
jne 0x42d1a5
or byte [eax + edi + 0x28], 4
jmp 0x42d1aa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42d2a8
mov al, byte [edx]
cmp al, 0x1a
je 0x42d28a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42d1d9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42d1fe
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42d208
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42d1bb
jmp 0x42d2a8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d285
cmp dword [ebp - 0xc], 0
je 0x42d285
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x493d68]
test byte [eax + edi + 0x28], 0x48
je 0x42d25f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d24a
mov byte [esi], dl
jmp 0x42d25b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x493d68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d2a8
cmp byte [ebp - 1], 0xa
jne 0x42d26e
cmp esi, ebx
jne 0x42d26e
mov byte [esi], 0xa
jmp 0x42d2a7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042dce5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d2a8
mov byte [esi], 0xd
jmp 0x42d2a7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x493d68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d2a4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d2a8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d2b1
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 + 0x493d68]
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 0x42d2f4
cmp word [esi], dx
jne 0x42d2f4
or byte [edi + eax + 0x28], 4
jmp 0x42d2f9
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 0x42d44c
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 0x42d42c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42d33b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42d371
cmp eax, edx
jae 0x42d37d
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 0x42d313
jmp 0x42d44c
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 0x42d428
cmp dword [ebp - 0x14], 0
je 0x42d428
mov eax, dword [ebx*4 + 0x493d68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42d400
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42d3c9
mov word [esi], cx
jmp 0x42d3fc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x493d68]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x493d68]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x493d68]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42d44c
pop ebx
cmp word [ebp - 4], bx
jne 0x42d411
cmp esi, dword [ebp + 0xc]
jne 0x42d411
mov word [esi], bx
jmp 0x42d449
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042dce5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42d44c
push 0xd
jmp 0x42d445
mov ecx, dword [ebx*4 + 0x493d68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d443
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d44c
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 0x42f406
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x446140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42f451
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042f5a5
test al, al
jne 0x42f44b
sub edx, 2
cmp edx, edi
jne 0x42f431
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f473
lea eax, [edi + 2]
cmp edx, eax
je 0x42f473
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f352
add esp, 0x10
jmp 0x42f56d
push esi
lea ecx, [ebp - 0x255]
call fcn.0042f5a5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f4b6
push dword [ebp - 0x25c]
jmp 0x42f463
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42f4f3
cmp word [ebp - 0x226], 0
je 0x42f514
cmp word [ebp - 0x226], ax
jne 0x42f4f3
cmp word [ebp - 0x224], 0
je 0x42f514
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f352
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f560
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f4cd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f548
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f56d
push 0x42f182
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00435b40
add esp, 0x10
jmp 0x42f53d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416c40
leave
ret
Function at 0x436a35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004369b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x436bad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x436bad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x436b5c
jg 0x436a8e
test eax, eax
je 0x436b52
push 1
push 0x1000
call fcn.00428b21
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x436ab4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x436b49
push 0x8000
push ebx
call fcn.00425f35
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x436ae0
jg 0x436adb
cmp ecx, 0x1000
jb 0x436ae0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042a80a
add esp, 0x10
cmp eax, 0xffffffff
je 0x436b25
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x436adb
jl 0x436b0c
test ecx, ecx
jne 0x436acd
push dword [ebp - 0xc]
push ebx
call fcn.00425f35
push esi
call fcn.004295ac
add esp, 0xc
xor edi, edi
jmp 0x436bbe
cmp byte [edi + 0x24], 0
je 0x436b3c
cmp dword [edi + 0x20], 5
jne 0x436b3c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x436b47
mov edi, dword [edi + 0x18]
jmp 0x436b49
xor edi, edi
push esi
call fcn.004295ac
pop ecx
jmp 0x436bbe
test ecx, ecx
jg 0x436b1e
jl 0x436b5c
test eax, eax
jae 0x436b1e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042dce5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436b7f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x436b1e
jmp 0x436bb6
push ebx
call fcn.00430526
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x436b1e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x436bbe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x436bbb
mov edi, dword [edi + 0x18]
jmp 0x436bbe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042dce5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4376c0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b18
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x41f650]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
lea ecx, [ebp - 0x20]
call fcn.004066e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004068c0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4069b1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x230], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00406710
mov eax, dword [ebp - 0x230]
jmp 0x406a50
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406a1e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406920
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406a15
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x234], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00406710
mov eax, dword [ebp - 0x234]
jmp 0x406a50
mov dword [ebp - 0x10], 0x100
jmp 0x4069b8
lea ecx, [ebp - 0x20]
call fcn.00406800
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x23c]
call fcn.004067a0
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00406710
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041479a
mov esp, ebp
pop ebp
ret 4
Function at 0x407050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x407059
xor ecx, ecx
jne 0x407059
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40707a
mov eax, 0xd
jmp 0x4070d5
xor eax, eax
jne 0x407061
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40708b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x408620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415e18
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x41f650]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.5B697DBE_2FC6_4494_A5D3_416ED1E1726B
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x41f704], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408673
xor al, al
jmp 0x40873d
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call sub.OSUtil.dll_Ordinal_1
add esp, 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402420
mov dword [ebp - 4], 0
push str.Resource.dll
lea ecx, [ebp - 0x10]
call fcn.004088a0
lea ecx, [ebp - 0x10]
call fcn.004088e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x41f700], eax
cmp dword [0x41f700], 0
jne 0x4086ff
mov byte [ebp - 0x21d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004024a0
mov al, byte [ebp - 0x21d]
jmp 0x40873d
mov ecx, dword [0x41f700]
push ecx
mov ecx, 0x41f6c0
call fcn.00408840
push 0
push 0x41f710
push 0x41f6fc
call sub.gdiplus.dll_GdiplusStartup
mov byte [ebp - 0x21e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004024a0
mov al, byte [ebp - 0x21e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041479a
mov esp, ebp
pop ebp
ret
Function at 0x408f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov ecx, 0x41f6c0
call fcn.00401890
mov dword [ebp - 0x1c], eax
push 0x41919c
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408fc7
push 0x4191a4
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408fc7
xor eax, eax
jmp 0x409096
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408fe5
xor eax, eax
jmp 0x409096
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409003
xor eax, eax
jmp 0x409096
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409024
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x409096
mov ecx, dword [ebp - 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409047
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x409096
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4