joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100039d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x100361da
call fcn.100219f3
mov edi, dword [ebp + 8]
mov eax, edi
and dword [ebp - 4], 0
sub eax, 1
je 0x100039f8
sub eax, 1
je 0x100039f8
push 6
jmp 0x100039fa
push 5
mov ebx, dword [ebp + 0x14]
pop eax
add ebx, eax
mov dword [ebp + 8], eax
push 0x100222a0
push ebx
call fcn.1000926d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10003af6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub ecx, eax
sub ecx, dword [ebp + 0xc]
cmp edi, 1
je 0x10003a31
push 2
pop edx
cmp edi, edx
jne 0x10003a34
xor edx, edx
inc edx
dec edi
cmp edi, 0xd
ja case.default.0x10003a3a
jmp dword [edi*4 + 0x10003b00]
mov byte [esi], 0xe9
jmp case.default.0x10003a3a
mov byte [esi], 0xe8
jmp case.default.0x10003a3a
mov word [esi], 0x840f
jmp case.default.0x10003a3a
mov word [esi], 0x850f
jmp case.default.0x10003a3a
mov word [esi], 0x8c0f
jmp case.default.0x10003a3a
mov word [esi], 0x8d0f
jmp case.default.0x10003a3a
mov word [esi], 0x8e0f
jmp case.default.0x10003a3a
mov word [esi], 0x8f0f
jmp case.default.0x10003a3a
mov word [esi], 0x820f
jmp case.default.0x10003a3a
mov word [esi], 0x830f
jmp case.default.0x10003a3a
mov word [esi], 0x860f
jmp case.default.0x10003a3a
mov word [esi], 0x870f
mov dword [edx + esi], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10003aaa
push ecx
add eax, esi
push 0x90
push eax
call fcn.1000a590
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x10003af6
push ebx
push esi
push dword [ebp + 0xc]
call fcn.1000bbb0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x10003af6
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.10008e2f
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10003b5b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
push edi
mov ecx, 0x100361da
call fcn.100219f3
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
mov dword [ebp + 8], eax
call fcn.1000fb3b
push 0
mov ebx, eax
call fcn.1000f754
push eax
call fcn.1000fae8
push edi
push esi
push ebx
call fcn.1000bbb0
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, ecx
mov ecx, dword [ebp - 4]
add esp, 0x18
sub eax, ecx
mov dword [ebx + edi], eax
lea eax, [ebp - 8]
mov edi, dword [ebp + 8]
push eax
push 0x40
push edi
push ecx
call esi
push edi
push ebx
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000bbb0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003c07
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x100361da
call fcn.100219f3
mov edx, esi
mov ecx, edi
call fcn.10003bdc
mov esi, dword [ebp + 8]
add edi, 5
push esi
call fcn.1000fb3b
pop ecx
mov ebx, eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10003c54
push esi
push 0x90
push ebx
call fcn.1000a590
add esp, 0xc
push esi
push ebx
push edi
call fcn.1000bbb0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10004de1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x100361da
call fcn.100219f3
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004e1f
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
leave
ret 0xc
Function at 0x10005cb0
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push 8
push 0x1002cbb8
call fcn.10009a40
mov ecx, 0x10036200
call fcn.100219f3
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10005d7d
sub eax, 1
jne 0x10005d93
lea eax, [ebp + 0xc]
push eax
push 0x40
mov ebx, 0x1effff
push ebx
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.10005c5c
mov ecx, eax
call fcn.1000138f
test al, al
je 0x10005d0e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10001ba9
call fcn.10003d6a
mov edx, 0x5d3418
lea ecx, [edx - 0x1b]
call fcn.10003bdc
mov edx, 0x5d3434
lea ecx, [edx - 0x1b]
call fcn.10003bdc
mov edx, 0x5d344c
lea ecx, [edx - 0x17]
call fcn.10003bdc
call fcn.10004cf3
push 2
mov edx, 0x10004529
mov ecx, 0x50c2eb
call fcn.10003c07
push 2
mov edx, 0x10004556
mov ecx, 0x50abb8
call fcn.10003c07
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10005d93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10005d93
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000c612
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100215b0
mov eax, dword [0x1002e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100118d8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000c654
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000c7b0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10021500
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002f3d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10011aa7
mov ecx, dword [esi*4 + 0x1002f3d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1000c7a9
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000c7a9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c7a9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10011aa7
add esp, 0x14
test edx, edx
jl 0x1000c7a9
jg 0x1000c71f
test eax, eax
jb 0x1000c7a9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000c7a9
jl 0x1000c739
cmp dword [ebp - 0x1008], eax
ja 0x1000c7a9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000c757
test ebx, ebx
je 0x1000c790
cmp ecx, edi
jae 0x1000c790
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000c771
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000c77d
cmp byte [ecx + 1], 0xa
jne 0x1000c77d
inc ecx
jmp 0x1000c77d
movzx eax, al
movsx eax, byte [eax + 0x1002e228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000c757
cmp edx, ebx
jne 0x1000c757
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000c7ae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008e21
leave
ret

Function at 0x1001037e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100103bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100103bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100103bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100103bd
cmp dword [ecx + 0x74], 0xe
jbe 0x100103bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012218
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002f3d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012258
cmp byte [ebx], 0xa
jne 0x10012258
or byte [edi + eax + 0x28], 4
jmp 0x1001225d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001235c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001233f
inc eax
cmp dl, 0xd
je 0x10012289
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100122af
cmp eax, ecx
jae 0x100122bd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10012271
jmp 0x1001235c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001233a
cmp dword [ebp - 0x10], 0
je 0x1001233a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002f3d0]
test byte [eax + edi + 0x28], 0x48
je 0x10012314
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100122ff
mov byte [esi], dl
jmp 0x10012310
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002f3d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001235c
cmp byte [ebp - 1], 0xa
jne 0x10012323
cmp esi, ebx
jne 0x10012323
mov byte [esi], 0xa
jmp 0x1001235b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10011ac5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001235c
mov byte [esi], 0xd
jmp 0x1001235b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002f3d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012359
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001235c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10012365
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002f3d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100123ab
cmp word [ebx], dx
jne 0x100123ab
or byte [eax + edi + 0x28], 4
jmp 0x100123b0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10012513
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100124f3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100123f1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012427
cmp eax, edx
jae 0x10012435
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100123cc
jmp 0x10012513
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100124ee
cmp dword [ebp - 0x18], 0
je 0x100124ee
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002f3d0]
test byte [eax + edi + 0x28], 0x48
je 0x100124c4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10012488
mov word [esi], cx
jmp 0x100124bf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002f3d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002f3d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002f3d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10012513
pop eax
cmp word [ebp - 4], ax
jne 0x100124d4
cmp esi, ebx
jne 0x100124d4
mov word [esi], ax
jmp 0x10012510
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10011ac5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10012513
push 0xd
pop eax
jmp 0x100124cf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002f3d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001250d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10012513
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10015b78
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023db8
push 0x10023db0
push str.FlsAlloc
push 0x1f
call fcn.10015a37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015bac
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022178]
call esi
jmp 0x10015bb2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015bf6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023dc8
push 0x10023dc0
push str.FlsGetValue
push 0x21
call fcn.10015a37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015c2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015c35
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023dd0
push 0x10023dc8
push str.FlsSetValue
push 0x22
call fcn.10015a37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015c6f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10022178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018b62
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10018bff
push ebx
push esi
call fcn.10018b2b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10018abf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018bac
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018bfe
push edi
push eax
call fcn.10014526
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10018bcc
call fcn.1001336c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10018bfd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018abf
add esp, 0x20
test eax, eax
jne 0x10018beb
push edi
call fcn.1001336c
jmp 0x10018bf3
push ebx
call fcn.1001336c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10018c02
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10018c13
pop esi
ret
push ebx
push edi
push esi
call fcn.10018b2b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10014526
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10018c3b
push ebx
push esi
push edi
call fcn.1000bbb0
add esp, 0xc
push 0
call fcn.1001336c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10019395
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018eb0
Function at 0x1001e4a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001e41d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001e610
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001e610
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001e5c5
jg 0x1001e4fd
test eax, eax
je 0x1001e5bb
push 1
push 0x1000
call fcn.100158a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001e520
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e5b2
push 0x8000
push ebx
call fcn.1001e34e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001e549
jg 0x1001e544
cmp ecx, 0x1000
jb 0x1001e549
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100168ee
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001e58e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001e544
jl 0x1001e575
test ecx, ecx
jne 0x1001e536
push dword [ebp - 0xc]
push ebx
call fcn.1001e34e
push esi
call fcn.1001336c
add esp, 0xc
xor ebx, ebx
jmp 0x1001e61e
cmp byte [edi + 0x24], 0
je 0x1001e5a5
cmp dword [edi + 0x20], 5
jne 0x1001e5a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001e5b0
mov ebx, dword [edi + 0x18]
jmp 0x1001e5b2
xor ebx, ebx
push esi
call fcn.1001336c
pop ecx
jmp 0x1001e61e
test ecx, ecx
jg 0x1001e587
jl 0x1001e5c5
test eax, eax
jae 0x1001e587
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10011ac5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001e5e5
cmp byte [edi + 0x1c], 0
je 0x1001e587
jmp 0x1001e616
push ebx
call fcn.10019c5f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001e587
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e61e
cmp byte [edi + 0x1c], 0
je 0x1001e61b
mov ebx, dword [edi + 0x18]
jmp 0x1001e61e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10011ac5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10021450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002147d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002147d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10005080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10027380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push esi
mov esi, dword [0x10028e7c]
push edi
push eax
push 0x40
push 5
push esi
mov dword [ebp - 8], 0
call ebx
mov eax, dword [esi]
mov ecx, 0x10005150
mov dword [0x10028e88], eax
sub ecx, esi
mov al, byte [esi + 4]
sub ecx, 5
mov byte [0x10028e8c], al
mov eax, ecx
mov byte [esi], 0xe9
mov byte [esi + 1], cl
shr eax, 8
mov byte [esi + 2], al
mov eax, ecx
push 0x40
push 0x3000
shr eax, 0x10
push 5
shr ecx, 0x18
mov byte [esi + 3], al
push 0
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1000510e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c7de
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov byte [edi], 0xe9
sub ecx, edi
mov byte [edi + 1], cl
mov eax, ecx
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x10
push 0
mov byte [edi + 3], al
shr ecx, 0x18
mov byte [edi + 4], cl
push dword [ebp - 8]
push 5
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c7de
mov esp, ebp
pop ebp
ret
Function at 0x10008c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10027380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x220], eax
push esi
push edi
test eax, eax
je 0x10008e20
xor eax, eax
mov dword [ebp - 0x218], 0
xor edx, edx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
pushal
mov eax, dword fs:[0x30]
mov dword [ebp - 0x218], eax
popal
mov eax, dword [ebp - 0x218]
xor edi, edi
mov ecx, dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x224], ecx
sub eax, 0
je 0x10008d1a
sub eax, 1
je 0x10008cfe
sub eax, 1
jne 0x10008d33
lea ebx, [ecx + 0x1c]
mov ecx, 0x10
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10008d3f
lea ebx, [ecx + 0x14]
mov ecx, 8
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10008d3f
lea ebx, [ecx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], ecx
jmp 0x10008d3f
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x210]
cmp esi, ebx
je 0x10008de8
nop
mov edx, esi
mov dword [ebp - 0x20c], esi
sub edx, ecx
xor eax, eax
movzx ecx, word [edx + 0x24]
test ecx, 0xfffffffe
jbe 0x10008d87
cmp eax, 0x200
jge 0x10008d8c
mov ecx, dword [edx + 0x28]
mov cl, byte [ecx + eax*2]
mov byte [ebp + eax - 0x204], cl
inc eax
movzx ecx, word [edx + 0x24]
shr ecx, 1
cmp eax, ecx
jl 0x10008d68
cmp eax, 0x200
jae 0x10008e31
push dword [ebp - 0x220]
mov byte [ebp + eax - 0x204], 0
lea eax, [ebp - 0x204]
push eax
call fcn.1000e6f0
add esp, 8
test eax, eax
je 0x10008dd6
test edi, edi
jne 0x10008dc7
mov eax, esi
sub eax, dword [ebp - 0x208]
mov dword [ebp - 0x214], eax
mov edi, eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov esi, eax
mov ecx, dword [ebp - 0x208]
cmp eax, ebx
jne 0x10008d50
mov eax, dword [ebp - 0x21c]
inc eax
mov dword [ebp - 0x21c], eax
cmp eax, 3
jge 0x10008e05
mov ecx, dword [ebp - 0x224]
jmp 0x10008cd3
mov edx, dword [ebp - 0x214]
test edx, edx
je 0x10008e20
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x3c]
mov dword [ecx], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c7de
mov esp, ebp
pop ebp
ret
call fcn.1000cd77
int3