joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014284
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x1002323f
call fcn.1002159d
mov esi, ecx
movzx eax, word [esi + 0xf6]
xor ebx, ebx
movaps xmm0, xmmword [0x1002a2d0]
mov edx, ebx
push eax
movzx eax, word [esi + 0xf4]
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x35747e
mov cl, byte [ebp - 0x24]
xor byte [ebp + edx - 0x23], cl
inc edx
cmp edx, 0x12
jb 0x100142bb
sub esp, 0x18
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x68]
push eax
call fcn.10003b75
add esp, 0x24
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0x10
jb 0x100142f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x50]
call fcn.10004090
mov byte [ebp - 4], 1
lea edx, [ebp - 0x50]
mov ecx, dword [esi + 0x50]
call fcn.100092aa
xor edi, edi
lea ecx, [ebp - 0x50]
push ebx
inc edi
push edi
call fcn.10003f3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
push ebx
push edi
call fcn.10003f3c
movzx eax, word [esi + 0xf8]
test ax, ax
jne 0x10014364
mov cl, 0x42
mov byte [ebp - 0xe], bl
mov al, 0x6f
mov byte [ebp - 0x10], cl
xor al, cl
lea ecx, [ebp - 0x50]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0xf]
push eax
call fcn.10004090
mov dword [ebp - 4], 2
lea edx, [ebp - 0x50]
mov ecx, dword [esi + 0x54]
call fcn.100092aa
lea ecx, [ebp - 0x50]
jmp 0x100143e5
push eax
mov cl, 0x73
mov dword [ebp - 0x20], 0x101a2773
mov dword [ebp - 0x1c], 0x49071618
mov edx, ebx
mov dword [ebp - 0x18], 0x17565053
mov byte [ebp - 0x14], bl
xor cl, byte [ebp + edx - 0x1f]
mov byte [ebp + edx - 0x1f], cl
inc edx
cmp edx, 0xb
jae 0x10014394
mov cl, byte [ebp - 0x20]
jmp 0x10014381
sub esp, 0x18
mov byte [ebp - 0x14], bl
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x68]
push eax
call fcn.10003b75
add esp, 0x20
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x100143c0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x50]
call fcn.10004090
mov byte [ebp - 4], 4
lea edx, [ebp - 0x50]
mov ecx, dword [esi + 0x54]
call fcn.100092aa
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.10003f3c
lea ecx, [ebp - 0x68]
or dword [ebp - 4], 0xffffffff
push ebx
push edi
call fcn.10003f3c
movzx eax, word [esi + 0xf4]
mov edx, ebx
movss xmm1, dword [0x10029cf4]
push ecx
push ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov byte [ebp - 0x28], bl
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x1002a300]
movups xmmword [ebp - 0x38], xmm0
mov cl, byte [ebp - 0x38]
xor byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 0xf
jb 0x10014424
sub esp, 0x18
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x98]
push eax
call fcn.10003b75
add esp, 0x24
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10014460
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10004090
mov byte [ebp - 4], 6
lea edx, [ebp - 0x80]
mov ecx, dword [esi + 0x58]
call fcn.100092aa
push ebx
push edi
lea ecx, [ebp - 0x80]
call fcn.10003f3c
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.10003f3c
call fcn.10021566
ret
Function at 0x100149c8
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0x60
mov eax, 0x100232d2
call fcn.100215d1
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10005947
movzx eax, al
xor ebx, ebx
sub eax, ebx
je 0x10014aa9
sub eax, 1
jne 0x10014b71
mov cl, 0x10
mov dword [ebp - 0x38], 0x647f5c10
mov dword [ebp - 0x34], 0x69627564
mov edx, ebx
mov dword [ebp - 0x30], 0x7e756655
mov word [ebp - 0x2c], 0x64
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 0xc
jae 0x10014a26
mov cl, byte [ebp - 0x38]
jmp 0x10014a13
lea eax, [ebp - 0x37]
mov byte [ebp - 0x2b], bl
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004090
mov dword [ebp - 4], 3
mov edx, ebx
movaps xmm0, xmmword [0x1002a020]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x5a031616
mov dword [ebp - 0x40], 0x14131510
mov dword [ebp - 0x3c], 0x541e1f
mov cl, byte [ebp - 0x54]
xor byte [ebp + edx - 0x53], cl
inc edx
cmp edx, 0x1a
jb 0x10014a5e
lea eax, [ebp - 0x53]
mov byte [ebp - 0x39], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10004090
push ebx
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call dword [0x10028c0c]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10003f3c
lea ecx, [ebp - 0x6c]
jmp 0x10014b69
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.1000586e
cmp dword [ebp - 0x18], 0
je 0x10014b66
cmp dword [ebp - 0x18], 0xff
ja 0x10014b66
mov cl, 0x24
mov dword [ebp - 0x38], 0x504b6824
mov dword [ebp - 0x34], 0x5d564150
mov edx, ebx
mov dword [ebp - 0x30], 0x4a415261
mov word [ebp - 0x2c], 0x50
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 0xc
jae 0x10014b0d
mov cl, byte [ebp - 0x38]
jmp 0x10014afa
lea eax, [ebp - 0x37]
mov byte [ebp - 0x2b], bl
push eax
lea ecx, [ebp - 0x50]
call fcn.10004090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004090
push ebx
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x6c]
push eax
push eax
call dword [0x10028c0c]
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.10003f3c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10003f3c
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10003f3c
call fcn.1002157b
ret 4
Function at 0x1001910e
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ecx, ecx
mov dword [0x10056680], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x1005667c], ecx
push edi
push ecx
mov dword [0x10056678], eax
mov dword [0x10056684], ecx
mov dword [0x10056688], eax
mov dword [0x1005668c], ecx
mov dword [0x10056690], ecx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, eax
mov esi, edx
mov eax, 0x55555555
mov dword [0x100566a0], edi
xor ebx, ebx
mov dword [0x10057a20], eax
pop ecx
mov dword [0x10057a24], eax
inc ebx
mov dword [0x100566a4], esi
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.100218a0
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x100566a0], edi
adc esi, edx
mov dword [ebx*8 + 0x100566a4], esi
inc ebx
cmp ebx, eax
jl 0x1001916e
movaps xmm0, xmmword [0x1002a350]
pop edi
pop esi
mov dword [0x10056698], eax
mov eax, 0x10056678
movups xmmword [0x10057a28], xmm0
pop ebx
ret 0x10

Function at 0x1001d127
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1002f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x1001d170
cmp word [edx], cx
je 0x1001d170
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001d195
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 0x14]
push ebx
push 1
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x1001d193
cmp ecx, esi
je 0x1001d193
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100204d5
mov esp, ebp
pop ebp
ret

Function at 0x1001d3bb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1002f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x1001d427
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001d40d
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x1001d456
inc ax
mov word [ebp - 0xa], ax
jmp 0x1001d427
cmp eax, 0xe7
jne 0x1001d456
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1001d456
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x1001d3f0
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100204d5
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x1001d445
Function at 0x1001d800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1001d9d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001d8dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001d84a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002f004]
ja 0x1001d84a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001d81a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1001d86f
jmp 0x1001d8dd
cmp dword [ebp - 0x14], 0x10000
jne 0x1001d8c3
cmp dword [ebp - 0x18], 0x10000
jb 0x1001d8c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001d8a6
mov eax, dword [ebp - 8]
jmp 0x1001d8df
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1001d8b6
xor eax, eax
jmp 0x1001d8df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001d8d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1001d9d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001d81a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001d8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1001da00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001d9c5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001d935
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002f004]
ja 0x1001d935
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001d905
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1001d95a
jmp 0x1001d9c5
cmp dword [ebp - 0x14], 0x10000
jne 0x1001d9ae
cmp dword [ebp - 0x18], 0x10000
jb 0x1001d9ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001d991
mov eax, dword [ebp - 8]
jmp 0x1001d9c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1001d9a1
xor eax, eax
jmp 0x1001d9c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001d9c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1001da00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001d905
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001da30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001de20
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100308d0], 0
jne 0x1001da6d
cmp dword [0x100308cc], 0
je 0x1001da6d
mov eax, dword [0x100308cc]
mov dword [0x100308d0], eax
cmp dword [0x100308d0], 0
je 0x1001daea
mov ecx, dword [0x100308d0]
cmp dword [ecx + 8], 0
je 0x1001daea
mov edx, dword [0x100308d0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001daea
mov ecx, dword [0x100308d0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001daea
mov eax, dword [0x100308d0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1001dab9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1001dac0
xor eax, eax
jmp 0x1001dc09
mov ecx, dword [0x100308d0]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1001dc09
mov edx, dword [0x100308cc]
mov dword [0x100308d0], edx
jmp 0x1001db06
mov eax, dword [0x100308d0]
mov ecx, dword [eax + 4]
mov dword [0x100308d0], ecx
cmp dword [0x100308d0], 0
je 0x1001db46
cmp dword [0x100308d0], 0
je 0x1001db44
mov edx, dword [0x100308d0]
cmp dword [edx + 8], 0
je 0x1001db44
mov eax, dword [0x100308d0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1001db44
mov edx, dword [0x100308d0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1001db44
jmp 0x1001da9e
jmp 0x1001daf8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001dc10
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1001dc07
mov eax, dword [ebp - 0x18]
mov dword [0x100308d0], eax
mov ecx, dword [0x100308d0]
mov dword [ecx], 0x52727464
mov edx, dword [0x100308d0]
mov dword [edx + 8], 0
mov eax, dword [0x100308d0]
mov ecx, dword [0x100308cc]
mov dword [eax + 4], ecx
mov edx, dword [0x100308d0]
mov dword [0x100308cc], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100308d0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1001dbd7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1001dbf7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001dbce
mov eax, dword [0x100308d0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001da9e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001e950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100308cc]
mov dword [ebp - 4], eax
jmp 0x1001e969
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1001e990
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1001e98e
call sub.KERNEL32.dll_GetLastError
jmp 0x1001e992
jmp 0x1001e960
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001ee30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100308dc], eax
je 0x1001ee54
mov eax, 0x10dd
jmp 0x1001effc
cmp dword [0x100308e0], 0
je 0x1001ee67
mov eax, dword [0x100308e0]
jmp 0x1001effc
cmp dword [ebp + 0xc], 0
jne 0x1001ee77
mov eax, 0x57
jmp 0x1001effc
cmp dword [ebp + 8], 0
jne 0x1001ee87
mov eax, 6
jmp 0x1001effc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1001eeb0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100308e0], ecx
mov edx, dword [ebp + 8]
mov dword [0x100308e4], edx
mov eax, dword [ebp - 8]
jmp 0x1001effc
push 0x18
call fcn.100204e6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001ef0b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100308e0], ecx
cmp dword [ebp - 4], 0
je 0x1001eefa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10020519
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100308e4], ecx
mov eax, dword [ebp - 8]
jmp 0x1001effc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1001ee10
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001ee10
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1001ef4b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1001ef67
mov dword [ebp - 8], 9
cmp dword [0x100308d4], 0
je 0x1001ef62
jmp 0x1001eed9
jmp 0x1001eed0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1001ef8e
mov dword [ebp - 8], 9
cmp dword [0x100308d4], 0
je 0x1001ef89
jmp 0x1001eed9
jmp 0x1001eed0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1001efb9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1001eed0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100308ec]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100308ec], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f010
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100308dc], eax
je 0x1001f02d
mov eax, 0x10dd
jmp 0x1001f110
mov eax, dword [0x100308ec]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001f0ac
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001f088
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001f088
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1001deb0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10020519
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1001f035
mov dword [0x100308ec], 0
call fcn.1001e790
mov ecx, dword [0x100308e8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1001f0fa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10020519
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1001f0c4
mov dword [0x100308e8], 0
mov dword [0x100308dc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001f5f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100308e0], 0
je 0x1001f609
mov eax, dword [0x100308e0]
jmp 0x1001f6a8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1001f61a
xor eax, eax
jmp 0x1001f6a8
push 8
call fcn.100204e6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001f672
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001f65b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10020519
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100308e0], eax
mov dword [0x100308e4], 0
mov eax, dword [ebp - 8]
jmp 0x1001f6a8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1001f68a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1001f63a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100308e8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100308e8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10012447
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x10012488
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x10012461
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100124a6
dec esi
je 0x1001249d
dec esi
jne 0x100124ab
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43b123
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x9c
wait
cmp al, 0x7d
out 0x61, eax
add al, 0xd8
aam 0xcc
inc edi
pop ss
push es
mov eax, dword [0x247a604a]
pop ebx
invalid
push es
add al, 0x19
jne 0x43b114
mov ch, byte [edi + 0x4a]
cld
in al, 0x50
invalid
loope 0x43b0c2
inc edi
add dword [ecx], ebx
wait
add dword [ecx], eax
xor dh, byte [edi - 0x35]
loopne 0x43b10b
out dx, al
div byte [eax + 0x6614ea27]
sahf
inc eax
ret
Function at 0x627cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303c0
cmp edx, dword [eax]
je 0x627d13
add eax, 8
inc ecx
cmp eax, 0x630450
jl 0x627d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303c0]
jne 0x627e41
mov eax, dword [0x638d68]
cmp eax, 1
je 0x627e1b
test eax, eax
jne 0x627d44
cmp dword [0x6302e8], 1
je 0x627e1b
cmp edx, 0xfc
je 0x627e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006286d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627dbe
lea eax, [ebp - 0x1a4]
lea eax, [ebp + 8]
lea esi, [esi + 0x6303c4]
push 0
push eax
push dword [esi]
call fcn.00628b60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x1000ac33
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ac72
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ac72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ac72
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ac72
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ac72
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret