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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
mov eax, dword [0x42c040]
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.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
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 + 0x486940]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x486940]
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 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
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 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret
Function at 0x41eace
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 + 0x486940]
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 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
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 0x41eb24
jmp 0x41ec11
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 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486940]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486940]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec1a
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 + 0x486940]
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 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
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 0x41edb5
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 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
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 0x41ec7c
jmp 0x41edb5
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 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x486940]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486940]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486940]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486940]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x486940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
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 0x10001a20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
cmp dword [0x1002152c], 0
je 0x10001a35
jmp 0x10001bb6
mov dword [ebp - 0xc], 0
push 0x11
push 0x1001860c
call fcn.10001500
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.100019c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001aa7
mov ecx, dword [ebp - 4]
push ecx
call fcn.10008263
add esp, 4
push 0xc
push 0x1001867c
call fcn.10001500
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.100019c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001aa7
mov eax, dword [ebp - 4]
push eax
call fcn.10008263
add esp, 4
jmp 0x10001bb6
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
call fcn.1000829b
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
add edx, 2
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
call fcn.10008263
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x10001aee
mov eax, dword [ebp - 8]
add eax, 2
cmp dword [ebp - 0x14], eax
jbe 0x10001aff
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10008263
add esp, 4
jmp 0x10001bb6
push 0x1f
push 0x1001868c
call fcn.10001500
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.10007500
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.10007500
add esp, 4
lea ecx, [esi + eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 8
push edx
call fcn.1000829b
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str._s_s
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10007e14
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10008263
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.10008263
add esp, 4
push 0x100186b4
mov eax, dword [ebp - 4]
push eax
call fcn.10007d7b
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10001baa
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10007c40
add esp, 4
mov edx, dword [ebp - 4]
mov dword [0x1002152c], edx
jmp 0x10001bb6
mov eax, dword [ebp - 4]
push eax
call fcn.10008263
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001dc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001e60
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10001e56
cmp dword [ebp - 0xc], 0xea
je 0x10001e56
mov edx, dword [ebp + 0x10]
push edx
call fcn.10007500
add esp, 4
push eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10001e49
mov dword [ebp - 0x10], 1
jmp 0x10001e50
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10002fc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x10325476
pop ebp
ret
Function at 0x10004230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x40
push 0x3000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
jne 0x1000425a
mov dword [ebp - 4], 1
jmp 0x10004261
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100042a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100042bc
mov dword [ebp - 4], 1
jmp 0x100042c3
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100042d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.100018e0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10004314
mov dword [ebp - 8], 1
jmp 0x1000431b
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
push edx
call fcn.10008263
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x100063e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006418
xor eax, eax
jmp 0x1000649d
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006438
jmp 0x10006490
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.1000829b
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006454
jmp 0x10006490
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000647d
mov dword [ebp - 4], 0
jmp 0x10006490
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001be3
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
je 0x1001d99
cmp eax, esi
je 0x1001d99
push eax
mov dword [0x1009444], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 8], eax
test al, 2
jne 0x1001c37
xor eax, eax
mov word [0x1009450], ax
mov word [0x1009448], ax
mov word [0x1009440], ax
pop esi
leave
ret
lea eax, [ebp - 0x28]
push eax
push dword [0x1009444]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x20]
mov word [0x1009450], ax
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x1009448], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x1009440], ax
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x100122c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1001d19
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001218
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1001d19
mov edx, dword [ebp - 8]
mov ecx, 0xff
cmp edx, ecx
jne 0x1001cea
mov ecx, dword [ebp - 0x20]
mov edx, ecx
or edx, 8
mov ax, cx
and ecx, 0xf0
mov word [0x1009458], dx
mov edx, ecx
or edx, 0xc
or ecx, 8
mov word [0x1009454], dx
mov word [0x100945c], cx
jmp 0x1001d2e
push edi
mov edi, edx
shr edi, 8
and edi, ecx
mov word [0x1009454], di
mov edi, edx
shr edi, 0x10
movzx eax, dl
and edi, ecx
shr edx, 0x18
and edx, ecx
mov word [0x1009458], di
mov word [0x100945c], dx
pop edi
jmp 0x1001d2e
mov eax, dword [ebp - 0x20]
mov word [0x1009454], ax
mov word [0x1009458], ax
mov word [0x100945c], ax
mov ecx, dword [0x100945c]
shr cl, 4
xor cl, byte [0x100945c]
mov word [0x1009460], ax
test cl, 0xf
jne 0x1001d4e
mov word [0x100945c], ax
mov ecx, dword [0x1009458]
shr cl, 4
xor cl, byte [0x1009458]
test cl, 0xf
jne 0x1001d68
mov word [0x1009458], ax
mov ecx, dword [0x1009454]
shr cl, 4
xor cl, byte [0x1009454]
test cl, 0xf
jne 0x1001d82
mov word [0x1009454], ax
cmp dword [ebp - 4], esi
je 0x1001c34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x100284b
Capabilities:
Write file on windows

Disassembly:
push 0x14
push 0x1007988
call fcn.01007394
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x1002995
xor ebx, ebx
cmp esi, ebx
je 0x1002995
xor eax, eax
cmp ax, word [0x1009450]
je 0x1002891
push dword [ebp + 8]
push dword [0x1009444]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 0x10]
push eax
push 0x1000
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp + 8], ebx
je 0x1002955
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x10028df
push edi
push dword [ebp + 8]
push esi
call fcn.010018ef
jmp 0x1002935
lea eax, [edi + edi + 2]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1002935
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x1002926
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100290d
sub eax, edx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x1002935
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.01001fc7
test eax, eax
je 0x100294c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xfffffffe
xor ecx, ecx
mov ax, word [0x1009450]
cmp cx, ax
je 0x1002979
movzx eax, ax
push eax
push dword [0x1009444]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x1c]
jmp 0x1002997
xor eax, eax
call fcn.010073d9
ret 0xc
Function at 0x10034fa
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.01007460
mov eax, dword [0x1009428]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0xc04]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x100c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1001414
mov dword [ebp - 0x1008], eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0100262c
cmp dword [ebp - 0x1008], esi
jbe 0x10036b0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0xc04]
push eax
push 2
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov dword [ebp - 0x1008], eax
cmp eax, esi
jbe 0x10036b0
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x10036af
push ebx
push dword [ebp - 0x1008]
lea eax, [ebp - 0xc04]
push esi
push eax
push 2
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x10036a0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0x10013e0
push ebx
mov dword [ebp - 0x1010], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x1010]
cmp eax, esi
je 0x1003668
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10013c0
push ecx
push eax
mov esi, 0x1001388
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0100274a
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x1010]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001364
push ecx
push eax
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0100274a
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
cmp dword [ebp - 0x100c], esi
je 0x10036a0
cmp dword [ebp - 0x1014], esi
je 0x10036a0
push dword [ebp - 0x1014]
lea eax, [ebp - 0x1004]
push dword [ebp - 0x100c]
push eax
movzx eax, word [0x1009460]
push 0x1001334
push eax
call fcn.010029a4
add esp, 0x14
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100741c
leave
ret
Function at 0x10040c0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x1009428]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa68], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
mov dword [ebp - 0xa6c], ebx
test esi, esi
je 0x1004292
push edi
mov edi, 0x100
jmp 0x10040ff
mov ebx, dword [ebp - 0xa6c]
cmp word [esi], 0
je 0x100426f
push edi
lea eax, [ebp - 0x614]
push eax
push edi
lea eax, [ebp - 0x814]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100421b
mov ecx, 0x100146c
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100417a
test dx, dx
je 0x1004176
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100417a
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004154
xor eax, eax
jmp 0x100417f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10041fb
mov ecx, 0x1001464
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10041b4
test dx, dx
je 0x10041b0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10041b4
add eax, 4
add ecx, 4
test dx, dx
jne 0x100418e
xor eax, eax
jmp 0x10041b9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10041fb
push 0x1001214
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll__wmakepath_s
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.0100315f
lea eax, [ebp - 0xa64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1004149
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1004244
mov ebx, dword [sym.imp.msvcrt.dll_wcschr]
push 0x2a
push esi
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x1004244
push 0x3f
push esi
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x1004244
push esi
lea eax, [ebp - 0xa68]
push eax
call fcn.0100315f
cmp dword [ebp + 0xc], 0
je 0x1004269
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100424f
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
test esi, esi
jne 0x10040f9
mov ebx, dword [ebp - 0xa6c]
mov esi, dword [ebp - 0xa68]
pop edi
test esi, esi
je 0x1004292
mov eax, dword [ebx]
test eax, eax
je 0x1004290
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100741c
leave
ret 8