joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413a00
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x419573
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
xor esi, esi
push ecx
mov dword [esp + 0xe0], esi
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x413a61
cmp dword [esp + 0x50], 2
jne 0x413a61
xor edi, edi
jmp 0x413a66
mov edi, 1
mov edx, dword [esp + 0xe8]
push 0xffffffffffffffff
push 0xb
lea ecx, [ebx + 8]
mov dword [ebx + 4], edx
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], 2
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xdc], 1
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], esi
lea edi, [edi*4 + 0x420938]
mov eax, dword [esi*4 + 0x420908]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x2711]
mov dword [esp + 0x2c], ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push str._Width
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push str.View
call sub.MFC42.DLL_CWinApp::GetProfileIntA
cmp eax, 5
mov dword [esp + 0x28], eax
jge 0x413b0a
mov edx, dword [edi]
mov dword [esp + 0x28], edx
push 0x3c
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
mov byte [esp + 0xdc], 2
je 0x413b4b
mov ecx, dword [esp + 0xe4]
push esi
call fcn.004096e0
push eax
mov eax, dword [esp + 0xec]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.004041d0
jmp 0x413b4d
xor eax, eax
mov edx, dword [ebx + 0xc]
inc esi
add edi, 8
cmp esi, 0xb
mov dword [edx + esi*4 - 4], eax
mov byte [esp + 0xdc], 1
jl 0x413aae
mov ecx, ebx
call fcn.00413fc0
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 0
call fcn.004163f4
lea ecx, [esp + 0x10]
mov dword [esp + 0xdc], 0xffffffff
call fcn.004163f4
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd0
ret 8
Function at 0x414aba
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4196e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x41a188
lea edi, [esi + 0x6c]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x20], 1
mov dword [esi], 0x41cb00
mov dword [esi + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ecx, edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x58], 3
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x12]
push 2
push eax
push 0x23
push ecx
call edi
mov al, byte [esp + 0x12]
mov ecx, dword [esi + 0x44]
xor edx, edx
cmp al, 0x31
lea eax, [esp + 0x12]
push 2
push eax
push 0x25
sete dl
push ecx
mov dword [esi + 0x50], edx
call edi
mov cl, byte [esp + 0x12]
mov eax, dword [esi + 0x50]
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
xor edx, edx
cmp cl, 0x31
sete dl
cmp eax, ebx
mov dword [esi + 0x54], edx
jne 0x414b9a
mov eax, dword [esi + 0x44]
push ebx
push ebx
push 0x28
push eax
call edi
lea ebx, [eax + 1]
push ebx
call ebp
mov ecx, dword [esi + 0x44]
add esp, 4
mov dword [esi + 0x5c], eax
push ebx
push eax
push 0x28
push ecx
call edi
mov edx, dword [esi + 0x44]
push 0
push 0
push 0x29
push edx
call edi
lea ebx, [eax + 1]
push ebx
call ebp
add esp, 4
mov dword [esi + 0x60], eax
push ebx
push eax
mov eax, dword [esi + 0x44]
push 0x29
push eax
call edi
xor ebx, ebx
mov ecx, dword [esi + 0x44]
push ebx
push ebx
push 0x1e
push ecx
call edi
dec eax
mov dword [esi + 0x68], eax
inc eax
push eax
call ebp
mov edx, dword [esi + 0x68]
add esp, 4
inc edx
mov dword [esi + 0x64], eax
push edx
push eax
mov eax, dword [esi + 0x44]
push 0x1e
push eax
call edi
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret
Function at 0x416eb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cbf8
push 0x417084
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x420f9c], 0xffffffff
mov dword [0x420fa0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x420f90]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x420f8c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x420f98], ecx
call fcn.004170d0
mov eax, dword [0x420c88]
test eax, eax
jne 0x416f41
push 0x4170c0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004170a0
push 0x420014
push 0x420010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x420f88]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x420f84]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x42000c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x41704f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x416fb5
cmp al, 0x22
jne 0x416fa7
cmp byte [esi], 0x22
jne 0x416fbe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x416fce
cmp al, 0x20
ja 0x416fce
inc esi
mov dword [ebp - 0x74], esi
jmp 0x416fbe
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x416fef
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x416ff4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x417034
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x416fbe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x41704f
Function at 0x10001034
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call esi
push 5
push dword [ebp + 8]
push edi
call fcn.10001000
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push edi
call esi
push 5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
leave
ret

Function at 0x100011c9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x10001206
add eax, 2
push eax
mov ecx, esi
call fcn.10001424
mov eax, dword [esi + 4]
mov esi, dword [esi]
inc eax
push eax
push esi
push dword [ebp + 8]
call edi
neg eax
sbb eax, eax
neg eax
jmp 0x10001208
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10001509
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [0x1005c70c]
push edi
push 0x1002b888
push 0x1002b898
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
push edi
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [ecx], eax
pop esi
ret

Function at 0x1000154a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x10001587
add eax, 2
push eax
mov ecx, esi
call fcn.10001424
mov eax, dword [esi + 4]
mov esi, dword [esi]
inc eax
push eax
push esi
push dword [ebp + 8]
call edi
neg eax
sbb eax, eax
neg eax
jmp 0x10001589
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10002780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edi + 0x3c]
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x100027b2
mov ecx, dword [esi + 0x20]
push dword [esp + 0xc]
lea eax, [edi + ebx*4]
mov eax, dword [eax + ecx]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100027b7
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x10002792
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
add eax, edi
jmp 0x100027b4
Function at 0x10002ea0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 5
push eax
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
call fcn.1000ce10
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [esp + 0x34]
push 0x1c
push edx
call fcn.1000cdf0
mov ecx, dword [esi + 8]
add esp, 8
push 0x1c
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edi, [eax + edx]
jmp 0x10002f00
push 0x40
push 0x2000
push 5
push edi
call ebx
test eax, eax
mov dword [esi + 0x10], eax
jne 0x10002f19
add edi, dword [esp + 0x54]
jmp 0x10002f00
push 0x40
push 0x1000
push 5
push edi
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x10002f00
sub eax, dword [esi + 8]
push 4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esi + 0x1a]
sub eax, 5
push edx
mov byte [esi + 0x19], 0xe9
mov dword [esp + 0x84], eax
call fcn.1000ce10
mov eax, dword [esi + 0x10]
mov byte [eax], 0xe9
mov ecx, dword [esi + 0x20]
sub ecx, eax
push 4
lea edx, [esp + 0x88]
push edx
add eax, 1
sub ecx, 5
push eax
mov dword [esp + 0x90], ecx
call fcn.1000ce10
mov ebp, dword [esi + 8]
add esp, 0x18
xor edi, edi
lea ecx, [ecx]
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.1000cdd0
movzx eax, al
add edi, eax
add esp, 8
add ebp, eax
cmp edi, 5
jb 0x10002f80
push 0x40
lea eax, [edi + 5]
push 0x101000
push eax
push 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
call ebx
test edi, edi
mov ebp, dword [esi + 8]
mov dword [esi + 0xc], eax
mov ebx, eax
jle 0x10002fef
lea ecx, [ecx]
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.1000cdd0
mov edx, ebx
sub edx, ebp
push edx
movzx eax, al
push ebx
push ebp
mov dword [esp + 0x24], eax
sub edi, eax
call fcn.1000cde0
mov eax, dword [esp + 0x24]
add esp, 0x14
add ebp, eax
add ebx, eax
test edi, edi
jg 0x10002fc0
mov eax, dword [esp + 0x14]
sub eax, ebx
sub eax, 5
mov byte [ebx], 0xe9
mov dword [esp + 0x78], eax
push 4
lea eax, [esp + 0x7c]
push eax
add ebx, 1
push ebx
call fcn.1000ce10
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
add esp, 0xc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
mov dword [esi], 1
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8
Function at 0x10004160
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
ret 0x30

Function at 0x100041a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x13c
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100041d2
xor eax, eax
pop esi
add esp, 0x13c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x18]
push edx
push esi
call edi
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xf8
lea edx, [esp + 0x58]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
xor eax, eax
cmp word [esp + 0x64], 0x20b
pop edi
sete al
pop esi
mov dword [ecx], eax
mov eax, 1
add esp, 0x13c
ret

Function at 0x10004240
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x13c
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004272
xor eax, eax
pop esi
add esp, 0x13c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x18]
push edx
push esi
call edi
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xf8
lea edx, [esp + 0x58]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0xac]
pop edi
mov dword [eax], ecx
mov eax, 1
pop esi
add esp, 0x13c
ret

Function at 0x100042e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x13c
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004312
xor eax, eax
pop esi
add esp, 0x13c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x18]
push edx
push esi
call edi
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xf8
lea edx, [esp + 0x58]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x150]
mov dword [eax], ecx
mov eax, dword [esp + 0x9c]
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
add esp, 0x13c
ret
Function at 0x10005e60
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0x1fe
push eax
call fcn.1000cdf0
lea ecx, [esp + 0x220]
push 0x1fe
push ecx
call fcn.1000cdf0
mov esi, dword [esp + 0x42c]
add esp, 0x10
xor ebp, ebp
push ebp
mov ecx, esi
mov dword [esi], ebp
call fcn.100035c0
mov edi, dword [esp + 0x420]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xff
lea edx, [esp + 0x1c]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x10005eea
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
call fcn.100035c0
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, esi
call fcn.100035c0
push ebp
call fcn.10002e75
add esp, 4
xor ebp, ebp
push 0xff
lea ecx, [esp + 0x21c]
push ecx
push 0x5a
push edi
call ebx
test eax, eax
je 0x10005fae
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bp
je 0x10005f65
lea ecx, [ecx]
add eax, 2
add ecx, 1
cmp word [eax], bp
jne 0x10005f10
cmp ecx, ebp
je 0x10005f65
push 0x10020884
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
call fcn.100035c0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push esi
push eax
call fcn.10005a10
mov eax, dword [eax]
add esp, 0xc
push eax
mov ecx, esi
call fcn.100035c0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x14]
push edx
call fcn.10002e75
add esp, 8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
call fcn.100035c0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
call fcn.10005a10
mov eax, dword [eax]
add esp, 0xc
push eax
mov ecx, esi
call fcn.100035c0
mov eax, dword [esp + 0x14]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10002e75
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
Function at 0x100062f0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push 0
mov ebp, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
mov eax, dword [esp + 0x2c]
neg ebx
sbb ebx, ebx
push eax
add ebx, 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x10006329
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002091c
push esi
call edi
push 0x10020908
push esi
mov dword [esp + 0x1c], eax
call edi
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
call fcn.10017610
mov ecx, dword [ebp + 8]
push 1
mov dword [esp + 0x1c], eax
call fcn.100175e0
push 0x100208f4
push esi
call edi
mov edi, eax
test edi, edi
je 0x100063ff
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.1000cdf0
add esp, 8
lea edx, [esp + 0x30]
push edx
push 0x1002b6c4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0xd27cdb6e
mov word [esp + 0x2c], 0xae6d
mov word [esp + 0x2e], 0x11cf
mov byte [esp + 0x30], 0x96
mov byte [esp + 0x31], 0xb8
mov byte [esp + 0x32], 0x44
mov byte [esp + 0x33], 0x45
mov byte [esp + 0x34], 0x53
mov byte [esp + 0x35], 0x54
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
call edi
test eax, eax
jne 0x100063ef
mov ecx, dword [ebp + 8]
call fcn.10017610
cmp eax, 1
jne 0x100063ef
push 0x10020898
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100063ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
je 0x1000640d
call eax
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10006419
call eax
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.100175e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10006437
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000ce80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edi
call fcn.1000ce10
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push eax
push esi
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1000d150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
test esi, esi
je 0x1000d1d0
mov eax, dword [esi + 0x3c]
push ebx
push edi
mov edi, dword [eax + esi + 0x78]
add edi, esi
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jbe 0x1000d1c9
mov edi, edi
mov ecx, dword [edi + 0x20]
lea edx, [ecx + ebx*4]
mov eax, dword [edx + esi]
mov ecx, dword [esp + 0x18]
add eax, esi
test eax, 0xffff0000
je 0x1000d19f
test ecx, 0xffff0000
je 0x1000d19f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
add eax, 1
jmp 0x1000d1a8
xor edx, edx
cmp eax, ecx
sete dl
mov eax, edx
test eax, eax
je 0x1000d1c1
mov eax, dword [edi + 0x24]
lea ecx, [eax + ebx*2]
movzx edx, word [ecx + esi]
mov eax, dword [edi + 0x1c]
lea ecx, [eax + edx*4]
mov ebp, dword [ecx + esi]
add ebp, esi
add ebx, 1
cmp ebx, dword [edi + 0x18]
jb 0x1000d170
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x1000da60
Capabilities:
Get common file path

Disassembly:
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
push ebp
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esp, 4
mov edi, eax
push 1
push edi
call ebp
mov esi, eax
add esi, 1
test edi, edi
je 0x1000daa0
push edi
call fcn.10002e75
add esp, 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
add esp, 4
mov edi, eax
push esi
push edi
call ebp
mov esi, dword [esp + 0x10]
push edi
mov ecx, esi
mov dword [esi], 0
call fcn.100035c0
test edi, edi
je 0x1000dae0
push edi
call fcn.10002e75
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100162d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.1000fcf0
mov ebx, dword [esi]
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x20], ebx
mov dword [esi], 1
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
mov ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 1
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
jne 0x1001635c
test edi, edi
je 0x10016344
push edi
call fcn.10002e75
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esi], ebx
call fcn.1000fd10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x1c
lea ebx, [eax + 1]
push ebx
lea ecx, [esp + 0x1c]
call fcn.10001424
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push eax
call ebp
test eax, eax
jne 0x100163a8
test edi, edi
je 0x1001638c
push edi
call fcn.10002e75
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], ecx
lea ecx, [esp + 0x10]
call fcn.1000fd10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
sub ebx, 1
js 0x100163d7
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea esp, [esp]
cmp word [edi + ebx*2], 0x5c
jne 0x100163d2
push 0
push edi
mov word [edi + ebx*2], 0
call ebp
sub ebx, 1
jns 0x100163c0
mov edx, dword [esp + 0x2c]
push 1
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.10012090
mov ebp, dword [esp + 0x18]
push 0
push ebp
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.100136a0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10016412
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
test eax, eax
jne 0x1001641c
push 0
push ebp
mov ecx, esi
call fcn.10015690
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test ebx, ebx
mov dword [esp + 0x2c], eax
je 0x10016456
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
push ebp
call fcn.10002e75
add esp, 4
test edi, edi
je 0x1001646c
push edi
call fcn.10002e75
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esi], ecx
lea ecx, [esp + 0x10]
call fcn.1000fd10
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c