joyce8/EMBER2024-capa huggingface dataset:
Function at 0x789a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x87fbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004051f0
push eax
call fcn.00409c60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x789a3e
mov edx, dword [ebp + 8]
push edx
call fcn.00789970
add esp, 4
jmp 0x789bd0
mov ecx, dword [ebp - 0x2c]
call fcn.00789da0
test eax, eax
je 0x789a84
mov ecx, dword [ebp - 0x2c]
call fcn.00789da0
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.00789730
cmp esi, eax
jae 0x789a84
mov eax, dword [ebp + 8]
push eax
call fcn.00409c70
add esp, 4
mov byte [ebp - 0x2f], al
mov ecx, dword [ebp - 0x2c]
call fcn.00409c80
mov cl, byte [ebp - 0x2f]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x789bd0
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x789a97
call fcn.004051f0
jmp 0x789bd0
mov ecx, dword [ebp - 0x2c]
call fcn.00789480
nop
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x789af1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409c70
add esp, 4
mov byte [ebp - 0x30], al
mov ecx, dword [ebp - 0x44]
push ecx
movzx edx, byte [ebp - 0x30]
push edx
call fcn.00788060
add esp, 8
movzx eax, al
test eax, eax
je 0x789ae1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
jmp 0x789ae9
call fcn.004051f0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x789bd0
mov dword [ebp - 0x54], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.00409c70
add esp, 4
mov byte [ebp - 0x2e], al
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x48]
call fcn.007899b0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x789b4e
cmp dword [ebp - 0x34], 1
je 0x789b4e
cmp dword [ebp - 0x34], 3
je 0x789b9b
jmp 0x789bcb
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x789b80
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.007b2ff0
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x789b80
call fcn.004051f0
jmp 0x789bd0
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2e]
cmp dword [ebp - 0x50], ecx
je 0x789b94
mov eax, dword [ebp + 8]
jmp 0x789bd0
call fcn.004051f0
jmp 0x789bd0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 0x2e]
push ecx
call fcn.00788060
add esp, 8
movzx edx, al
test edx, edx
je 0x789bbe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x789bc6
call fcn.004051f0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x789bd0
call fcn.004051f0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00783b00
mov esp, ebp
pop ebp
ret 4
Function at 0x78a660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x78a680
jl 0x78a677
cmp dword [ebp + 0xc], 0
ja 0x78a680
xor eax, eax
xor edx, edx
jmp 0x78a7c2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x78a6a2
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.0078a7d0
jmp 0x78a7c2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call fcn.00789060
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x78a712
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040b5e0
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.00789850
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00409ba0
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.00789810
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x78a7b3
mov ecx, dword [ebp - 8]
call fcn.00789480
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x78a782
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.007b15e0
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 0x78a780
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x78a7c2
jmp 0x78a72e
cmp dword [ebp - 4], 0
jbe 0x78a7b3
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.007b15e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x78f7d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0078f3e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x78f802
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x7f5aac]
call dword [ebp - 8]
jmp 0x78f80c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4069c5
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 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
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 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
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 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
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
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10013505
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10013544
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013544
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013544
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10013544
cmp dword [ecx + 0x74], 0xe
jbe 0x10013544
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001625a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100162f7
push ebx
push esi
call fcn.10016223
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100161b7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100162a4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100162f6
push edi
push eax
call fcn.10017215
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100162c4
call fcn.10014d81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100162f5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100161b7
add esp, 0x20
test eax, eax
jne 0x100162e3
push edi
call fcn.10014d81
jmp 0x100162eb
push ebx
call fcn.10014d81
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10016564
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e348
push 0x1001e340
push str.FlsAlloc
push 0x1f
call fcn.10016480
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016598
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
jmp 0x1001659e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100165e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e358
push 0x1001e350
push str.FlsGetValue
push 0x21
call fcn.10016480
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016619
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016621
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e360
push 0x1001e358
push str.FlsSetValue
push 0x22
call fcn.10016480
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001665b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001bb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001bbad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001bbad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov dword [ebp - 0x94], ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00465960
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00465960
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, dword [ebp + 8]
call fcn.0040c870
add eax, 1
push eax
call fcn.0047f448
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
call fcn.004018c0
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00465ed0
add esp, 8
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.00401660
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.004018c0
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.004018c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004017d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0047f44d
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x401740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004018c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x4066f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4d2260]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x10]
call fcn.00409160
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.004066a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406750
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x10]
call fcn.00406570
mov eax, dword [ebp - 0x11c]
jmp 0x4067e1
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4067b6
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x10]
call fcn.004066f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4067ad
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x10]
call fcn.00406570
mov eax, dword [ebp - 0x120]
jmp 0x4067e1
mov dword [ebp - 4], 0x100
jmp 0x406757
lea ecx, [ebp - 0x10]
call fcn.004065f0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x128]
call fcn.004065b0
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x10]
call fcn.00406570
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00465dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x406e90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 1
jne 0x406ee6
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ebf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x4d2260]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x264], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.0040c870
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b080
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40ab6f
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.0040b020
push 0x4a9424
mov ecx, dword [ebp + 8]
call fcn.0040b000
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408f20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40aca7
mov edx, dword [ebp - 0x264]
and edx, 0x10
je 0x40ac7d
push 0x4a942c
lea eax, [ebp - 0x238]
push eax
call fcn.0046764c
add esp, 8
test eax, eax
je 0x40ac7d
push 0x4a9430
lea ecx, [ebp - 0x238]
push ecx
call fcn.0046764c
add esp, 8
test eax, eax
je 0x40ac7d
push str.common
lea edx, [ebp - 0x238]
push edx
call fcn.0046764c
add esp, 8
test eax, eax
je 0x40ac7d
lea eax, [ebp - 0x238]
push eax
call fcn.00467636
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea edx, [ebp - 0x238]
push edx
call fcn.00467636
add esp, 4
cmp eax, 2
je 0x40ac43
lea eax, [ebp - 0x238]
push eax
call fcn.00467636
add esp, 4
cmp eax, 5
jne 0x40ac7d
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040c5d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x280]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.0040c610
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ab9f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040f9e0
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00465dcc
mov esp, ebp
pop ebp
ret
Function at 0x412440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4d2260]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
call fcn.00401760
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.004018c0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x412565
lea ecx, [ebp - 0x48]
call fcn.00414a10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00414a50
lea ecx, [ebp - 0x48]
call fcn.00404780
push eax
lea ecx, [ebp - 0x48]
call fcn.00414a80
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.004018c0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412559
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x4a9580
lea ecx, [ebp - 0x48]
call fcn.00404780
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412559
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x58], 0x10005
jb 0x41254c
ja 0x412543
cmp dword [ebp - 0x5c], 0x32
jb 0x41254c
mov dword [ebp - 0x68], 1
jmp 0x412553
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00414a30
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov byte [ebp - 0x5d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004017d0
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00465dcc
mov esp, ebp
pop ebp
ret 4