joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44252a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043a38f
and dword [ebp - 0x14], 0
cmp dword [0x45025c], 0
mov dword [ebp - 0x18], eax
jne 0x4425dd
push 0x405bb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x442685
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405ba4
push ebx
call edi
test eax, eax
je 0x442685
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x405b94
push ebx
mov dword [0x45025c], eax
call edi
push eax
call esi
push 0x405b80
push ebx
mov dword [0x450260], eax
call edi
push eax
call esi
push 0x405b64
push ebx
mov dword [0x450264], eax
call edi
push eax
call esi
mov dword [0x45026c], eax
test eax, eax
je 0x4425dd
push 0x405b4c
push ebx
call edi
push eax
call esi
mov dword [0x450268], eax
mov eax, dword [0x450268]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x442636
cmp dword [0x45026c], ecx
je 0x442636
push eax
call esi
push dword [0x45026c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x442636
test ebx, ebx
je 0x442636
call edi
test eax, eax
je 0x44262d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44262d
test byte [ebp - 8], 1
jne 0x442636
or dword [ebp + 0x10], 0x200000
jmp 0x442669
mov eax, dword [0x450260]
cmp eax, dword [ebp - 0x18]
je 0x442669
push eax
call esi
test eax, eax
je 0x442669
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x442669
mov eax, dword [0x450264]
cmp eax, dword [ebp - 0x18]
je 0x442669
push eax
call esi
test eax, eax
je 0x442669
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45025c]
call esi
test eax, eax
je 0x442685
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x442687
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435fe0
leave
ret
Function at 0x100016d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040298
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10055014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x1004d1f0]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x11b3711
mov dword [ebp - 0x28], 0x611001a
mov byte [ebp - 0x24], 0
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x17
jb 0x10001714
mov byte [ebp - 0x24], 0
mov cl, 0x52
mov dword [ebp - 0x1c], 0x20373952
xor eax, eax
mov dword [ebp - 0x18], 0x613e373c
mov dword [ebp - 0x14], 0x3e367c60
mov word [ebp - 0x10], 0x3e
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x10001753
mov cl, byte [ebp - 0x1c]
jmp 0x10001744
lea eax, [ebp - 0x3b]
mov byte [ebp - 0xf], 0
push eax
lea eax, [ebp - 0x1b]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.10016470
cmp al, 0xe9
jne 0x100017fa
movaps xmm0, xmmword [0x1004d700]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x10], 0x4c
nop
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x10
jb 0x10001790
cmp byte [ebp - 0x1f], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x100017bd
xor ecx, ecx
jmp 0x100017cc
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100017c3
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100027c0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.10019f40
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x100017fa
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.100026c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100402c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10055014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov cl, 0x70
mov dword [ebp - 0x1c], 0x1d190470
mov dword [ebp - 0x18], 0x4153715
xor eax, eax
mov dword [ebp - 0x14], 0x151d1924
mov byte [ebp - 0x10], 0
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xb
jae 0x10001861
mov cl, byte [ebp - 0x1c]
jmp 0x10001852
mov byte [ebp - 0x10], 0
mov cl, 0x2b
mov dword [ebp - 0x34], 0x594e402b
xor eax, eax
mov dword [ebp - 0x30], 0x18474e45
mov dword [ebp - 0x2c], 0x474f0519
mov word [ebp - 0x28], 0x47
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 0xc
jae 0x10001893
mov cl, byte [ebp - 0x34]
jmp 0x10001884
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x27], 0
push eax
lea eax, [ebp - 0x33]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.10016470
cmp al, 0xe9
jne 0x1000193a
movaps xmm0, xmmword [0x1004d160]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x1b
nop
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x10
jb 0x100018d0
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
jne 0x100018fd
xor ecx, ecx
jmp 0x1000190c
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001903
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x24]
call fcn.100027c0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10019f40
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1000193a
inc eax
push eax
push dword [ebp - 0x24]
call fcn.100026c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001d00
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x1004ce20]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xe
jb 0x10001d20
mov byte [ebp - 0x19], 0
mov cl, 0x1f
mov dword [ebp - 0x18], 0x4d5a541f
xor eax, eax
mov dword [ebp - 0x14], 0x2c535a51
mov dword [ebp - 0x10], 0x737b312d
mov word [ebp - 0xc], 0x73
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xc
jae 0x10001d5f
mov cl, byte [ebp - 0x18]
jmp 0x10001d50
lea eax, [ebp - 0x27]
mov byte [ebp - 0xb], 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]
push 0
push 1
lea ecx, [ebp - 5]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [ebp - 5], 0xe9
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.1003ce35
mov esp, ebp
pop ebp
ret

Function at 0x10001dd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
ret

Function at 0x10001de0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004f698
push 0x1003d8e3
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10055014]
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 0x10001e79
xor al, al
jmp 0x10001f02
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 0x10001ea4
xor al, al
jmp 0x10001f02
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x10001eef
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.1003ce35
mov esp, ebp
pop ebp
ret
Function at 0x10002c30
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 0x1c], 0x2b
mov al, 0x45
xor al, byte [ebp - 0x1c]
mov bl, 0x47
mov ah, bl
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x1c]
mov dl, 0x4f
mov bh, ah
mov byte [ebp - 0xd], ah
mov dh, dl
mov byte [ebp - 0x12], 0
xor dl, al
mov byte [ebp - 0x12], 0
xor bl, al
mov byte [ebp - 0x19], dl
xor ah, al
mov byte [ebp - 0x18], bl
xor dh, al
mov byte [ebp - 0x17], ah
xor bh, al
mov byte [ebp - 0x15], dh
mov cl, 0x5f
mov byte [ebp - 0x14], bh
xor cl, al
mov ch, 5
xor ch, al
mov byte [ebp - 0x1a], cl
mov al, byte [ebp - 0xd]
xor al, byte [ebp - 0x1c]
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x1b]
push eax
mov byte [ebp - 0x16], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movaps xmm0, xmmword [0x1004d550]
mov edx, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x2f151d11
xor eax, eax
mov word [ebp - 0x20], 0x25
nop dword [eax]
mov cl, byte [ebp - 0x34]
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 0x14
jb 0x10002cc0
lea eax, [ebp - 0x33]
mov byte [ebp - 0x1f], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov ecx, 5
add ecx, ecx
mov ebx, eax
setb dl
neg edx
or edx, ecx
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push ebx
call edi
mov ecx, dword [ebx]
mov dword [esi], ecx
mov al, byte [ebx + 4]
mov byte [esi + 4], al
add esi, 5
mov eax, ebx
sub eax, esi
mov dword [esi + 1], eax
mov eax, 0x10002920
sub eax, ebx
mov byte [esi], 0xe9
sub eax, 5
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push ebx
call edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 0x40
lea eax, [esi - 5]
push 5
push eax
mov dword [0x100572f0], eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003ce35
mov esp, ebp
pop ebp
ret

Function at 0x10002e00
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movaps xmm0, xmmword [0x1004d540]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x363c053e
mov dword [ebp - 8], 0x21333e11
mov word [ebp - 4], 0x21
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x18
jb 0x10002e27
push 0
lea eax, [ebp - 0x1b]
mov byte [ebp - 3], 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10002e5f
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10002e70
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
push 0x40
mov dword [ebp - 8], 0x1000
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0x250000
call dword [sym.imp.MPR.dll_WNetGetProviderNameA]
test eax, eax
jne 0x10002f07
movaps xmm0, xmmword [0x1004cfd0]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x32541011
mov dword [ebp - 0x10], 0x1110181b
mov word [ebp - 0xc], 0x706
mov byte [ebp - 0xa], al
nop
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x19
jb 0x10002ed0
lea eax, [ebp - 0x23]
mov byte [ebp - 0xa], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10002f07
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003ce35
mov esp, ebp
pop ebp
ret
Function at 0x100034b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x1004d310]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x35237924
mov word [ebp - 4], 0x3b
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x14
jb 0x100034d0
lea eax, [ebp - 0x17]
mov byte [ebp - 3], 0
push eax
call fcn.100039b0
cmp eax, 0xd73df878
je 0x100034f7
xor al, al
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x1004d970]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x70663c79
mov word [ebp - 4], 0x7e
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x14
jb 0x10003511
lea eax, [ebp - 0x17]
mov byte [ebp - 3], 0
push eax
call fcn.100039b0
cmp eax, 0xd73df878
jne 0x100034f1
movaps xmm0, xmmword [0x1004d030]
xor ecx, ecx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x1e085219
mov word [ebp - 4], 0x10
nop dword [eax]
mov al, byte [ebp - 0x18]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 0x14
jb 0x10003550
lea eax, [ebp - 0x17]
mov byte [ebp - 3], 0
push eax
call fcn.100039b0
cmp eax, 0xb212610
jne 0x100034f1
movaps xmm0, xmmword [0x1004d090]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0xf0f2c14
mov dword [ebp - 8], 0x144e130b
mov word [ebp - 4], 0xc02
mov byte [ebp - 2], 0
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x19
jb 0x10003596
lea eax, [ebp - 0x1b]
mov byte [ebp - 2], 0
push eax
call fcn.100039b0
cmp eax, 0x6694b71f
jne 0x100034f1
movaps xmm0, xmmword [0x1004cdb0]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x100035c8
lea eax, [ebp - 0x13]
mov byte [ebp - 5], 0
push eax
call fcn.100039b0
cmp eax, 0xef7c0020
sete al
mov esp, ebp
pop ebp
ret
Function at 0x10003870
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x100572f8
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x1000389b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x100038a6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x100038b1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x100038bc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x100038c7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100038d2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100038dd
bts eax, 1
test cl, 2
je 0x100038e6
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 + 0x100572f8], ebx
lea ecx, [edx + 1]
test bl, 1
je 0x10003986
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10003977
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x100572f8], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x10003890
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x10044afc
push eax
or ebx, 0xffffffff
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x408], eax
test eax, eax
jne 0x100039f7
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ce35
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov edx, edi
test edi, edi
je 0x10003a40
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100572f8]
sub edx, 1
jne 0x10003a26
mov eax, dword [ebp - 0x408]
cmp edi, 0x400
je 0x10003a00
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.1003ce35
mov esp, ebp
pop ebp
ret 4
Function at 0x10006170
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100062a6
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
mov bh, 0x3f
mov al, 0x70
mov byte [ebp - 8], 0
mov ah, 0x7b
mov byte [ebp - 0x10], bh
xor al, bh
mov byte [ebp - 8], 0
xor ah, bh
mov byte [ebp - 0xf], al
push 0
mov byte [ebp - 0xb], ah
mov cl, 0x73
lea eax, [ebp - 0xf]
mov dl, cl
push eax
mov ch, 0x7d
mov dh, 0x78
mov bl, 0x66
xor cl, bh
push 0
xor dl, bh
mov byte [ebp - 0xe], cl
xor ch, bh
mov byte [ebp - 0xd], dl
xor dh, bh
mov byte [ebp - 0xa], ch
xor bl, bh
mov byte [ebp - 9], dh
push 0
mov byte [ebp - 0xc], bl
call esi
test eax, eax
je 0x10006231
mov bh, 3
mov byte [ebp - 8], 0
push 0
push 0
mov al, 0x4c
mov byte [ebp - 0x10], bh
mov ah, 0x47
mov byte [ebp - 8], 0
push 0x10
xor al, bh
xor ah, bh
push 0
mov byte [ebp - 0xf], al
mov cl, 0x4f
mov byte [ebp - 0xb], ah
mov dl, cl
lea eax, [ebp - 0xf]
mov ch, 0x41
push eax
mov dh, 0x44
mov bl, 0x5a
push 0
xor cl, bh
xor dl, bh
xor ch, bh
mov byte [ebp - 0xe], cl
xor dh, bh
mov byte [ebp - 0xd], dl
xor bl, bh
mov byte [ebp - 0xa], ch
push 0
mov byte [ebp - 0xc], bl
mov byte [ebp - 9], dh
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dl, 0x74
mov byte [ebp - 1], 0
mov al, 0x3d
mov byte [ebp - 4], dl
xor al, dl
mov byte [ebp - 1], 0
push 0
mov byte [ebp - 3], al
mov cl, 0x30
lea eax, [ebp - 3]
xor cl, dl
push eax
push 0
push 0
mov byte [ebp - 2], cl
call esi
test eax, eax
je 0x1000628f
push 0
xor al, al
mov dl, 0x49
push 0
mov byte [ebp - 1], al
mov cl, 0xd
push 0x10
xor al, dl
mov byte [ebp - 4], dl
push 0
mov byte [ebp - 3], al
xor cl, dl
lea eax, [ebp - 3]
mov byte [ebp - 2], cl
push eax
push 0
push 0
mov byte [ebp - 1], 0
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100407d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10008353
cmp byte [ebx + 0x3d], 0
je 0x10008353
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10008279
xor al, al
jmp 0x10008355
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10007e30
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100082e0
sub eax, 1
je 0x100082e4
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x1000833c
xor bl, bl
jmp 0x1000833e
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x1000831a
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x100082dc
cmp byte [ebx + 0x3d], 0
je 0x1000833c
test edi, edi
lea edi, [ebx + 0x40]
jne 0x100082a4
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10007ef0
jmp 0x1000829e
mov bl, 1
cmp esi, 0x10
jb 0x1000834f
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.100026c0
mov al, bl
jmp 0x10008355
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003ce35
mov esp, ebp
pop ebp
ret