joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409fc2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x409f4a
movzx ecx, word [edx + 0x26]
xor edi, edi
nop
mov esi, dword [edx + 0x28]
jmp 0x409f5e
xor eax, eax
jmp 0x409f6c
lodsb al, byte [esi]
cmp al, 0x61
nop
jmp 0x409f7d
jl 0x409fa1
jmp 0x409f8d
nop
sub al, 0x20
jmp 0x409fa1
nop
jmp 0x409fb3
ror edi, 0xd
nop
add edi, eax
nop
dec ecx
nop
jne 0x409f5e
nop
jmp 0x409fd1
push edx
jmp 0x409fdd
mov edx, dword [edx + 0x10]
nop
jmp 0x409fef
push edi
nop
mov eax, dword [edx + 0x3c]
add eax, edx
nop
mov eax, dword [eax + 0x78]
nop
jmp 0x40a006
test eax, eax
je 0x40a1dd
jmp 0x40a01a
nop
jmp 0x40a027
add eax, edx
push eax
mov ebx, dword [eax + 0x20]
nop
mov ecx, dword [eax + 0x18]
jmp 0x40a03e
add ebx, edx
test ecx, ecx
nop
je 0x40a1dc
nop
nop
dec ecx
jmp 0x40a057
mov esi, dword [ebx + ecx*4]
nop
jmp 0x40a06c
xor edi, edi
jmp 0x40a07c
add esi, edx
nop
jmp 0x40a08e
xor eax, eax
nop
jmp 0x40a09e
ror edi, 0xd
nop
jmp 0x40a0ac
lodsb al, byte [esi]
jmp 0x40a0bb
add edi, eax
jmp 0x40a0cd
cmp al, ah
nop
jne 0x40a07f
nop
add edi, dword [ebp - 8]
jmp 0x40a0eb
cmp edi, dword [ebp + 0x24]
jmp 0x40a100
jne 0x40a040
jmp 0x40a116
pop eax
nop
mov ebx, dword [eax + 0x24]
nop
jmp 0x40a12b
add ebx, edx
nop
jmp 0x40a141
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
nop
jmp 0x40a15e
mov eax, dword [ebx + ecx*4]
jmp 0x40a174
add eax, edx
nop
mov dword [esp + 0x24], eax
jmp 0x40a18a
pop ebx
nop
jmp 0x40a19f
pop ebx
jmp 0x40a1b4
popal
jmp 0x40a1c4
pop ecx
pop edx
nop
push ecx
nop
jmp eax
pop eax
nop
pop edi
pop edx
nop
jmp 0x40a1f0
mov edx, dword [edx]
nop
jmp 0x40a207
jmp 0x409f3c
Function at 0x406a40
Capabilities:
Encode data using xor

Disassembly:
xchg esi, eax
and ah, ch
add byte [ebx - 0x6f4ca2c2], cl
nop
nop
nop
nop
nop
sbb edx, dword [ebp - 0x75]
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x65]
xor ecx, ecx
push esi
xor esi, esi
or word [eax + 0xe], 0xc8d
mov dword [ebp + 0x7f8d3c0c], ecx
mov dword [ebx - 0x1d3e71b3], ecx
add ecx, dword [ecx + 0x66d23311]
mov edx, dword [eax + 0x7d]
lea edi, [edi - 0x77]
mov ecx, dword [ebp - 0x72]
shl edx, 3
mov dword [ecx], edx
xor edx, edx
mov dx, word [eax + 0x7d]
mov dword [ecx + 4], edx
xor edx, edx
mov dx, word [eax + 0x74]
mov dword [ecx + 8], edx
xor esi, dword [esi]
mov dx, word [ecx]
or byte [ecx - 0x2dccf3af], cl
and eax, 0x8906508b
push ecx
adc byte [ebx], dh
shl dword [esi - 0x75], 1
sbb dword [eax + 0x4a], 0xffffff89
push ecx
adc al, 0x33
shl byte [esi - 0x79], cl
sbb ecx, dword [edi - 0xff89316]
add byte [ecx - 0x2dcc9faf], cl
mov dx, word [eax + 4]
mov dword [ecx], edx
loopne 0x406a31
push ecx
adc al, 0x66
mov esi, dword [eax + 6]
jle 0x406ac2
xchg ebp, eax
inc eax
ret 0xe40
push ecx
sub byte [0xa08b308b], ah
and eax, 0x34a30003
jg 0x406ad5
je 0x406a55
enter 0x40fc, 0x75
sub cl, byte [ebx - 0x4366a83a]
nop
jne 0x406adf
jne 0x406b01
mov eax, esi
push edi
cdq
mov esp, 0x7590
idiv edi
pop edi
test edx, edx
jne 0x406b01
add bh, dh
call [edi - 0x7b]
sal byte [ebp + 0x1a], cl
adc dh, al
mov esi, 0xa9000064
cdq
idiv esi
push edx
aas
je 0x406b01
mov eax, dword [ecx + 0x20]
cmp eax, 0x3a
stosd dword es:[edi], eax
add al, 0x40
mov dword [esi + 0x20], esi
pop esi
pop ebp
ret

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 4]
sub al, 0xc0
jne 0x40a35f
push edi
out dx, al
or al, 0xee
call dword [0xd6c0cd]
xor eax, eax
pop esi
pop ebp
test eax, 0xf80b0004
or edi, eax
add dword [ebp + 0xc], esi
or al, byte [ecx + 8]
push eax
call dword [0x914730]
push ecx
jae 0x207da66d
mov ecx, dword [ecx + 8]
and edi, edi
adc eax, 0x4006a1
test eax, eax
or ebp, edx
dec ecx
xor eax, 0x3240c098
call esi
test eax, eax
je 0x40a358
call esi
or byte [eax + 0x5e000a7f], al
pop ebp
ret 4
Function at 0x710c5e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x7109ec
add esi, 0x5c44b9c1
call fcn.00710c92
mov esi, 0x5384f1f6
mov eax, eax
xor dword [ecx], edi
inc esi
inc ecx
dec esi
inc esi
dec eax
cmp ecx, ebx
jne fcn.00710c5e
and eax, eax
or esi, esi
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c6848fb
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x536211ef
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001da0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
call fcn.10001d00
test eax, eax
jne 0x10001ef7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], 0
jne 0x10001ef7
movaps xmm0, xmmword [0x101170c0]
push ebx
push esi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x28161711
xor esi, esi
mov dword [ebp - 0x20], 0x1d1b170a
mov word [ebp - 0x1c], 0xb0b
mov byte [ebp - 0x1a], 0
nop dword [eax]
cmp esi, 0x1a
jb 0x10001e2c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x33]
xor bl, byte [ebp - 0x34]
cmp esi, 0x1a
jb 0x10001e4f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x33], bl
inc esi
cmp esi, 0x19
jb 0x10001e10
mov byte [ebp - 0x1a], 0
xor esi, esi
mov dword [ebp - 0x18], 0x45554f21
mov dword [ebp - 0x14], 0x450f4d4d
mov word [ebp - 0x10], 0x4d4d
mov byte [ebp - 0xe], 0
cmp esi, 0xa
jb 0x10001e93
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x17]
xor bl, byte [ebp - 0x18]
cmp esi, 0xa
jb 0x10001eb6
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x17], bl
inc esi
cmp esi, 9
jb 0x10001e77
lea eax, [ebp - 0x33]
mov byte [ebp - 0xe], 0
push eax
lea eax, [ebp - 0x17]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
pop ebx
test eax, eax
je 0x10001eff
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push 7
push 0xffffffffffffffff
call eax
test eax, eax
je 0x10001eff
cmp dword [ebp - 0xc], 0
je 0x10001eff
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret
Function at 0x10001f20
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x10117360]
push ebx
push esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x3b210d2b
xor esi, esi
mov dword [ebp - 0x18], 0x3c2b3a20
mov byte [ebp - 0x14], 0
cmp esi, 0x18
jb 0x10001f63
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x2b]
xor bl, byte [ebp - 0x2c]
cmp esi, 0x18
jb 0x10001f86
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x2b], bl
inc esi
cmp esi, 0x17
jb 0x10001f47
mov byte [ebp - 0x14], 0
xor esi, esi
mov dword [ebp - 0x10], 0x70676902
mov dword [ebp - 0xc], 0x316e676c
mov dword [ebp - 8], 0x6e662c30
mov word [ebp - 4], 0x6e
cmp esi, 0xd
jb 0x10001fcd
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 0xd
jb 0x10001ff0
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 0xc
jb 0x10001fb1
lea eax, [ebp - 0x2b]
mov byte [ebp - 3], 0
push eax
lea eax, [ebp - 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.100179c0
pop esi
pop ebx
cmp al, 0xe9
jne 0x10002028
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10002030
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov dword [ebp - 0x10], 0x36322f5b
xor esi, esi
mov dword [ebp - 0xc], 0x2f3e1c3e
mov dword [ebp - 8], 0x3e36320f
mov byte [ebp - 4], 0
cmp esi, 0xc
jb 0x1000206f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 0xc
jb 0x10002092
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 0xb
jb 0x10002053
mov byte [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x20], 0x23343a51
mov dword [ebp - 0x1c], 0x623d343f
mov dword [ebp - 0x18], 0x3d357f63
mov word [ebp - 0x14], 0x3d
nop dword [eax]
cmp esi, 0xd
jb 0x100020dc
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x1f]
xor bl, byte [ebp - 0x20]
cmp esi, 0xd
jb 0x100020ff
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x1f], bl
inc esi
cmp esi, 0xc
jb 0x100020c0
lea eax, [ebp - 0xf]
mov byte [ebp - 0x13], 0
push eax
lea eax, [ebp - 0x1f]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.100179c0
pop esi
pop ebx
cmp al, 0xe9
jne 0x10002137
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10002140
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov dword [ebp - 0x10], 0x7d6c4e09
xor esi, esi
mov dword [ebp - 0xc], 0x626a605d
mov dword [ebp - 8], 0x677c664a
mov word [ebp - 4], 0x7d
cmp esi, 0xd
jb 0x10002181
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 0xd
jb 0x100021a4
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 0xc
jb 0x10002165
mov byte [ebp - 3], 0
xor esi, esi
mov dword [ebp - 0x20], 0x392e204b
mov dword [ebp - 0x1c], 0x78272e25
mov dword [ebp - 0x18], 0x272f6579
mov word [ebp - 0x14], 0x27
nop
cmp esi, 0xd
jb 0x100021ec
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x1f]
xor bl, byte [ebp - 0x20]
cmp esi, 0xd
jb 0x1000220f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x1f], bl
inc esi
cmp esi, 0xc
jb 0x100021d0
lea eax, [ebp - 0xf]
mov byte [ebp - 0x13], 0
push eax
lea eax, [ebp - 0x1f]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.100179c0
pop esi
pop ebx
cmp al, 0xe9
jne 0x10002247
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10002370
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1011b278
push 0x10058300
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x1012507c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10002409
xor al, al
jmp 0x10002492
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002434
xor al, al
jmp 0x10002492
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000247f
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret
Function at 0x10003490
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x1012a2f8
call fcn.10058140
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x100034bb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x100034c6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x100034d1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x100034dc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x100034e7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100034f2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100034fd
bts eax, 1
test cl, 2
je 0x10003506
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax*4 + 0x1012a2f8], ebx
lea ecx, [edx + 1]
test bl, 1
je 0x100035a6
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10003597
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x1012a2f8], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x100034b0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100035d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1010a11c
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
or ebx, 0xffffffff
call fcn.10059840
add esp, 0xc
test eax, eax
jne 0x100036b0
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x100036b0
push eax
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.10059fc0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x1000368d
push esi
nop dword [eax]
lea esi, [ebp - 0x404]
test edx, edx
je 0x1000366a
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1012a2f8]
sub edx, 1
jne 0x10003650
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.10059fc0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10003640
pop esi
push dword [ebp - 0x408]
call fcn.1005a420
add esp, 4
not ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop ebx
call fcn.10052b20
mov esp, ebp
pop ebp
ret 4
Function at 0x10007ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d633a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.10043560
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10007da0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.10056840
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10123260
push eax
call fcn.10056ba0
push edi
push esi
call fcn.10043d50
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ad40
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.10003490
call fcn.100025b0
test al, al
je 0x1000ad6e
call fcn.10002ec0
test al, al
je 0x1000ad6e
call fcn.10002fc0
test al, al
jne 0x1000ae08
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.100126f0
call fcn.100127d0
call fcn.1001ba80
mov dword [0x1012a7f8], eax
test eax, eax
je 0x1000ad95
mov ecx, eax
call fcn.1001bca0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1000a910
push 0
push 0
mov dword [0x1012a708], eax
mov dword [0x1012a70c], edx
mov dword [0x1012a710], eax
mov dword [0x1012a714], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x1000ae0f
push 0
push 0
push 0
push 0x1000ac30
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x1000ae16
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
push 0x64
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.100680b0
push 1
call fcn.100680b0
push 1
call fcn.100680b0
int3
Function at 0x1000dd20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6486
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1012507c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a
push 0x1010a610
push 2
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1006a460
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000dd6a
call fcn.10043490
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10043b20
mov dword [edi + 4], eax
lea ecx, [esi + 8]
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
add esp, 4
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
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 0x100126f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1012507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
push edi
test eax, eax
jne 0x1001270e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x100127b1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100127b1
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100127b1
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100127b1
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, str.SeDebugPrivilege
call fcn.10012680
add esp, 4
test al, al
je 0x100127b1
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052b20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.10052b20
mov esp, ebp
pop ebp
ret