joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x403203
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xe01ce855
sub dword [ebp - 0x48], 0x91caa30a
mov dword [ebp - 0x44], 0x5d439dc4
add dword [ebp - 0x44], 0xd4efae81
mov dword [ebp - 0x40], 0x5a80616f
sub dword [ebp - 0x40], 0xe341d41
mov dword [ebp - 0x3c], 0x1897ee25
add dword [ebp - 0x3c], 0xe76811db
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x69202d
sub dword [ebp - 0x48], 0x8bf6b6d7
mov dword [ebp - 0x44], 0x996d6f36
add dword [ebp - 0x44], 0xa7fef23f
mov dword [ebp - 0x40], 0xe2c7d0b1
sub dword [ebp - 0x40], 0x7f586445
mov dword [ebp - 0x3c], 0x331e72fa
sub dword [ebp - 0x3c], 0x331e72fa
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37755
push 0
call eax
mov ecx, 0x60279ddd
sub ecx, 0x60275268
mov ebx, eax
mov edi, 0x411000
add edi, dword [ebp - 0x38]
mov edx, 0x6c50129b
mov esi, dword [edi]
xor esi, edx
mov dword [ebx], esi
xor dword [ebp - 0x34], 0xe0be218d
add ebx, 4
add edi, 4
loop 0x40330a
add eax, 0x199e5935
add eax, 0xe662c772
xor ebx, ebx
add ebx, eax
add eax, 0x121f0eec
add eax, 0xede0f119
mov ecx, 0x49c38a7a
sub ecx, 0x49838a7a
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40b841
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412da8
cmp edx, dword [eax]
je 0x40b863
add eax, 8
inc ecx
cmp eax, 0x412e38
jl 0x40b854
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412da8]
jne 0x40b991
mov eax, dword [0x4133f0]
cmp eax, 1
je 0x40b96b
test eax, eax
jne 0x40b894
cmp dword [0x412948], 1
je 0x40b96b
cmp edx, 0xfc
je 0x40b991
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40b8cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a510
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406930
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b90e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406930
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4105e8
push edi
call section..text
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a510
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a520
lea eax, [ebp - 0xa0]
push 0x4105c8
push eax
call fcn.0040a520
push dword [esi + 0x412dac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a520
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d314
add esp, 0x2c
pop edi
jmp 0x40b991
lea eax, [ebp + 8]
lea esi, [esi + 0x412dac]
push 0
push eax
push dword [esi]
call fcn.00406930
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xdec0fc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdec106
pushal
call 0xdec10c
pop ebp
sub ebp, 0x10
sub ebp, 0x9ec0fc
jmp 0xdec122
mov eax, 0x9ec0fc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x2a19deb7
xor byte [eax], dl
inc eax
dec ecx
jne 0xdec139
jmp 0xdec14c
cmp al, 0x7a
cmp al, 0x3e
mov esi, dword [edi + 0x7636b7b7]
jp 0xdec18b
mov esi, dword ds:[edi + 0x7636b7b7]
dec edi
mov bh, 0xb7
mov bh, 0xb4
jp 0xdec16c
mov ah, 0x7a
btr dword [edi - 0x60f24849], esi
mov bl, 0xb7
mov bh, 0xb7
or eax, 0xb7b7b79f
inc eax
mov bh, 0xd
lahf
mov bh, 0xb7
mov bh, 0x40
push ebp
mov ah, 0x7f
cmp al, 0x36
mov ebx, 0xb4b7b7b7
jb 0xdec15a
out 0xdf, eax
jnp 0xdec14d
xchg esi, eax
mov bh, 0xdf
cdq
call 0x9c95794a
xchg ebx, eax
fist word [eax - 0x45]
daa
hlt
pop esi
cdq
mov bh, 0xb7
mov bh, 0xe2
cmp al, 0x5b
cmp al, 0x32
mov edi, 0x3cb7b7b7
and bh, byte [ebx + 0x3cb7b7b7]
cmp ah, byte [edi + 0x76b7b7b7]
pop esi
mov ch, 0x86
mov ch, 0x34
jne 0xdec160
invalid
Function at 0x10006da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10006daf
pop dword [ebp - 0x2c]
mov eax, 0x7a6879f6
add eax, 0x9597f3b9
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x17dc65fc
add dword [ebp - 0x3c], 0x3675df4f
mov dword [ebp - 0x38], 0xa36cdbb7
add dword [ebp - 0x38], 0x8ec6708e
mov dword [ebp - 0x34], 0x9f62f659
sub dword [ebp - 0x34], 0x5316b22b
mov dword [ebp - 0x30], 0x61472614
add dword [ebp - 0x30], 0x9eb8d9ec
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xe546a5ab
add eax, 0x2aba9aa5
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb4844767
sub dword [ebp - 0x3c], 0x4011de11
mov dword [ebp - 0x38], 0x1fa5d3d8
add dword [ebp - 0x38], 0x21c68d9d
mov dword [ebp - 0x34], 0xa13f396e
add dword [ebp - 0x34], 0xc23032fe
mov dword [ebp - 0x30], 0x6f7d98f4
add dword [ebp - 0x30], 0x9082670c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3be3d
push 0
call eax
mov ecx, 0xf9375ffe
add ecx, 0x6c8efa5
xor edx, edx
add edx, eax
mov edi, 0x1001e200
add edi, dword [ebp - 0x2c]
mov esi, 0xda4633af
sub esi, 0xf626adb4
xor dword [ebp - 0x20], eax
mov ebx, dword [edi]
add dword [ebp - 4], 0x4fd62856
xor ebx, esi
xor dword [ebp - 0xc], eax
mov dword [edx], ebx
add dword [ebp - 0x28], 0x8992d374
add edx, 0x2e78162e
add edx, 0xd187e9d6
add edi, 0xf8e832a1
add edi, 0x717cd63
loop 0x10006ec8
add eax, 0x1315f
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10009e5f
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, dword [esp + 0x13c]
je 0x10009fd9
and dword [esp + 0x10], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x10009eaa
sub ecx, edx
push 1
sar ecx, 1
lea eax, [ecx + 1]
xor edx, edx
push edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x24], eax
add eax, eax
push eax
push edx
push 0x78
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
call fcn.1002090c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10009f88
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
push eax
push dword [esp + 0x28]
push esi
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x138]
test esi, esi
je 0x10009fd3
cmp esi, 2
jbe 0x10009f22
cmp esi, 7
jne 0x10009fd3
test ebx, ebx
jne 0x10009f41
xor eax, eax
push eax
push edi
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10009f8b
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov eax, ebx
shr eax, 1
push eax
push edi
push ecx
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 1
xor ecx, ecx
push ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb4]
push eax
push ebx
push ecx
push 0x78
lea ecx, [esp + 0x34]
call fcn.1002090c
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x10009f98
lea ecx, [esp + 0x1c]
call fcn.100089b8
push 0xe
pop esi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, esi
jmp 0x10009ff1
xor eax, eax
push eax
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x28]
push edi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
push ebx
push esi
push dword [esp + 0x140]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.100089b8
jmp 0x10009f8b
push ebx
jmp 0x10009f29
push ebx
push edi
push dword [esp + 0x140]
push dword [esp + 0x140]
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x118
ret 0x18
Function at 0x1000a463
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x94]
je 0x1000a4ff
push ebx
mov ecx, esi
push ebp
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a499
push 1
sub ecx, edx
push ebx
sar ecx, 1
lea eax, [esp + 0x24]
push eax
lea ebp, [ecx*2 + 2]
push ebp
push ebx
push 0x78
lea ecx, [esp + 0x28]
call fcn.1002090c
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1000a4e1
xor eax, eax
push eax
push eax
push ebp
push ebx
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000a4e6
push 0xe
pop esi
jmp 0x1000a4f0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.100089b8
pop ebp
mov eax, esi
pop ebx
jmp 0x1000a507
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 8

Function at 0x1000a520
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x88
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x10043820], 0
push ebx
mov ebx, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xa4]
je 0x1000a5b5
push ebp
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + edi]
push eax
push 0
push 0x78
lea ecx, [esp + 0x28]
call fcn.1002090c
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1000a5a2
lea eax, [edi + edi]
push eax
push ebp
push dword [esp + 0xa8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x1000a5a7
push edi
push ebx
push 0xffffffffffffffff
push ebp
push eax
push eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000a5a7
mov esi, 0x8007000e
lea ecx, [esp + 0x10]
call fcn.100089b8
mov eax, esi
pop ebp
jmp 0x1000a5c5
push edi
push ebx
push dword [esp + 0xa4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x88
ret 0x10
Function at 0x1000b115
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2a
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x1000b26b
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b26a
push 0x1003a274
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.msvcr100.dll_strcat_s]
add esp, 0xc
test eax, eax
jne 0x1000b26a
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [0x10043820], eax
je 0x1000b1d1
push 0x8000
call edi
push str.USER32.DLL
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043da4], eax
call edi
mov eax, dword [0x10043da4]
test eax, eax
je 0x1000b1d1
push str.SendIMEMessageExA
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10043d58], eax
test eax, eax
jne 0x1000b1d1
push dword [0x10043da4]
call ebx
and dword [0x10043da4], 0
push 0x8000
call edi
mov esi, eax
push str.IMM32.DLL
lea eax, [ebp - 0x10c]
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call fcn.1002090c
test eax, eax
je 0x1000b268
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push esi
mov dword [0x10043d5c], eax
call edi
mov ecx, dword [0x10043d5c]
test ecx, ecx
je 0x1000b268
xor esi, esi
cmp dword [0x1003a068], esi
je 0x1000b268
xor eax, eax
mov edi, 0x1003a068
push dword [eax + 0x1003a06c]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [edi]
mov dword [ecx], eax
test eax, eax
je 0x1000b259
inc esi
mov eax, esi
shl eax, 3
lea edi, [eax + 0x1003a068]
cmp dword [edi], 0
je 0x1000b268
mov ecx, dword [0x10043d5c]
jmp 0x1000b22b
push dword [0x10043d5c]
call ebx
and dword [0x10043d5c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret
Function at 0x10016940
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.msvcr100.dll__read]
add esp, 0xc
ret 0xc

Function at 0x10017236
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 2
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1002090c
push 2
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.1002090c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcr100.dll_rename]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x100172bb
call dword [sym.imp.msvcr100.dll__errno]
mov eax, dword [eax]
dec eax
dec eax
je 0x100172b2
sub eax, 0xb
je 0x100172ae
sub eax, 4
je 0x100172aa
dec eax
je 0x100172a6
push 5
jmp 0x100172b4
push 0x4a
jmp 0x100172b4
push 0x3a
jmp 0x100172b4
push 0x4b
jmp 0x100172b4
push 0x35
pop eax
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029dae
leave
ret 8
Function at 0x10017979
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100436e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x35
pop edi
test esi, esi
je 0x100179b4
cmp word [esi], 0
je 0x100179b4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100179a3
sub ecx, edx
cmp ecx, 0x104
jbe 0x100179ba
push edi
call fcn.1000c0de
push 1
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.1002090c
mov esi, dword [ebp + 0xc]
mov eax, esi
or eax, 0x27
cmp eax, 0x27
je 0x100179dd
push 5
call fcn.1000c0de
test esi, esi
jne 0x100179e6
mov esi, 0x80
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x10017a29
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 5
je 0x10017a19
call esi
cmp eax, edi
je 0x10017a19
call esi
cmp eax, 0x57
je 0x10017a19
call esi
cmp eax, 0x13
jne 0x10017a1c
push 0x4b
pop edi
movzx eax, di
test eax, eax
je 0x10017a29
push eax
call fcn.1000c0de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10029dae
leave
ret 8
Function at 0x1001d8c4
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcr100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
cmp ax, 9
jbe 0x1001d8ff
push 5
call fcn.1000c0de
mov eax, dword [esp + 0x68]
push ebx
push ebp
test eax, eax
je 0x1001d91e
cmp word [eax], 8
jne 0x1001d91e
cmp dword [eax + 8], esi
jne 0x1001d91e
push esi
push esi
call dword [sym.imp.oleaut32.dll_SysReAllocStringLen]
jmp 0x1001d924
push eax
call fcn.1002090c
mov ebx, eax
test ebx, ebx
jne 0x1001d931
push 5
call fcn.1000c0de
cmp dword [0x10043820], esi
je 0x1001d9af
test ebx, ebx
jne 0x1001d941
mov eax, esi
jmp 0x1001d946
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push esi
push esi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1001d967
push ebp
call fcn.10008870
mov edi, eax
test edi, edi
jne 0x1001d971
push 0xe
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1001d9c9
test ebx, ebx
jne 0x1001d979
mov eax, esi
jmp 0x1001d97e
mov eax, dword [ebx - 4]
shr eax, 1
push esi
push esi
push ebp
push edi
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.100088c0
jmp 0x1001d9c9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.oleaut32.dll_SysStringLen]
pop ebp
pop ebx
test esi, esi
jne 0x1001da0d
dec edi
dec edi
je 0x1001d9f1
dec edi
je 0x1001d9f8
sub edi, 5
je 0x1001d9ff
sub edi, 6
je 0x1001d9ff
jmp 0x1001da06
push 0x35
call fcn.1000c0de
push 0x4c
call fcn.1000c0de
push 7
call fcn.1000c0de
push 5
call fcn.1000c0de
push 0x2710
push dword [esp + 0x14]
call dword [sym.imp.user32.dll_WaitForInputIdle]
push dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
fild dword [esp + 0x18]
pop edi
pop esi
fstp qword [esp]
fld qword [esp]
add esp, 0x5c
ret 8
Function at 0x1002090c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1002091b
pop dword [ebp - 0x40]
mov eax, 0x16f12767
add eax, 0xf910e1b4
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xd72e9d72
sub dword [ebp - 0x50], 0x88dc5827
mov dword [ebp - 0x4c], 0xa6e18f8d
sub dword [ebp - 0x4c], 0x74ae4348
mov dword [ebp - 0x48], 0xc7cbbcf5
sub dword [ebp - 0x48], 0x7b7f78c7
mov dword [ebp - 0x44], 0x1afc7ced
sub dword [ebp - 0x44], 0x1afc7ced
lea eax, [ebp - 0x50]
push eax
mov eax, 0xdb4b0aa0
sub eax, 0xcb477938
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x9c52bd72
sub dword [ebp - 0x50], 0x27e0541c
mov dword [ebp - 0x4c], 0xae25ad3f
add dword [ebp - 0x4c], 0x9346b436
mov dword [ebp - 0x48], 0x5b8dfada
sub dword [ebp - 0x48], 0xf81e8e6e
mov dword [ebp - 0x44], 0x18490614
sub dword [ebp - 0x44], 0x18490614
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x1e3e9ef4
sub eax, 0xe3b0e94
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2a6
push 0
call eax
mov ecx, 0xb1ac2210
sub ecx, 0xb1abd6b4
xor edx, edx
add edx, eax
mov esi, 0x10053800
add esi, dword [ebp - 0x40]
mov ebx, 0x96a13e62
sub ebx, 0xf20f36e6
mov edi, dword [esi]
sub dword [ebp - 0x2c], 0xf7e56adc
xor edi, ebx
add dword [ebp - 0x14], ebx
mov dword [edx], edi
mov dword [ebp - 0x30], 0x9008e6a2
add edx, 0x5ac8bf81
sub edx, 0x5ac8bf7d
add esi, 0xacfcf4ff
add esi, 0x53030b05
loop 0x10020a39
add eax, 0x3dc3aff0
add eax, 0xc23d7053
mov ebx, eax
add eax, 0x7bc3202c
sub eax, 0x7bc32027
mov ecx, 0xc4f8611c
sub ecx, 0xb4f8611c
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10023608
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1b4]
lea ecx, [esp + 4]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.1002090c
test eax, eax
je 0x10023647
push 5
pop eax
jmp 0x1002373e
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push eax
push eax
push eax
xor edi, edi
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
push 1
push edi
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push 0x78
lea ecx, [esp + 0x40]
call fcn.1002090c
mov ebx, dword [esp + 0x2c]
test esi, esi
jne 0x10023718
test ebx, ebx
jne 0x100236c4
push 7
jmp 0x1002371a
push ebx
push dword [esp + 0x14]
call fcn.1000a463
test eax, eax
jne 0x10023718
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
inc eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [esp + 0x2c]
call fcn.1000a5df
test eax, eax
je 0x100236b6
cmp eax, 0x103
jne 0x10023718
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023708
lea ecx, [esp + 0x28]
call fcn.100089b8
push 5
pop eax
jmp 0x1002373b
push dword [esp + 0x24]
push ebp
call fcn.1002090c
test eax, eax
je 0x10023730
jmp 0x1002372d
push 5
pop edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023730
test edi, edi
jne 0x10023730
push 5
pop edi
lea ecx, [esp + 0x28]
call fcn.100089b8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
pop ebp
xor ecx, esp
call fcn.10029dae
add esp, 0x1ac
ret 8

Function at 0x10029dae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100436e0]
jne 0x10029db8
repz ret
jmp fcn.1002a2cf