joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402e21a
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.140246cc
and dword [ebp - 4], 0
cmp dword [0x14047b64], 0
mov ebx, eax
jne 0x1402e2cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1402e37c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1402e37c
push eax
call fcn.1402465a
mov dword [esp], 0x14038f90
push edi
mov dword [0x14047b64], eax
call esi
push eax
call fcn.1402465a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x14047b68], eax
call esi
push eax
call fcn.1402465a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x14047b6c], eax
call esi
push eax
call fcn.1402465a
pop ecx
mov dword [0x14047b74], eax
test eax, eax
je 0x1402e2cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1402465a
pop ecx
mov dword [0x14047b70], eax
mov eax, dword [0x14047b70]
cmp eax, ebx
je 0x1402e323
cmp dword [0x14047b74], ebx
je 0x1402e323
push eax
call fcn.140246d5
push dword [0x14047b74]
mov esi, eax
call fcn.140246d5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1402e323
test edi, edi
je 0x1402e323
call esi
test eax, eax
je 0x1402e31a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1402e31a
test byte [ebp - 0xc], 1
jne 0x1402e323
or dword [ebp + 0x10], 0x200000
jmp 0x1402e35c
mov eax, dword [0x14047b68]
cmp eax, ebx
je 0x1402e35c
push eax
call fcn.140246d5
pop ecx
test eax, eax
je 0x1402e35c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1402e35c
mov eax, dword [0x14047b6c]
cmp eax, ebx
je 0x1402e35c
push eax
call fcn.140246d5
pop ecx
test eax, eax
je 0x1402e35c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x14047b64]
call fcn.140246d5
pop ecx
test eax, eax
je 0x1402e37c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1402e37e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
and eax, eax
mov eax, 0xe9ba2665
call fcn.0040896e
mov eax, 0xe4e1bf5f
add eax, ecx
xor dword [edi], edx
inc edi
cmp edi, ebx
jne fcn.00408947
add ecx, eax
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x77
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xaa
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x6d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xda
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x68
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb2
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd9
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x90
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9e
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
sub byte [esi + ebx], 0x74
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x58
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0xe2
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x14
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x72
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0x16
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x4f
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x91
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x26
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x14
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xd
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x43
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x81
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xb0
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x6e
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x402200
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402255
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402266
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b37d
mov esp, ebp
pop ebp
ret

Function at 0x402470
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.0041c8b0
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1110]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
xor edi, edi
push ecx
mov dword [ebp - 0x110c], edi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4024bc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x402591
push ebx
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
push esi
jmp 0x4024e0
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x40257d
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40257d
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40257d
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call ebx
mov ecx, 0x42770c
lea eax, [ebp - 0x108]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402560
test dl, dl
je 0x40255c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402560
add eax, 2
add ecx, 2
test dl, dl
jne 0x402540
xor eax, eax
jmp 0x402565
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402576
mov eax, dword [ebp + edi*4 - 0x1108]
mov dword [ebp - 0x110c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1110]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x4024e0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
Function at 0x4025b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
lea eax, [ebp - 0x108]
push str._s.
push eax
call fcn.0040bdcd
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040bdcd
lea edx, [ebp - 0x108]
push edx
call fcn.0040ce6e
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
jne 0x4025f6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
Function at 0x4040d0
Capabilities:
Create process on windows
Delete file
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42352b
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:HWID.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x404249
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x4275b8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x404249
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x404249
lea edi, [ebp - 0x110]
call fcn.00402ad0
lea edi, [ebp - 0x210]
mov esi, eax
call fcn.00402ad0
mov edx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + edx + 0x1f3a7]
push eax
lea eax, [ebp - 0x5f8]
push 0x427724
push eax
call fcn.0040bdcd
sub esp, 0x10
mov ecx, esp
lea eax, [ebp - 0x5f8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x624], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041d5
sub eax, esi
push eax
lea edx, [ebp - 0x5f8]
push edx
call fcn.00401640
lea ecx, [ebp - 0x614]
call fcn.00409190
add esp, 0x1c
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x40420c
mov eax, dword [eax]
push eax
push str.Connection_Failure..._nTelah_terjadi_kesalahan___Mungkin_:_n___Server_down_n___Cheat_disuspend_n___Anda_belum_terdaftar._n___Durasi_Anda_telah_habis._n___Hubungi_Seller_Anda_untuk_info_lebih_lanjut___n___Terima_Kasih____n_n_nYour_HWID_:__s
call fcn.004026f0
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x404231
mov eax, dword [ebp - 0x614]
push eax
call fcn.0040bcf1
add esp, 4
push 1
push 0
push 0
push str.C:HWID.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
Function at 0x404310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422de8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x5b
xor eax, eax
mov dl, byte [eax + 0x427828]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x7c], dl
jns 0x404360
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3e
jl 0x404343
push 0x523244
push 0xf003f
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x80000002
mov byte [ebp - 0x3e], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
push 0x427868
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401640
mov dword [ebp - 4], ebx
call fcn.00404270
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4043b0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d90
push 1
mov eax, 0x42786c
lea ecx, [ebp - 0x2c]
call fcn.00404d90
call fcn.00404270
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4043e0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4043e0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d90
push 1
mov eax, 0x42786c
lea ecx, [ebp - 0x2c]
call fcn.00404d90
call fcn.00404270
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404410
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404410
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d90
push 1
mov eax, 0x42786c
lea ecx, [ebp - 0x2c]
call fcn.00404d90
call fcn.00404270
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404440
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404440
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d90
push 1
mov eax, 0x42786c
lea ecx, [ebp - 0x2c]
call fcn.00404d90
call fcn.00404270
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404470
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404470
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404d90
push 1
mov eax, 0x427870
lea ecx, [ebp - 0x2c]
call fcn.00404d90
mov ecx, 0x5b
xor eax, eax
jmp 0x4044a0
mov dl, byte [eax + 0x427874]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x4044bd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x4044a0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov byte [ebp - 0x2f], bl
cmp dword [ebp - 0x18], esi
jae 0x4044d6
lea eax, [ebp - 0x2c]
mov ecx, dword [0x523244]
push 0x1f
push eax
push 1
push ebx
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x523244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x40450b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040bcf1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
Function at 0x404530
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x404580
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040ced9
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4045b5
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040ced9
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040ced9
push str.Process_opened_successfully._n
call fcn.0040ced9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call ebx
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x404614
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040ced9
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040ced9
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x404649
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x4045f9
push str.DLL_path_writen_successfully._n
call fcn.0040ced9
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x404601
test eax, eax
je 0x404601
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x404686
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x4045f9
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040ced9
add esp, 8
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x4046b4
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x4045f9
push str.DLL_Injected___n
call fcn.0040ced9
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
Function at 0x4070c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40726e
cmp byte [ebx + 0x49], 0
je 0x40726e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x407262
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407135
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407152
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407189
dec eax
je 0x40718d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x407269
call fcn.00401390
xor al, al
jmp 0x407270
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40719d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4071ca
cmp edi, 0x10
jae 0x4071ac
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d409
add esp, 0x10
cmp esi, eax
jne 0x40725a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x407266
test esi, esi
jne 0x407146
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40728b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40728b
cmp edi, esi
jae 0x407243
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401830
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407146
mov ecx, eax
cmp edi, 0x10
jae 0x40721f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40723a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407140
test esi, esi
jne 0x407215
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407252
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407140
lea ecx, [ebp - 0x2c]
call fcn.00401390
xor al, al
jmp 0x407270
lea ecx, [ebp - 0x2c]
call fcn.00401390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b37d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040a898
int3