joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 0xc]
mov dword [esi], 0
push eax
push 0
push 0x1001be04
mov dword [edi], 0
push dword [ecx]
mov dword [ebp + 0x10], 4
mov dword [ebp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003fad
cmp dword [ebp + 0xc], 4
jne 0x10003fc5
cmp dword [ebp - 4], eax
setne al
mov dword [edi], 1
mov dword [esi], eax
pop esi
pop edi
mov esp, ebp
pop ebp
mov eax, 1
ret 0xc
cmp eax, 2
jne 0x10003fc5
mov eax, 1
pop esi
mov dword [edi], 0
pop edi
mov esp, ebp
pop ebp
ret 0xc
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x14]
push ecx
push edi
mov edi, dword [ebp + 0x14]
push esi
mov esi, ecx
push eax
push 0
push 0
mov dword [edi], 0
push 0
push 0x1001bdec
mov dword [ebp + 0x14], 0
push dword [esi]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1000401e
mov dword [edi], 0
mov eax, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
or eax, eax
jne 0x10004059
mov eax, dword [ebp + 0x14]
and eax, 0xfffffffe
mov dword [edi], 1
cmp eax, 0x1fe
jae 0x10004059
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push 0x1001bdec
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004059
cmp dword [ebp - 4], 1
je 0x10004011
pop esi
pop edi
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100155c8
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
mov edi, ecx
push esi
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.10002f50
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0
mov dword [ebp - 0x30], 7
lea eax, [ebp - 0x30]
push eax
push 0
push str.UpperFilters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x100040e9
mov dword [ebx], 0
mov eax, 1
jmp 0x100041d5
test eax, eax
jne 0x100041d3
cmp dword [ebp - 0x30], 7
jne 0x100041d3
mov eax, dword [ebp - 0x34]
cmp eax, 1
jb 0x100041d3
mov edx, 2
mov dword [ebp - 0x38], eax
xor ecx, ecx
shr eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007b35
sub esp, 0xfffffffc
mov edi, eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x3c]
push 0
push str.UpperFilters
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100041ca
cmp dword [ebp - 0x30], 7
jne 0x100041ca
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
jne 0x100041ca
mov dword [ebx], 1
mov ebx, edi
cmp word [edi], 0
je 0x100041ba
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.100043c0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x10004199
push dword [ebp - 0x2c]
call fcn.10006e6a
sub esp, 0xfffffffc
mov eax, ebx
mov edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
or cx, cx
jne 0x100041a0
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2]
sub ebx, 0xfffffffe
cmp word [ebx], cx
jne 0x10004166
push edi
call fcn.10007b3e
mov eax, 1
sub esp, 0xfffffffc
jmp 0x100041d5
push edi
call fcn.10007b3e
sub esp, 0xfffffffc
xor eax, eax
mov edi, dword [ebp - 0xc]
mov dword fs:[0], edi
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
pop esi
pop edi
call fcn.10006e5b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100155f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
push esi
mov eax, dword [section..data]
xor eax, ebp
xor ebx, ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], ecx
mov eax, 0x2aaaaaab
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub edx, ecx
imul edx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x10004267
add ecx, 0x10
cmp esi, edi
jbe 0x100043af
inc ebx
inc edi
add ebx, dword [ecx]
sub ecx, 0xffffffe8
cmp esi, edi
ja 0x1000425c
inc ebx
mov edx, 2
mov eax, ebx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007b35
mov edi, eax
lea eax, [ebx + ebx]
push eax
push 0
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.1000e070
mov ebx, edi
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x2aaaaaab
sub esp, 0xfffffff0
imul ecx
xor esi, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000432a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
jmp 0x100042c0
cmp eax, esi
jbe 0x100043af
lea eax, [ecx + edi]
cmp dword [ecx + edi + 0x14], 8
jb 0x100042d4
mov eax, dword [eax]
mov edi, ebx
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edi], cx
lea edi, [edi + 2]
test cx, cx
jne 0x100042d6
mov ecx, ebx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
or ax, ax
jne 0x100042f0
sub ecx, edi
mov edi, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
sub dword [ebp - 0x10], 0xffffffe8
sar ecx, 1
inc esi
lea ebx, [ebx + ecx*2]
mov ecx, dword [ebp + 0x10]
sub ecx, edi
sub ebx, 0xfffffffe
imul ecx
sar edx, 2
mov eax, edx
mov ecx, dword [ebp - 0x10]
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x100042c0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
push edi
push 7
push 0
push str.UpperFilters
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
neg esi
sbb esi, esi
call fcn.10007b3e
add esp, 4
mov ebx, dword [ebp + 0xc]
or ebx, ebx
je 0x10004398
mov edi, dword [ebp + 0x10]
cmp ebx, edi
je 0x1000438f
cmp dword [ebx + 0x14], 8
jb 0x10004372
push dword [ebx]
call fcn.10006e6a
add esp, 4
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
xor eax, eax
mov word [ebx], ax
add ebx, 0x18
cmp ebx, edi
jne 0x10004362
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.10006e6a
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 1]
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.invalid_vector_T__subscript
call fcn.100140e6
int3
Function at 0x10004890
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff1e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.SYSTEMCurrentControlSet_serviceshphubfilterParameters
lea eax, [ebp - 0x804]
mov ebx, ecx
push str._sdevice
push eax
call fcn.100078d1
sub esp, 0xfffffff4
lea eax, [ebp - 0x804]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x100048eb
cmp eax, 2
je 0x100048eb
mov ecx, dword [ebp - 4]
pop ebx
xor eax, eax
xor ecx, ebp
call fcn.10006e5b
mov esp, ebp
pop ebp
ret
mov eax, 0x3e88cb3d
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 7
mov ecx, edx
push esi
xor esi, esi
mov dword [ebp - 0xe1c], esi
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xe20], ecx
test ecx, ecx
push edi
mov edi, 1
mov dword [ebp - 0xe18], edi
jle 0x100049c7
lea ebx, [ebx]
mov dword [ebp - 0xe14], esi
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, edi
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x100049da
mov esi, dword [ebp - 0xe14]
mov ecx, 0x83
add esi, edi
lea eax, [ebp - 0x804]
lea edi, [ebp - 0xe10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xe1c]
inc esi
push esi
push eax
mov dword [ebp - 0xe1c], esi
lea eax, [ebp - 0xc04]
push str._s_d
push eax
call fcn.100078d1
sub esp, 0xfffffff0
lea edx, [ebp - 0xe10]
lea ecx, [ebp - 0xc04]
call fcn.10004b30
neg eax
sbb eax, eax
add dword [ebp - 0xe14], 0x20c
and eax, dword [ebp - 0xe18]
mov edi, eax
mov dword [ebp - 0xe18], edi
cmp esi, dword [ebp - 0xe20]
jl 0x10004930
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10006e5b
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.100140e6
int3
Function at 0x100049f0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, esp
push 0xffffffffffffffff
push 0x1001567b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [section..data]
xor eax, esi
mov dword [esi - 0x10], eax
push ebp
mov ebp, ecx
push eax
lea eax, [esi - 0xc]
mov dword fs:[0], eax
push 0x800
push 0
lea eax, [esi - 0x810]
push eax
call fcn.1000e070
sub esp, 0xfffffff4
or ebp, ebp
jne 0x10004a7d
push str.SYSTEMCurrentControlSet_serviceshphubfilterParameters
lea eax, [esi - 0x810]
push str._sdevice
push eax
call fcn.100078d1
add esp, 0xc
lea eax, [esi - 0x810]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x10004a73
cmp eax, 2
je 0x10004a73
xor eax, eax
jmp 0x10004b0f
mov eax, 1
jmp 0x10004b0f
lea ecx, [esi - 0x81c]
mov dword [esi - 0x81c], 0
mov dword [esi - 0x818], 0
mov dword [esi - 0x814], 0
mov dword [esi - 4], 0
call fcn.100044b0
or eax, eax
je 0x10004af8
lea edx, [esi - 0x81c]
mov ecx, ebp
call fcn.100052e0
cmp eax, 0xffffffff
je 0x10004af1
lea ecx, [esi - 0x81c]
imul eax, eax, 0x20c
add eax, dword [esi - 0x81c]
push eax
lea eax, [esi - 0x820]
push eax
call fcn.100056d0
lea ecx, [esi - 0x81c]
call fcn.10004890
or eax, eax
je 0x10004af8
mov ebp, 1
jmp 0x10004afa
xor ebp, ebp
mov eax, dword [esi - 0x81c]
or eax, eax
je 0x10004b0d
push eax
call fcn.10006e6a
add esp, 4
mov eax, ebp
mov ebp, dword [esi - 0xc]
mov dword fs:[0], ebp
pop ecx
pop ebp
mov ecx, dword [esi - 0x10]
xor ecx, esi
call fcn.10006e5b
mov esp, esi
pop esi
ret

Function at 0x10004b30
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
lea eax, [ebx - 8]
add esp, 0xfffffff8
push esi
push edi
mov dword [ebx - 4], 0
mov esi, 1
push eax
mov edi, edx
lea eax, [ebx - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10004c37
mov eax, dword [edi + 0x208]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebx - 8], eax
lea eax, [ebx - 8]
push eax
push 4
push 0
push 0x1001be04
push dword [ebx - 4]
call ebp
xor ecx, ecx
test eax, eax
mov eax, edi
lea edx, [eax + 2]
cmovne esi, ecx
nop
mov cx, word [eax]
sub eax, 0xfffffffe
or cx, cx
jne 0x10004ba0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push 0x1001bdec
push dword [ebx - 4]
call ebp
xor ecx, ecx
or eax, eax
cmovne esi, ecx
movzx eax, word [edi + 0x204]
push 4
mov dword [ebx - 8], eax
lea eax, [ebx - 8]
push eax
push 4
push ecx
push str.ProductID
push dword [ebx - 4]
call ebp
xor ecx, ecx
test eax, eax
cmovne esi, ecx
movzx eax, word [edi + 0x202]
push 4
mov dword [ebx - 8], eax
lea eax, [ebx - 8]
push eax
push 4
push ecx
push str.VendorID
push dword [ebx - 4]
call ebp
xor ecx, ecx
test eax, eax
movzx eax, byte [edi + 0x200]
cmovne esi, ecx
push 4
mov dword [ebx - 8], eax
lea eax, [ebx - 8]
push eax
push 4
push ecx
push str.ClassID
push dword [ebx - 4]
call ebp
or eax, eax
pop ebp
je 0x10004c39
xor esi, esi
mov ecx, dword [ebx - 4]
or ecx, ecx
je 0x10004c47
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebx
pop ebx
ret
Function at 0x10005570
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 0x80c
mov eax, dword [section..data]
xor eax, ebx
mov dword [ebx - 4], eax
push esi
push ebp
mov ebp, edx
push 0x800
lea eax, [ebx - 0x804]
push 0
mov esi, ecx
push eax
call fcn.1000e070
lea eax, [esi + 1]
push eax
push str.SYSTEMCurrentControlSet_serviceshphubfilterParameters
lea eax, [ebx - 0x804]
push str._sdevice_d
push eax
call fcn.100078d1
mov dword [ebx - 0x808], 0
lea eax, [ebx - 0x80c]
sub esp, 0xffffffe4
push eax
lea eax, [ebx - 0x808]
push eax
lea eax, [ebx - 0x804]
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or eax, eax
je 0x100055fe
xor esi, esi
mov eax, dword [ebx - 0x808]
jmp 0x10005640
lea eax, [ebx - 0x80c]
push 4
mov dword [ebx - 0x80c], ebp
push eax
push 4
push 0
push 0x1001be04
push dword [ebx - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
inc esi
mov eax, dword [ebx - 0x808]
test eax, eax
je 0x1000564b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebx - 0x808], eax
or eax, eax
je 0x1000564b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx - 4]
mov eax, esi
xor ecx, ebx
pop ebp
pop esi
call fcn.10006e5b
mov esp, ebx
pop ebx
ret

Function at 0x10006d80
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, esp
lea eax, [esi - 4]
sub esp, 0xc
push ebp
xor ebp, ebp
mov dword [esi - 0xc], 4
push eax
push 0x20019
push ebp
push str.SystemCurrentControlSetControlStorageDevicePolicies
push 0x80000002
mov dword [esi - 8], ebp
mov dword [esi - 4], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006de4
lea eax, [esi - 0xc]
push eax
lea eax, [esi - 8]
push eax
push ebp
push ebp
push str.WriteProtect
push dword [esi - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006ddb
mov eax, 1
cmp dword [esi - 8], eax
cmove ebp, eax
push dword [esi - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
mov esp, esi
pop esi
ret

Function at 0x10006df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 4]
add esp, 0xfffffff8
push esi
mov dword [ebp - 8], ecx
xor esi, esi
push esi
mov dword [ebp - 4], esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SystemCurrentControlSetControlStorageDevicePolicies
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or eax, eax
jne 0x10006e54
lea eax, [ebp - 8]
push 4
push eax
push 4
push esi
push str.WriteProtect
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c234
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor eax, eax
or esi, esi
je 0x1000c2bc
push edi
mov edi, esi
cmp word [esi], ax
je 0x1000c25f
sub edi, 0xfffffffe
cmp word [edi], ax
jne 0x1000c24f
add edi, 2
cmp word [edi], ax
jne 0x1000c24f
sub edi, esi
sar edi, 1
inc edi
push ebp
push eax
push eax
push eax
push eax
push edi
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebx - 4], eax
or eax, eax
je 0x1000c2b1
push eax
call fcn.100093d7
mov ebp, eax
pop ecx
test ebp, ebp
je 0x1000c2b1
xor eax, eax
push eax
push eax
push dword [ebx - 4]
push ebp
push edi
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or eax, eax
jne 0x1000c2a6
push ebp
call fcn.10008a6d
pop ecx
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebp
jmp 0x1000c2ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
mov esp, ebx
pop ebx
ret
Function at 0x1000d97f
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, esp
add esp, 0xfffffe04
mov eax, dword [section..data]
xor eax, esi
mov dword [esi - 4], eax
push ebp
mov ebp, dword [esi + 8]
push edi
push ebp
call fcn.1000d95b
pop ecx
mov edi, eax
test edi, edi
je 0x1000db21
push ebx
push 3
call fcn.10011107
cmp eax, 1
pop ecx
je 0x1000dac9
push 3
call fcn.10011107
pop ecx
or eax, eax
jne 0x1000d9d3
cmp dword [0x1001fad0], 1
je 0x1000dac9
cmp ebp, 0xfc
je 0x1000db20
push str.Runtime_Error__n_nProgram:
push 0x314
push 0x1001fad8
call fcn.1000f0c0
sub esp, 0xfffffff4
xor ebx, ebx
test eax, eax
jne 0x1000db31
push 0x104
push 0x1001fb0a
push ebx
mov word [0x1001fd12], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, 0x2fb
test eax, eax
jne 0x1000da3b
push str._program_name_unknown_
push ebp
push 0x1001fb0a
call fcn.1000f0c0
add esp, 0xc
test eax, eax
jne 0x1000db31
push 0x1001fb0a
call fcn.1000f11c
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000da81
push 0x1001fb0a
call fcn.1000f11c
push 3
push 0x10017c9c
lea ecx, [eax*2 + 0x1001fa94]
mov eax, ecx
add eax, 0xeffe04f6
sar eax, 1
sub ebp, eax
push ebp
push ecx
call fcn.1000f154
add esp, 0x14
test eax, eax
jne 0x1000db31
push 0x10017ca4
push 0x314
mov ebp, 0x1001fad8
push ebp
call fcn.1000f054
sub esp, 0xfffffff4
test eax, eax
jne 0x1000db31
push edi
push 0x314
push ebp
call fcn.1000f054
sub esp, 0xfffffff4
test eax, eax
jne 0x1000db31
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10011147
add esp, 0xc
jmp 0x1000db20
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
or ebp, ebp
je 0x1000db20
cmp ebp, 0xffffffff
je 0x1000db20
xor ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [esi + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x1000daf9
inc ecx
cmp ecx, 0x1f4
jb 0x1000dae0
lea eax, [esi - 0x1f8]
lea edi, [esi - 0x1fc]
push ebx
mov byte [esi - 5], bl
push edi
push eax
call fcn.1000d5c0
pop ecx
push eax
lea eax, [esi - 0x1f8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop edi
pop ebp
mov ecx, dword [esi - 4]
xor ecx, esi
call fcn.10006e5b
mov esp, esi
pop esi
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100097d1
int3

Function at 0x1000dc50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edx], ax
je 0x1000dc64
xor eax, eax
pop ebp
ret
mov ecx, dword [edx + 0x3c]
add ecx, edx
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x1000dc7f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x404580
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x40459c
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4045c0
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0045c240
movzx eax, word [ebx*8 + 0x49ca6a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x49ca68]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x49ca6c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x49ca6e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x404623
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x40462e
cmp ebx, 8
jl 0x40462e
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x404695
cmp eax, 0xffffffff
je 0x404695
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x404670
mov ecx, esi
call fcn.00404864
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x404678
jmp 0x4046a5
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4049ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, ebx
push edi
mov dword [ebp - 4], ecx
mov edi, ebx
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
jmp 0x404bc3
cmp eax, 3
jb 0x404a2d
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x404a6a
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x404a6a
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x404a54
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.004046aa
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x404b4f
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00403f73
pop ecx
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x404b14
cmp ecx, 3
jb 0x404b14
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x404aac
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x404b4a
mov edx, dword [esi + 0x6af84]
add edx, edi
mov edi, ebx
mov dword [esi + 0x6af84], edx
movzx ecx, byte [esi + edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 8]
jmp 0x404b74
movzx eax, byte [esi + ecx + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.00403f73
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
pop ecx
test eax, eax
je 0x404ba6
mov eax, dword [esi + 0x6af74]
xor ecx, ecx
sub edx, eax
push ebx
push edx
lea edx, [esi + 0x1af70]
add edx, eax
test eax, eax
cmovs edx, ecx
mov ecx, esi
call fcn.00403d7e
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x404bc0
mov ecx, esi
call fcn.00404864
mov eax, dword [esi + 0x6af90]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x4049d6
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x404bdd
lea ebx, [esi + 0x1af70]
add ebx, ecx
mov eax, dword [esi + 0x6af84]
mov edx, ebx
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00403d7e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405831
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40583c
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4058f8
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
sub edi, 1
jne 0x405851
pop edi
test esi, esi
je 0x405914
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49c668]
inc edx
sub esi, 1
jne 0x4058fc
not ecx
mov eax, ecx
pop esi
pop ebp
ret