joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a64bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a64c2
ret
Function at 0x41e8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5a6e9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e92b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e944
lea eax, [ebp - 0x10]
mov edx, dword [0x5bd23c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e957
lea eax, [ebp - 0x10]
mov edx, dword [0x5bd23c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e963
adc edx, 0
mov edx, dword [edx*4 + 0x5bc0d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea71
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea64
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea64
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea64
cmp dx, 0x150
ja 0x41ea64
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea64
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea89
inc ebx
cmp ebx, 0x19
jne 0x41e91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6ea6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x41edc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00406d94
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00406d3c
test eax, eax
je 0x41ee61
cmp word [esi], 0x5a4d
jne 0x41ee61
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00406d94
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00406d3c
test eax, eax
je 0x41ee61
cmp dword [ebp - 0x1c], 0x4550
jne 0x41ee61
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00406e78
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41ee61
cmp ax, 0x150
ja 0x41ee61
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00406d3c
test eax, eax
je 0x41ee61
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005e5f
Capabilities:
Persist via run registry key
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push edi
test ax, ax
je 0x1005f18
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
cmp ax, 0x2d
je 0x1005e96
cmp ax, 0x2f
je 0x1005e96
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1005e80
cmp word [esi], 0
je 0x1005f18
inc esi
push 0x10014b0
inc esi
push esi
call edi
test eax, eax
je 0x1005f21
push 0x1001494
push esi
call edi
test eax, eax
je 0x1005f4f
push 0x1001484
push esi
call edi
test eax, eax
je 0x1005f62
push 0x1001458
push esi
call edi
test eax, eax
je 0x1005f80
push 0x1001444
push esi
call edi
test eax, eax
je 0x1005fce
movzx eax, word [esi]
sub eax, 0x62
je 0x1005f06
sub eax, 0x10
je 0x1005f00
dec eax
jne 0x1005f0a
or dword [ebp - 4], 4
jmp 0x1005f0a
or dword [ebp - 4], 1
jmp 0x1005f0a
or dword [ebp - 4], 2
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1005e80
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f47
push 0
push fcn.01009561
push 0
push 3
push 0x10013e0
push 0x80000002
call fcn.01008c35
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f47
call fcn.01005e2b
jmp 0x1005f47
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f47
push 0
push fcn.01009561
push 0
push 8
push 0x1001380
jmp 0x1005f3d
call fcn.01008b4d
test eax, eax
jne 0x1005f93
call fcn.01008a40
call fcn.010075bb
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x43
call esi
test eax, eax
jne 0x1005fa6
call fcn.010075a1
call fcn.01008b4d
test eax, eax
jne 0x1005fc4
push 0x43
call esi
test eax, eax
jne 0x1005fc4
push eax
call fcn.01007df6
push 0
call fcn.0100767d
call fcn.0100769a
jmp 0x1005f47
call fcn.01008a40
call fcn.010075bb
jmp 0x1005f47

Function at 0x10061b2
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10061eb
push 0x1001500
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x10061f2
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, word [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push eax
mov ebx, 0x186
push ebx
push dword [ebp + 8]
call esi
movzx eax, word [ebp + 0xc]
push edi
push eax
push 0x199
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10062ae
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 5
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov word [ebp - 0x32], cx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push 0x200
push edi
push edi
push edi
add eax, 0x108
push eax
push edi
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10062ae
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10062b6
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x10066ae
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 0x634], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.01007f7c
push 0x1001520
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.01006638
lea eax, [ebp - 0x620]
push eax
push 1
xor edi, edi
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006819
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
push edi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x624], edi
push edi
jmp 0x10067ec
cmp dword [ebp - 0x630], 1
jne 0x10067bb
push 0x314
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10067bb
lea eax, [ebp - 0x20c]
push eax
push 0x80
push edi
call fcn.01007f7c
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [edi + 0x108]
push eax
call fcn.01007f7c
push edi
push 0
push 0x180
push dword [ebp - 0x634]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x10067b4
cmp eax, 0xfffffffe
jne 0x10067bb
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x624]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
push dword [ebp - 0x620]
mov dword [ebp - 0x62c], esi
mov dword [ebp - 0x628], 0x208
call ebx
test eax, eax
je 0x1006754
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006f5f
leave
ret 4
Function at 0x1006f45
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100a8e0
call fcn.01007134
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100c56c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006d00
cmp eax, esi
jne 0x1006cf3
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006d03
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006cda
xor esi, esi
inc esi
mov eax, dword [0x100c568]
cmp eax, esi
jne 0x1006d16
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006d45
mov eax, dword [0x100c568]
test eax, eax
jne 0x1006d3f
mov dword [0x100c568], esi
push 0x10012a4
push 0x1001298
call fcn.01006c3c
pop ecx
pop ecx
test eax, eax
je 0x1006d45
jmp 0x1006e69
mov dword [0x100c200], esi
mov eax, dword [0x100c568]
cmp eax, esi
jne 0x1006d69
push 0x1001294
push 0x100128c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100c568], 2
cmp dword [ebp - 0x20], ebx
jne 0x1006d76
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100c570], ebx
je 0x1006d97
push 0x100c570
call fcn.010070a9
pop ecx
test eax, eax
je 0x1006d97
push ebx
push 2
push ebx
call dword [0x100c570]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1006e69
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1006e01
cmp cx, bx
je 0x1006dbc
cmp dword [ebp - 0x1c], ebx
jne 0x1006e01
movzx ecx, word [eax]
cmp cx, bx
je 0x1006dd1
cmp cx, 0x20
ja 0x1006dd1
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1006dbc
test byte [ebp - 0x40], 1
je 0x1006ddd
movzx ecx, word [ebp - 0x3c]
jmp 0x1006de0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100c1fc], eax
cmp dword [0x100c1f0], ebx
jne 0x1006e46
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1006e12
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1006da6
cmp dword [0x100c200], ebx
jne 0x1006e54
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c1fc]
jmp 0x1006e75
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007179
ret
call fcn.01007281
jmp 0x1006c9d
Function at 0x1007c91
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x21c], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1007db0
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x1007db0
push ebx
push edi
mov edi, 0x1001310
xor ecx, ecx
cmp word [esi], cx
mov ebx, esi
jmp 0x1007d0e
movzx eax, word [ebx]
cmp ax, 0x20
je 0x1007d16
cmp ax, 0x2c
je 0x1007d16
inc ebx
inc ebx
cmp word [ebx], cx
mov dword [ebp - 0x210], ebx
jne 0x1007cfa
cmp word [ebx], cx
jne 0x1007d27
mov dword [ebp - 0x214], 1
jmp 0x1007d2c
xor eax, eax
mov word [ebx], ax
cmp word [esi], cx
je 0x1007d9e
push esi
push 0x1001300
call fcn.01007864
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push ecx
push eax
push esi
call fcn.0100a0cb
test eax, eax
jge 0x1007dc5
push 0x100172c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 0
push edi
mov ebx, eax
call fcn.010078f9
test ebx, ebx
je 0x1007d98
push esi
push 0x1030
push 0x20c
push 0x203
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_ShellMessageBoxW]
add esp, 0x18
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
lea esi, [ebx + 2]
je 0x1007cf1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop esi
call fcn.01006f5f
leave
ret 0xc
push esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push edi
call fcn.010078f9
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 1
jmp 0x1007d9e
Function at 0x1007df6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 0x40000047
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x20c], esi
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x1007f62
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1007f62
push ebx
lea eax, [ebp - 0x208]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push 0x1001840
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007f61
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1001834
push esi
push dword [ebp - 0x208]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x214], 0x1fe
call esi
mov edi, 0x10012e0
test eax, eax
jne 0x1007ee6
cmp dword [ebp - 0x210], ebx
jne 0x1007ee6
mov ebx, 0x10017c0
push ebx
push edi
call fcn.01007864
push dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push 7
push eax
call fcn.01007c91
test eax, eax
je 0x1007ed8
mov dword [ebp - 0x20c], 1
push ebx
push 0x10012f0
call fcn.01007864
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x10017b4
push 0
push dword [ebp - 0x208]
mov dword [ebp - 0x214], 0x1fe
call esi
test eax, eax
jne 0x1007f54
cmp dword [ebp - 0x210], ebx
jne 0x1007f54
mov esi, 0x1001740
push esi
push edi
call fcn.01007864
push dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.01007c91
test eax, eax
je 0x1007f49
mov dword [ebp - 0x20c], ebx
push esi
push 0x10012f0
call fcn.01007864
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
xor ecx, ebp
pop esi
call fcn.01006f5f
leave
ret 4
Function at 0x1009884
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, 0x488
push ebx
mov dword [ebp - 0x494], eax
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x460], 0x20000
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x420], 0x78
mov dword [ebp - 0x41c], 0x280
mov dword [ebp - 0x490], 0x80004005
cmp dword [ebp - 0x494], edi
jne 0x1009910
mov eax, dword [esi]
mov dword [ebp - 0x494], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
test eax, eax
je 0x1009a8a
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push dword [ebp - 0x494]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.010089f0
cmp eax, edi
mov dword [ebp - 0x490], eax
jl 0x1009a8a
push 0x1001bc8
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0100976f
cmp eax, edi
mov dword [ebp - 0x490], eax
jl 0x1009a8a
mov ebx, dword [sym.imp.ADVAPI32.dll_StartTraceW]
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x494]
lea eax, [ebp - 0x49c]
push eax
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x498], edi
call ebx
push eax
call fcn.01009750
mov dword [ebp - 0x490], eax
cmp eax, 0x80070057
jne 0x10099f3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10099e8
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x494]
lea eax, [ebp - 0x49c]
push eax
call ebx
push eax
call fcn.01009750
jmp 0x10099ed
call fcn.010090e9
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], edi
jl 0x1009a8a
mov dword [ebp - 0x494], edi
cmp dword [esi + 0x14], edi
jbe 0x1009a5b
xor ebx, ebx
cmp dword [ebp - 0x490], edi
jl 0x1009a63
mov eax, dword [esi + 0x10]
push edi
push edi
push edi
push edi
add eax, ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push 1
push dword [ebp - 0x498]
push dword [ebp - 0x49c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EnableTraceEx]
push eax
call fcn.01009750
inc dword [ebp - 0x494]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x494]
add ebx, 0x18
cmp eax, dword [esi + 0x14]
jb 0x1009a0c
cmp dword [ebp - 0x490], edi
jge 0x1009a8a
lea eax, [ebp - 0x48c]
push eax
push edi
push dword [ebp - 0x498]
push dword [ebp - 0x49c]
call dword [sym.imp.ADVAPI32.dll_StopTraceW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x490]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006f5f
leave
ret 8
Function at 0x100a6c4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x40
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x47c]
push ebx
push eax
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x480], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], ebx
cmp edi, ebx
jne 0x100a73d
lea eax, [ebp - 0x480]
mov dword [ebp - 0x480], 0x44
mov dword [ebp - 0x424], eax
cmp esi, ebx
jne 0x100a751
lea esi, [ebp - 0x43c]
mov dword [ebp - 0x420], 1
push dword [ebp - 0x41c]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x102
lea eax, [ebp - 0x414]
push eax
call fcn.01007f7c
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x100a815
lea eax, [ebp - 0x414]
push eax
call sub.SHLWAPI.dll_PathQuoteSpacesW
push 0x1005d94
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01006638
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x100a815
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.01006638
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x100a815
push esi
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x42c]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100a7fe
call fcn.0100a469
mov dword [ebp - 0x418], eax
jmp 0x100a815
cmp dword [ebp - 0x420], ebx
je 0x100a815
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006f5f
leave
ret 0x14
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004056db
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004055a2
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret