joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
mov edi, eax
test edi, edi
je 0x401ba8
cmp dword [ebp + 0xc], 0
je 0x401ba8
push esi
push 0x2c
push 1
call dword [sym.imp.MSVCR100.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x401b9d
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push 0
mov dword [esi], 0x4118c4
mov dword [esi + 4], edi
mov dword [esi + 8], esi
mov dword [esi + 0xc], eax
call dword [0x419880]
mov dword [esi + 0x24], eax
test eax, eax
je 0x401b7a
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.libuv.dll_uv_mutex_init]
add esp, 4
test eax, eax
jne 0x401b7a
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.libuv.dll_uv_cond_init]
add esp, 4
test eax, eax
jne 0x401b6d
mov byte [ebp - 8], al
lea eax, [esi + 0x20]
push eax
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0x401650
push 0
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401b7a
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.libuv.dll_uv_mutex_lock]
add esp, 4
cmp byte [ebp - 8], 0
jne 0x401b53
mov edi, dword [sym.imp.libuv.dll_uv_cond_wait]
lea esp, [esp]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
push ecx
call edi
add esp, 8
cmp byte [ebp - 8], 0
je 0x401b40
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.libuv.dll_uv_mutex_unlock]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], esi
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.libuv.dll_uv_mutex_destroy]
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x401b88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4190b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [ebp - 0x218]
or eax, 0x2001f
push edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00404720
mov ebx, eax
cmp ebx, esi
je 0x4048e8
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x4048d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e8fe
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40496c
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00404870
mov ebx, eax
cmp ebx, esi
jne 0x4048c2
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404920
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x404983
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ebx, dword [ebp - 0x220]
mov eax, edi
mov dword [ebp - 0x214], esi
call fcn.004045c0
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x4049a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e8fe
mov esp, ebp
pop ebp
ret 4
Function at 0x404f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fc16
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4190b8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x424], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [0x41989c]
mov esi, eax
mov dword [ebp - 0x430], esi
cmp esi, edi
jne 0x405010
call fcn.004042f0
mov edi, eax
jmp 0x405129
mov eax, dword [ebp - 0x428]
push eax
push ebx
push esi
call dword [0x419888]
mov ebx, eax
cmp ebx, edi
jne 0x40502f
call fcn.004042f0
jmp 0x405120
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x40504b
call fcn.004042f0
jmp 0x405120
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x428], ebx
cmp eax, ebx
jae 0x40506c
mov edi, 0x8007000e
jmp 0x405122
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x405081
cmp eax, 0xffffffff
jbe 0x40508b
push 0x80070216
call fcn.00404140
cmp eax, 0x400
jbe 0x4050bd
lea ecx, [ebp - 0x424]
push ecx
call fcn.004092b0
jmp 0x4050c9
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, edi
jne 0x4050e1
mov edi, 0x8007000e
jmp 0x405122
push ebx
push eax
mov eax, dword [ebp - 0x42c]
push ebx
push eax
push edi
push 3
call dword [0x4198a4]
cmp eax, edi
jne 0x4050ff
call fcn.004042f0
jmp 0x405120
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405d00
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x405142
lea eax, [ebp - 0x424]
call fcn.00408dd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040e8fe
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407510
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 1
xor esi, esi
push 0x65
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], str.APPID
mov dword [esp + 0x24], str.E62E23D6_7160_43DC_BF48_C9B4A241ED93
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004065c0
cmp eax, esi
jl 0x40762a
push Ordinal_1
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20006
mov ebx, str.AppID
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00404720
cmp eax, esi
je 0x407595
call fcn.00404310
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40758a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
mov eax, str.E62E23D6_7160_43DC_BF48_C9B4A241ED93
mov ecx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.004046a0
cmp eax, esi
je 0x4075e6
call fcn.00404310
mov edi, eax
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4075d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x4075db
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0xc]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
jne 0x407600
cmp edi, esi
jmp 0x407616
push str.LocalService
lea edx, [esp + 0x10]
push edx
mov esi, 0x419d00
call fcn.004047e0
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407621
push edi
call esi
test ebx, ebx
je 0x407628
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407640
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push Ordinal_1
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov eax, 0x20006
mov ebx, str.AppID
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00404720
cmp eax, esi
je 0x407696
call fcn.00404310
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40768d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x24]
push ecx
mov eax, 0x20006
mov ebx, str.E62E23D6_7160_43DC_BF48_C9B4A241ED93
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00404720
cmp eax, esi
je 0x4076e9
call fcn.00404310
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4076d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x4076e0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x20]
push str.LocalService
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x65
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], str.APPID
mov dword [esp + 0x2c], str.E62E23D6_7160_43DC_BF48_C9B4A241ED93
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004065c0
mov dword [esp + 0x10], eax
cmp ebx, esi
je 0x40772c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x407737
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407930
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x419f2c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x407954
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x419f2c]
push eax
call edi
cmp dword [0x419f28], 0xffffffff
je 0x407a4c
mov ecx, dword [0x419f58]
push esi
xor esi, esi
push esi
push esi
push 0x12
push ecx
call dword [0x4198cc]
mov edx, dword [0x419f28]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407a08
push str.Termination_as_it_didnt_came_out
push str.MACOMServer::StopServer
push 0x10a
push str.ma_compat_com_server.cpp
push str.compatservice
push 5
call dword [sym.imp.ma_compatbase.dll_public:_static_struct_ma_logger_s____cdecl_mcafee::ma::compat::ServiceContext::getLogger_void_]
push eax
call dword [sym.imp.ma_logger.dll_ma_log]
add esp, 0x1c
cmp dword [0x419cc4], esi
je 0x4079fb
cmp dword [0x419ccc], esi
je 0x4079d9
push 0x419cc4
call fcn.00406990
mov dword [0x419ccc], esi
mov eax, dword [0x419ce8]
cmp eax, esi
je 0x4079ea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x419cd0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x419cc4], esi
mov eax, dword [0x419f28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x419f28]
push ecx
call edi
mov eax, dword [0x419f34]
mov esi, dword [eax]
cmp esi, eax
je 0x407a45
lea esp, [esp]
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
lea ecx, [ebp - 4]
push ecx
push 0x419f30
call fcn.00408910
mov eax, dword [0x419f34]
mov esi, dword [eax]
cmp esi, eax
jne 0x407a20
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x408d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0
call dword [0x419880]
mov dword [0x419cf0], eax
test eax, eax
jne 0x408d6f
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x419cc0
push 0x409170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x408d9d
mov ecx, dword [0x419cf0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40da30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ma_utils.dll_ma_executable_is_launched_secure]
add esp, 4
test al, al
jne 0x40da55
mov eax, 5
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0040de50
test al, al
je 0x40da84
call dword [sym.imp.LIBEAY32.dll_Ordinal_1]
push 0x413c18
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40da84
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40e8fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4190b8]
jne 0x40e908
repz ret
jmp fcn.0040ee7c
Function at 0x100017d0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
mov ebx, dword [esp + 0x110]
push edi
push ebp
mov ebp, dword [ebx + 0x10]
test ebp, ebp
je 0x10001845
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 8], 0
jne 0x10001833
mov eax, dword [ebp]
lea ecx, [ebx + 0x1c]
lea edx, [esp + 0x10]
push eax
push ecx
push 0x104
push edx
call fcn.10001290
add esp, 0x10
test eax, eax
je 0x10001833
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
test eax, eax
je 0x10001833
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp]
push eax
call edi
push ebp
mov eax, ebp
mov ebp, dword [ebp + 4]
call edi
test ebp, ebp
jne 0x100017f4
mov dword [ebx + 0x10], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4

Function at 0x1000315c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x100031a3
cmp edx, 0x10
jl 0x1000318f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x1000317c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x100031a3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x1000319b
and edx, 3
cmp edx, 3
jne 0x100031b7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x100031bc
cmp edx, 2
jne 0x100031c8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x100031cd
cmp edx, 1
jne 0x100031d3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x1000ac00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x1000ac1f
pop edi
pop esi
ret
Function at 0x10007054
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d080]
jne 0x1000705e
repz ret
jmp fcn.10008857

Function at 0x10012338
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000ce4f
and dword [ebp - 0x14], 0
cmp dword [0x100230e4], 0
mov dword [ebp - 0x18], eax
jne 0x100123eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10012493
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10012493
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100230e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100230e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100230ec], eax
call edi
push eax
call esi
mov dword [0x100230f4], eax
test eax, eax
je 0x100123eb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100230f0], eax
mov eax, dword [0x100230f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10012444
cmp dword [0x100230f4], ecx
je 0x10012444
push eax
call esi
push dword [0x100230f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10012444
test ebx, ebx
je 0x10012444
call edi
test eax, eax
je 0x1001243b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001243b
test byte [ebp - 8], 1
jne 0x10012444
or dword [ebp + 0x10], 0x200000
jmp 0x10012477
mov eax, dword [0x100230e8]
cmp eax, dword [ebp - 0x18]
je 0x10012477
push eax
call esi
test eax, eax
je 0x10012477
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10012477
mov eax, dword [0x100230ec]
cmp eax, dword [ebp - 0x18]
je 0x10012477
push eax
call esi
test eax, eax
je 0x10012477
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100230e4]
call esi
test eax, eax
je 0x10012493
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012495
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007054
leave
ret
Function at 0x4096d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4180b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push edi
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
mov edi, ecx
push eax
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x409732
mov ecx, dword [ebp + 4]
mov edx, 0x12e
push eax
push 0x401dbc
call fcn.0040794a
jmp 0x4097e1
push esi
push 0x401ac0
push 0x110
call fcn.00415f58
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x409775
xor ecx, ecx
mov dword [esi], fcn.00409800
xor eax, eax
mov dword [esi + 4], ecx
push 0xfe
mov word [esi + 0x10], ax
lea eax, [esi + 0x12]
push ecx
push eax
mov byte [esi + 8], cl
mov dword [esi + 0xc], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x409777
xor esi, esi
test esi, esi
jne 0x409787
mov edi, 0x8007000e
mov edx, 0x130
jmp 0x4097a3
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.004093ce
mov edi, eax
test edi, edi
jns 0x4097b3
mov edx, 0x131
mov ecx, dword [ebp + 4]
push edi
push 0x401dbc
call fcn.0040792d
jmp 0x4097d1
mov edi, dword [ebx]
mov dword [ebx], esi
test edi, edi
je 0x4097cd
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x419314]
mov ecx, edi
call esi
xor edi, edi
xor esi, esi
test esi, esi
je 0x4097de
push 1
mov ecx, esi
call fcn.00409800
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00415e10
leave
ret 8
Function at 0x40bd0f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ecx
push eax
xor edi, edi
mov ebx, edx
push edi
call dword [sym.imp.ext_ms_win_session_usermgr_l1_1_0.dll_UMgrQueryUserContext]
mov esi, eax
test esi, esi
jns 0x40bd4c
mov ecx, dword [ebp + 4]
mov edx, 0x9a
push esi
push 0x401fa0
call fcn.0040792d
mov eax, esi
jmp 0x40bddb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
push 0x40bc50
push edi
push edi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40bdba
mov ecx, dword [ebp + 4]
mov edx, 0xb2
push 0x401fa0
call fcn.00407964
mov edi, eax
jmp 0x40bdd9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp esi, 0xffffffff
je 0x40bdd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x415e00
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x416660
call fcn.00416388
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x418690
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x415bd5
cmp eax, esi
jne 0x415bc8
xor esi, esi
inc esi
mov edi, esi
jmp 0x415bd8
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x415bac
xor esi, esi
inc esi
cmp dword [0x418694], esi
jne 0x415bea
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x415c24
cmp dword [0x418694], ebx
jne 0x415c1e
mov dword [0x418694], esi
push 0x401728
push 0x40171c
call fcn.00415d5e
pop ecx
pop ecx
test eax, eax
je 0x415c24
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x415d4e
mov dword [0x4180d4], esi
cmp dword [0x418694], esi
jne 0x415c47
push 0x401718
push 0x4016e4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x418694], 2
test edi, edi
jne 0x415c54
xor eax, eax
mov ecx, 0x418690
xchg dword [ecx], eax
cmp dword [0x4186a0], 0
je 0x415c80
push 0x4186a0
call fcn.004161e0
pop ecx
test eax, eax
je 0x415c80
push ebx
push 2
push ebx
mov esi, dword [0x4186a0]
mov ecx, esi
call dword [0x419314]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x415c0d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x415ceb
test ax, ax
je 0x415cba
test edx, edx
jne 0x415ceb
test ax, ax
je 0x415cba
cmp ax, si
ja 0x415cba
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x415ca5
test byte [ebp - 0x3c], 1
je 0x415cc6
movzx eax, word [ebp - 0x38]
jmp 0x415cc9
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x4180d0], eax
cmp dword [0x4180e8], 0
jne 0x415d33
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x415cfc
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x415c94
cmp dword [0x4180d4], 0
jne 0x415d47
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4180d0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004162d5
jmp 0x415b83

Function at 0x4160c4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4166f8
call fcn.00416388
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416124
cmp eax, 0xffffffff
je 0x416124
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41611d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41611d
cmp edx, 0x10000000
jae 0x41611d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41611a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4