joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.00426e10
push ebx
mov ebx, dword [esp + 0x10028]
push ebp
push esi
push edi
xor eax, eax
jmp 0x4120d0
mov cl, byte [eax + 0x48cf58]
mov dl, byte [eax + 0x48cf50]
mov byte [esp + eax + 0x1c], cl
mov byte [esp + eax + 0x24], dl
inc eax
cmp eax, 8
jl 0x4120d0
lea eax, [esp + 0x10]
push 0x482320
push eax
call fcn.00415840
push 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00413560
add esp, 0x14
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
push eax
push 0x10000
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.00416817
add esp, 0x10
cmp eax, 0x18
jl 0x41217e
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x412161
xor edx, edx
lea esp, [esp]
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x42a52e
cmp ecx, 0x14
je 0x42a5ad
inc edx
cmp edx, edi
jl 0x412140
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push 1
lea edx, [ecx + ebp - 0x14]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x24], edx
call fcn.004161ad
add esp, 0xc
jmp 0x412115
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
jne 0x42a57a
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
jne 0x42a587
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x42a596
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
mov ebx, dword [esp + 0x10034]
jne 0x42a5a5
add ecx, 5
cmp ecx, 0x14
jge 0x412156
jmp 0x412146
mov ebx, dword [esp + 0x10034]
inc ecx
jmp 0x412153
mov ebx, dword [esp + 0x10034]
add ecx, 2
jmp 0x412153
mov ebx, dword [esp + 0x10034]
add ecx, 3
jmp 0x412153
add ecx, 4
jmp 0x412153
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push 0
lea edx, [ecx + edx + 0x14]
push edx
push eax
call fcn.004161ad
mov ecx, dword [ebx]
push ecx
push 4
lea edx, [esp + 0x24]
push 1
push edx
call fcn.00416817
lea eax, [esp + 0x2c]
push 0x482310
push eax
mov byte [esp + 0x38], 0
call fcn.00415e60
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x412183

Function at 0x4372a5
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4372bb
cmp eax, 0x10000
jne 0x4372df
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00416817
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret 4

Function at 0x4372f9
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x437328
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00416402
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4
Function at 0x43732c
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x43737b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00416402
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x437424
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x43744a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00413560
add esp, 0xc
jmp 0x43745f
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00416817
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push 0x482310
push ecx
mov byte [esp + 0x10], 0
call fcn.00415e60
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

Function at 0x446b8c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412e88
mov ebx, eax
mov eax, dword [esi]
add eax, dword [esp + 0x18]
lea ebp, [edi + edi]
push ebp
push eax
push ebx
call fcn.00413560
add dword [esi], ebp
xor ecx, ecx
add esp, 0x10
xor eax, eax
mov word [ebx + ebp], cx
test edi, edi
jle 0x446be8
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x446bdf
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8
Function at 0x44c1da
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xdc
push ebx
mov ebx, dword [esp + 0xe4]
push esi
push edi
mov edi, dword [esp + 0xf0]
lea eax, [esp + 0x10]
push eax
call fcn.0044493f
mov ecx, dword [esp + 0xf4]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00444899
xor esi, esi
test edi, edi
jbe 0x44c22c
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
call fcn.00444911
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44c21a
pop edi
pop esi
pop ebx
add esp, 0xdc
ret 0xc
Function at 0x454545
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x434
push ebx
push esi
mov esi, dword [esp + 0x440]
push edi
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00416817
add esp, 0x10
push 0x18ee
push 4
lea edx, [esp + 0x1c]
push edx
call fcn.0044c1da
lea eax, [esp + 0x14]
push 0x482338
push eax
mov byte [esp + 0x20], 0
call fcn.00415e60
add esp, 8
test eax, eax
jne 0x4546be
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00416817
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.00416817
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [esp + 0x28]
push edx
call fcn.0044c1da
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
xor eax, eax
push edx
mov word [esp + ebx + 0x28], ax
call fcn.00413146
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00416817
mov edi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [esp + 0x40]
push 1
push eax
call fcn.00416817
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.0044c1da
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x20]
push eax
xor edx, edx
push ecx
mov word [esp + ebx + 0x28], dx
call fcn.00413146
mov edx, dword [esp + 0x450]
push edx
lea eax, [esp + 0x23c]
push eax
call fcn.0041515e
add esp, 0x10
test eax, eax
je 0x4546b0
mov ecx, dword [esi]
push 1
push 1
push ecx
call fcn.004161ad
mov edx, dword [esi]
add esp, 0xc
push edx
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00416817
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
xor eax, 0x87bc
mov dword [esp + 0x2c], eax
push 1
add eax, 0x18
push eax
push ecx
call fcn.004161ad
add esp, 0x1c
jmp 0x454555
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x434
ret 0xc
pop edi
pop esi
mov eax, 6
pop ebx
add esp, 0x434
ret 0xc
Function at 0x4546cf
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x688
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x69c]
push esi
mov esi, dword [esp + 0x698]
push edi
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x478], eax
mov eax, dword [esi + 4]
mov word [esp + 0x48], cx
mov ecx, dword [esi]
push eax
xor edx, edx
push ecx
mov word [esp + 0x25a], dx
mov dword [esp + 0x28], 1
call fcn.004161ad
add esp, 0xc
lea edx, [esp + 0x488]
push edx
push 0x480108
push esi
call fcn.00454545
test eax, eax
je 0x454766
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x688
ret 0xc
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call fcn.00416817
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.00416817
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x40]
push 4
push edx
xor edi, 0x87bc
call fcn.00416817
mov ecx, dword [esi]
mov eax, dword [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x50]
xor eax, 0x87bc
push 4
push edx
mov dword [ebp], eax
call fcn.00416817
mov eax, dword [esi]
mov ebx, dword [esp + 0x58]
add esp, 0x40
push 1
push 0x10
push eax
xor ebx, 0xa685
call fcn.004161ad
mov ecx, dword [ebp]
add esp, 0xc
push ecx
call fcn.004156da
add esp, 4
push edi
mov dword [esp + 0x18], eax
call fcn.004156da
mov edx, dword [esi]
add esp, 4
push edx
push 1
mov ebp, eax
push edi
push ebp
call fcn.00416817
mov eax, dword [esi + 8]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push ebp
call fcn.0044c1da
push edi
push ebp
lea ecx, [esp + 0x24]
push ecx
call fcn.004374b0
cmp ebx, dword [esp + 0x1c]
je 0x454850
mov edx, dword [esp + 0x14]
push edx
call fcn.00415938
add esp, 4
push ebp
call fcn.00415938
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x688
ret 0xc
cmp byte [esp + 0x13], 1
jne 0x4548b0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [esp + 0x474], eax
mov eax, 1
mov word [esp + 0x44], cx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
xor edx, edx
push ecx
mov word [esp + 0x252], dx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
call fcn.0044c393
push ebp
call fcn.00415938
jmp 0x4548be
mov edx, dword [esp + 0x14]
push edx
call fcn.00415938
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x6a4]
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x688
ret 0xc
Function at 0x401bb0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.00409280
mov eax, dword [0x40f484]
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 sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401bfb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x401cc3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x401caf
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401caf
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401caf
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c92
test dl, dl
je 0x401c8e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c92
add eax, 2
add ecx, 2
test dl, dl
jne 0x401c72
xor eax, eax
jmp 0x401c97
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401ca8
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 0x401c10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.004091ae
mov esp, ebp
pop ebp
ret

Function at 0x401ce0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x104]
push str._s.
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea ecx, [ebp - 0x104]
push str._s_s
push ecx
call ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 0x14
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d27
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091ae
mov esp, ebp
pop ebp
ret
Function at 0x401f50
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, 0x10c
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x401fa2
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401fd8
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push edi
push str._PROCESS_INJECTION__n
call esi
push str.Process_opened_successfully._n
call esi
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x402032
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call esi
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret
push edi
push str.Memory_allocate_at_0x_X_n
call esi
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402068
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x40201a
push str.DLL_path_writen_successfully._n
call esi
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x40201f
test eax, eax
je 0x40201f
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x4020a6
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x40201a
push eax
push str.LoadLibraryA_address_at_0x_X_n
call esi
mov edx, dword [ebp - 0x10c]
add esp, 8
push 0
push 0
push edi
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x4020d7
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x40201a
push str.DLL_Injected___n
call esi
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004091ae
mov esp, ebp
pop ebp
ret
Function at 0x4039b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x403ad7
cmp byte [edi + 0x49], 0
je 0x403ad7
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x403acb
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 0x403a26
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x403a46
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403a6b
dec eax
je 0x403a6f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x403ac6
jmp 0x403ad2
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x403a7f
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x403aa9
cmp edx, 0x10
jae 0x403a8e
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403ac3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x403acf
test esi, esi
jne 0x403a3a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401550
jmp 0x403a34
lea ecx, [ebp - 0x2c]
call fcn.00401430
xor al, al
jmp 0x403ad9
lea ecx, [ebp - 0x2c]
call fcn.00401430
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret
Function at 0x404a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409e18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x40f484]
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 + 0x40b764]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x7c], dl
jns 0x404ad0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3e
jl 0x404ab3
push 0x504bd4
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 0x40b760
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401600
push 5
mov dword [ebp - 4], ebx
call fcn.00401ea0
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404b21
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 1
push 0x40b75c
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 5
call fcn.00401ea0
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404b52
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 1
push 0x40b75c
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 5
call fcn.00401ea0
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404b83
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 1
push 0x40b75c
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 5
call fcn.00401ea0
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404bb4
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 1
push 0x40b75c
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 5
call fcn.00401ea0
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404be5
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b30
push 1
push 0x40b758
lea ecx, [ebp - 0x2c]
call fcn.00403b30
mov ecx, 0x5b
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x40b748]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x404c2d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x404c10
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov byte [ebp - 0x2f], bl
cmp dword [ebp - 0x18], esi
jae 0x404c46
lea eax, [ebp - 0x2c]
mov ecx, dword [0x504bd4]
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 [0x504bd4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x404c7b
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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.004091ae
mov esp, ebp
pop ebp
ret
Function at 0x405d30
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 0x40a0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
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 0x405eac
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x40b3f4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405eac
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x405eac
lea edx, [ebp - 0x110]
push edx
call fcn.00401e20
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401e20
mov ecx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + ecx + 0x1f3a7]
push eax
lea edx, [ebp - 0x5f8]
push 0x40ba48
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
sub esp, 8
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 0x405e37
sub eax, esi
push eax
lea eax, [ebp - 0x5f8]
push eax
call fcn.00401600
lea ecx, [ebp - 0x614]
push ecx
call fcn.00407840
add esp, 0x20
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x405e6f
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.00405110
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x405e94
mov edx, dword [ebp - 0x614]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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 esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret