joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45df70
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x47ac60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x30], 0
call fcn.00401510
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push str.Static_
push str.Cache_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.00407a30
mov ebx, dword [esp + 0x14]
push ecx
lea edi, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov ebp, esp
push edi
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.0045ddb0
fst qword [esp + 0x1c]
fldz
fcompp
fnstsw ax
test ah, 5
jp 0x45e040
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.0045ddb0
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jp 0x45e040
mov eax, dword [esp + 0x34]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0x2c], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e05e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x45e830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47ad70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add ecx, eax
push ecx
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.00403450
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
mov dword [esp + 0x28], ebx
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
push 0x48abdc
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
mov dword [esp + 0x24], ebx
call fcn.0045e0a0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.00403020
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e8e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
jmp 0x45e8f0
push 0x483ec8
push edi
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
setne al
test al, al
je 0x45e9cd
mov eax, ebx
sub eax, 1
je 0x45e9bf
cmp ebx, 1
je 0x45e9cd
lea ecx, [esp + 0x18]
push ecx
push 0x48abdc
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
call fcn.0045e0a0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [esp + 0x28], 3
cmp eax, esi
je 0x45e994
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45e982
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45e982
push eax
call fcn.00401590
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45e979
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x34], edi
jmp 0x45e994
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402b30
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e9b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
jmp 0x45e8f0
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e9ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ea16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x462e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x20], eax
push 0x48b07c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x462e7c
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00472076
add esp, 0x24
ret
push esi
push 0x48b060
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x462e9f
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00472076
add esp, 0x24
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push esi
mov dword [esp + 0x20], 0
call ebx
lea edx, [esp + 0x14]
push edx
mov edi, eax
push 5
mov ecx, 0x462e40
lea eax, [esp + 0x24]
sub ecx, esi
push eax
sub ecx, 5
push esi
mov byte [esp + 0x2c], 0xe9
mov dword [esp + 0x2d], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
test edi, edi
je 0x462f00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
push 5
push esi
call ebx
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00472076
add esp, 0x24
ret

Function at 0x462f20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x462f3f
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x462f5f
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
test ebp, ebp
jbe 0x462fa0
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
mov esi, dword [eax - 4]
cmp ecx, edx
ja 0x462f8e
mov ecx, edx
cmp edi, esi
jb 0x462f98
add ecx, esi
cmp edi, ecx
jbe 0x462faa
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x462f80
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
pop ebp
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x463d62
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49f490], 0
push esi
jne 0x463cd5
call fcn.00463bfb
test eax, eax
je 0x463d18
mov eax, dword [0x49f490]
cmp eax, 1
jne 0x463cf6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x463d18
pop esi
ret
push eax
call dword [0x49f498]
test eax, eax
jne 0x463d60
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x463d1c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49f490]
call dword [0x49f498]
mov edi, eax
test edi, edi
je 0x463d41
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x463d5d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x49f490]
call dword [0x49f494]
add edi, 0x10
cmp edi, esi
jb 0x463d49
mov eax, edi
pop edi
pop esi
ret
jmp 0x463cc2

Function at 0x46622e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x100]
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46628e
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
inc byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xb]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
xor ecx, ecx
mov cl, byte [esi]
add ecx, edx
and ecx, 0xff
mov cl, byte [ecx + eax]
xor byte [edi], cl
inc edi
dec dword [ebp + 0xc]
jne 0x466259
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 1]
mov byte [eax + 0x101], cl
leave
ret
Function at 0x46638b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x4a01a8], 0
mov eax, dword [0x49eef8]
mov dword [ebp - 4], eax
jne 0x466479
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x46646e
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x49eed4], eax
je 0x46643c
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46646d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call esi
test eax, eax
mov dword [0x4a0194], eax
je 0x466420
mov dword [0x49eed0], 0x4000
push str.NtOpenFile
push edi
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4a0198], eax
call esi
mov dword [0x4a019c], eax
jmp 0x46646d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46646d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCursorPos
push edi
call esi
push str.GetMessageTime
push edi
mov dword [0x4a018c], eax
call esi
mov dword [0x4a0190], eax
pop esi
mov dword [0x4a01a8], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x49eed4]
call fcn.00472076
leave
ret
Function at 0x467053
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x4670a0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, edx
sub ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], esi
mov esi, dword [edi + edx]
mov ecx, dword [edx]
lea ebx, [ecx + esi]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + edx], eax
mov ebx, ecx
xor ebx, esi
and ebx, eax
or ecx, esi
xor ebx, ecx
shr ebx, 0x1f
add edx, 4
dec dword [ebp + 0x14]
mov eax, ebx
jne 0x467077
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x46727f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
xor eax, eax
test edx, edx
je 0x4672cc
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub ebx, esi
sub ecx, esi
push edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov edi, dword [ebx + esi]
mov edx, dword [esi]
mov ecx, edi
sub ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi], ecx
xor ecx, edi
xor edx, edi
or ecx, edx
xor ecx, edi
shr ecx, 0x1f
add esi, 4
dec dword [ebp + 0x14]
mov eax, ecx
jne 0x4672a3
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x46c6d6
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
push esi
xor esi, esi
push edi
inc ecx
movzx edi, byte [ecx + 1]
xor edx, edx
mov dh, byte [ecx - 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, edi
movzx edi, byte [ecx - 2]
shl edx, 8
or edx, edi
mov dword [ebp + esi*4 - 0x170], edx
inc esi
cmp esi, 0x10
jb 0x46c6e6
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x30]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x168]
pop esi
mov ecx, dword [edx + 0x2c]
xor ecx, dword [edx + 0x18]
xor ecx, dword [edx - 8]
xor ecx, dword [edx]
add edx, 4
mov edi, ecx
shr edi, 0x1f
add ecx, ecx
or edi, ecx
dec esi
mov dword [edx + 0x34], edi
jne 0x46c722
mov ecx, dword [eax]
mov edi, dword [eax + 8]
and dword [ebp - 4], 0
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 4]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
mov ebx, ecx
shl ecx, 5
shr ebx, 0x1b
or ebx, ecx
mov ecx, dword [ebp - 8]
cmp ecx, 0x3c
mov dword [ebp - 0x1c], ebx
jge 0x46c791
cmp ecx, 0x28
jl 0x46c78c
mov ecx, esi
or ecx, edi
and ecx, edx
mov ebx, esi
jmp 0x46c7a5
cmp ecx, 0x14
jl 0x46c799
mov ecx, edx
xor ecx, esi
xor ecx, edi
jmp 0x46c7ad
test ecx, ecx
jl 0x46c7ab
mov ecx, edx
not ecx
and ecx, esi
mov ebx, edx
and ebx, edi
or ecx, ebx
jmp 0x46c7ad
xor ecx, ecx
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
add edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
add edi, ecx
mov ecx, dword [ebp - 4]
add ebx, edi
cmp cx, 0x3c
jl 0x46c7cc
mov ecx, 0xca62c1d6
jmp 0x46c7f4
cmp cx, 0x28
jl 0x46c7d9
mov ecx, 0x8f1bbcdc
jmp 0x46c7f4
cmp cx, 0x14
jl 0x46c7e6
mov ecx, 0x6ed9eba1
jmp 0x46c7f4
test cx, cx
jl 0x46c7f2
mov ecx, 0x5a827999
jmp 0x46c7f4
xor ecx, ecx
add dword [ebp - 0xc], 4
mov edi, edx
shr edx, 2
shl edi, 0x1e
or edi, edx
mov edx, dword [ebp - 0x18]
add ecx, ebx
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp word [ebp - 4], 0x50
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
jl 0x46c768
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 4], edx
lea ecx, [ebp - 0x30]
mov esi, ecx
mov edx, eax
push 5
sub edx, esi
pop esi
mov dword [eax + 8], edi
pop ebx
mov edi, dword [edx + ecx]
add dword [ecx], edi
add ecx, 4
dec esi
jne 0x46c842
push 5
pop ecx
lea esi, [ebp - 0x30]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x46cbf0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.0046cb79
test eax, eax
je 0x46cc31
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push str.Seed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8
Function at 0x46ce30
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x46cf6b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x46cf40
test eax, eax
jne 0x46cf40
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x46ce80
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x46cf6b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x46cf40
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x46d3a0
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x472076
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49eef8]
jne 0x472080
repz ret
jmp fcn.00472700

Function at 0x472b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x48dcf0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x472c16
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.DMAPI
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x472c16
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x4a0548], eax
cmp dword [0x4a0548], ebx
jne 0x472c35
push 0x48dd20
call esi
cmp eax, ebx
mov dword [0x4a0548], eax
jne 0x472c35
mov eax, 0x80100100
jmp 0x472c37
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x472c3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x48dd2c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x472ca9
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x48dd54
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x472ca9
cmp dword [ebp - 8], 4
jne 0x472ca9
mov eax, dword [ebp - 0xc]
jmp 0x472cab
xor eax, eax
pop esi
leave
ret
Function at 0x473217
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x4a0558]
push esi
xor esi, esi
cmp dword [0x4a0548], esi
push edi
jne 0x47330f
call fcn.00472b80
cmp eax, esi
jne 0x473311
push str.DMAPI_Initialize
push dword [0x4a0548]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x473317
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x4a054c], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x473284
push dword [0x4a0548]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a0548], esi
mov eax, edi
jmp 0x473311
cmp dword [0x4a0554], esi
je 0x4732db
mov eax, dword [0x4a0550]
cmp eax, esi
je 0x4732cf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4a0550], esi
je 0x4732cf
push 0x3e8
push dword [0x4a0554]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4a0554]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x4a0550]
cmp eax, esi
je 0x4732cf
push eax
call edi
mov dword [0x4a0554], esi
mov dword [0x4a0550], esi
call fcn.00472c3b
test al, 1
jne 0x47330f
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4a0550], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x472d9a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a0554], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x473311

Function at 0x47331e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x48e008
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x4733b4
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.FSAPI
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop edi
jne 0x4733b4
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x4a055c], eax
cmp dword [0x4a055c], ebx
jne 0x4733d3
push str.ConnAPI.dll
call esi
cmp eax, ebx
mov dword [0x4a055c], eax
jne 0x4733d3
mov eax, 0x80100100
jmp 0x4733d5
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4733d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push str.SOFTWAREPC_Connectivity_SolutionAPI_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x473447
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.Options
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
pop ebx
jne 0x473447
cmp dword [ebp - 8], 4
jne 0x473447
mov eax, dword [ebp - 0xc]
jmp 0x473449
xor eax, eax
pop esi
leave
ret

Function at 0x473d74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x4a056c]
push esi
xor esi, esi
cmp dword [0x4a055c], esi
push edi
jne 0x473e6c
call fcn.0047331e
cmp eax, esi
jne 0x473e6e
push str.FSAPI_Initialize
push dword [0x4a055c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x473e74
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x4a0560], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x473de1
push dword [0x4a055c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a055c], esi
mov eax, edi
jmp 0x473e6e
cmp dword [0x4a0568], esi
je 0x473e38
mov eax, dword [0x4a0564]
cmp eax, esi
je 0x473e2c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4a0564], esi
je 0x473e2c
push 0x3e8
push dword [0x4a0568]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4a0568]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x4a0564]
cmp eax, esi
je 0x473e2c
push eax
call edi
mov dword [0x4a0568], esi
mov dword [0x4a0564], esi
call fcn.004733d9
test al, 1
jne 0x473e6c
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4a0564], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x473538
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a0568], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x473e6e