joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47aca0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
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.004034f0
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
mov dword [esp + 0x28], ebx
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
push 0x48aa5c
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
mov dword [esp + 0x24], ebx
call fcn.0045df90
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.004030c0
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 0x45e7d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
jmp 0x45e7e0
push 0x483cb0
push edi
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
setne al
test al, al
je 0x45e8bd
mov eax, ebx
sub eax, 1
je 0x45e8af
cmp ebx, 1
je 0x45e8bd
lea ecx, [esp + 0x18]
push ecx
push 0x48aa5c
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
call fcn.0045df90
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [esp + 0x28], 3
cmp eax, esi
je 0x45e884
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45e872
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45e872
push eax
call fcn.004015a0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45e869
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 0x45e884
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402bd0
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 0x45e8a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
jmp 0x45e7e0
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 0x45e8de
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 0x45e906
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 0x462d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x20], eax
push 0x48af0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x462d6c
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00471f66
add esp, 0x24
ret
push esi
push 0x48aef0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x462d8f
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00471f66
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, 0x462d30
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 0x462df0
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.00471f66
add esp, 0x24
ret

Function at 0x462e10
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 0x462e2f
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 0x462e4f
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 0x462e90
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 0x462e7e
mov ecx, edx
cmp edi, esi
jb 0x462e88
add ecx, esi
cmp edi, ecx
jbe 0x462e9a
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x462e70
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 0x463c52
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49f500], 0
push esi
jne 0x463bc5
call fcn.00463aeb
test eax, eax
je 0x463c08
mov eax, dword [0x49f500]
cmp eax, 1
jne 0x463be6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x463c08
pop esi
ret
push eax
call dword [0x49f508]
test eax, eax
jne 0x463c50
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 0x463c0c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49f500]
call dword [0x49f508]
mov edi, eax
test edi, edi
je 0x463c31
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x463c4d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x49f500]
call dword [0x49f504]
add edi, 0x10
cmp edi, esi
jb 0x463c39
mov eax, edi
pop edi
pop esi
ret
jmp 0x463bb2

Function at 0x46611e
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 0x46617e
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 0x466149
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 0x46627b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x4a0218], 0
mov eax, dword [0x49ef38]
mov dword [ebp - 4], eax
jne 0x466369
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 0x46635e
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x49ef14], eax
je 0x46632c
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46635d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call esi
test eax, eax
mov dword [0x4a0204], eax
je 0x466310
mov dword [0x49ef10], 0x4000
push str.NtOpenFile
push edi
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4a0208], eax
call esi
mov dword [0x4a020c], eax
jmp 0x46635d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46635d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCursorPos
push edi
call esi
push str.GetMessageTime
push edi
mov dword [0x4a01fc], eax
call esi
mov dword [0x4a0200], eax
pop esi
mov dword [0x4a0218], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x49ef14]
call fcn.00471f66
leave
ret
Function at 0x466f43
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 0x466f90
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 0x466f67
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x46716f
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 0x4671bc
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 0x467193
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x46c5c6
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 0x46c5d6
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 0x46c612
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 0x46c681
cmp ecx, 0x28
jl 0x46c67c
mov ecx, esi
or ecx, edi
and ecx, edx
mov ebx, esi
jmp 0x46c695
cmp ecx, 0x14
jl 0x46c689
mov ecx, edx
xor ecx, esi
xor ecx, edi
jmp 0x46c69d
test ecx, ecx
jl 0x46c69b
mov ecx, edx
not ecx
and ecx, esi
mov ebx, edx
and ebx, edi
or ecx, ebx
jmp 0x46c69d
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 0x46c6bc
mov ecx, 0xca62c1d6
jmp 0x46c6e4
cmp cx, 0x28
jl 0x46c6c9
mov ecx, 0x8f1bbcdc
jmp 0x46c6e4
cmp cx, 0x14
jl 0x46c6d6
mov ecx, 0x6ed9eba1
jmp 0x46c6e4
test cx, cx
jl 0x46c6e2
mov ecx, 0x5a827999
jmp 0x46c6e4
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 0x46c658
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 0x46c732
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 0x46cae0
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.0046ca69
test eax, eax
je 0x46cb21
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 0x46cd20
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 0x46ce5b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x46ce30
test eax, eax
jne 0x46ce30
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 0x46cd70
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x46ce5b
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 0x46ce30
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 0x46d290
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 0x471f66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49ef38]
jne 0x471f70
repz ret
jmp fcn.004725e0

Function at 0x472a60
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 0x48db80
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 0x472af6
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 0x472af6
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x4a05b8], eax
cmp dword [0x4a05b8], ebx
jne 0x472b15
push 0x48dbb0
call esi
cmp eax, ebx
mov dword [0x4a05b8], eax
jne 0x472b15
mov eax, 0x80100100
jmp 0x472b17
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x472b1b
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 0x48dbbc
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 0x472b89
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x48dbe4
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 0x472b89
cmp dword [ebp - 8], 4
jne 0x472b89
mov eax, dword [ebp - 0xc]
jmp 0x472b8b
xor eax, eax
pop esi
leave
ret
Function at 0x4730f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x4a05c8]
push esi
xor esi, esi
cmp dword [0x4a05b8], esi
push edi
jne 0x4731ef
call fcn.00472a60
cmp eax, esi
jne 0x4731f1
push str.DMAPI_Initialize
push dword [0x4a05b8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4731f7
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x4a05bc], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x473164
push dword [0x4a05b8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a05b8], esi
mov eax, edi
jmp 0x4731f1
cmp dword [0x4a05c4], esi
je 0x4731bb
mov eax, dword [0x4a05c0]
cmp eax, esi
je 0x4731af
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4a05c0], esi
je 0x4731af
push 0x3e8
push dword [0x4a05c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4a05c4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x4a05c0]
cmp eax, esi
je 0x4731af
push eax
call edi
mov dword [0x4a05c4], esi
mov dword [0x4a05c0], esi
call fcn.00472b1b
test al, 1
jne 0x4731ef
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4a05c0], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x472c7a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a05c4], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x4731f1

Function at 0x4731fe
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 0x48de98
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 0x473294
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 0x473294
lea eax, [ebp - 0x110]
push eax
call esi
mov dword [0x4a05cc], eax
cmp dword [0x4a05cc], ebx
jne 0x4732b3
push str.ConnAPI.dll
call esi
cmp eax, ebx
mov dword [0x4a05cc], eax
jne 0x4732b3
mov eax, 0x80100100
jmp 0x4732b5
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4732b9
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 0x473327
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 0x473327
cmp dword [ebp - 8], 4
jne 0x473327
mov eax, dword [ebp - 0xc]
jmp 0x473329
xor eax, eax
pop esi
leave
ret

Function at 0x473c54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x4a05dc]
push esi
xor esi, esi
cmp dword [0x4a05cc], esi
push edi
jne 0x473d4c
call fcn.004731fe
cmp eax, esi
jne 0x473d4e
push str.FSAPI_Initialize
push dword [0x4a05cc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x473d54
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [0x4a05d0], ecx
push ecx
call eax
mov edi, eax
cmp edi, esi
jge 0x473cc1
push dword [0x4a05cc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a05cc], esi
mov eax, edi
jmp 0x473d4e
cmp dword [0x4a05d8], esi
je 0x473d18
mov eax, dword [0x4a05d4]
cmp eax, esi
je 0x473d0c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4a05d4], esi
je 0x473d0c
push 0x3e8
push dword [0x4a05d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4a05d8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x4a05d4]
cmp eax, esi
je 0x473d0c
push eax
call edi
mov dword [0x4a05d8], esi
mov dword [0x4a05d4], esi
call fcn.004732b9
test al, 1
jne 0x473d4c
push esi
push esi
push 1
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4a05d4], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x473418
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a05d8], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80100101
jmp 0x473d4e