joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef87c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
sub esp, 0xb0
cmp eax, 1
push esi
push edi
je 0x4ef89f
cmp eax, 2
je 0x4ef8ac
mov eax, 0xe
jmp 0x4ef974
push dword [ebp + 8]
call fcn.004f0890
jmp 0x4ef974
xor edi, edi
mov esi, dword [ebp + 8]
mov al, byte [esi + edi]
test al, al
je 0x4ef8d0
movsx eax, al
push eax
inc edi
call fcn.004fa873
add esp, 4
add al, 7
mov byte [ebp + edi - 0x4d], al
cmp edi, 0x32
jl 0x4ef8b1
push str.softwareclasses_vdsp
lea eax, [ebp - 0xb0]
mov byte [ebp + edi - 0x4c], 0
push eax
call fcn.004fb270
add esp, 8
cmp byte [esi], 0x3a
jne 0x4ef923
xor eax, eax
cmp byte [esi + 4], 0x3a
je 0x4ef909
mov cl, byte [esi + eax + 4]
inc eax
cmp byte [esi + eax + 4], 0x3a
mov byte [ebp + eax - 0xb1], cl
jne 0x4ef8f6
mov byte [ebp + eax - 0xb0], 0
add eax, esi
lea ecx, [ebp - 0x4c]
add eax, 5
push eax
push ecx
call fcn.004fb270
add esp, 8
lea eax, [ebp - 4]
lea ecx, [ebp - 0xb0]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4ef94b
mov eax, 0x2a
jmp 0x4ef974
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov eax, 0x2b
jne 0x4ef974
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 1
sbb eax, eax
and al, 0xd5
add eax, 0x2c
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f076f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4f080b
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ecx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x16], ax
push esi
mov word [ebp - 0x12], dx
mov ecx, dword [ecx + 8]
mov word [ebp - 0x18], cx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x10], ax
mov ecx, dword [ecx + 8]
mov word [ebp - 0xe], dx
lea eax, [ebp - 8]
mov word [ebp - 0xc], cx
push eax
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
mov eax, 0
je 0x4f088b
lea eax, [ebp - 8]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fb360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4fb380
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fcbfb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4fb3a3
test byte [esp + 8], 2
je 0x4fb3a3
call fcn.004fcc6e
mov dword [eax], 0xd
call fcn.004fcc77
mov dword [eax], 5
jmp 0x4fb37c
xor eax, eax
ret
Function at 0x5040d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5afeb0
cmp edx, dword [eax]
je 0x5040f9
add eax, 8
inc ecx
cmp eax, 0x5aff40
jl 0x5040ea
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5afeb0]
jne 0x504227
mov eax, dword [0x5bf8a0]
cmp eax, 1
je 0x504201
test eax, eax
jne 0x50412a
cmp dword [0x5ad364], 1
je 0x504201
cmp edx, 0xfc
je 0x504227
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x504161
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004fb270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004fb440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5041a4
lea eax, [ebp - 0x1a4]
push eax
call fcn.004fb440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x599408
push edi
call fcn.004f9fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004fb270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004fb280
lea eax, [ebp - 0xa0]
push 0x5a6f94
push eax
call fcn.004fb280
push dword [esi + 0x5afeb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004fb280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00507c9d
add esp, 0x2c
pop edi
jmp 0x504227
lea eax, [ebp + 8]
lea esi, [esi + 0x5afeb4]
push 0
push eax
push dword [esi]
call fcn.004fb440
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x50d5d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004faf00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50d69b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x50d69b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x50d64e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x50d659
or bh, 8
and edi, 0x8000000
je 0x50d674
mov eax, dword [0x5c109c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x50d69b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50da70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50da9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x50dabf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x50dada
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x513df9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x513e31
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00512d8b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00512d63
jmp 0x513e3d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x515971
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5159b3
call fcn.0052bb7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5159b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5159aa
xor eax, eax
jmp 0x5159bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005159c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x5182ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x51830e
cmp dword [edi + 0x3c], 0
jne 0x51830e
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0052bb7d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0051833b
pop edi
pop esi
pop ebx
ret 8

Function at 0x51bd3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x557ce4
call fcn.004fb874
push ecx
push ecx
push esi
push 0x10
call fcn.00516a15
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x51bd89
mov ecx, esi
call fcn.00516a49
mov eax, dword [0x5ab980]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.00512a6d
jmp 0x51bd8b
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x58fd58
push eax
mov dword [ebp - 0x10], esi
call fcn.004f9e66
pop esi

Function at 0x52a9ee
Capabilities:
Create http request

Disassembly:
mov eax, 0x557858
call fcn.004fb874
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x52aa26
call fcn.0052bb7d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x52aa4b
push eax
push dword [esi + 4]
call fcn.0052b65f
jmp 0x52aa57
push esi
push eax
mov ecx, 0x5bf4f0
call fcn.0052aa68
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x52abc8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x557893
call fcn.004fb874
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00516bdf
mov eax, dword [0x5ab980]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5bf4f0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0052aa68
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00512a6d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004f255c
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00512a1d
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005128e4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40633c
pop dword [ebp - 0x18]
mov eax, 0x3a0a046b
add eax, 0xc6365ed1
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xfea721e3
sub dword [ebp - 0x28], 0xb054dc98
mov dword [ebp - 0x24], 0x2b76f07b
sub dword [ebp - 0x24], 0xf943a436
mov dword [ebp - 0x20], 0x84909b88
add dword [ebp - 0x20], 0xc7bba8a6
mov dword [ebp - 0x1c], 0x6b13ddf1
sub dword [ebp - 0x1c], 0x6b13ddf1
lea eax, [ebp - 0x28]
push eax
mov eax, 0x7b1d8614
add eax, 0x8522ea4c
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x717cf53e
sub dword [ebp - 0x28], 0xfd0a8be8
mov dword [ebp - 0x24], 0x8838c473
add dword [ebp - 0x24], 0xb9339d02
mov dword [ebp - 0x20], 0x21e492aa
add dword [ebp - 0x20], 0x418ad9c2
mov dword [ebp - 0x1c], 0x19434b8f
sub dword [ebp - 0x1c], 0x19434b8f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3838d
push 0
call eax
mov ecx, 0xc654e324
sub ecx, 0xc65494ba
xor edi, edi
add edi, eax
mov edx, 0x5eaa8b75
add edx, 0xa196748b
add edx, dword [ebp - 0x18]
mov esi, 0x1de5d3c9
add dword [ebp - 4], 0x9242cfe6
mov ebx, dword [edx]
xor dword [ebp - 0x14], ebx
add ebx, esi
add dword [ebp - 0x10], edi
mov dword [edi], ebx
sub dword [ebp - 8], esi
add edi, 4
add edx, 0x3f834fb3
sub edx, 0x3f834faf
loop 0x406455
add eax, 0xd472f7eb
sub eax, 0xd471cb70
xor ebx, ebx
add ebx, eax
add eax, 0xeba9a210
add eax, 0x14565df5
mov ecx, 0x5b5b8506
add ecx, 0xa4e47afa
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1001e3c4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x1001e3c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001e3d3
pop dword [ebp - 8]
mov eax, 0x17be7b29
add eax, 0xf84368aa
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x43858
push 0
mov eax, 0x950e6520
sub eax, 0x850b73c4
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4da8d8dd
sub ecx, 0x4da883db
mov edx, eax
mov ebx, 0x552236d8
add ebx, 0xbae27528
add ebx, dword [ebp - 8]
mov edi, 0x19973cc3
sub edi, 0xb3cb412e
xor dword [ebp - 4], 0xf7f8d8fc
mov esi, dword [ebx]
xor esi, edi
mov dword [edx], esi
add dword [ebp - 4], 0xf238af15
add edx, 0x578a5870
add edx, 0xa875a794
add ebx, 4
loop 0x1001e432
add eax, 0x146db
mov ebx, eax
add eax, 0xeb59c3c8
add eax, 0x14a63c3d
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401022
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40b7a8
push 0x407d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x40e008]
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 edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x4010c5
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4010c5
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x4010c5
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x4010c5
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x4010ce
mov dword [ebp - 4], 0xfffffffe
xor al, al
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.00407d62
mov esp, ebp
pop ebp
ret
Function at 0x401382
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x40144b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x4013c8
sub edi, 0x8000000
jmp 0x401443
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40144b
cmp dword [ebp - 0x10], 0x10000
jne 0x40142e
cmp dword [ebp - 0x14], 0x10000
jb 0x40142e
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x401504
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x40144b
sub edi, 0x10000
jmp 0x401443
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x4013b3
movzx eax, si
test eax, eax
je 0x40145a
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x401502
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x401485
add esi, 0x8000000
jmp 0x4014fa
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x401502
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x4014e5
cmp ecx, 0x10000
jb 0x4014e5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x401504
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x401502
add esi, 0x10000
jmp 0x4014fa
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4014fa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x401470
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407d62
mov esp, ebp
pop ebp
ret
Function at 0x401592
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40e008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x40e774], 0
jne 0x40161b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x40e774
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x40161b
push esi
mov esi, dword [0x40e780]
mov dword [0x40e788], eax
mov dword [0x40e784], eax
mov dword [0x40e77c], eax
push edi
test esi, esi
je 0x4015fc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x401613
mov esi, dword [esi + 4]
test esi, esi
jne 0x4015e3
xor eax, eax
pop edi
mov dword [0x40e770], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d62
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4015fe
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.00407d62
mov esp, ebp
pop ebp
ret
Function at 0x401ac5
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x40e770]
push esi
mov esi, ecx
test eax, eax
jne 0x401b2e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x401ada
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.00407d75
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x401b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.00407daa
add esp, 8
mov dword [0x40e770], esi
mov eax, esi
mov dword [0x40e77c], 0
pop edi
pop esi
ret
mov eax, dword [0x40e784]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x40e784], edi
pop edi
pop esi
ret