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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push eax
mov esi, dword [esi + 4]
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [ebx + 5]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi]
cmp eax, dword [ebx + 5]
jne 0x10001b2b
movzx eax, byte [edi + 4]
cmp al, byte [ebx + 9]
jne 0x10001b2b
mov esi, 5
jmp 0x10001b3f
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x10001b3f
movzx eax, byte [edi + 4]
cmp al, byte [ebx + 4]
jne 0x10001b3f
mov esi, 0xb
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 5]
push eax
mov dword [ebx + 4], esi
call fcn.1002cfd7
mov ecx, dword [ebx + 4]
add esp, 4
mov esi, eax
add ecx, 5
lea eax, [ebp + 8]
push eax
push 0x40
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebx + 4]
push edi
push esi
call fcn.1004f760
mov eax, dword [ebx + 4]
mov ecx, edi
sub ecx, esi
mov byte [ebp - 8], 0xe9
sub ecx, 5
add esp, 0xc
mov byte [esi + eax], 0xe9
mov eax, dword [ebx + 4]
mov dword [esi + eax + 1], ecx
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [ebp - 7], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov al, byte [ebp - 4]
mov byte [edi + 4], al
pop edi
mov dword [ebx], esi
pop esi
mov dword [ebx + 8], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [ebp + 0x10]
push ecx
push 0x40
push eax
push ebx
mov dword [edi + 4], eax
call esi
mov eax, dword [edi + 4]
add eax, 5
push eax
call fcn.1002cfd7
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edi, eax
lea eax, [ebp + 0x14]
mov ecx, dword [ecx + 4]
push eax
push 0x40
add ecx, 5
push ecx
push edi
call esi
mov esi, dword [ebp + 0x10]
push dword [esi + 4]
push ebx
push edi
call fcn.1004f760
mov eax, dword [esi + 4]
mov ecx, ebx
sub ecx, edi
mov byte [ebp - 8], 0xe9
sub ecx, 5
add esp, 0xc
mov byte [edi + eax], 0xe9
mov eax, dword [esi + 4]
mov dword [edi + eax + 1], ecx
mov eax, dword [ebp + 0xc]
sub eax, ebx
sub eax, 5
mov dword [ebp - 7], eax
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov al, byte [ebp - 4]
mov byte [ebx + 4], al
mov dword [esi], edi
pop edi
mov dword [esi + 8], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x100c34b4], 0
je 0x10001d5a
mov dword [0x100c339c], 0xa50170
mov eax, 0x741797
mov dword [0x100c3394], 0x7414f0
jmp 0x10001d73
mov dword [0x100c339c], 0xa510a0
mov eax, 0x741f57
mov dword [0x100c3394], 0x741cb0
push 8
push 0x100c33c4
push 0x10002050
push eax
mov ecx, 0x100c0064
mov dword [0x100c3398], eax
call fcn.10001bc0
push 8
push 0x100c33d0
push 0x100021a0
push dword [0x100c3394]
mov ecx, 0x100c0064
call fcn.10001bc0
push 8
push 0x100c33dc
push 0x10002000
push dword [0x100c339c]
mov ecx, 0x100c0064
call fcn.10001bc0
mov dword [ebp - 0xb], 0x829f83b0
xor ecx, ecx
mov dword [ebp - 7], 0x829b9d81
mov word [ebp - 3], 0x91
mov byte [ebp - 1], 1
lea eax, [ecx - 0x11]
xor byte [ebp + ecx - 0xb], al
inc ecx
cmp ecx, 9
jb 0x10001de1
mov byte [ebp - 1], 0
xor ecx, ecx
mov dword [ebp - 0x19], 0x91878382
mov dword [ebp - 0x15], 0xd8c5cd81
mov dword [ebp - 0x11], 0x959493
mov byte [ebp - 0xd], 1
nop dword [eax]
lea eax, [ecx - 0x11]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 0xb
jb 0x10001e10
push 0x100c33a0
push 0x10001f00
lea eax, [ebp - 0xb]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x19]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
mov ecx, 0x100c0064
call fcn.10001ad0
mov dword [ebp - 0x19], 0x819e9c8c
xor ecx, ecx
mov dword [ebp - 0x15], 0x959a8796
mov dword [ebp - 0x11], 0x8d9d9c
mov byte [ebp - 0xd], 1
lea eax, [ecx - 0x11]
xor byte [ebp + ecx - 0x19], al
inc ecx
cmp ecx, 0xb
jb 0x10001e66
mov byte [ebp - 0xd], 0
xor ecx, ecx
mov dword [ebp - 0xc], 0xadc38398
mov dword [ebp - 8], 0x92dbc6c0
mov dword [ebp - 4], 0x100949b
nop
lea eax, [ecx - 0x11]
xor byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 0xa
jb 0x10001e90
push 0x100c33ac
push 0x10001c60
lea eax, [ebp - 0x19]
mov byte [ebp - 1], 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
mov ecx, 0x100c0064
call fcn.10001ad0
mov esp, ebp
pop ebp
ret
Function at 0x100040b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009bad0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1002d0c4
mov edi, eax
add esp, 4
test edi, edi
je 0x100040f8
push 1
mov dword [ebp - 4], 0
call fcn.10010e24
add esp, 4
mov dword [edi + 4], eax
jmp 0x100040fa
xor edi, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
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 ecx, dword [ebp - 0xc]
pop edi
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 dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bb2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10010670
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 eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x100043fb
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.100047c0
push 0x100b8454
lea eax, [ebp - 0x1c]
push eax
call fcn.10050963
push eax
push esi
call fcn.10010f27
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10006470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa], 0
je 0x10006492
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x47]
inc eax
xor byte [edx], cl
cmp eax, 9
jb 0x10006480
mov byte [esi + 0xa], 0
mov eax, esi
pop esi
ret

Function at 0x100064a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
je 0x100064c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xb
jb 0x100064b0
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
ret

Function at 0x100064d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe], 0
je 0x100064f2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xd
jb 0x100064e0
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
ret
Function at 0x10007e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009bff8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007f75
cmp byte [ebx + 0x3d], 0
je 0x10007f75
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10007e6f
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10004200
push esi
mov dword [ebp - 4], 0
push edi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop word [eax + eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10007ecf
sub eax, 1
je 0x10007ed3
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x10007f29
xor bl, bl
jmp 0x10007f2b
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x10]
cmovae ecx, eax
sub esi, ecx
je 0x10007f0b
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.1006f097
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x10007ecb
cmp byte [ebx + 0x3d], 0
je 0x10007f29
test esi, esi
jne 0x10007e90
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10009be0
jmp 0x10007e84
mov bl, 1
pop edi
pop esi
cmp edx, 0x10
jb 0x10007f5f
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x10007f56
test al, 0x1f
jne 0x10007f70
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x10007f70
sub eax, ecx
cmp eax, 4
jb 0x10007f70
cmp eax, 0x23
ja 0x10007f70
mov eax, ecx
push eax
call fcn.1002d102
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1006d514
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000abb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x1000abcb
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x1000abe7
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1000abd6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x1000ac1d
cmp dword [ecx], edi
jne 0x1000ac15
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + esi + 4], eax
jmp 0x1000ac25
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x1000ac25
cmp dword [ecx], edi
jne 0x1000ac28
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
lea ecx, [edx + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ecx + 4]
call fcn.10008490
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c590
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c244
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov dword [ebp - 0x20], 0
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1b], 0x31257d7f
mov dword [ebp - 0x17], 0x373e2527
mov dword [ebp - 0x13], 0x3d3f7437
mov word [ebp - 0xf], 0x29
mov byte [ebp - 0xd], 1
nop dword [eax]
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xd
jb 0x1000c600
push 1
push 0x40
push 1
lea eax, [ebp - 0x1b]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xfc]
call fcn.1000c260
push 0
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.10003610
add esp, 0xc
lea ecx, [ebp - 0xe4]
call fcn.10009f00
test eax, eax
jne 0x1000c6d8
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xfc]
mov eax, dword [eax + 4]
add edx, eax
mov eax, dword [edx + 0xc]
or eax, 2
mov ecx, eax
or ecx, 4
cmp dword [edx + 0x38], 0
cmovne ecx, eax
mov eax, dword [edx + 0x10]
and ecx, 0x17
mov dword [edx + 0xc], ecx
and eax, ecx
je 0x1000c6d8
push 1
test al, 4
je 0x1000c6b0
lea eax, [ebp - 0x28]
push eax
call fcn.1000af80
add esp, 8
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x3c]
call fcn.100046b0
push 0x100b84a8
lea eax, [ebp - 0x3c]
push eax
call fcn.10050963
test al, 2
lea eax, [ebp - 0x28]
push eax
je 0x1000c6c8
call fcn.1000af80
add esp, 8
push eax
push str.ios_base::failbit_set
jmp 0x1000c69a
call fcn.1000af80
add esp, 8
push eax
push str.ios_base::eofbit_set
jmp 0x1000c69a
lea ecx, [ebp - 0xfc]
call fcn.1000c4a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000d340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c324
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100c3a10]
movaps xmm0, xmmword [0x100a18f0]
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 4], 0
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [0x100a18b0]
mov eax, dword [0x100c3484]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x34], 0x5a595857
movaps xmm0, xmmword [0x100a18d0]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0x34333231
mov dword [ebp - 0x2c], 0x38373635
mov word [ebp - 0x28], 0x3039
mov byte [ebp - 0x26], 0
cmp eax, dword [ecx + 4]
jle 0x1000d444
push 0x100c3484
call fcn.1002d7d8
add esp, 4
cmp dword [0x100c3484], 0xffffffff
jne 0x1000d444
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
mov dword [0x100c347c], 0
lea edx, [ecx + 1]
mov dword [0x100c3480], 0xf
mov byte [0x100c346c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d411
sub ecx, edx
lea eax, [ebp - 0x64]
push ecx
push eax
mov ecx, 0x100c346c
call fcn.100029e0
push 0x100a0790
call fcn.1002d5fa
push 0x100c3484
mov byte [ebp - 4], 0
call fcn.1002d799
add esp, 8
test edi, edi
jne 0x1000d44f
mov byte [ebp + edi - 0x24], 0
jmp 0x1000d45a
push 0
push edi
lea ecx, [ebp - 0x24]
call fcn.10009be0
xor ebx, ebx
test edi, edi
jle 0x1000d498
mov esi, dword [0x100c347c]
call fcn.1006d5b2
xor edx, edx
lea ecx, [ebp - 0x24]
div esi
cmp dword [0x100c3480], 0x10
mov eax, 0x100c346c
cmovae eax, dword [0x100c346c]
cmp dword [ebp - 0x10], 0x10
cmovae ecx, dword [ebp - 0x24]
mov al, byte [eax + edx]
mov byte [ecx + ebx], al
inc ebx
cmp ebx, edi
jl 0x1000d460
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x24]
cmp eax, 0x10
jb 0x1000d4d9
mov esi, dword [ebp - 0x24]
inc eax
mov ecx, esi
cmp eax, 0x1000
jb 0x1000d4d0
test byte [ebp - 0x24], 0x1f
jne 0x1000d4cb
mov ecx, dword [esi - 4]
cmp ecx, esi
jae 0x1000d4cb
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1000d4cb
cmp eax, 0x23
jbe 0x1000d4d0
call fcn.1006d514
push ecx
call fcn.1002d102
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e8b0
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
movaps xmm0, xmmword [str.rsq_f]
xor ecx, ecx
movups xmmword [ebp - 0x3d], xmm0
mov byte [ebp - 0x2d], 1
lea eax, [ecx + 0x5c]
xor byte [ebp + ecx - 0x3d], al
inc ecx
cmp ecx, 0xf
jb 0x1000e8d8
mov byte [ebp - 0x2d], 0
xor ecx, ecx
mov dword [ebp - 0xc], 0x302a281d
mov dword [ebp - 8], 0xa110432
mov dword [ebp - 4], 0x100001e
lea eax, [ecx + 0x5c]
xor byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 0xa
jb 0x1000e900
mov byte [ebp - 1], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0x3a2c3e0f
mov dword [ebp - 0x18], 0x6310f05
mov dword [ebp - 0x14], 0x90f1110
mov dword [ebp - 0x10], 0x1001a0f
nop
lea eax, [ecx + 0x5c]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 0xe
jb 0x1000e930
lea eax, [ebp - 0x3d]
mov byte [ebp - 0xd], 0
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x1000e96d
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1000e510
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0
push 0x300
push 0x400
call fcn.1000e510
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1000ec70
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
movups xmm0, xmmword [0x100a1940]
mov al, byte [0x100a1950]
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x10], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ed88
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000ed88
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000ed11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
je 0x1000ed6b
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000ed8f
push 0
push ecx
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 4]
call ebx
push 0
test eax, eax
je 0x1000ed6d
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x1000ed38
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x1000ed6b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000edec
mov ebx, dword [ebp - 8]
xor edi, edi
test ebx, ebx
je 0x1000ede5
mov edx, dword [ebp + 0xc]
nop
movzx ecx, byte [ebp + edi - 0x30]
lea edx, [edx + 2]
mov eax, ecx
inc edi
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x20]
mov byte [edx - 2], al
movzx eax, byte [ebp + ecx - 0x20]
mov byte [edx - 1], al
cmp edi, ebx
jb 0x1000edc0
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x20], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f0d0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [0x100c00f8], 0x10
lea eax, [ebp - 8]
push ebx
mov ebx, dword [0x100c00f4]
push esi
push edi
mov edi, dword [0x100c34a4]
mov esi, 0x100c00e4
cmovae esi, dword [0x100c00e4]
push eax
push 0x40
push ebx
push edi
mov word [ebp - 4], 0xdeb
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
movaps xmm0, xmmword [0x100a1a30]
xor ecx, ecx
movups xmmword [ebp - 0x39], xmm0
mov byte [ebp - 0x29], 1
lea eax, [ecx + 0x54]
xor byte [ebp + ecx - 0x39], al
inc ecx
cmp ecx, 0xf
jb 0x1000f140
mov byte [ebp - 0x29], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0x3a372712
mov dword [ebp - 0x14], 0x293f093d
mov dword [ebp - 0x10], 0x303d380f
mov dword [ebp - 0xc], 0x100050e
nop
lea eax, [ecx + 0x54]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0xe
jb 0x1000f170
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x28], 0x32243607
mov dword [ebp - 0x24], 0x3e09373d
mov dword [ebp - 0x20], 0x31372928
mov dword [ebp - 0x1c], 0x1001207
nop
lea ecx, [eax + 0x54]
xor byte [ebp + eax - 0x28], cl
inc eax
cmp eax, 0xe
jb 0x1000f1a0
lea eax, [ebp - 0x39]
mov byte [ebp - 0x19], 0
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x1000f1fc
mov esi, dword [0x100c34ac]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
push esi
call edi
push 0
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f210
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [0x100c34a0], 0
jne 0x1000f3a9
mov dword [ebp - 4], 0x1003726
xor ecx, ecx
nop
lea eax, [ecx + 0x54]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 2
jb 0x1000f230
mov byte [ebp - 1], 0
xor ecx, ecx
mov dword [ebp - 0x17], 0x38157a7a
mov dword [ebp - 0x13], 0x3a3e7761
mov word [ebp - 0xf], 0x28
mov byte [ebp - 0xd], 1
nop dword [eax + eax]
lea eax, [ecx + 0x54]
xor byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 9
jb 0x1000f260
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.10071b06
mov ebx, eax
mov dword [ebp - 8], 0x1003723
add esp, 8
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
lea eax, [ecx + 0x54]
xor byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 2
jb 0x1000f292
lea eax, [ebp - 8]
mov byte [ebp - 5], 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10071b06
push ebx
mov esi, eax
lea eax, [ebp - 0x220]
push 0x200
push 1
push eax
mov dword [ebp - 0x20], esi
call fcn.10071d5a
mov edi, eax
add esp, 0x18
test edi, edi
je 0x1000f360
xor ecx, ecx
test edi, edi
jle 0x1000f32f
mov ebx, 1
lea eax, [ebp - 0x220]
sub ebx, eax
nop word [eax + eax]
lea esi, [ebp - 0x220]
add esi, ecx
lea eax, [ebx + esi]
and eax, 0x8000001f
jns 0x1000f307
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ecx
and edx, 0x8000001f
jns 0x1000f316
dec edx
or edx, 0xffffffe0
inc edx
mov al, byte [eax + 0x100c00b8]
inc ecx
xor al, byte [edx + 0x100c00b8]
xor byte [esi], al
cmp ecx, edi
jl 0x1000f2f0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
push edi
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.1006f097
push ebx
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.10071d5a
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x1000f2d7
push esi
mov dword [0x100c34a0], 1
call fcn.1006e11b
push ebx
call fcn.1006e11b
lea eax, [ebp - 0x220]
push eax
call fcn.1002d20c
add esp, 0xc
mov word [ebp - 0xc], 0xeb
lea eax, [ebp - 0xc]
push 0
push 2
push eax
push dword [0x100c34a8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret