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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100642c5
mov eax, dword [eax + 2]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100642c5
push ebx
lea ebx, [eax - 4]
test ebx, ebx
je 0x100642c4
mov eax, dword [ebx + 4]
test eax, eax
je 0x100642c4
cmp eax, 0xc8
jg 0x100642c4
cmp dword [ebx], 0
je 0x100642c4
push esi
mov esi, dword [ebx + 8]
test esi, esi
je 0x100642c3
push edi
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100641b8
xor edx, edx
test ecx, ecx
je 0x100641d6
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100641c5
mov dword [ebp - 8], edi
cmp dword [ebx + 4], 0
mov dword [ebp - 0x18], 0
jle 0x100642c2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx]
add ebx, eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x100642a9
mov edi, 0x811c9dc5
xor eax, eax
inc eax
cmp byte [esi + eax], 0
jne 0x10064208
xor edx, edx
test eax, eax
je 0x10064226
movsx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x10064215
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
mov ecx, 0x10452940
call fcn.100541c0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100541a0
cmp dword [eax + 8], 0
jne 0x100642a3
lea eax, [ebp - 8]
mov ecx, 0x10452940
push eax
call fcn.100541c0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100541a0
mov ecx, 0x10452940
mov byte [eax], 1
lea eax, [ebp - 8]
mov esi, dword [ebx + 8]
push eax
call fcn.100541c0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100541a0
mov ecx, 0x10452940
mov dword [eax + 8], esi
lea eax, [ebp - 8]
push eax
call fcn.100541c0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100541a0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea ebx, [ecx - 4]
inc esi
add eax, 0x3c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp esi, dword [ebx + 4]
jl 0x100641f2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cb949
mov esp, ebp
pop ebp
ret 4
Function at 0x1009c460
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
vpxor xmm0, xmm0, xmm0
xor edx, edx
mov dword [ebp - 0x2c], 0
mov edi, 0xf
mov dword [ebp - 0x18], edx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1009c56c
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1009c4e3
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1009c4d1
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10037220
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1009c4fd
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1009c50a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047400
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x1009c544
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x1009c530
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x1009c554
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1009c567
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1009c56c
mov edi, dword [ebp - 0x14]
jmp 0x1009c4c0
mov esi, dword [esi + 0x18]
jmp 0x1009c56e
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1009c5a6
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1009c59c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009c59c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100cbdc9
add esp, 8
mov eax, esi
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.100cb949
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1009c5d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
vpxor xmm0, xmm0, xmm0
xor edx, edx
mov dword [ebp - 0x2c], 1
mov edi, 0xf
mov dword [ebp - 0x18], edx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1009c6dc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1009c653
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1009c641
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10037220
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1009c66d
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1009c67a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10047400
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x1009c6b4
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x1009c6a0
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x1009c6c4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1009c6d7
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1009c6dc
mov edi, dword [ebp - 0x14]
jmp 0x1009c630
mov esi, dword [esi + 0x18]
jmp 0x1009c6de
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1009c716
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1009c70c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009c70c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100cbdc9
add esp, 8
mov eax, esi
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.100cb949
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1009e070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5180
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
jmp 0x1009e233
push 0
push 0
push 0
push 0x10044120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1009e261
mov eax, 1
jmp 0x1009e263
xor eax, eax
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.100cb949
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b3790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100b3921
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100b3921
mov eax, dword [0x1044ea88]
cmp dword [eax + 0x174], 0xffffffff
je 0x100b3921
mov eax, dword [0x10452aac]
add eax, 0xffffff8f
xor eax, 0x83be024e
cmp dword [eax + ebx], 0
mov eax, dword [0x10452a74]
setle cl
add eax, 0xffffff9d
xor eax, 0x83be0240
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10452a68]
add eax, 0xffffffa0
xor eax, 0x83be023d
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10452a6c]
add eax, 0xffffff9f
xor eax, 0x83be023e
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x10452a70]
lea eax, [ecx - 0x62]
xor eax, 0x83be023f
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100b387e
lea eax, [ecx - 0x62]
xor eax, 0x83be023f
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100b3876
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100b386a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100b3867
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x10452a70]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100b3833
lea eax, [ecx - 0x62]
xor eax, 0x83be023f
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x1044ea9c]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100b3912
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100b38d6
xor edx, edx
test ecx, ecx
je 0x100b38fc
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100b38e3
cmp edi, 0x79705c5e
je 0x100b3907
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100b3912
mov ecx, dword [ebp - 4]
jmp 0x100b38c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100b3914
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x1044ebf4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b88a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d607d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1044ea88]
mov edx, dword [eax + 0x174]
test edx, edx
mov esi, dword [eax + 0x4cb0]
mov edi, dword [eax + 0x4cb4]
setg byte [ebp - 0x14]
add esi, dword [eax + 0x4cac]
test edx, edx
jle 0x100b8904
mov ecx, dword [0x1044ea2c]
push esi
push edi
push dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x10452c5c], 0
jne 0x100b89d9
push 0x22
vpxor xmm0, xmm0, xmm0
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
vmovdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.10034420
mov dword [ebp - 4], 0
mov eax, dword [0x1044e9dc]
test eax, eax
je 0x100b894c
mov edx, dword [eax + 0x50]
jmp 0x100b894e
xor edx, edx
mov eax, dword [0x1044e9d4]
test eax, eax
je 0x100b895c
mov eax, dword [eax + 0x18]
jmp 0x100b895e
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10035240
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x1c]
inc edi
cmp ecx, 0xf
jbe 0x100b89a8
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b899e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100b899e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100cbdc9
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x10452c5c], 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.100cb949
mov esp, ebp
pop ebp
ret
Function at 0x100cb3ae
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100cb3d5
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100cb3d8
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100cb38a
pop esi
leave
ret 8
Function at 0x401ba0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x2cc
mov ecx, eax
nop dword [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401bd0
push eax
mov dword [eax], 0x10010
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x401c19
cmp dword [ebp - 8], 0
je 0x401c19
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401c2b
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.0040a740
push 0x40a440
push dword fs:[0]
mov dword fs:[0], esp
push 0xbaad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov dword fs:[0], eax
add esp, 8
call fcn.0040acb0
call fcn.0040a460
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret

Function at 0x405b30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [ebp - 0x134], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x405bf5
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405bf2
mov eax, esi
lea ecx, [ebp - 0x10c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405bb0
test dl, dl
je 0x405bac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405bb0
add ecx, 2
add eax, 2
test dl, dl
jne 0x405b90
xor eax, eax
jmp 0x405bb5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405be0
push dword [ebp - 0x128]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405bda
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405b85
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edx, ebx
lea ecx, [ebp - 0x10c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x405c74
test al, al
je 0x405c70
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405c74
add ecx, 2
add edx, 2
test al, al
jne 0x405c54
xor eax, eax
jmp 0x405c79
sbb eax, eax
or eax, 1
test eax, eax
je 0x405cc9
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call esi
test eax, eax
je 0x405cdc
mov eax, ebx
lea ecx, [ebp - 0x10c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405cc0
test dl, dl
je 0x405cbc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405cc0
add ecx, 2
add eax, 2
test dl, dl
jne 0x405ca0
xor eax, eax
jmp 0x405cc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405c83
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret
Function at 0x406790
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e8b8
push 0x40b939
mov eax, dword fs:[0]
push eax
add esp, 0xffffffbc
mov eax, dword [0x410040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x406828
xor al, al
jmp 0x4068b1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x406853
xor al, al
jmp 0x4068b1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x40689e
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret
Function at 0x40a460
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40e8d8
push 0x40b939
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x410040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
or edi, 0xffffffff
mov dword [ebp - 0x124], edi
xor esi, esi
mov dword [ebp - 0x128], esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.0040a5a0
mov dword [ebp - 0x130], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a53c
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, 0xffffffff
je 0x40a53c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x40a53c
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 0x10]
push ecx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a576
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040b8b7
mov esp, ebp
pop ebp
ret
Function at 0x40a5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cb71
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x410040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x4104a8]
cmp eax, dword [edx + 4]
jle 0x40a666
push 0x4104a8
call fcn.0040bb07
add esp, 4
cmp dword [0x4104a8], 0xffffffff
jne 0x40a666
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [0x40dd14]
mov dword [ebp - 0x18], eax
mov ax, word [0x40dd18]
mov word [ebp - 0x14], ax
mov al, byte [0x40dd1a]
mov byte [ebp - 0x12], al
nop dword [eax]
mov eax, 0xa0a0a0a1
mov cl, bl
mul ebx
shr edx, 5
movsx eax, dl
imul eax, eax, 0x33
sub cl, al
add cl, 0x31
xor byte [ebp + ebx - 0x18], cl
inc ebx
cmp ebx, 7
jl 0x40a620
lea eax, [ebp - 0x18]
mov ecx, 0x4104ac
push eax
call fcn.00404c70
push 0x40cbe0
call fcn.0040bda7
push 0x4104a8
call fcn.0040bab6
add esp, 8
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
movzx eax, word [ecx + esi + 0x14]
lea edx, [ecx + esi]
add eax, 0x18
add edx, eax
movzx eax, word [ecx + esi + 6]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40a726
mov esi, dword [0x4104bc]
mov edi, edx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a698
sub ecx, edx
mov eax, 0x4104ac
cmp dword [0x4104c0], 0xf
cmova eax, dword [0x4104ac]
cmp esi, ecx
jne 0x40a716
mov edx, edi
sub esi, 4
jb 0x40a6d1
nop
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x40a6d6
add eax, 4
add edx, 4
sub esi, 4
jae 0x40a6c0
cmp esi, 0xfffffffc
je 0x40a70a
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40a703
cmp esi, 0xfffffffd
je 0x40a70a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40a703
cmp esi, 0xfffffffe
je 0x40a70a
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x40a703
cmp esi, 0xffffffff
je 0x40a70a
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x40a70a
sbb eax, eax
or eax, 1
jmp 0x40a70c
xor eax, eax
test eax, eax
je 0x40a723
mov esi, dword [0x4104bc]
inc ebx
add edi, 0x28
cmp ebx, dword [ebp - 0x10]
jl 0x40a693
mov edx, dword [ebp - 0x18]
lea eax, [ebx + ebx*4]
lea eax, [edx + eax*8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret