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

Disassembly:
mov eax, 0x130
call fcn.00458630
mov eax, dword [0x492220]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x158]
push edi
mov edi, dword [esp + 0x154]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], 1
call fcn.0040b040
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jge 0x41fa62
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004581fd
add esp, 0x130
ret
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.00405ed0
mov ebp, esi
mov esi, dword [esp + 0x160]
add esp, 4
mov eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x41fa8c
mov dword [esp + 0x148], ebx
jmp 0x41fab2
cmp dword [esp + 0x148], 0xffffffff
jne 0x41fab2
mov eax, ebx
lea edx, [eax + 1]
jmp 0x41faa0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41faa0
sub eax, edx
mov dword [esp + 0x148], eax
mov eax, esi
test esi, esi
jne 0x41fae5
lea ecx, [esp + 0x2c]
push ecx
call fcn.00405f70
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004581fd
add esp, 0x130
ret
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
cmp eax, esi
jg 0x41faef
mov esi, eax
mov eax, dword [esp + 0x18]
mov edx, eax
shr edx, 0x18
push 0
mov byte [esp + 0x18], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x14c]
push edi
shr ecx, 0x10
push eax
mov byte [esp + 0x21], cl
lea ecx, [esp + 0x38]
shr edx, 8
push ebx
push ecx
mov byte [esp + 0x2a], dl
call fcn.00405c10
add esp, 0x14
test eax, eax
je 0x41fc1b
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00405e10
add esp, 0xc
test eax, eax
je 0x41fc1b
push 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00405e10
add esp, 0xc
test eax, eax
je 0x41fc1b
push 0
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00405e20
add esp, 0xc
test eax, eax
je 0x41fc1b
push esi
lea eax, [esp + 0x100]
push eax
push ebp
call fcn.004587e0
mov eax, dword [esp + 0x160]
add esp, 0xc
cmp eax, 1
jle 0x41fbfe
dec eax
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x100]
push ecx
push edx
mov eax, ecx
mov ecx, dword [esp + 0x154]
push eax
push ecx
push ebx
push edi
call fcn.00405fe0
add esp, 0x1c
test esi, esi
jle 0x41fbf7
lea ecx, [esp + 0xfc]
mov eax, ebp
sub ecx, ebp
mov edi, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub edi, 1
jne 0x41fbe8
mov edi, dword [esp + 0x24]
sub dword [esp + 0x1c], 1
jne 0x41fbb3
mov eax, dword [esp + 0x10]
inc dword [esp + 0x18]
sub eax, esi
add ebp, esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41fae1
jmp 0x41fab6
lea eax, [esp + 0x2c]
push eax
call fcn.00405f70
add esp, 4
xor eax, eax
jmp 0x41fac8
Function at 0x4208b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x4208c2
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call fcn.00429f80
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], esi
test ebx, ebx
je 0x420972
mov eax, dword [edi + 0x10c]
push ebp
cmp eax, esi
jne 0x420910
test esi, esi
jle 0x420951
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x420900
jmp 0x420951
mov ecx, esi
sub ecx, eax
cmp ecx, 1
mov byte [eax + edi + 0xec], 0x80
jle 0x420935
dec ecx
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call fcn.00458210
add esp, 0xc
test esi, esi
jle 0x420951
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x420943
push esi
push ebx
push ebx
push edi
call fcn.0040aff0
add esp, 0x10
pop ebp
test eax, eax
jne 0x420972
push esi
push ebx
call fcn.00409d90
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x4255b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x42567c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4255d1
cmp al, 0x6b
jne 0x42567c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x42563d
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x4255f1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x4255f1
cmp al, 0xbb
jne 0x42561a
inc ecx
cmp ecx, esi
jl 0x4255e1
sub esi, ecx
test ecx, ecx
jne 0x425640
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0040db50
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0040db50
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x425669
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.0040db50
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.004587e0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.0040db50
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x42d9e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00458630
mov eax, dword [0x492220]
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 0x42da43
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.0040db50
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004581fd
add esp, 0x20
ret
cmp ebx, 0x29
jge 0x42da70
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.0040db50
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004581fd
add esp, 0x20
ret
push ebp
push esi
push 0
mov byte [eax], 0
lea esi, [eax + 1]
lea ebp, [eax + 0x15]
call fcn.00425820
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ebp
push edx
push eax
call fcn.0040a8e0
add esp, 0x18
test eax, eax
je 0x42db09
mov ecx, ebx
sub ecx, edi
sub ecx, 0x29
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
call fcn.00458210
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.004587e0
push 0x14
push esi
call fcn.00413330
add esp, 0x20
test eax, eax
jle 0x42db09
push 0x49
add ebx, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebx
call fcn.0040b490
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x42db1e
push 0x4c
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.0040db50
add esp, 0x14
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004581fd
add esp, 0x20
ret
push 0x14
push esi
push ebx
push edi
call fcn.0042d9b0
add esp, 0x10
test eax, eax
jl 0x42db09
test ebx, ebx
jle 0x42db4b
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 0x42db40
call fcn.00425820
push eax
push ebx
push ebp
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.0042d830
add esp, 0x14
test eax, eax
jl 0x42db09
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 0x42db90
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b630
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.004581fd
add esp, 0x20
ret
Function at 0x44cf50
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 0x44cf69
mov esi, edi
mov edi, eax
jmp 0x44cf6b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x44cf7b
mov eax, ebx
jmp 0x44cf85
push eax
push ebx
call fcn.00410aa0
add esp, 8
test eax, eax
jne 0x44cf8d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x44cfa9
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 0x44cf94
cmp eax, dword [esi + 4]
jge 0x44cfc0
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 0x44cfb0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x44cfe1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x44cfde
dec eax
test eax, eax
jg 0x44cfd0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x451370
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 0x451453
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4513ee
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 0x451440
shl edx, 0x10
cmp edi, 2
jne 0x4513ff
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 0x45142d
lea edx, [edi + 0x3c]
jmp 0x45143a
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 0x451390
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x456010
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x492220]
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 0x456064
xor eax, eax
jmp 0x456213
cmp dword [ebp - 0x2c], 2
je 0x456080
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x456213
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 0x456206
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 0x4561fc
cmp dword [ebp - 0x20], 8
jne 0x4561fc
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x14]
push ecx
call fcn.004571d0
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.004571d0
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.004571d0
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.004571d0
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.004571d0
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.004571d0
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.004571d0
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.004571d0
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.004581fd
mov esp, ebp
pop ebp
ret
Function at 0x4566f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x492220]
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 0x456735
or eax, 0xffffffff
jmp 0x45686c
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 0x456754
or eax, 0xffffffff
jmp 0x45686c
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 0x456786
or eax, 0xffffffff
jmp 0x45686c
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 0x46a7ec
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 0x456826
mov dword [ebp - 0x208], 0
jmp 0x456859
cmp dword [ebp - 0x208], 0
jne 0x45684c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004566f0
add esp, 0xc
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x456786
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.004581fd
mov esp, ebp
pop ebp
ret
Function at 0x456880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x492220]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0xffffffff
push 0x46a81c
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 0x4568f4
or eax, 0xffffffff
jmp 0x456a21
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 0x4569f3
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46a84c
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 0x46a746
lea ecx, [ebp - 0x30c]
push ecx
push 0x80000002
call fcn.00457230
add esp, 0x1c
test eax, eax
jne 0x4569c6
mov dword [ebp - 0x310], 0xffffffff
jmp 0x456a0e
mov edx, dword [ebp - 0x324]
cmp edx, dword [ebp + 8]
jne 0x4569f1
push 0x100
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 0x456a01
cmp dword [ebp - 0x318], 0x103
je 0x456a01
jmp 0x456a0e
cmp dword [ebp - 0x318], 0
je 0x4568f4
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.004581fd
mov esp, ebp
pop ebp
ret
Function at 0x456ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x492220]
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.00457110
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
push 0x46a8b8
call fcn.00457070
add esp, 8
test eax, eax
jne 0x456f67
or eax, 0xffffffff
jmp 0x457057
lea edx, [ebp - 0x11c]
push edx
call fcn.00456a30
add esp, 4
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x456fbe
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00456bd0
add esp, 8
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x456fbe
lea edx, [ebp - 0x11c]
push edx
call fcn.00457110
add esp, 4
mov eax, dword [ebp - 0x1a0]
jmp 0x457057
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x456fd2
mov dword [ebp - 0x1a0], 0xfffffffc
jmp 0x457042
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 0x46a8e0
lea ecx, [ebp - 0x19c]
push ecx
push 0x80000002
call fcn.00457230
add esp, 0x1c
test eax, eax
je 0x45702c
mov dword [ebp - 0x1a4], 0
jmp 0x457036
mov dword [ebp - 0x1a4], 0xffffffff
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a0], edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00457110
add esp, 4
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret
Function at 0x457230
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 0x4572fb
cmp dword [ebp - 0xc], 2
jne 0x4572fb
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 0x4572ad
cmp dword [ebp - 4], 0
jne 0x4572ad
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 0x4572d8
cmp dword [ebp - 4], 0
jne 0x4572cc
mov dword [ebp - 0x14], 1
jmp 0x4572d3
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x4572fd
cmp dword [ebp - 4], 0
jne 0x4572ef
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x1c]
jne 0x4572ef
mov dword [ebp - 0x18], 1
jmp 0x4572f6
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
jmp 0x4572fd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x457310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00458630
mov eax, dword [0x492220]
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 0x45734a
xor eax, eax
jmp 0x4573f9
cmp dword [ebp + 0xc], 0
jne 0x457368
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp - 0x1008]
push edx
call fcn.00457410
add esp, 8
jmp 0x457384
cmp dword [ebp + 0xc], 1
jne 0x457384
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1008]
push ecx
call fcn.004575e0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x45739b
lea edx, [ebp - 0x1004]
push edx
call fcn.00457ff9
add esp, 4
jmp 0x4573c6
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 0x45734a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret