joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1003673f
pop dword [ebp - 0x20]
mov eax, 0x7b4c8c0d
sub eax, 0x6b4924ce
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5b5d9e24
add dword [ebp - 0x30], 0xf2f4a727
mov dword [ebp - 0x2c], 0x1b43298c
add dword [ebp - 0x2c], 0x16f022b9
mov dword [ebp - 0x28], 0xbe174ae2
add dword [ebp - 0x28], 0x8e34f94c
mov dword [ebp - 0x24], 0x73210f10
sub dword [ebp - 0x24], 0x73210f10
lea eax, [ebp - 0x30]
push eax
mov eax, 0x7e1a7326
sub eax, 0x6e1652f2
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa32ea994
sub dword [ebp - 0x30], 0x2ebc403e
mov dword [ebp - 0x2c], 0x84bba9f7
sub dword [ebp - 0x2c], 0x434f4882
mov dword [ebp - 0x28], 0x5e7f18ad
add dword [ebp - 0x28], 0x4f053bf
mov dword [ebp - 0x24], 0x35a53582
sub dword [ebp - 0x24], 0x35a53582
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x488f0
push 0
call eax
mov ecx, 0x4db5
xor ebx, ebx
add ebx, eax
mov esi, 0x90687795
add esi, 0x7f9d066b
add esi, dword [ebp - 0x20]
mov edx, 0xe7ad692a
add edx, 0x93e683a0
add dword [ebp - 0x18], edi
mov edi, dword [esi]
sub dword [ebp - 0x14], ecx
sub edi, edx
xor dword [ebp - 0x18], eax
mov dword [ebx], edi
add dword [ebp - 0x1c], eax
add ebx, 4
add esi, 0xb8ec1ce
add esi, 0xf4713e36
loop 0x10036858
add eax, 0x2a3595ca
sub eax, 0x2a346c23
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe7a2ce69
sub ecx, 0xd7a2ce69
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10036730
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10036730
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x402ee4
pop dword [ebp - 0x18]
mov eax, 0x976af9f1
add eax, 0x68d534f3
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xa7347b25
sub dword [ebp - 0x28], 0x58e235da
mov dword [ebp - 0x24], 0x55507f24
add dword [ebp - 0x24], 0xdce2cd21
mov dword [ebp - 0x20], 0x758b568
sub dword [ebp - 0x20], 0xbb0c713a
mov dword [ebp - 0x1c], 0xf7710888
sub dword [ebp - 0x1c], 0xf7710888
lea eax, [ebp - 0x28]
push eax
mov eax, 0xff643e2f
sub eax, 0xff23bd2b
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xac90fb0d
add dword [ebp - 0x28], 0xc7e16e49
mov dword [ebp - 0x24], 0xf6c48022
sub dword [ebp - 0x24], 0xb5581ead
mov dword [ebp - 0x20], 0xdd1ee9df
sub dword [ebp - 0x20], 0x79af7d73
mov dword [ebp - 0x1c], 0x34ec88c9
add dword [ebp - 0x1c], 0xcb137737
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3e475a2c
sub eax, 0x3e06d92c
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x348d3
push 0
call eax
mov ecx, 0x3e10
mov edi, eax
mov edx, 0xaf1d5f0
add edx, 0xf5550e10
add edx, dword [ebp - 0x18]
mov esi, 0x7e333dd2
add esi, 0x5d8cff1f
mov dword [ebp - 4], 0xeeae0f3c
mov ebx, dword [edx]
sub ebx, esi
xor dword [ebp - 0x10], 0x4b9cde29
mov dword [edi], ebx
add dword [ebp - 0x14], 0x2fcf0661
add edi, 0x7dab80ae
sub edi, 0x7dab80aa
add edx, 0xd263e51
sub edx, 0xd263e4d
loop 0x403000
add eax, 0x10a3defe
sub eax, 0x10a2f3eb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x1250d71e
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov esi, eax
push esi
call fcn.1250d5ea
push esi
call fcn.1250c3d6
push esi
jmp loc.12557dfe
Function at 0x12511767
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x125221e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1250bec6
mov dword [ebp - 0x14], eax
cmp dword [0x12524944], edi
jne 0x12511858
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x125117e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x12511938
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x12511938
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x12511938
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x12524944], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x12524948], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1252494c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x12524954], eax
test eax, eax
je 0x12511855
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x12524950], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1251187d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x12511870
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x12511892
push 4
pop eax
jmp 0x1251193a
cmp dword [ebp - 0x14], edi
je 0x12511892
push dword [0x12524944]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x12511877
mov eax, dword [0x12524950]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x125118f0
cmp dword [0x12524954], esi
je 0x125118f0
push eax
call ebx
push dword [0x12524954]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x125118f0
test eax, eax
je 0x125118f0
call ecx
test eax, eax
je 0x125118e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x125118e5
test byte [ebp - 8], 1
jne 0x125118f0
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x12511920
mov eax, dword [0x12524948]
cmp eax, esi
je 0x1251191d
push eax
call ebx
test eax, eax
je 0x1251191d
call eax
mov edi, eax
test edi, edi
je 0x1251191d
mov eax, dword [0x1252494c]
cmp eax, esi
je 0x1251191d
push eax
call ebx
test eax, eax
je 0x1251191d
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x12524944]
call ebx
test eax, eax
je 0x12511938
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1251193a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.12509fd4
leave
ret
Function at 0x438cae
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add ebx, 0x6d17560
call fcn.00438ce9
add ebx, ebx
mov ebx, 0x6122ce1d
xor dword [eax], ecx
add edx, edx
mov edx, 0xd3af4e85
add ebx, 0xf21f95de
inc eax
dec ebx
cmp eax, esi
jne fcn.00438cae
sub edx, edx
add edx, edx
dec edx
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1002aaee
pop dword [ebp - 0x28]
mov eax, 0x80ef0cde
add eax, 0x8f139e10
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x4a7c4ee9
sub dword [ebp - 0x38], 0xfc2a099e
mov dword [ebp - 0x34], 0x3aa1c304
add dword [ebp - 0x34], 0xf7918941
mov dword [ebp - 0x30], 0xa42461c4
sub dword [ebp - 0x30], 0x57d81d96
mov dword [ebp - 0x2c], 0xf56caba
add dword [ebp - 0x2c], 0xf0a93546
lea eax, [ebp - 0x38]
push eax
mov eax, 0xaf7fd15e
sub eax, 0x9f7d1126
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x246893b
sub dword [ebp - 0x38], 0x8dd41fe5
mov dword [ebp - 0x34], 0x3b5b3638
add dword [ebp - 0x34], 0x6112b3d
mov dword [ebp - 0x30], 0xa906af3f
sub dword [ebp - 0x30], 0x459742d3
mov dword [ebp - 0x2c], 0xda43ac07
add dword [ebp - 0x2c], 0x25bc53f9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xdf20102f
sub eax, 0xcf1d5007
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39648
push 0
call eax
mov ecx, 0x53b3
mov edx, eax
mov edi, 0x10039600
add edi, dword [ebp - 0x28]
mov esi, 0x7c591a7c
sub esi, 0x23d949a7
xor dword [ebp - 0xc], 0xb061856a
mov ebx, dword [edi]
add dword [ebp - 0x10], eax
sub ebx, esi
sub dword [ebp - 0x1c], 0x4a800767
mov dword [edx], ebx
xor dword [ebp - 0x18], 0x30185ba6
add edx, 0x873842b9
sub edx, 0x873842b5
add edi, 0xfe2c6879
sub edi, 0xfe2c6875
loop 0x1002ac04
add eax, 0x7dde3e09
add eax, 0x82230396
mov ebx, eax
add eax, 5
mov ecx, 0xbc22eac5
add ecx, 0x53dd153b
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e030]
jne 0x401116
repz ret
jmp fcn.00401ea1

Function at 0x4086ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a72
and dword [ebp - 4], 0
cmp dword [0x440814], 0
mov ebx, eax
jne 0x40875f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408810
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408810
push eax
call fcn.00406a00
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x440814], eax
call esi
push eax
call fcn.00406a00
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x440818], eax
call esi
push eax
call fcn.00406a00
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44081c], eax
call esi
push eax
call fcn.00406a00
pop ecx
mov dword [0x440824], eax
test eax, eax
je 0x40875f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a00
pop ecx
mov dword [0x440820], eax
mov eax, dword [0x440820]
cmp eax, ebx
je 0x4087b7
cmp dword [0x440824], ebx
je 0x4087b7
push eax
call fcn.00406a7b
push dword [0x440824]
mov esi, eax
call fcn.00406a7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087b7
test edi, edi
je 0x4087b7
call esi
test eax, eax
je 0x4087ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087ae
test byte [ebp - 0xc], 1
jne 0x4087b7
or dword [ebp + 0x10], 0x200000
jmp 0x4087f0
mov eax, dword [0x440818]
cmp eax, ebx
je 0x4087f0
push eax
call fcn.00406a7b
pop ecx
test eax, eax
je 0x4087f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4087f0
mov eax, dword [0x44081c]
cmp eax, ebx
je 0x4087f0
push eax
call fcn.00406a7b
pop ecx
test eax, eax
je 0x4087f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440814]
call fcn.00406a7b
pop ecx
test eax, eax
je 0x408810
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408812
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc40
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x43e030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c1e114]
push ebx
mov ebx, dword [0x2c1df60]
push esi
mov esi, dword [0x43f050]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cc81
push str.lefovuweceh
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c1e114]
mov dword [0x4409ec], esi
cmp eax, 0x114e
jne 0x40ccab
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.nanucucolumisocifozoguvex
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2c1e114]
cmp eax, 0x2f
jne 0x40cccd
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call fcn.0040cbb0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x47edd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
lea eax, [fcn.0047edd0]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
jmp 0x47ee36
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, 0x4ee662e1
mul edx
imul ecx, ecx, 0x4ee662e1
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 4]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x10]
xor ecx, 0x73661f6d
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
jmp 0x47ee36
mov eax, dword [esp + 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
and ecx, 0x5d2cd72c
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
cmp word [eax], 0x5a4d
mov dword [esp + 4], eax
jne 0x47eded
mov eax, dword [esp + 0xc]
mov cl, al
mov eax, 0xaf5fd5e
mov byte [esp + 3], cl
shl eax, cl
mov dword [esp + 0x1c], eax
mov eax, 0xddb7bfc
mov cl, byte [esp + 3]
shr eax, cl
mov dword [esp + 0x1c], eax
movsd xmm0, qword [esp + 0x10]
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x3c]
movsd qword [esp + 0x10], xmm0
cmp dword [eax + edx], 0x4550
je 0x47ee2e
jmp 0x47eded
Function at 0x40169a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4016e8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4016f9
push 0xd
pop eax
jmp 0x401723
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4016fc
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401f72
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
ret
Function at 0x403fd2
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x17e0]
mov eax, 0x1860
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x17dc], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x17e8]
mov esi, 0x7ff
xor ebx, ebx
push esi
lea eax, [ebp + 0x7dd]
push ebx
push eax
mov byte [ebp + 0x7dc], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp - 0x23]
push ebx
push eax
mov byte [ebp - 0x24], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xfdd]
push ebx
push eax
mov byte [ebp + 0xfdc], bl
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xfdc]
push eax
push edi
mov dword [ebp - 0x28], 0x800
call fcn.004032c7
add esp, 0x34
test eax, eax
jne 0x40405e
xor eax, eax
jmp 0x404162
lea eax, [ebp + 0xfdc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp byte [ebp + eax + 0xfdb], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x40408d
lea eax, [ebp + 0xfdc]
push eax
push 0x40e060
push eax
call esi
add esp, 0xc
push str.jqs.exe
lea eax, [ebp + 0xfdc]
push eax
lea eax, [ebp + 0x7dc]
push str._sbin_s
push eax
call esi
lea eax, [ebp + 0x7dc]
push eax
call fcn.0040a0af
add esp, 0x14
test eax, eax
je 0x404057
call fcn.0040a0af
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0x7dc]
push eax
xor edi, edi
lea eax, [ebp - 0x24]
push str.__s___unregister
inc edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], edi
call esi
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404057
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, ebx
je 0x404057
push 0x7530
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
mov ecx, dword [ebp + 0x17dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x17e0
leave
ret
Function at 0x4052b7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040a0af
mov ebx, eax
cmp ebx, esi
je 0x40532a
lea ecx, [ebp - 0x74]
call fcn.004014c2
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405342
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.004052b7
cmp eax, esi
jne 0x405374
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x405332
lea ecx, [ebp - 0x74]
call fcn.004014c2
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401453
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004014c2
mov eax, esi
jmp 0x405310
Function at 0x406a9f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xbc]
push 0x40e490
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x406c0a
push esi
call dword [sym.imp.MSVCR100.dll__chdir]
pop ecx
test eax, eax
jne 0x406c0a
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push ebx
push dword [ebp - 0x7c]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x78]
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
jne 0x406bff
push edi
cmp dword [ebp - 0x78], 0x4034b50
jne 0x406bfe
cmp word [ebp - 0x70], 0
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
push dword [ebp - 0x7c]
movzx edi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x406bfe
lea eax, [ebp - 0x58]
push eax
mov byte [ebp + edi - 0x58], 0
call fcn.0040a0af
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x406b78
movzx eax, word [ebp - 0x5c]
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
cmp byte [ebp + eax - 0x59], 0x2f
je 0x406bde
lea eax, [ebp - 0x58]
push 0x40e494
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x406bfe
push dword [ebp - 0x62]
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x7c]
mov edi, eax
push dword [ebp - 0x62]
push ebx
push edi
call esi
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x406bf7
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push edi
cmp eax, dword [ebp - 0x62]
jne 0x406bf8
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push ebx
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
je 0x406b12
jmp 0x406bfe
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.0040b376
add ebp, 0xb0
leave
ret