joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x10071168]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10025569
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002558b
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100255ac
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100255ac
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100255a6
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100255ac
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002a802
mov esp, ebp
pop ebp
ret
Function at 0x1002e232
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10048910
mov eax, dword [0x1006100c]
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.10039cd2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002e274
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002e3d0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10048860
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 + 0x100635f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10039ee1
mov ecx, dword [esi*4 + 0x100635f8]
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 0x1002e3c9
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002e3c9
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 0x1002e3c9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10039ee1
add esp, 0x14
test edx, edx
jl 0x1002e3c9
jg 0x1002e33f
test eax, eax
jb 0x1002e3c9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002e3c9
jl 0x1002e359
cmp dword [ebp - 0x1008], eax
ja 0x1002e3c9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002e377
test ebx, ebx
je 0x1002e3b0
cmp ecx, edi
jae 0x1002e3b0
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002e391
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002e39d
cmp byte [ecx + 1], 0xa
jne 0x1002e39d
inc ecx
jmp 0x1002e39d
movzx eax, al
movsx eax, byte [eax + 0x100611d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002e377
cmp edx, ebx
jne 0x1002e377
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002e3ce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002a802
leave
ret

Function at 0x10038de3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10038e22
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10038e22
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10038e22
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10038e22
cmp dword [ecx + 0x74], 0xe
jbe 0x10038e22
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003a652
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 + 0x100635f8]
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 0x1003a692
cmp byte [ebx], 0xa
jne 0x1003a692
or byte [edi + eax + 0x28], 4
jmp 0x1003a697
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 0x1003a796
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003a779
inc eax
cmp dl, 0xd
je 0x1003a6c3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003a6e9
cmp eax, ecx
jae 0x1003a6f7
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 0x1003a6ab
jmp 0x1003a796
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 0x1003a774
cmp dword [ebp - 0x10], 0
je 0x1003a774
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100635f8]
test byte [eax + edi + 0x28], 0x48
je 0x1003a74e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003a739
mov byte [esi], dl
jmp 0x1003a74a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100635f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003a796
cmp byte [ebp - 1], 0xa
jne 0x1003a75d
cmp esi, ebx
jne 0x1003a75d
mov byte [esi], 0xa
jmp 0x1003a795
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10039eff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003a796
mov byte [esi], 0xd
jmp 0x1003a795
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100635f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003a793
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003a796
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003a79f
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 + 0x100635f8]
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 0x1003a7e5
cmp word [ebx], dx
jne 0x1003a7e5
or byte [eax + edi + 0x28], 4
jmp 0x1003a7ea
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 0x1003a94d
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 0x1003a92d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003a82b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003a861
cmp eax, edx
jae 0x1003a86f
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 0x1003a806
jmp 0x1003a94d
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 0x1003a928
cmp dword [ebp - 0x18], 0
je 0x1003a928
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100635f8]
test byte [eax + edi + 0x28], 0x48
je 0x1003a8fe
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 0x1003a8c2
mov word [esi], cx
jmp 0x1003a8f9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100635f8]
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 + 0x100635f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100635f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003a94d
pop eax
cmp word [ebp - 4], ax
jne 0x1003a90e
cmp esi, ebx
jne 0x1003a90e
mov word [esi], ax
jmp 0x1003a94a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10039eff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003a94d
push 0xd
pop eax
jmp 0x1003a909
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100635f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003a947
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003a94d
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 0x1003cdba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004cad8
push 0x1004cad0
push str.FlsAlloc
push 0x1f
call fcn.1003cc79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003cdee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1ac]
call esi
jmp 0x1003cdf4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003ce38
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004cae8
push 0x1004cae0
push str.FlsGetValue
push 0x21
call fcn.1003cc79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ce6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004a1ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003ce77
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004caf0
push 0x1004cae8
push str.FlsSetValue
push 0x22
call fcn.1003cc79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003ceb1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004a1ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003fec3
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 0x1003ff60
push ebx
push esi
call fcn.1003fe8c
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.1003fe20
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003ff0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003ff5f
push edi
push eax
call fcn.1003b1fe
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003ff2d
call fcn.1003b1c4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003ff5e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003fe20
add esp, 0x20
test eax, eax
jne 0x1003ff4c
push edi
call fcn.1003b1c4
jmp 0x1003ff54
push ebx
call fcn.1003b1c4
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 0x1003ff63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003ff74
pop esi
ret
push ebx
push edi
push esi
call fcn.1003fe8c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003b1fe
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003ff9c
push ebx
push esi
push edi
call fcn.1002c4a0
add esp, 0xc
push 0
call fcn.1003b1c4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004036c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003ffb1
Function at 0x10046581
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.100464fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100466f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100466f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100466a5
jg 0x100465dd
test eax, eax
je 0x1004669b
push 1
push 0x1000
call fcn.1003cae9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10046600
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10046692
push 0x8000
push ebx
call fcn.1004642e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10046629
jg 0x10046624
cmp ecx, 0x1000
jb 0x10046629
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100447de
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004666e
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 0x10046624
jl 0x10046655
test ecx, ecx
jne 0x10046616
push dword [ebp - 0xc]
push ebx
call fcn.1004642e
push esi
call fcn.1003b1c4
add esp, 0xc
xor ebx, ebx
jmp 0x100466fe
cmp byte [edi + 0x24], 0
je 0x10046685
cmp dword [edi + 0x20], 5
jne 0x10046685
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10046690
mov ebx, dword [edi + 0x18]
jmp 0x10046692
xor ebx, ebx
push esi
call fcn.1003b1c4
pop ecx
jmp 0x100466fe
test ecx, ecx
jg 0x10046667
jl 0x100466a5
test eax, eax
jae 0x10046667
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10039eff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100466c5
cmp byte [edi + 0x1c], 0
je 0x10046667
jmp 0x100466f6
push ebx
call fcn.10040bfc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10046667
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 0x100466fe
cmp byte [edi + 0x1c], 0
je 0x100466fb
mov ebx, dword [edi + 0x18]
jmp 0x100466fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10039eff
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100487b0
Capabilities:
Parse pe header

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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x405391
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
add byte [edi + ebp], 0x49
call esi
add byte [edi + ebp], 0x1f
call esi
xor byte [edi + ebp], 0xc1
call esi
add byte [edi + ebp], 0x18
call esi
add byte [edi + ebp], 0x2d
call esi
add byte [edi + ebp], 0x85
call esi
add byte [edi + ebp], 0x2c
call esi
xor byte [edi + ebp], 0xb8
call esi
add byte [edi + ebp], 0xbd
call esi
add byte [edi + ebp], 7
call esi
xor byte [edi + ebp], 0x90
call esi
add byte [edi + ebp], 0xfa
call esi
add byte [edi + ebp], 0x69
call esi
add byte [edi + ebp], 0x38
call esi
add byte [edi + ebp], 0x9f
call esi
add byte [edi + ebp], 0x7f
call esi
xor byte [edi + ebp], 0xe
call esi
add byte [edi + ebp], 0x7c
call esi
add byte [edi + ebp], 0xdf
call esi
add byte [edi + ebp], 0x97
call esi
add byte [edi + ebp], 0x36
call esi
add byte [edi + ebp], 0x6c
call esi
add byte [edi + ebp], 6
call esi
add byte [edi + ebp], 0xa5
call esi
add byte [edi + ebp], 0xce
call esi
xor byte [edi + ebp], 0x79
call esi
add byte [edi + ebp], 0x60
call esi
add byte [edi + ebp], 0x10
call esi
add byte [edi + ebp], 0xdf
call esi
add byte [edi + ebp], 0xdd
call esi
add byte [edi + ebp], 0xf7
call esi
xor byte [edi + ebp], 0x25
call esi
xor byte [edi + ebp], 0xae
call esi
xor byte [edi + ebp], 0x92
call esi
add byte [edi + ebp], 0x32
call esi
add byte [edi + ebp], 0xd6
call esi
xor byte [edi + ebp], 0x97
call esi
add byte [edi + ebp], 0xaa
call esi
add byte [edi + ebp], 0xea
call esi
xor byte [edi + ebp], 0x58
call esi
add byte [edi + ebp], 0x2d
call esi
xor byte [edi + ebp], 0xc5
call esi
add byte [edi + ebp], 0x90
call esi
xor byte [edi + ebp], 0x9b
call esi
add byte [edi + ebp], 0x1f
call esi
xor byte [edi + ebp], 0x76
call esi
add byte [edi + ebp], 0xb2
call esi
add byte [edi + ebp], 0x67
call esi
add byte [edi + ebp], 0x5e
inc edi
cmp edi, ebx
jb 0x405260
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x404b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x404b33
pop dword [ebp - 0x50]
mov eax, 0x43942b45
sub eax, 0x4353e012
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1ef32f7c
sub dword [ebp - 0x60], 0xd0a0ea31
mov dword [ebp - 0x5c], 0xc249a615
sub dword [ebp - 0x5c], 0x901659d0
mov dword [ebp - 0x58], 0x932e2bcf
sub dword [ebp - 0x58], 0x46e1e7a1
mov dword [ebp - 0x54], 0x481f0a2d
sub dword [ebp - 0x54], 0x481f0a2d
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xf08ed44
add dword [ebp - 0x60], 0x65697c12
mov dword [ebp - 0x5c], 0xe269666d
sub dword [ebp - 0x5c], 0xa0fd04f8
mov dword [ebp - 0x58], 0x3600ecdf
sub dword [ebp - 0x58], 0xd2918073
mov dword [ebp - 0x54], 0x423cfa66
add dword [ebp - 0x54], 0xbdc3059a
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3f424
push 0
call eax
mov ecx, 0xa5fc3d1c
sub ecx, 0xa5fbeef7
xor esi, esi
add esi, eax
mov edi, 0x23789b1c
sub edi, 0x2335571c
add edi, dword [ebp - 0x50]
mov ebx, 0x743fd05
add dword [ebp - 0x30], edx
mov edx, dword [edi]
xor dword [ebp - 0x44], eax
sub edx, ebx
xor dword [ebp - 0x18], ecx
mov dword [esi], edx
sub dword [ebp - 0x38], 0x36c2622e
add esi, 0xd1e245b5
add esi, 0x2e1dba4f
add edi, 4
loop 0x404c47
add eax, 0x12b67
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4035ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4035fc
pop dword [ebp - 0x2c]
mov eax, 0xad950b4e
sub eax, 0xad54d552
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3c486408
add dword [ebp - 0x3c], 0x1209e143
mov dword [ebp - 0x38], 0x6e043a17
add dword [ebp - 0x38], 0xc42f122e
mov dword [ebp - 0x34], 0xa51eff36
sub dword [ebp - 0x34], 0x58d2bb08
mov dword [ebp - 0x30], 0xffc205a9
add dword [ebp - 0x30], 0x3dfa57
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x46d9d1e7
sub dword [ebp - 0x3c], 0xd2676891
mov dword [ebp - 0x38], 0x805c07cf
add dword [ebp - 0x38], 0xc11059a6
mov dword [ebp - 0x34], 0xab810fc2
sub dword [ebp - 0x34], 0x4811a356
mov dword [ebp - 0x30], 0x5df151ad
sub dword [ebp - 0x30], 0x5df151ad
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xe8b1ab24
sub eax, 0xe8713b04
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e009
push 0
call eax
mov ecx, 0x37b371a0
sub ecx, 0x37b3105e
xor ebx, ebx
add ebx, eax
mov edx, 0x62f50234
add edx, 0x9d4bc5cc
add edx, dword [ebp - 0x2c]
mov edi, 0xd08b48e1
add edi, 0x3f5f24a4
sub dword [ebp - 0x10], 0xb164bbea
mov esi, dword [edx]
xor dword [ebp - 4], edx
add esi, edi
mov dword [ebx], esi
sub dword [ebp - 0x10], eax
add ebx, 4
add edx, 0xa38934c5
add edx, 0x5c76cb3f
loop 0x40371b
add eax, 0x177db
xor ebx, ebx
add ebx, eax
add eax, 0xcfe6017b
sub eax, 0xcfe60176
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004035ed
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004035ed
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret