joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b981
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.1003b8fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1003baf9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1003baf9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1003baa8
jg 0x1003b9da
test eax, eax
je 0x1003ba9e
push 1
push 0x1000
call fcn.1002c806
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003ba00
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1003ba95
push 0x8000
push ebx
call fcn.1003b82e
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 0x1003ba2c
jg 0x1003ba27
cmp ecx, 0x1000
jb 0x1003ba2c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002d26f
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003ba71
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 0x1003ba27
jl 0x1003ba58
test ecx, ecx
jne 0x1003ba19
push dword [ebp - 0xc]
push ebx
call fcn.1003b82e
push esi
call fcn.1002d46f
add esp, 0xc
xor edi, edi
jmp 0x1003bb0a
cmp byte [edi + 0x24], 0
je 0x1003ba88
cmp dword [edi + 0x20], 5
jne 0x1003ba88
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1003ba93
mov edi, dword [edi + 0x18]
jmp 0x1003ba95
xor edi, edi
push esi
call fcn.1002d46f
pop ecx
jmp 0x1003bb0a
test ecx, ecx
jg 0x1003ba6a
jl 0x1003baa8
test eax, eax
jae 0x1003ba6a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100319fe
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003bacb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1003ba6a
jmp 0x1003bb02
push ebx
call fcn.10034fae
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003ba6a
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 0x1003bb0a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1003bb07
mov edi, dword [edi + 0x18]
jmp 0x1003bb0a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100319fe
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003d160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003d18d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003d18d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f11
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4fc7ac]
mov ecx, dword [0x4fc640]
sub esp, 0x808
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402fc1
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x4fc7ac], 0x5d
jne 0x402faf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x4022f8
push 0x402324
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x402330
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0x402338
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push edi
call fcn.004026b4
add edi, 8
dec ebx
jne 0x402f39
pop edi
pop ebx
pop esi
leave
ret
Function at 0x406c6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b43b8]
jne 0x406c77
repz ret
jmp fcn.00408a49

Function at 0x408606
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004066a4
and dword [ebp - 4], 0
cmp dword [0x4bc24c], 0
mov ebx, eax
jne 0x4086b7
push 0x401954
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408768
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401948
push edi
call esi
test eax, eax
je 0x408768
push eax
call fcn.00406632
mov dword [esp], 0x401938
push edi
mov dword [0x4bc24c], eax
call esi
push eax
call fcn.00406632
mov dword [esp], 0x401924
push edi
mov dword [0x4bc250], eax
call esi
push eax
call fcn.00406632
mov dword [esp], 0x401908
push edi
mov dword [0x4bc254], eax
call esi
push eax
call fcn.00406632
pop ecx
mov dword [0x4bc25c], eax
test eax, eax
je 0x4086b7
push 0x4018f0
push edi
call esi
push eax
call fcn.00406632
pop ecx
mov dword [0x4bc258], eax
mov eax, dword [0x4bc258]
cmp eax, ebx
je 0x40870f
cmp dword [0x4bc25c], ebx
je 0x40870f
push eax
call fcn.004066ad
push dword [0x4bc25c]
mov esi, eax
call fcn.004066ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40870f
test edi, edi
je 0x40870f
call esi
test eax, eax
je 0x408706
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408706
test byte [ebp - 0xc], 1
jne 0x40870f
or dword [ebp + 0x10], 0x200000
jmp 0x408748
mov eax, dword [0x4bc250]
cmp eax, ebx
je 0x408748
push eax
call fcn.004066ad
pop ecx
test eax, eax
je 0x408748
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408748
mov eax, dword [0x4bc254]
cmp eax, ebx
je 0x408748
push eax
call fcn.004066ad
pop ecx
test eax, eax
je 0x408748
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bc24c]
call fcn.004066ad
pop ecx
test eax, eax
je 0x408768
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40876a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402aa5
Capabilities:
Parse pe header

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

Function at 0x40752f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4112ec
push 0x4112e4
push str.FlsAlloc
push 0x1f
call fcn.0040740b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407563
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f168]
call esi
jmp 0x407569
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4075ad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4112fc
push 0x4112f4
push str.FlsGetValue
push 0x21
call fcn.0040740b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4075e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4075ec
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411304
push 0x4112fc
push str.FlsSetValue
push 0x22
call fcn.0040740b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407626
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x409647
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 0x4096e4
push ebx
push esi
call fcn.00409610
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.004095a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409691
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4096e3
push edi
push eax
call fcn.004080d8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4096b1
call fcn.00406c8f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4096e2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004095a4
add esp, 0x20
test eax, eax
jne 0x4096d0
push edi
call fcn.00406c8f
jmp 0x4096d8
push ebx
call fcn.00406c8f
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 0x40e5d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e5fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e5fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
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
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10002620
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001aa9c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x10027010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x480], eax
mov ecx, 0x5c
mov dword [ebp - 0x18], 0
mov word [ebp - 0x1c], cx
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 0
call fcn.10009140
push str..
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x47c]
call fcn.10004c00
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x474]
push dword [eax]
call fcn.100084b0
mov byte [ebp - 4], 1
mov edi, eax
mov esi, dword [ebp - 0x47c]
or ecx, 0xffffffff
add esi, 0xfffffff0
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100026d2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x478]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100026f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x100027d7
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
cmp dword [ebp - 0x14], 0
je 0x1000277f
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
je 0x1000274a
cmp word [ebp - 0x448], 0x2e
jne 0x1000274a
mov cx, word [ebp - 0x446]
test cx, cx
je 0x100027b5
cmp cx, 0x2e
jne 0x1000274a
cmp word [ebp - 0x444], 0
je 0x100027b5
test eax, eax
je 0x1000277f
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x474]
call fcn.10008340
push dword [ebp + 8]
mov byte [ebp - 4], 3
mov edx, ebx
mov ecx, dword [eax]
call fcn.10002620
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x478]
jmp 0x1000279b
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x474]
call fcn.10008340
push dword [eax]
call edi
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100027b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100027da
cmp dword [ebp - 0x14], 0
je 0x100027da
lea ecx, [ebp - 0x474]
push ecx
push eax
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10002710
mov eax, dword [ebp - 0x18]
test ebx, ebx
je 0x100027f1
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x100027f6
mov esi, 1
mov dword [ebp - 0x14], 0
test eax, eax
je 0x1000280d
cmp eax, 0xffffffff
je 0x1000280d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009e59
mov esp, ebp
pop ebp
ret
Function at 0x10007e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10007ebe
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10007e89
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov ecx, edx
push edi
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007e90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.InstallAgent
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.10009010
int3

Function at 0x10007f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx], 0
je 0x10007f9c
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007f96
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10007f64
cmp eax, 2
jne 0x10007f80
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x10007f90
test ecx, ecx
je 0x10007f8b
test cl, 1
jne 0x10007f80
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10007f90
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.10009010
int3

Function at 0x10008ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008cb9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008cf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10008cf0
lea ebx, [ebx]
cmp esi, edx
jae 0x10008cf4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10008ce0
cmp esi, edx
jb 0x10008cfb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10009749
Capabilities:
Query or enumerate registry value

Disassembly:
push str.WcaVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x1000975f
xor eax, eax
inc eax
ret
push str.WcaNotVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x10009774
xor eax, eax
ret
jmp fcn.10009779
Function at 0x10009779
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10027010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], 0x20
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x28], esi
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push 1
push esi
push str.SoftwarePoliciesMicrosoftWindowsInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009820
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push str.Logging
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009817
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
shr ecx, 1
je 0x10009817
mov edi, esi
push ebx
movzx eax, word [edx]
test ax, ax
je 0x10009816
push 0x76
pop ebx
cmp bx, ax
je 0x10009813
push 0x56
pop ebx
cmp bx, ax
je 0x10009813
add edi, 2
add edx, 2
mov eax, edi
sar eax, 1
cmp ecx, eax
ja 0x100097eb
jmp 0x10009816
xor esi, esi
inc esi
pop ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10009e59
mov esp, ebp
pop ebp
ret
Function at 0x1001a10c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x1001a167
call ebx
mov esi, eax
test esi, esi
jle 0x1001a150
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1001a167
push esi
push 0x115
push str.fileutil.cpp
call fcn.1000931e
jmp 0x1001a20b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x1001a183
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x1001a158
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1001a1b3
call ebx
mov esi, eax
test esi, esi
jle 0x1001a1a9
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1001a1b3
push esi
push 0x11d
jmp 0x1001a1e5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001d4a0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1001a1f1
call ebx
mov esi, eax
test esi, esi
jle 0x1001a1dd
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1001a1f1
push esi
push 0x122
push str.fileutil.cpp
call fcn.1000931e
jmp 0x1001a204
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x75ec2650
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x655340bb
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401e20
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f11
test edx, edx
je 0x401f11
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401e6a
xor edi, edi
mov ecx, 0x1505
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401e71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401e50
jmp 0x401e73
mov esi, 0x1505
jmp 0x401e73
mov esi, ecx
mov dword [esp + 4], edx
mov edx, dword [esp]
mov ebx, dword [edx + 0x20]
mov ebp, ebx
sub ebp, 1
jb 0x401f11
and ebp, esi
mov eax, ebx
xor eax, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
lea eax, [eax + ecx*2]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
jmp 0x401eb4
inc ebp
dec ebx
je 0x401f0f
mov eax, ebp
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
cmp edi, 0xffffffff
je 0x401f0f
mov eax, dword [edx + 8]
cmp dword [eax + edi*4], esi
jne 0x401eb0
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408800
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401eb0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00408820
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401eb0
mov eax, dword [edx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f11
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402cb0
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x402e56
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx edi, si
shr esi, 0x10
test ebx, ebx
je 0x402e4f
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ecx, eax
jmp 0x402d42
add ebp, dword [esp + 0xc]
mov ecx, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov ebx, dword [esp + 0x10]
sub ebx, ecx
mov ecx, 0x15b0
je 0x402e4f
mov dword [esp + 0x10], ebx
xor edx, edx
cmp ecx, 8
mov dword [esp], ecx
jb 0x402dc5
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp]
add edx, edi
movzx edi, byte [ebp + 1]
movzx ecx, byte [ebp + 2]
add edi, edx
add edx, esi
movzx esi, byte [ebp + 3]
add ecx, edi
add edx, edi
movzx edi, byte [ebp + 4]
add esi, ecx
add edi, esi
add edx, ecx
mov ecx, edx
xor ecx, esi
and edx, esi
movzx esi, byte [ebp + 5]
add esi, edi
add ecx, edi
add ecx, esi
movzx ebx, byte [ebp + 6]
add ebx, esi
movzx edi, byte [ebp + 7]
add edi, ebx
lea esi, [ecx + edx*2]
add esi, ebx
add esi, edi
mov ecx, eax
and ecx, 8
xor eax, 8
lea edx, [eax + ecx*2]
add ebp, 8
lea ecx, [eax + ecx*2]
add ecx, 7
mov eax, edx
cmp ecx, dword [esp]
mov ecx, dword [esp]
jb 0x402d60
mov eax, ecx
sub eax, edx
jbe 0x402d07
mov ebx, edx
not ebx
add ebx, ecx
mov dword [esp + 4], ebx
mov ebx, eax
and ebx, 3
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
je 0x402e03
neg dword [esp + 8]
xor ecx, ecx
mov ebx, ebp
movzx eax, byte [ebx]
add edi, eax
add esi, edi
inc ebx
dec ecx
cmp dword [esp + 8], ecx
jne 0x402df0
sub edx, ecx
jmp 0x402e05
mov ebx, ebp
mov eax, dword [esp + 4]
cmp eax, 3
jb 0x402d00
mov eax, dword [esp]
sub eax, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + edx]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [ebx + edx + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 3]
add edi, ecx
add esi, edi
add edx, 4
cmp eax, edx
jne 0x402e20
jmp 0x402d00
shl esi, 0x10
or esi, edi
jmp 0x402e5b
mov esi, 1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret