joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48df16
Capabilities:
Create directory

Disassembly:
mov eax, 0x4adfa9
call fcn.004ace8c
sub esp, 0x20
push ebx
push esi
push 0x51f34c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_300]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push ecx
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call 0x48dee5
pop ecx
test al, al
je 0x48df55
mov bl, 1
jmp 0x48e049
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_5861]
dec eax
lea ecx, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_5059]
cmp al, 0x5c
je 0x48df78
push 0x5c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_2472]
lea ecx, [ebp - 0x2c]
call 0x490266
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
xor bl, bl
xor esi, esi
call dword [sym.imp.mfc140.dll_Ordinal_5861]
test eax, eax
jle 0x48dfe1
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_5059]
cmp al, 0x5c
je 0x48dfbc
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_5059]
movzx eax, al
push eax
jmp 0x48dfca
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0049025c
push 0x5c
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_2472]
lea ecx, [ebp - 0x10]
inc esi
call dword [sym.imp.mfc140.dll_Ordinal_5861]
cmp esi, eax
jl 0x48df9e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call 0x490249
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x48e01f
push 0
lea ecx, [ebp - 0x14]
call fcn.0049022c
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x14]
setne bl
call fcn.00490218
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call 0x490235
push eax
lea ecx, [ebp - 0x14]
call fcn.0049020a
test al, al
jne 0x48dff4
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x2c]
call fcn.00490261
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x48e4d8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ae088
call fcn.004ace8c
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.msi.dll_MsiRecordGetInteger]
push edi
push str.196BB40D_1578_3D01_B289_BEFC77A11A1E
mov edi, ecx
call esi
push 5
pop ebx
cmp eax, ebx
je 0x48e61e
push str.DA5E371C_6333_3D8A_93A4_6FD5B20BCC6E
call esi
cmp eax, ebx
je 0x48e61e
push str.F0C3E5D1_1ADE_321E_8167_68EF0DE699A5
call esi
cmp eax, ebx
je 0x48e61e
push str.1D8E6291_B0D5_35EC_8441_6616F567A0F7
call esi
cmp eax, ebx
je 0x48e61e
push str._vcredist_x86.exe
mov edx, 0x4fb2cc
lea ecx, [ebp - 0x10]
call fcn.0048455f
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48e611
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
push 0x51f374
mov edx, 0x51f378
call fcn.0048423c
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push str._download_updates_vcredist_x86.exe
mov edx, 0x51f22c
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0048455f
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Upgrading_library
mov ebx, eax
call dword [sym.imp.mfc140.dll_Ordinal_310]
push edi
push esi
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Please_wait.
call dword [sym.imp.mfc140.dll_Ordinal_310]
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Upgrading_Microsoft_runtime_library_for_the_first_running..
call dword [sym.imp.mfc140.dll_Ordinal_310]
push ecx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
push ebx
mov ecx, 0x51e1b0
mov byte [ebp - 4], 2
call fcn.004958c3
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
xor eax, eax
jmp 0x48e621
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x48ffbd
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ae3bc
call fcn.004ace8c
sub esp, 0x338
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4900dc
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_503]
and dword [ebp - 4], 0
lea eax, [ebp - 0x344]
push esi
push str._s.
push eax
call fcn.0048bc73
add esp, 0xc
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4705]
test eax, eax
je 0x4900b9
mov ebx, str._s_s
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_4725]
lea ecx, [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_8140]
test eax, eax
jne 0x4900b0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_5562]
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x22c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x490057
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x2c]
call fcn.0048d62f
test eax, eax
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
je 0x49009b
call fcn.0048bc73
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.0048ffbd
jmp 0x4900b0
call fcn.0048bc73
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x490022
pop edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_2881]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
test eax, eax
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_1142]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x48ffcd
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov eax, 0x4ae3bc
call fcn.004ace8c
sub esp, 0x338
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4900dc
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_503]
and dword [ebp - 4], 0
lea eax, [ebp - 0x344]
push esi
push str._s.
push eax
call fcn.0048bc73
add esp, 0xc
lea eax, [ebp - 0x344]
lea ecx, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4705]
test eax, eax
je 0x4900b9
mov ebx, str._s_s
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_4725]
lea ecx, [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_8140]
test eax, eax
jne 0x4900b0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_5562]
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x22c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x490057
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x2c]
call fcn.0048d62f
test eax, eax
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
je 0x49009b
call fcn.0048bc73
add esp, 0x10
lea ecx, [ebp - 0x12c]
call fcn.0048ffbd
jmp 0x4900b0
call fcn.0048bc73
add esp, 0x10
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x490022
pop edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140.dll_Ordinal_2881]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
test eax, eax
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_1142]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x49373d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4ae853
call fcn.004ace8c
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push ecx
xor esi, esi
lea eax, [ebp + 0xc]
inc esi
mov ecx, esp
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.mfc140.dll_Ordinal_300]
mov ecx, ebx
call 0x493316
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x49377a
cmp eax, 2
jne 0x49379d
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebx], eax
test eax, eax
je 0x4937af
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
jmp 0x493842
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.mfc140.dll_Ordinal_265]
pop ecx
lea ecx, [ebp + 0xc]
mov edi, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
call dword [sym.imp.mfc140.dll_Ordinal_316]
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push edi
call dword [sym.imp.mfc140.dll_Ordinal_266]
mov esi, dword [ebx]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
test esi, esi
jne 0x493832
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

Function at 0x493ca1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 4]
xor edi, edi
push ecx
push 0x20006
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x493d08
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
cmp dword [ebx + 8], edi
jne 0x493cfb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 1]
pop esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x493eb4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp - 4]
xor edi, edi
push ecx
push 0x20006
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x493f1b
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
cmp dword [ebx + 8], edi
jne 0x493f0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 1]
pop esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x4997af
Capabilities:
Create process on windows
Create process suspended
Move file
Terminate process

Disassembly:
mov eax, 0x4aef6c
call fcn.004ace8c
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], esi
xor ebx, ebx
lea ecx, [ebp + 0xc]
inc ebx
or dword [ebp - 0x38], ebx
mov word [ebp - 0x34], bx
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0x4fb2cc
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea ecx, [ebp + 0xc]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_5096]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x499843
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, 0x499843
ret
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x49cb35
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49cb74
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49cb74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49cb74
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49cb74
cmp dword [ecx + 0x74], 0xe
jbe 0x49cb74
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49f920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af3c4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e9040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x49fa15
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call sub.mfc140.dll_Ordinal_8031
mov edi, eax
test edi, edi
js 0x49fa18
mov ecx, ebx
call fcn.0049f250
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x49f9ca
push 0x49dbe0
push 0x49da50
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.0049be5c
jmp 0x49f9cc
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49fa15
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call sub.mfc140.dll_Ordinal_13574
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10009520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007c130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1006f1b7
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000ab50
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10009574
jmp dword [ecx*4 + 0x100096dc]
mov al, byte [esi]
test al, al
je 0x100095a2
cmp al, 0x20
je 0x1000958e
cmp al, 0xa1
jne 0x100095a2
cmp byte [esi + 1], al
jne 0x100095a2
test al, 0x80
je 0x1000959a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100095a2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10009581
test ecx, ecx
je case.default.0x10009574
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10009574
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100095e8
cmp dl, 0xa1
jne 0x100095dc
cmp byte [eax + 1], 0xa1
jne 0x100095dc
test ecx, ecx
jne 0x100095d4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100095fc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10009616
jmp 0x100095fc
cmp dl, 0x20
jne 0x100095fa
test ecx, ecx
jne 0x100095f3
mov edi, eax
mov ecx, 1
jmp 0x100095fc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100095bc
cmp ecx, 1
jne case.default.0x10009574
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009574
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009574
mov al, byte [esi]
test al, al
je 0x1000966e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10009654
mov cl, byte [esi + 1]
test cl, cl
je 0x1000966e
cmp al, 0xa1
jne 0x10009644
cmp cl, al
je 0x10009651
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000ae20
inc esi
jmp 0x10009666
cmp al, 0x20
je 0x10009666
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000ae60
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000962d
push 0
lea ecx, [esp + 0x14]
call fcn.1000ae60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10017d00
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100096a1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10084458
call fcn.1000ad50
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1006f149
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10012580
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007c92b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1006eebe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10012602
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1006c8ad
mov eax, dword [eax]
push 0x10098220
push eax
call fcn.1005ec04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006f149
test bl, bl
je 0x10012602
push 0x10098220
lea ecx, [esp + 0xc]
call fcn.1006f525
push 0x1009bd9c
lea ecx, [esp + 0xc]
call fcn.1006f525
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1001263e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006f149
jmp 0x10012709
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100126c2
lea edx, [esp + 0x7c]
push 0x1009bd98
push edx
call fcn.1005ec04
add esp, 8
test eax, eax
je 0x100126c2
lea eax, [esp + 0x7c]
push 0x1009bd94
push eax
call fcn.1005ec04
add esp, 8
test eax, eax
je 0x100126c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10012652
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1006f149
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10012f00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10012f62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10012f70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007c9ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100a2f18]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x100130a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10012fd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006f149
xor eax, eax
jmp 0x1001311f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1006f2d2
push esi
lea ecx, [esp + 0xc]
call fcn.1006f561
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x100130fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.10012f00
test eax, eax
jne 0x100130fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.10012f00
test eax, eax
jne 0x100130fd
lea eax, [esp + 0x14]
push 0x1009bdb0
push eax
call fcn.1005fce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100130dc
lea ecx, [esp + 0x14]
push 0x1009bdac
push ecx
call fcn.1005fc60
mov esi, eax
add esp, 8
test esi, esi
jne 0x100130dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100130df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1006f282
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10012fee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006f149
xor eax, eax
jmp 0x1001311f
mov byte [esi], 0
push 0x1009bda8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.1006f149
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4