joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7ec208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x403dbd
cmp dword [0x7ec20c], 0
jne 0x403da9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00401de0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403c60
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x4190d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403c70
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x4190d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x403ca5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401de0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403d04
sub edx, esi
sar edx, 1
je 0x403dbd
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x403d20
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x403dbd
xor eax, eax
push ebx
test edx, edx
je 0x403d58
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x403d58
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x403d41
xor eax, eax
test edx, edx
je 0x403d72
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403d72
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403d60
xor eax, eax
test edx, edx
je 0x403d8f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x403d8f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403d80
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7ec208]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x418cf2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x401460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.syntax_error_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
Function at 0x4026e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40272b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402724
test esi, esi
je 0x402724
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402700
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402910
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402a38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40299e
cmp eax, 4
jne 0x4029c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4029ae
cmp edx, 4
je 0x4029ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402910
Function at 0x10008ac3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008b02
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008b02
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008b02
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008b02
cmp dword [ecx + 0x74], 0xe
jbe 0x10008b02
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000a6f2
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 + 0x10020eb8]
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 0x1000a732
cmp byte [ebx], 0xa
jne 0x1000a732
or byte [edi + eax + 0x28], 4
jmp 0x1000a737
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 0x1000a836
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000a819
inc eax
cmp dl, 0xd
je 0x1000a763
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000a789
cmp eax, ecx
jae 0x1000a797
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 0x1000a74b
jmp 0x1000a836
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 0x1000a814
cmp dword [ebp - 0x10], 0
je 0x1000a814
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10020eb8]
test byte [eax + edi + 0x28], 0x48
je 0x1000a7ee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000a7d9
mov byte [esi], dl
jmp 0x1000a7ea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10020eb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000a836
cmp byte [ebp - 1], 0xa
jne 0x1000a7fd
cmp esi, ebx
jne 0x1000a7fd
mov byte [esi], 0xa
jmp 0x1000a835
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10009f9e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000a836
mov byte [esi], 0xd
jmp 0x1000a835
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10020eb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000a833
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000a836
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000a83f
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 + 0x10020eb8]
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 0x1000a885
cmp word [ebx], dx
jne 0x1000a885
or byte [eax + edi + 0x28], 4
jmp 0x1000a88a
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 0x1000a9ed
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 0x1000a9cd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000a8cb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000a901
cmp eax, edx
jae 0x1000a90f
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 0x1000a8a6
jmp 0x1000a9ed
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 0x1000a9c8
cmp dword [ebp - 0x18], 0
je 0x1000a9c8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10020eb8]
test byte [eax + edi + 0x28], 0x48
je 0x1000a99e
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 0x1000a962
mov word [esi], cx
jmp 0x1000a999
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10020eb8]
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 + 0x10020eb8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10020eb8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000a9ed
pop eax
cmp word [ebp - 4], ax
jne 0x1000a9ae
cmp esi, ebx
jne 0x1000a9ae
mov word [esi], ax
jmp 0x1000a9ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10009f9e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000a9ed
push 0xd
pop eax
jmp 0x1000a9a9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10020eb8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000a9e7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000a9ed
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 0x1000b5ac
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019bc8
push 0x10019bc0
push str.FlsAlloc
push 0x1f
call fcn.1000b46b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b5e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018138]
call esi
jmp 0x1000b5e6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b62a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019bd8
push 0x10019bd0
push str.FlsGetValue
push 0x21
call fcn.1000b46b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b661
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b669
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019be0
push 0x10019bd8
push str.FlsSetValue
push 0x22
call fcn.1000b46b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b6a3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f82f
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 0x1000f8cc
push ebx
push esi
call fcn.1000f7f8
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.1000f78c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f879
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f8cb
push edi
push eax
call fcn.1000cc14
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f899
call fcn.1000b25e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f8ca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f78c
add esp, 0x20
test eax, eax
jne 0x1000f8b8
push edi
call fcn.1000b25e
jmp 0x1000f8c0
push ebx
call fcn.1000b25e
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 0x1000f8cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1000f8e0
pop esi
ret
push ebx
push edi
push esi
call fcn.1000f7f8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000cc14
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000f908
push ebx
push esi
push edi
call fcn.10003200
add esp, 0xc
push 0
call fcn.1000b25e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10010062
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000fb7d
Function at 0x10014901
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.1001487d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10014a70
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10014a70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10014a25
jg 0x1001495d
test eax, eax
je 0x10014a1b
push 1
push 0x1000
call fcn.1000b201
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10014980
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10014a12
push 0x8000
push ebx
call fcn.100147ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100149a9
jg 0x100149a4
cmp ecx, 0x1000
jb 0x100149a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000c7f4
add esp, 0x10
cmp eax, 0xffffffff
je 0x100149ee
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 0x100149a4
jl 0x100149d5
test ecx, ecx
jne 0x10014996
push dword [ebp - 0xc]
push ebx
call fcn.100147ae
push esi
call fcn.1000b25e
add esp, 0xc
xor ebx, ebx
jmp 0x10014a7e
cmp byte [edi + 0x24], 0
je 0x10014a05
cmp dword [edi + 0x20], 5
jne 0x10014a05
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10014a10
mov ebx, dword [edi + 0x18]
jmp 0x10014a12
xor ebx, ebx
push esi
call fcn.1000b25e
pop ecx
jmp 0x10014a7e
test ecx, ecx
jg 0x100149e7
jl 0x10014a25
test eax, eax
jae 0x100149e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10009f9e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10014a45
cmp byte [edi + 0x1c], 0
je 0x100149e7
jmp 0x10014a76
push ebx
call fcn.10004d91
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100149e7
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 0x10014a7e
cmp byte [edi + 0x1c], 0
je 0x10014a7b
mov ebx, dword [edi + 0x18]
jmp 0x10014a7e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10009f9e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100175c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100175ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100175ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a390
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a20f
Function at 0x405770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
or eax, 0xffffffff
lea esi, [ecx + 1]
mov edi, 0xf
nop dword [eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
movzx ecx, byte [esi - 5]
xor eax, dword [edx*4 + 0x460aa0]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x460aa0]
movzx edx, byte [esi - 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x460aa0]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x460aa0]
movzx edx, byte [esi - 2]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x460aa0]
sub edi, 1
jne 0x405780
pop edi
not eax
pop esi
ret
Function at 0x40cb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40cc28
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40cc17
jg 0x40cb80
test edx, edx
je 0x40cc17
nop dword [eax]
call fcn.0040c280
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40cbd4
jg 0x40cb97
test esi, esi
je 0x40cbd4
cmp ebx, eax
jg 0x40cba7
jl 0x40cba1
cmp edi, esi
jae 0x40cba7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0042be40
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40cbfb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40cc11
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40cb80
jl 0x40cc11
test edi, edi
jne 0x40cb80
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40cc4a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40cc4c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40ccca
jg 0x40cc5f
test esi, esi
je 0x40ccca
test eax, eax
jl 0x40cca4
jg 0x40cc69
test ebx, ebx
je 0x40cca4
cmp edi, eax
jg 0x40cc79
jl 0x40cc73
cmp esi, ebx
jae 0x40cc79
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0042be40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x40cca7
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ccca
jg 0x40ccb1
test esi, esi
je 0x40ccca
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40ccca
push eax
push esi
push 1
push edx
call fcn.00432a76
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40cdcb
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40cdba
jg 0x40cd20
test edx, edx
je 0x40cdba
nop dword [eax]
call fcn.0040c2a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40cd77
jg 0x40cd37
test esi, esi
je 0x40cd77
cmp ebx, eax
jg 0x40cd47
jl 0x40cd41
cmp edi, esi
jae 0x40cd47
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.0042be40
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x40cd9c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40cdb4
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x40cd20
jl 0x40cdb4
test edi, edi
jne 0x40cd20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40cded
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x40cdef
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40cea5
jg 0x40ce0a
test esi, esi
je 0x40cea5
test eax, eax
jl 0x40ce53
jg 0x40ce14
test ebx, ebx
je 0x40ce53
cmp edi, eax
jg 0x40ce24
jl 0x40ce1e
cmp esi, ebx
jae 0x40ce24
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.0042be40
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x40ce5a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x40cea5
jg 0x40ce64
test esi, esi
je 0x40cea5
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x40cea5
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x40ce90
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.00436fb3
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc