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

Disassembly:
sub esp, 0x20
mov eax, dword [0x483f00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403875
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402655
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00406309
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40388d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004053a0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40383d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409f50
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004053a0
jmp 0x403877

Function at 0x4067de
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x485848], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x27
push 0x483818
push 0x547
mov esi, 0x483840
push esi
call fcn.004038ab
push 1
push 0x427554
call fcn.00406896
add esp, 0x18
mov ecx, 0x485b50
push 0
call fcn.004031a4
push eax
call fcn.00402227
push 0x8aafdc01
push dword [0x485848]
call fcn.0040380c
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x406892
lea eax, [ebp - 0xc]
push 0x40663b
push eax
call fcn.004020fb
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040671a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406892
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406892
call fcn.0040407b
xor eax, eax
leave
ret
Function at 0x41c31c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c18d

Function at 0x41c716
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040acb0
mov eax, dword [0x483f00]
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.0041a20e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c758
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c8b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f10
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 + 0x486500]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d4b5
mov ecx, dword [esi*4 + 0x486500]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c8ad
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c8ad
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c8ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d4b5
add esp, 0x14
test edx, edx
jl 0x41c8ad
jg 0x41c823
test eax, eax
jb 0x41c8ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c8ad
jl 0x41c83d
cmp dword [ebp - 0x1008], eax
ja 0x41c8ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c85b
test ebx, ebx
je 0x41c894
cmp ecx, edi
jae 0x41c894
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c875
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c881
cmp byte [ecx + 1], 0xa
jne 0x41c881
inc ecx
jmp 0x41c881
movzx eax, al
movsx eax, byte [eax + 0x4841c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c85b
cmp edx, ebx
jne 0x41c85b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c8b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409f50
leave
ret
Function at 0x41c953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x486500]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c993
cmp byte [ebx], 0xa
jne 0x41c993
or byte [eax + edi + 0x28], 4
jmp 0x41c998
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ca96
mov al, byte [edx]
cmp al, 0x1a
je 0x41ca78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c9c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c9ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c9f6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c9a9
jmp 0x41ca96
push 0
lea eax, [ebp - 0xc]
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 0x41ca73
cmp dword [ebp - 0xc], 0
je 0x41ca73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486500]
test byte [eax + edi + 0x28], 0x48
je 0x41ca4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ca38
mov byte [esi], dl
jmp 0x41ca49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486500]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca96
cmp byte [ebp - 1], 0xa
jne 0x41ca5c
cmp esi, ebx
jne 0x41ca5c
mov byte [esi], 0xa
jmp 0x41ca95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca96
mov byte [esi], 0xd
jmp 0x41ca95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486500]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cae2
cmp word [esi], dx
jne 0x41cae2
or byte [edi + eax + 0x28], 4
jmp 0x41cae7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cc3a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cc1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cb29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cb5f
cmp eax, edx
jae 0x41cb6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cb01
jmp 0x41cc3a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc16
cmp dword [ebp - 0x14], 0
je 0x41cc16
mov eax, dword [ebx*4 + 0x486500]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cbee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cbb7
mov word [esi], cx
jmp 0x41cbea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486500]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486500]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486500]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cc3a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cbff
cmp esi, dword [ebp + 0xc]
jne 0x41cbff
mov word [esi], bx
jmp 0x41cc37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cc3a
push 0xd
jmp 0x41cc33
mov ecx, dword [ebx*4 + 0x486500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cc3a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10007ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ef630
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10238634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x10007b5c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x10007b6d
push 0x40
push esi
call fcn.100ecec4
add esp, 8
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 4

Function at 0x10008350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ef5f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10238634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x100083b4
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x100083c5
push 0x48
push esi
call fcn.100ecec4
add esp, 8
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 4

Function at 0x1000b6d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1000b6f2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x5f]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x1000b6e0
mov byte [esi + 4], 0
mov eax, esi
pop esi
ret
Function at 0x10019170
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100efef3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x10238634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 3
push eax
call fcn.100092b0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.100092b0
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x30]
call fcn.100092b0
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x48]
call fcn.100092b0
mov dword [esi + 0x60], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0xf
mov byte [esi + 0x60], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0xf
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0xf
mov byte [esi + 0xb4], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0xf
mov byte [esi + 0xcc], 0
push 0
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 7
mov byte [esi + 0xe8], 0
call fcn.10019390
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100192ab
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100192a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001936b
push edx
push ecx
call fcn.100ecec4
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x100192f1
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100192e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001936b
push edx
push ecx
call fcn.100ecec4
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x10019333
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10019329
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001936b
push edx
push ecx
call fcn.100ecec4
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x1001937b
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10019371
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10019371
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ecec4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x60

Function at 0x1001a600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1001a63d
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0x1001b370
push 0
push 0
mov dword [0x1023b4b4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
push 0x10019af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop ebp
ret 0xc
Function at 0x1001a650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ax, word [0x100fdc04]
movq xmm0, qword [str._FWXY]
movq qword [ebp - 0xc], xmm0
mov word [ebp - 4], ax
push esi
mov esi, ecx
test ah, ah
je 0x1001a6a1
push ebx
xor ebx, ebx
mov eax, 0x1f7047dd
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x39
sub cl, al
add cl, 0x31
xor byte [ebp + ebx - 0xc], cl
inc ebx
cmp ebx, 0xa
jl 0x1001a677
pop ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x1001a6cf
xor al, al
nop dword [eax]
movsx ecx, al
cmp byte [ecx + edx], 0xb8
je 0x1001a6e2
inc al
cmp al, 0xf
jl 0x1001a6c0
xor eax, eax
mov ecx, esi
push eax
call fcn.1001a700
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + edx + 1]
mov ecx, esi
push eax
call fcn.1001a700
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x15], 0
je 0x1001b4b2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x3a]
inc eax
xor byte [edx], cl
cmp eax, 0x14
jb 0x1001b4a0
mov byte [esi + 0x15], 0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100089d0
add esp, 8
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1001b4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x4a], 0
je 0x1001b4f2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x3a]
inc eax
xor byte [edx], cl
cmp eax, 0x49
jb 0x1001b4e0
mov byte [esi + 0x4a], 0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100089d0
add esp, 8
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10020800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f08ec
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10238634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x100208b4
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [edi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x68], 9
call fcn.10019390
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
test ecx, ecx
jns 0x100208f6
mov eax, ecx
neg eax
je 0x100208f6
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x100208fe
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.1002b2c0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1002092d
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10022110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ef5f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10238634]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x10022167
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x10022178
push 0x3c
push esi
call fcn.100ecec4
add esp, 8
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 4
Function at 0x1002a6e0
Capabilities:
Create thread

Disassembly:
call fcn.100e9f70
push 0x1023b7b0
push 0x1002e810
push dword [0x1023b4b0]
call fcn.100ea0b0
push 0x1023b65c
push 0x10035820
push dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.100ea0b0
push 0
call fcn.100ea4d0
push 0
push 0
push 0
push 0x1002aca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10038600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f18cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10238634]
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, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
call fcn.10099900
mov edi, eax
test edi, edi
jne 0x100386af
push 4
mov dword [esi], eax
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push str.null
mov byte [esi], al
call fcn.1000b5d0
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x10038692
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10038688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100387db
push edx
push ecx
call fcn.100ecec4
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.100ed1ec
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x102153c0]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x28], 0
movaps xmm0, xmmword [0x102153d0]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x100
lea eax, [ecx - 0x3a]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 0x20
jb 0x100386e2
lea eax, [ebp - 0x50]
mov byte [ebp - 0x2f], 0
push eax
push 0x2712
push edi
call fcn.1009cec0
push 0
push 0x40
push edi
call fcn.1009cec0
push 0
push 0x51
push edi
call fcn.1009cec0
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x271f
push edi
call fcn.1009cec0
push 0x1003a870
push 0x4e2b
push edi
call fcn.1009cec0
lea eax, [ebp - 0x28]
push eax
push 0x2711
push edi
call fcn.1009cec0
add esp, 0x48
push edi
call fcn.10099960
add esp, 4
test eax, eax
je 0x10038772
push 0x10
push 0
push eax
call fcn.10099130
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
movups xmm0, xmmword [ebp - 0x28]
mov edx, dword [ebp + 0x20]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 0x28], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp edx, 0x10
jb 0x10038692
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10038688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10038688
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3