joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102d880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x102d89a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x102d8a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102d890
mov eax, 1
add ebx, ebx
jne 0x102d8b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x102d8a8
jne 0x102d8c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x102d8a8
xor ecx, ecx
sub eax, 3
jb 0x102d8d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102d94a
mov ebp, eax
add ebx, ebx
jne 0x102d8e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x102d8f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x102d914
inc ecx
add ebx, ebx
jne 0x102d900
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x102d8f5
jne 0x102d911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x102d8f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102d934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102d925
jmp 0x102d896
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102d934
add edi, ecx
jmp 0x102d896
pop esi
mov edi, esi
mov ecx, 0x9f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102d952
cmp byte [edi], 1
jne 0x102d952
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 0x102d957
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x102d9c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d6b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d7dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x102d984
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d7e0]
or eax, eax
je 0x102d9c0
mov dword [ebx], eax
add ebx, 4
jmp 0x102d9a1
call dword [esi + 0x2d7f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x102d9f7
cmp al, 0xef
ja 0x102d9ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x102d9cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x102d9d9
mov ebp, dword [esi + 0x2d7e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x102da2b
sub esp, 0xffffff80
jmp 0x10033f7
Function at 0x10001430
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1001b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.10003e20
test eax, eax
jne 0x10001651
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10001646
sub eax, 1
jne 0x10001651
push edi
push 0x10014230
push 0x1001426c
push esi
mov dword [0x1001ba08], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100014be
xor ecx, ecx
mov dword [ebp - 0x214], eax
xorps xmm0, xmm0
mov dword [ebp - 0x210], eax
movups xmmword [ebp - 0x224], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100014a2
sub ecx, edx
push ecx
push 0
lea ecx, [ebp - 0x224]
call fcn.10001080
jmp 0x1000156c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x10001504
xor ecx, ecx
mov dword [ebp - 0x214], eax
xorps xmm0, xmm0
mov dword [ebp - 0x210], eax
movups xmmword [ebp - 0x224], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100014f6
sub ecx, edx
push ecx
push 0
jmp 0x10001560
push dword [ebp - 0x228]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x228]
mov edi, eax
push ebx
push edi
call fcn.10005ba0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x228]
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
movups xmmword [ebp - 0x224], xmm0
mov dword [ebp - 0x210], 0
push edi
lea ecx, [ebp - 0x224]
call fcn.10001080
pop ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1001ba10
push 0
push str.nss.npa
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x1001428c
push 0x1001ba10
call fcn.10008303
cmp dword [ebp - 0x210], 0xf
lea ecx, [ebp - 0x224]
mov esi, eax
cmova ecx, dword [ebp - 0x224]
push esi
push dword [ebp - 0x214]
push 1
push ecx
call fcn.10008734
push esi
call fcn.1000843f
add esp, 0x1c
call fcn.10003c30
call fcn.10002ee0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.100033c0
push 0x10001230
push 0x1001bc18
call fcn.10002960
push 0x100012b0
push 0x1001bc1c
call fcn.10002960
call fcn.10002f40
mov ecx, dword [ebp - 0x210]
pop edi
cmp ecx, 0xf
jbe 0x10001651
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000163a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001667
push ecx
push edx
call fcn.10004bef
add esp, 8
jmp 0x10001651
push 0x1001ba10
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10004c06
mov esp, ebp
pop ebp
ret 0xc
call fcn.100081fc
int3
Function at 0x10001810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100019c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100018dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000185a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001b004]
ja 0x1000185a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000182a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10006120
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001880
jmp 0x100018dd
cmp dword [ebp - 0x14], 0x10000
jne 0x100018c3
cmp dword [ebp - 0x18], 0x10000
jb 0x100018c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100018b6
mov eax, dword [ebp - 8]
jmp 0x100018df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100018d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100019c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000182a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100019f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100019b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10001935
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001b004]
ja 0x10001935
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10001905
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10006120
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000195b
jmp 0x100019b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000199e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000199e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001991
mov eax, dword [ebp - 8]
jmp 0x100019b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100019b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100019f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001905
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10008d7a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008db9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008db9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008db9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008db9
cmp dword [ecx + 0x74], 0xe
jbe 0x10008db9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000d6d4
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 0x1000d771
push ebx
push esi
call fcn.1000d69d
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.1000d631
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d71e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d770
push edi
push eax
call fcn.1000ba8b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d73e
call fcn.1000a6b1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d76f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d631
add esp, 0x20
test eax, eax
jne 0x1000d75d
push edi
call fcn.1000a6b1
jmp 0x1000d765
push ebx
call fcn.1000a6b1
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 0x1000d9de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015cd0
push 0x10015cc8
push str.FlsAlloc
push 0x1f
call fcn.1000d8fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000da12
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014180]
call esi
jmp 0x1000da18
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000da5c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015ce0
push 0x10015cd8
push str.FlsGetValue
push 0x21
call fcn.1000d8fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000da93
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000da9b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015ce8
push 0x10015ce0
push str.FlsSetValue
push 0x22
call fcn.1000d8fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dad5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014180]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000fc6e
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 + 0x1001c1d8]
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 0x1000fcae
cmp byte [ebx], 0xa
jne 0x1000fcae
or byte [edi + eax + 0x28], 4
jmp 0x1000fcb3
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 0x1000fdb2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000fd95
inc eax
cmp dl, 0xd
je 0x1000fcdf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000fd05
cmp eax, ecx
jae 0x1000fd13
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 0x1000fcc7
jmp 0x1000fdb2
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 0x1000fd90
cmp dword [ebp - 0x10], 0
je 0x1000fd90
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1001c1d8]
test byte [eax + edi + 0x28], 0x48
je 0x1000fd6a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000fd55
mov byte [esi], dl
jmp 0x1000fd66
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1001c1d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000fdb2
cmp byte [ebp - 1], 0xa
jne 0x1000fd79
cmp esi, ebx
jne 0x1000fd79
mov byte [esi], 0xa
jmp 0x1000fdb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000fa67
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000fdb2
mov byte [esi], 0xd
jmp 0x1000fdb1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1001c1d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000fdaf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000fdb2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000fdbb
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 + 0x1001c1d8]
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 0x1000fe01
cmp word [ebx], dx
jne 0x1000fe01
or byte [eax + edi + 0x28], 4
jmp 0x1000fe06
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 0x1000ff69
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 0x1000ff49
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000fe47
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000fe7d
cmp eax, edx
jae 0x1000fe8b
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 0x1000fe22
jmp 0x1000ff69
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 0x1000ff44
cmp dword [ebp - 0x18], 0
je 0x1000ff44
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1001c1d8]
test byte [eax + edi + 0x28], 0x48
je 0x1000ff1a
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 0x1000fede
mov word [esi], cx
jmp 0x1000ff15
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1001c1d8]
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 + 0x1001c1d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1001c1d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000ff69
pop eax
cmp word [ebp - 4], ax
jne 0x1000ff2a
cmp esi, ebx
jne 0x1000ff2a
mov word [esi], ax
jmp 0x1000ff66
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000fa67
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000ff69
push 0xd
pop eax
jmp 0x1000ff25
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1001c1d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000ff63
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000ff69
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 0x10011201
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.1001117d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10011370
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10011370
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10011325
jg 0x1001125d
test eax, eax
je 0x1001131b
push 1
push 0x1000
call fcn.1000c156
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10011280
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10011312
push 0x8000
push ebx
call fcn.100110ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100112a9
jg 0x100112a4
cmp ecx, 0x1000
jb 0x100112a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000b4f0
add esp, 0x10
cmp eax, 0xffffffff
je 0x100112ee
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 0x100112a4
jl 0x100112d5
test ecx, ecx
jne 0x10011296
push dword [ebp - 0xc]
push ebx
call fcn.100110ae
push esi
call fcn.1000a6b1
add esp, 0xc
xor ebx, ebx
jmp 0x1001137e
cmp byte [edi + 0x24], 0
je 0x10011305
cmp dword [edi + 0x20], 5
jne 0x10011305
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10011310
mov ebx, dword [edi + 0x18]
jmp 0x10011312
xor ebx, ebx
push esi
call fcn.1000a6b1
pop ecx
jmp 0x1001137e
test ecx, ecx
jg 0x100112e7
jl 0x10011325
test eax, eax
jae 0x100112e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000fa67
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10011345
cmp byte [edi + 0x1c], 0
je 0x100112e7
jmp 0x10011376
push ebx
call fcn.1000f6a0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100112e7
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 0x1001137e
cmp byte [edi + 0x1c], 0
je 0x1001137b
mov ebx, dword [edi + 0x18]
jmp 0x1001137e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000fa67
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10013460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001348d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001348d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x101b30fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x1024e778], 0x1abc
mov dword [ebp - 0x10], eax
call fcn.101b414b
xor ecx, ecx
mov dword [0x1024e77c], 0x1154
mov edx, eax
mov dword [0x1024e778], 0x39b
mov esi, dword [eax + 0x3c]
mov dword [0x1024e77c], 0x1475
mov esi, dword [eax + esi + 0x78]
mov dword [0x1024e778], 0x1dca
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x1024e77c], 0x2b5d
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x101b326f
jmp 0x101b31af
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [ebp - 0x30]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
je 0x101b3211
jmp 0x101b31e5
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [0x1024e778], 0x2382
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
jmp 0x101b3184
mov eax, dword [ebp - 0x34]
add eax, 1
mov cl, byte [ebp - 0x35]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x36]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x2c], eax
jne 0x101b3184
mov al, byte [ebp - 0x36]
test al, 1
jne 0x101b3240
jmp 0x101b321a
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], eax
jb 0x101b31bf
jmp 0x101b326f
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1024e778], 0x25ff
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1024e77c], 0x26e3
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101b327a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x1024e778]
add esi, 0xffffea50
mov dword [0x1024e778], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101b3363
mov dword [0x1024e778], 0x7c3
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x1024e77c]
add ecx, 0x26c0
mov dword [0x1024e77c], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.101b3534
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [0x1024e77c], 0x18b5
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 4], ecx
mov dword [0x1024e778], 0x24db
add ecx, 0x17e1
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x101b335a
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1023a1de]
mov dh, byte [eax + 0x1023a1af]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101b3363
lea eax, [ebp - 0x24]
mov dword [0x1024e778], 0x108b
mov dword [0x1024e77c], 0x1b8
mov dword [ebp - 0x44], eax
call fcn.101b3c87
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101b2e4e
mov ecx, dword [0x1024e77c]
add ecx, 0xfffff6fd
mov dword [0x1024e778], ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x101b32a9
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret