joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d9c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407840]
call fcn.00405518
xor eax, eax
push ebp
push 0x462f3d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46e794], 0
jne 0x462df7
mov ecx, dword [0x46e900]
mov dl, 1
mov eax, dword [0x407e24]
call fcn.0040c8e4
call fcn.004044f0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004035b0
mov eax, ebx
call fcn.004053e8
mov dword [ebp - 0x24], eax
mov esi, 0x462f4c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004064c0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004053f8
test eax, eax
jle 0x462ee0
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x462ecc
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404d18
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x462e72
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404d30
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x462e88
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404d30
mov eax, dword [ebp - 0x54]
call fcn.00404f38
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404d18
mov eax, dword [ebp - 0x58]
call fcn.00404f38
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x462ece
xor eax, eax
test al, al
je 0x462ed9
mov ebx, 0x15
jmp 0x462ee5
mov ebx, 0x10
jmp 0x462ee5
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x46e794]
call fcn.00462c1c
mov eax, dword [ebp - 4]
call fcn.00462c1c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004064d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f44
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404acc
lea eax, [ebp - 0xc]
mov edx, dword [0x407840]
call fcn.004055e8
ret
Function at 0x46abdc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x46ac5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.004035b0
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x46ac78
mov edx, ebx
call fcn.00404dc0
mov eax, dword [ebp - 0x24]
call fcn.00404f38
mov dword [ebp - 0x16], eax
mov eax, 0x46ac7c
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ac66
lea eax, [ebp - 0x24]
call fcn.00404aa8
ret

Function at 0x46aed8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
xor eax, eax
push ebp
push 0x46afe3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0xff
call fcn.004051c8
xor eax, eax
push ebp
push 0x46afa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x9a
lea eax, [ebp - 8]
push eax
and ebx, 0x7f
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
je 0x46af36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46afcd
cmp dword [ebp - 8], 0
jne 0x46af49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46afcd
lea eax, [ebp - 4]
call fcn.00404f98
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x46af69
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46afcd
mov edx, dword [ebp - 4]
mov eax, 0x46affc
call fcn.00405084
mov ebx, eax
dec ebx
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
je 0x46af91
inc ebx
lea eax, [ebp - 4]
call fcn.00404f98
mov byte [eax + ebx - 1], 0x5c
mov esi, ebx
lea eax, [ebp - 4]
call fcn.00404f98
mov byte [eax + ebx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46afba
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404afc
mov eax, edi
mov edx, esi
call fcn.004051c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46afea
lea eax, [ebp - 4]
call fcn.00404aa8
ret
Function at 0x5001960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5007858
mov eax, dword fs:[0]
push eax
mov eax, dword [0x500c01c]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.ARACrypt.0
mov dword [eax + 0xc], 0x13579bdf
mov dword [eax + 0x10], 0x2468ace0
mov dword [eax + 0x14], 0xfdb97531
mov dword [eax + 0x18], 0x80000062
mov dword [eax + 0x1c], 0x40000020
mov dword [eax + 0x20], 0x10000002
mov dword [eax + 0x24], 0x7fffffff
mov dword [eax + 0x28], 0x3fffffff
mov dword [eax + 0x2c], 0xfffffff
mov dword [eax + 0x30], 0x80000000
mov dword [eax + 0x34], 0xc0000000
mov dword [eax + 0x38], 0xf0000000
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.ARACryptBinary.0
mov dword [eax + 4], 1
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x5001aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5007858
mov eax, dword fs:[0]
push eax
mov eax, dword [0x500c01c]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.ARACrypt.0
mov dword [eax + 0xc], 0x13579bdf
mov dword [eax + 0x10], 0x2468ace0
mov dword [eax + 0x14], 0xfdb97531
mov dword [eax + 0x18], 0x80000062
mov dword [eax + 0x1c], 0x40000020
mov dword [eax + 0x20], 0x10000002
mov dword [eax + 0x24], 0x7fffffff
mov dword [eax + 0x28], 0x3fffffff
mov dword [eax + 0x2c], 0xfffffff
mov dword [eax + 0x30], 0x80000000
mov dword [eax + 0x34], 0xc0000000
mov dword [eax + 0x38], 0xf0000000
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xc], ecx
mov dword [eax], vtable.ARACryptString.0
mov dword [eax + 4], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x5005020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5007a32
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x500c01c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.05005160
xor ebx, ebx
mov dword [esp + 0x38], ebx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push str.mx3.config.initvalue.board
mov dword [esp + 0x14], vtable.ult::variable_length_array_dst_class_std::vector_unsigned_char__class_std::allocator_unsigned_char___.0
mov dword [esp + 0x18], ecx
call dword [sym.imp.MxMsg.dll_MxGetGlobalBoard]
mov esi, dword [esp + 0x2c]
add esp, 8
sub esi, dword [esp + 0x20]
jne 0x500509a
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
jmp 0x5005140
cmp esi, ebx
ja 0x50050a4
call dword [0x50080fc]
mov ecx, dword [esp + 0x20]
push esi
push ecx
call dword [sym.imp.MxXDR.dll_MxXDRCreateIStream]
mov esi, eax
mov dword [esp + 0x14], esi
add esp, 8
mov dword [esp + 0x10], ebx
mov byte [esp + 0x38], 1
cmp esi, ebx
je 0x5005122
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
test al, al
je 0x5005122
mov ecx, 0x5005e10
test ecx, ecx
je 0x5005122
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x10]
call fcn.05005da0
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x50050fc
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.050051d0
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x38], bl
cmp esi, ebx
je 0x5005133
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
call fcn.050051d0
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.1000c446
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000c446
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.1000c446
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.1000c446
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.1000c446
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.1000c446
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.1000c446
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.1000c446
push 0xd008
push edi
call fcn.1000c446
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.1000c446
int3
Function at 0x1000c870
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x1000c892
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000c897
mov ebx, 0xfff80000
jmp 0x1000c89d
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x10013e68]
mov eax, dword [0x10013e60]
test edx, edx
jne 0x1000c8b8
test eax, eax
je 0x1000c8cb
mov edx, eax
mov dword [0x10013e68], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c8cb
cmp ecx, edi
jb 0x1000c8cb
cmp ecx, ebx
jbe 0x1000c9ab
mov edx, eax
test eax, eax
jmp 0x1000c8ed
test edx, edx
je 0x1000c8e8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c8e8
cmp eax, edi
jb 0x1000c8e8
cmp eax, ebx
jbe 0x1000c9ab
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10013e68], edx
jne 0x1000c8d1
and esi, 0xffff0000
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c9d0
lea edx, [esi - 0x40000000]
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c93e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jae 0x1000c953
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, esi
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, ebx
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
je 0x1000c9ee
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10013e60]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10013e68], edx
mov dword [0x10013e60], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000c99b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x1000c9ee
cmp esi, ebx
ja 0x1000c9ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000ec20
add esp, 0xc
mov eax, esi
jmp 0x1000c9f0
jae 0x1000c920
lea ecx, [esi + 0x40000000]
mov edx, ebx
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
jmp 0x1000c940
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000c871
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x1000c892
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000c897
mov ebx, 0xfff80000
jmp 0x1000c89d
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x10013e68]
mov eax, dword [0x10013e60]
test edx, edx
jne 0x1000c8b8
test eax, eax
je 0x1000c8cb
mov edx, eax
mov dword [0x10013e68], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c8cb
cmp ecx, edi
jb 0x1000c8cb
cmp ecx, ebx
jbe 0x1000c9ab
mov edx, eax
test eax, eax
jmp 0x1000c8ed
test edx, edx
je 0x1000c8e8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c8e8
cmp eax, edi
jb 0x1000c8e8
cmp eax, ebx
jbe 0x1000c9ab
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10013e68], edx
jne 0x1000c8d1
and esi, 0xffff0000
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c9d0
lea edx, [esi - 0x40000000]
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jbe 0x1000c93e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov eax, 0x40000000
cmp esi, eax
jae 0x1000c953
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, esi
mov ecx, edi
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
mov edx, ebx
mov ecx, esi
call fcn.1000c446
mov edx, eax
test edx, edx
je 0x1000c9ee
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10013e60]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10013e68], edx
mov dword [0x10013e60], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000c99b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x1000c9ee
cmp esi, ebx
ja 0x1000c9ee
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000ec20
add esp, 0xc
mov eax, esi
jmp 0x1000c9f0
jae 0x1000c920
lea ecx, [esi + 0x40000000]
mov edx, ebx
call fcn.1000c446
mov edx, eax
test edx, edx
jne 0x1000c971
jmp 0x1000c940
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x1000ca7b
Capabilities:
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [0x10013e58]
xor ebx, ebx
test edi, edi
je 0x1000cab8
push esi
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000caa9
mov esi, dword [edi]
push edi
call fcn.1000dd99
mov edi, esi
pop ecx
test esi, esi
jne 0x1000ca8a
jmp 0x1000cab7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov dword [0x10013e70], ebx
pop esi
mov dword [0x10013e58], edi
mov eax, ebx
pop edi
pop ebx
ret
Function at 0x40435c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a098]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404427
push ebx
push edi
push 4
pop edi
push edi
mov dword [ebp - 0x10], edi
call fcn.00433072
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, str.WarnOnZoneCrossing
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x4043e4
cmp dword [ebp - 0x14], edi
jne 0x4043fd
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.004329f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4043fd
xor eax, eax
inc eax
push edi
mov dword [0x45a098], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push 0
push esi
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x404413
push edi
lea eax, [ebp + 8]
push eax
push edi
push 0
push esi
push dword [ebp - 4]
call ebx
push dword [ebp - 0xc]
call fcn.00432126
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x404b6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x20]
sub eax, edi
push eax
lea eax, [esi + edi]
push eax
call fcn.00404a17
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x404bad
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
xor al, byte [ebp + 0x1c]
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x404b91
pop edi
pop esi
pop ebp
ret
Function at 0x40ff4a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40ff55
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x411403
Capabilities:
Set current directory
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xd38
mov eax, dword [0x45752c]
push ebx
push esi
push edi
mov dword [ebp + 0x64], eax
call fcn.0042b9da
call fcn.00404bb1
test al, al
jne 0x411442
xor ebx, ebx
push ebx
push str.Fatal_Error
push str.Files_are_altered_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
jmp 0x41204a
push 0x446aea
push 0x459b28
call fcn.00432210
pop ecx
pop ecx
mov esi, 0x104
push esi
mov edi, 0x459f28
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.00433ae0
cmp eax, ebx
pop ecx
pop ecx
jne 0x411483
push ebx
push str.Fatal_Error
push str.Invalid_access_rights_
jmp 0x411434
mov dword [eax + eax - 0x15], eax
mov cl, 0x57
push edi
mov byte [eax + 1], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x411498
cld
mov eax, dword [0x5e1bfc62]
xchg ebx, eax
aam 0x9b
cmp bl, dl
mov edi, 0x91a0d686
pop ds
out dx, eax
nop
sub al, 0xd3
wait
pop ecx
push eax
and dl, byte [esi - 0x54361d99]
int 0x98
xor bh, byte [0x876594b]
sub bl, dl
mov byte [0x657f125f], al
mov edx, 0xc6544960
inc ebx
mov dl, 0xf5
mov dl, 0x33
mov ch, 0x26
jecxz 0x41147e
jge 0x411472
xor eax, ebp
jbe 0x411558
xor byte [ebx], dl
cmp ecx, dword [edx]
and dword [edi], edx
mov es, word [ecx - 0x15a009b5]
add esi, dword [ebx + 0x31]
xchg byte [esi], bl
xchg byte [0xef57bb0b], cl
adc cl, byte [ecx - 0x353b7553]
iretd
sti
mov ebp, dword [ecx + 0x26]
out 0xe0, al
push ecx
fdiv dword [ecx + 0x44244fe5]
invalid
call fcn.004347e9
int3
Function at 0x414e0f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45752c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x100]
mov dword [ebp - 0x60], 0x800
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414f01
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x414ef8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00433072
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.dgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414ef0
cmp dword [ebp - 0x58], 1
jne 0x414ef0
push dword [esi + 0xf8]
call fcn.00432126
and dword [esi + 0xf8], 0
push edi
call fcn.00432170
inc eax
push eax
call fcn.00433072
push edi
push eax
mov dword [esi + 0xf8], eax
call fcn.00432210
add esp, 0x14
push edi
call fcn.0043306d
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xf8]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.0043215c
add ebp, 0x7b8
leave
ret
Function at 0x414f1b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45752c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x100]
mov dword [ebp - 0x60], 0x800
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41500d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x415004
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00433072
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.cdgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414ffc
cmp dword [ebp - 0x58], 1
jne 0x414ffc
push dword [esi + 0xfc]
call fcn.00432126
and dword [esi + 0xfc], 0
push edi
call fcn.00432170
inc eax
push eax
call fcn.00433072
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.00432210
add esp, 0x14
push edi
call fcn.0043306d
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xfc]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.0043215c
add ebp, 0x7b8
leave
ret