joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100708e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1007302e
xor esi, esi
inc esi
cmp dword [0x10090bbc], esi
pop ecx
jne 0x1007090c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10090bb8], esi
mov byte [0x10090bb4], al
jne 0x10070972
mov ecx, dword [0x10091354]
test ecx, ecx
je 0x10070953
mov eax, dword [0x10091350]
sub eax, 4
cmp eax, ecx
jmp 0x1007094c
mov eax, dword [eax]
test eax, eax
je 0x1007093e
call eax
mov eax, dword [0x10091350]
sub eax, 4
cmp eax, dword [0x10091354]
mov dword [0x10091350], eax
jae 0x10070936
mov eax, 0x1008a028
mov esi, 0x1008a02c
cmp eax, esi
mov edi, eax
jae 0x10070972
mov eax, dword [edi]
test eax, eax
je 0x1007096b
call eax
add edi, 4
cmp edi, esi
jb 0x10070963
mov eax, 0x1008a030
mov esi, 0x1008a038
cmp eax, esi
mov edi, eax
jae 0x10070991
mov eax, dword [edi]
test eax, eax
je 0x1007098a
call eax
add edi, 4
cmp edi, esi
jb 0x10070982
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x100709a2
push 8
call fcn.10072f9a
jmp 0x100709b4
push dword [ebp + 8]
mov dword [0x10090bbc], 1
call fcn.1007083d
pop ecx
pop ebp
ret

Function at 0x10074132
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.1006ee30
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100741c7
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10090b7c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100741c7
cmp eax, 1
je 0x100741df
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100741c7
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1007419c
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100741c3
xor eax, eax
inc eax
jmp 0x100741fb
cmp esi, ebx
jae 0x100741cb
xor eax, eax
jmp 0x100741fb
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10090b7c]
jmp 0x100741e1
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10074dc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1008c9d0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1008cb38]
je 0x10074df0
inc eax
cmp eax, 0x12
jb 0x10074de1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1008cb38]
jne 0x10074f24
mov eax, dword [0x10090b6c]
cmp eax, 1
je 0x10074eff
cmp eax, edx
jne 0x10074e20
cmp dword [0x10090b70], 1
je 0x10074eff
cmp ecx, 0xfc
je 0x10074f24
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10074e59
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10074f80
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10075080
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10074e9b
lea eax, [ebp - 0x10c]
push eax
call fcn.10075080
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10081be8
push edi
call fcn.100757c0
add esp, 0x10
push edi
call fcn.10075080
push dword [esi + 0x1008cb3c]
mov ebx, eax
call fcn.10075080
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1006ee30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10074f80
push edi
push ebx
call fcn.10074f90
push 0x10081bc8
push ebx
call fcn.10074f90
push dword [esi + 0x1008cb3c]
push ebx
call fcn.10074f90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10078cfe
add esp, 0x2c
jmp 0x10074f24
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1008cb3c]
push dword [esi]
call fcn.10075080
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10072eee
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10078cfe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10090ec8], ebx
push esi
push edi
jne 0x10078d7e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10078db9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10090ec8], eax
je 0x10078db9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10090ecc], eax
call esi
cmp dword [0x10090b7c], 2
mov dword [0x10090ed0], eax
jne 0x10078d7e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10090ed8], eax
je 0x10078d7e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10090ed4], eax
mov eax, dword [0x10090ed4]
test eax, eax
je 0x10078dc3
call eax
test eax, eax
je 0x10078daa
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10090ed8]
test eax, eax
je 0x10078daa
test byte [ebp - 8], 1
jne 0x10078dc3
cmp dword [0x10090b88], 4
jb 0x10078dbd
or byte [ebp + 0x12], 0x20
jmp 0x10078de2
xor eax, eax
jmp 0x10078df2
or byte [ebp + 0x12], 4
jmp 0x10078de2
mov eax, dword [0x10090ecc]
test eax, eax
je 0x10078de2
call eax
mov ebx, eax
test ebx, ebx
je 0x10078de2
mov eax, dword [0x10090ed0]
test eax, eax
je 0x10078de2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10090ec8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40536f
pop dword [ebp - 0x1c]
mov eax, 0x763491fd
sub eax, 0x75f43e8e
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x6a03211b
sub dword [ebp - 0x2c], 0x1bb0dbd0
mov dword [ebp - 0x28], 0x3ec7b4e6
add dword [ebp - 0x28], 0xf36b975f
mov dword [ebp - 0x24], 0x2f4d81ad
sub dword [ebp - 0x24], 0xe3013d7f
mov dword [ebp - 0x20], 0x97bcc1b6
add dword [ebp - 0x20], 0x68433e4a
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xffead66e
sub dword [ebp - 0x2c], 0x8b786d18
mov dword [ebp - 0x28], 0x5dc0a211
add dword [ebp - 0x28], 0xe3abbf64
mov dword [ebp - 0x24], 0xd7bd4d60
add dword [ebp - 0x24], 0x8bb21f0c
mov dword [ebp - 0x20], 0x37b7579c
sub dword [ebp - 0x20], 0x37b7579c
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b301
push 0
call eax
mov ecx, 0x505d
xor esi, esi
add esi, eax
mov edi, 0xfcd01435
add edi, 0x3718fcb
add edi, dword [ebp - 0x1c]
mov edx, 0xee67a322
mov ebx, dword [edi]
mov dword [ebp - 0x14], 0xc4120085
xor ebx, edx
add dword [ebp - 0xc], 0xb254d91
mov dword [esi], ebx
add dword [ebp - 4], 0x654b831c
add esi, 0xfe726edb
sub esi, 0xfe726ed7
add edi, 4
loop 0x40547d
add eax, 0xfd3f9ea1
add eax, 0x2c195a6
mov ebx, eax
add eax, 0x6b89e4fb
add eax, 0x94761b0a
mov ecx, 0x83261c58
add ecx, 0x7d19e3a8
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x407a60
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
jne 0x407b30
push ebx
push esi
push str.mapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0xc
mov dword [edi + 0x18], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407ad0
xorps xmm0, xmm0
movq qword [ebx], xmm0
push str.MAPIFreeBuffer
mov dword [ebx + 8], 0
push dword [edi + 0x18]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0x18]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebx + 8], esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebx], vtable.MapiAllocator.0
mov dword [ebx + 4], eax
jmp 0x407ad2
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0x18]
mov dword [edi + 0x24], eax
call esi
push str.MAPILogonEx
push dword [edi + 0x18]
mov dword [edi + 0x28], eax
call esi
push str.MAPIAdminProfiles
push dword [edi + 0x18]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x24]
pop esi
pop ebx
test eax, eax
je 0x407b30
cmp dword [edi + 0x28], 0
je 0x407b30
cmp dword [edi + 0x2c], 0
je 0x407b30
push 0
call eax
mov dword [edi + 0x14], eax
test eax, eax
js 0x407b30
mov dword [edi + 0x34], 1
pop edi
ret
Function at 0x1001a6e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001a6f3
pop dword [ebp - 0x44]
mov eax, 0xe631c475
add eax, 0x29cfe27e
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x413eb
push 0
mov eax, 0xb7a3b2b8
add eax, 0x585fae24
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x14716945
sub ecx, 0x14711e15
xor ebx, ebx
add ebx, eax
mov esi, 0x1003be00
add esi, dword [ebp - 0x44]
mov edi, 0x60a8feb4
sub dword [ebp - 0x40], edx
mov edx, dword [esi]
xor dword [ebp - 0x28], 0x3d36b896
xor edx, edi
mov dword [ebx], edx
add dword [ebp - 0xc], 0x2cdb6bf9
add ebx, 0x997d4ad7
add ebx, 0x6682b52d
add esi, 0x53abc9fb
add esi, 0xac543609
loop 0x1001a748
add eax, 0xbaa4f070
sub eax, 0xbaa3d0dd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xddbad331
sub ecx, 0xcdbad331
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001a6e4
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001a6e4
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x417791
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
and dword [ebp - 0x210], 0
and dword [ebp - 0x214], 0
and dword [ebp - 0x20c], 0
mov dword [ebp - 0x220], 0x3fff
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4178c7
and dword [ebp - 0x208], 0
jmp 0x417818
mov eax, dword [ebp - 0x208]
inc eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x214]
jae 0x4178c7
mov dword [ebp - 0x210], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4178c2
cmp dword [ebp - 0x210], 0
jbe 0x4178c2
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x204]
cmp eax, 0x30
jne 0x417890
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
jmp 0x4178cc
push 0x10
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x4178c2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
xor eax, eax
jmp 0x4178cc
jmp 0x41780b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f3a0
leave
ret 8
Function at 0x4191ad
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x41924c
Capabilities:
Suspend thread

Disassembly:
push dword [ecx + 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret
Function at 0x41c9db
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test edi, edi
jne 0x41c9fd
mov eax, 0x80004003
jmp 0x41cacf
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41ca0f
mov eax, 0x80070057
jmp 0x41cace
lea eax, [ebp - 0xc]
mov dword [edi], ecx
push eax
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41ca47
test eax, eax
jle 0x41cace
movzx eax, ax
or eax, 0x80070000
jmp 0x41cace
mov eax, dword [ebp - 4]
xor ecx, ecx
push ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041de34
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41ca6d
mov eax, 0x8007000e
jmp 0x41cacd
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [edi], eax
pop ecx
test eax, eax
je 0x41cabf
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x41cabb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41caad
movzx esi, si
or esi, 0x80070000
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
and dword [edi], 0
pop ecx
jmp 0x41cac4
xor esi, esi
jmp 0x41cac4
mov esi, 0x8007000e
push ebx
call fcn.0041de3f
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x41d5c5
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d601
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x41d6f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d745
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41d745
leave
ret 0x14

Function at 0x41d81b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
jl 0x41d85d
mov eax, 0x80070057
jmp 0x41d90c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push 0x4021a0
push eax
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x20c], eax
test eax, eax
jne 0x41d90c
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
lea eax, [ebp - 0x204]
push eax
jne 0x41d8ca
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
jmp 0x41d8e1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push 0
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20c]
test eax, eax
jne 0x41d90c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f3a0
leave
ret 0x10
Function at 0x41da20
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
push 0x20008
mov esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41dadb
push edi
mov edi, 0x8000
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x41dada
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41dada
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41dada
mov edi, ebx
cmp dword [esi], ebx
jbe 0x41dada
lea eax, [esi + 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41dad7
mov eax, dword [ebp - 0x18]
inc edi
add eax, 8
mov dword [ebp - 0x18], eax
cmp edi, dword [esi]
jb 0x41dab8
jmp 0x41dada
xor ebx, ebx
inc ebx
pop edi
cmp dword [ebp - 0x10], 0
je 0x41daea
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x41daf6
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x41db05
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f3a0
leave
ret
Function at 0x41ee23
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4223d8
call fcn.0041fd98
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x423e5c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41ee75
cmp eax, esi
jne 0x41ee68
xor esi, esi
inc esi
mov edi, esi
jmp 0x41ee78
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ee4c
xor esi, esi
inc esi
cmp dword [0x423e60], esi
jne 0x41ee8a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x41eec4
cmp dword [0x423e60], ebx
jne 0x41eebe
mov dword [0x423e60], esi
push 0x401028
push 0x401018
call fcn.0041effe
pop ecx
pop ecx
test eax, eax
je 0x41eec4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41efee
mov dword [0x423ae0], esi
cmp dword [0x423e60], esi
jne 0x41eee7
push 0x401014
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x423e60], 2
test edi, edi
jne 0x41eef4
xor eax, eax
mov ecx, 0x423e5c
xchg dword [ecx], eax
cmp dword [0x423e70], 0
je 0x41ef20
push 0x423e70
call fcn.0041fbf0
pop ecx
test eax, eax
je 0x41ef20
push ebx
push 2
push ebx
mov esi, dword [0x423e70]
mov ecx, esi
call dword [0x42486c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x41eead
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x41ef8b
test ax, ax
je 0x41ef5a
test edx, edx
jne 0x41ef8b
test ax, ax
je 0x41ef5a
cmp ax, si
ja 0x41ef5a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x41ef45
test byte [ebp - 0x3c], 1
je 0x41ef66
movzx eax, word [ebp - 0x38]
jmp 0x41ef69
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x423adc], eax
cmp dword [0x423af4], 0
jne 0x41efd3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x41ef9c
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 0x41ef34
cmp dword [0x423ae0], 0
jne 0x41efe7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x423adc]
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.0054f000
jmp 0x41ee23

Function at 0x41fad4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x422418
call fcn.0041fd98
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fb34
cmp eax, 0xffffffff
je 0x41fb34
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41fb2d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41fb2d
cmp edx, 0x10000000
jae 0x41fb2d
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 0x41fb2a
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
Function at 0x41fba0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41fbde
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41fbd6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41fbe0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41fbc6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41fcb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41fce1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41fce1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41fce1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret