joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447ff0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448023
push esi
call fcn.00456390
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44801c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4480a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448092
mov eax, dword [esi + 8]
test eax, eax
je 0x448047
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44808e
cmp eax, 2
je 0x448092
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44803a
cmp eax, 3
je 0x44806d
cmp eax, 1
jne 0x44803a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44803a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44803a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004480d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4480b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004480d0
add esp, 4
pop esi
ret

Function at 0x448940
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x448961
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x448961
mov eax, dword [eax + 0x44]
test eax, eax
je 0x448961
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x476550
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476588
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.00474604
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004745dc
jmp 0x476594
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x477c3e
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 0x477c80
call fcn.0047d6fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477c80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477c77
xor eax, eax
jmp 0x477c88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477c8e
pop edi
pop esi
pop ebx
ret 4
Function at 0x47dc2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47dc5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47dc78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047db92
jmp 0x47dc78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47dc78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047db92
test edi, edi
mov eax, edi
jne 0x47dc62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
push 1
push 0x1001e0a4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100020d0
add esp, 0xc
push 0x1001e0ac
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10001c23
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10001c23
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10001c23
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
push 0x1001e0bc
mov eax, dword [ebp + 0xc]
push eax
call fcn.1000564c
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10001c23
mov ecx, dword [ebp - 0x34]
push ecx
push 1
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.10007d08
add esp, 0x10
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10007a10
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call fcn.10001ac0
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002181
mov esp, ebp
pop ebp
ret
Function at 0x10001cf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3414
call fcn.10002190
mov eax, dword [0x1001e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x340c], 0
push 0x1000
push 0
lea eax, [ebp - 0x3404]
push eax
call fcn.10002da0
add esp, 0xc
push 0x1000
push 0
lea ecx, [ebp - 0x1404]
push ecx
call fcn.10002da0
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x404]
push edx
call fcn.10002da0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3410], eax
push 0x800
lea ecx, [ebp - 0x3404]
push ecx
mov edx, dword [ebp - 0x3410]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x3414], eax
cmp dword [ebp - 0x3414], 0
je 0x10001fab
push 0x1000
push 0
lea eax, [ebp - 0x2404]
push eax
call fcn.10002da0
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x2404]
push ecx
call fcn.100083d9
add esp, 8
test eax, eax
je 0x10001fab
push 0x1001eb08
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10001f9c
mov dword [ebp - 0x3408], 0
push 0x1001eb08
call fcn.10008732
add esp, 4
push 0x800
push 0
lea edx, [ebp - 0x1404]
push edx
call fcn.10002da0
add esp, 0xc
push 0x1001eb08
push 0x800
lea eax, [ebp - 0x1404]
push eax
call fcn.10005233
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xa
call fcn.10001c80
add esp, 0xc
lea edx, [ebp - 0x404]
push edx
push 0x800
lea eax, [ebp - 0x1404]
push eax
call fcn.10005228
add esp, 0xc
mov ecx, dword [ebp - 0x3408]
add ecx, 1
mov dword [ebp - 0x3408], ecx
lea edx, [ebp - 0x1404]
push edx
call fcn.10001ac0
add esp, 4
test eax, eax
je 0x10001e7b
cmp dword [ebp - 0x3408], 0x3e8
jb 0x10001de9
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x1404]
test edx, edx
je 0x10001f9c
cmp dword [ebp - 0x3408], 0x3e8
jae 0x10001f9c
mov eax, 2
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x1404]
push edx
push 0x800
mov eax, 2
imul ecx, eax, 0
add ecx, 0x1001eb08
push ecx
call fcn.10005233
add esp, 0xc
push 0x1001eb08
call fcn.1000873d
add esp, 4
test eax, eax
jne 0x10001f9c
push 0x1001e0c4
push 0x800
push 0x1001eb08
call fcn.10005228
add esp, 0xc
mov edx, dword [0x1001e078]
push edx
push 0x800
push 0x1001eb08
call fcn.10005228
add esp, 0xc
push 0x1001eb08
mov eax, dword [ebp - 0x3410]
push eax
call fcn.10001b10
add esp, 8
test eax, eax
je 0x10001f9c
push 0x1001eb08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x340c], eax
cmp dword [ebp - 0x340c], 0
je 0x10001f9c
mov ecx, 2
imul edx, ecx, 0
add edx, 0x1001eb08
push edx
push 0x800
mov eax, 2
imul ecx, eax, 0
add ecx, 0x1001fb08
push ecx
call fcn.10005233
add esp, 0xc
mov edx, 2
imul eax, edx, 0
lea ecx, [ebp + eax - 0x1404]
push ecx
push 0x800
mov edx, 2
imul eax, edx, 0
add eax, 0x1001eb08
push eax
call fcn.10005233
add esp, 0xc
lea ecx, [ebp - 0x2404]
push ecx
call fcn.10008732
add esp, 4
cmp dword [ebp - 0x340c], 0
jne 0x10001fc8
push 0x1000
push 0
push 0x1001fb08
call fcn.10002da0
add esp, 0xc
mov eax, dword [ebp - 0x340c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002181
mov esp, ebp
pop ebp
ret
Function at 0x1000d3dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b48
push 0x10018b40
push 0x10017c24
push 0x1e
call fcn.1000d2fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d410
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017160]
call esi
jmp 0x1000d416
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d45a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b58
push 0x10018b50
push 0x10017c48
push 0x20
call fcn.1000d2fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d491
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000ed53
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 0x1000edf0
push ebx
push esi
call fcn.1000ed1c
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.1000d12a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ed9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000edef
push edi
push eax
call fcn.1000ab47
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000edbd
call fcn.1000ab0d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000edee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d12a
add esp, 0x20
test eax, eax
jne 0x1000eddc
push edi
call fcn.1000ab0d
jmp 0x1000ede4
push ebx
call fcn.1000ab0d
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 0x10012a83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10021098]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012ac3
cmp byte [ebx], 0xa
jne 0x10012ac3
or byte [eax + edi + 0x28], 4
jmp 0x10012ac8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10012bc6
mov al, byte [edx]
cmp al, 0x1a
je 0x10012ba8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10012af7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10012b1c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10012b26
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10012ad9
jmp 0x10012bc6
push 0
lea eax, [ebp - 0xc]
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 0x10012ba3
cmp dword [ebp - 0xc], 0
je 0x10012ba3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10021098]
test byte [eax + edi + 0x28], 0x48
je 0x10012b7d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10012b68
mov byte [esi], dl
jmp 0x10012b79
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10021098]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012bc6
cmp byte [ebp - 1], 0xa
jne 0x10012b8c
cmp esi, ebx
jne 0x10012b8c
mov byte [esi], 0xa
jmp 0x10012bc5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100129f3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012bc6
mov byte [esi], 0xd
jmp 0x10012bc5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10021098]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012bc2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012bc6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10012bcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10021098]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012c12
cmp word [esi], dx
jne 0x10012c12
or byte [edi + eax + 0x28], 4
jmp 0x10012c17
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10012d6a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10012d4a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10012c59
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012c8f
cmp eax, edx
jae 0x10012c9b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10012c31
jmp 0x10012d6a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012d46
cmp dword [ebp - 0x14], 0
je 0x10012d46
mov eax, dword [ebx*4 + 0x10021098]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10012d1e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10012ce7
mov word [esi], cx
jmp 0x10012d1a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10021098]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10021098]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10021098]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10012d6a
pop ebx
cmp word [ebp - 4], bx
jne 0x10012d2f
cmp esi, dword [ebp + 0xc]
jne 0x10012d2f
mov word [esi], bx
jmp 0x10012d67
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100129f3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10012d6a
push 0xd
jmp 0x10012d63
mov ecx, dword [ebx*4 + 0x10021098]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012d61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012d6a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10013f41
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]
push dword [ebp + 0xc]
push ebx
call fcn.10013ebd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100140b9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100140b9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10014068
jg 0x10013f9a
test eax, eax
je 0x1001405e
push 1
push 0x1000
call fcn.1000de99
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10013fc0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10014055
push 0x8000
push ebx
call fcn.10013dee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10013fec
jg 0x10013fe7
cmp ecx, 0x1000
jb 0x10013fec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000cc56
add esp, 0x10
cmp eax, 0xffffffff
je 0x10014031
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 0x10013fe7
jl 0x10014018
test ecx, ecx
jne 0x10013fd9
push dword [ebp - 0xc]
push ebx
call fcn.10013dee
push esi
call fcn.1000ab0d
add esp, 0xc
xor edi, edi
jmp 0x100140ca
cmp byte [edi + 0x24], 0
je 0x10014048
cmp dword [edi + 0x20], 5
jne 0x10014048
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10014053
mov edi, dword [edi + 0x18]
jmp 0x10014055
xor edi, edi
push esi
call fcn.1000ab0d
pop ecx
jmp 0x100140ca
test ecx, ecx
jg 0x1001402a
jl 0x10014068
test eax, eax
jae 0x1001402a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100129f3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001408b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001402a
jmp 0x100140c2
push ebx
call fcn.10012681
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001402a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100140ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100140c7
mov edi, dword [edi + 0x18]
jmp 0x100140ca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100129f3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10016660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001668d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001668d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403b40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x47], 0
je 0x403b62
xor eax, eax
nop dword [eax + eax]
lea edx, [esi + eax]
lea ecx, [eax + 0x65]
inc eax
xor byte [edx], cl
cmp eax, 0x46
jb 0x403b50
mov byte [esi + 0x47], 0
mov eax, esi
pop esi
ret

Function at 0x403b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4800ed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x7a9080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp byte [esi + 7], 0
je 0x403bc2
xor edx, edx
nop dword [eax]
lea ecx, [esi + edx]
lea eax, [edx + 0x65]
inc edx
xor byte [ecx], al
cmp edx, 6
jb 0x403bb0
mov byte [esi + 7], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [esi + 6]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00408100
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x403be5
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x34]
call fcn.0040a990
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x403c5f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403c55
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4800ed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x7a9080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp byte [esi + 9], 0
je 0x403cd2
xor edx, edx
nop dword [eax]
lea ecx, [esi + edx]
lea eax, [edx + 0x65]
inc edx
xor byte [ecx], al
cmp edx, 8
jb 0x403cc0
mov byte [esi + 9], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [esi + 8]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00408100
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x403cf5
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x34]
call fcn.0040a990
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x403d6f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403d65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403d65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4800ed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x7a9080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp byte [esi + 0xa], 0
je 0x403de2
xor edx, edx
nop dword [eax]
lea ecx, [esi + edx]
lea eax, [edx + 0x65]
inc edx
xor byte [ecx], al
cmp edx, 9
jb 0x403dd0
mov byte [esi + 0xa], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [esi + 9]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00408100
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x403e05
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x34]
call fcn.0040a990
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x403e7f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403e75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403ea0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x403ec2
xor eax, eax
nop dword [eax + eax]
lea edx, [esi + eax]
lea ecx, [eax + 0x65]
inc eax
xor byte [edx], cl
cmp eax, 0x43
jb 0x403eb0
mov byte [esi + 0x44], 0
mov eax, esi
pop esi
ret

Function at 0x403ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x136], 0
je 0x403ef7
xor eax, eax
nop
lea edx, [esi + eax]
lea ecx, [eax + 0x65]
inc eax
xor byte [edx], cl
cmp eax, 0x135
jb 0x403ee0
mov byte [esi + 0x136], 0
mov eax, esi
pop esi
ret