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

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1039f584]
cmp eax, dword [ecx + 4]
jle 0x10043267
push 0x1039f584
call fcn.10151b0d
add esp, 4
cmp dword [0x1039f584], 0xffffffff
jne 0x10043267
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x10043252
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10043218
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x1004324b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x10043230
cmp ecx, 0xe586ee45
je 0x10043254
mov esi, dword [esi + 4]
test esi, esi
jne 0x10043210
xor esi, esi
push 0x1039f584
mov dword [0x1039f588], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039f588]
pop edi
pop esi
ret

Function at 0x10043270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1039f574]
cmp eax, dword [ecx + 4]
jle 0x10043307
push 0x1039f574
call fcn.10151b0d
add esp, 4
cmp dword [0x1039f574], 0xffffffff
jne 0x10043307
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x100432f2
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100432b8
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x100432eb
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x100432d0
cmp ecx, 0xf3f59b2a
je 0x100432f4
mov esi, dword [esi + 4]
test esi, esi
jne 0x100432b0
xor esi, esi
push 0x1039f574
mov dword [0x1039f578], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039f578]
pop edi
pop esi
ret
Function at 0x10043970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x40]
mov dword [ecx + 0x40], eax
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x44], eax
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x48], eax
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x4c], eax
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x50], eax
mov eax, dword [edx + 0x54]
mov dword [ecx + 0x54], eax
mov eax, dword [edx + 0x58]
mov dword [ecx + 0x58], eax
mov eax, dword [edx + 0x5c]
mov dword [ecx + 0x5c], eax
mov eax, dword [edx + 0x60]
mov dword [ecx + 0x60], eax
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x64], eax
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x68], eax
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x6c], eax
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x70], eax
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x74], eax
mov eax, dword [edx + 0x78]
mov dword [ecx + 0x78], eax
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x7c], eax
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x80], eax
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x84], eax
movzx eax, byte [edx + 0x88]
mov byte [ecx + 0x88], al
mov eax, dword [edx + 0x8c]
mov dword [ecx + 0x8c], eax
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x90], eax
mov eax, dword [edx + 0x94]
mov dword [ecx + 0x94], eax
mov eax, dword [edx + 0x98]
mov dword [ecx + 0x98], eax
mov eax, dword [edx + 0x9c]
mov dword [ecx + 0x9c], eax
mov eax, dword [edx + 0xa0]
mov dword [ecx + 0xa0], eax
movzx eax, byte [edx + 0xa4]
mov byte [ecx + 0xa4], al
mov eax, ecx
ret 4
Function at 0x10048d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a0dfc]
cmp eax, dword [ecx + 4]
jle 0x10048de7
push 0x103a0dfc
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0dfc], 0xffffffff
jne 0x10048de7
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x10048dd2
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10048d98
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x10048dcb
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x10048db0
cmp ecx, 0x89289ff
je 0x10048dd4
mov esi, dword [esi + 4]
test esi, esi
jne 0x10048d90
xor esi, esi
push 0x103a0dfc
mov dword [0x1039f5a4], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039f5a4]
pop edi
pop esi
ret
Function at 0x1004cd90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a0e24]
cmp eax, dword [ecx + 4]
jle 0x1004ce27
push 0x103a0e24
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0e24], 0xffffffff
jne 0x1004ce27
mov eax, dword [0x1039ead8]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x1004ce12
mov edx, dword [esi + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004cdd8
sub eax, edi
mov ecx, 0x4fa38bcd
lea edi, [eax + 1]
test edi, edi
je 0x1004ce0b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub edi, 1
jne 0x1004cdf0
cmp ecx, 0x2115be40
je 0x1004ce14
mov esi, dword [esi + 4]
test esi, esi
jne 0x1004cdd0
xor esi, esi
push 0x103a0e24
mov dword [0x103a0e28], esi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x103a0e28]
pop edi
pop esi
ret

Function at 0x1004ce30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.101a8300
mov eax, dword [0x10249010]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103a0e64]
cmp eax, dword [ecx + 4]
jle 0x1004cea8
push 0x103a0e64
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0e64], 0xffffffff
jne 0x1004cea8
push 2
push 0x103a0e30
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
push 0x101c20a0
call fcn.1015198f
add esp, 0xc
push 0x103a0e64
call fcn.10151ac3
add esp, 4
push 0x103a0e30
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1004cec1
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 0x1020f1b4
push str.C:Weavelog.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push 0x1000
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.10035250
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea ecx, [esp + 0x24]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004cf21
push esi
sub ecx, edx
lea eax, [esp + 0xc]
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push 0x103a0e30
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [esp + 0x1010]
add esp, 4
pop esi
xor ecx, esp
call fcn.1015164c
mov esp, ebp
pop ebp
ret
Function at 0x1004da80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, edx
mov eax, dword [ebx]
nop dword [eax]
cmp edi, 7
ja case.default.0x1004da95
jmp dword [edi*4 + 0x1004dc28]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x1004dad8
sub ecx, 1
je 0x1004dac5
sub ecx, 1
jne 0x1004daeb
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x1004db6d
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x101fe5c8]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
sub edx, 1
jne 0x1004daf4
and edi, 7
jmp 0x1004da90
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
mov dword [ebx], eax
pop ebx
ret
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
ret
Function at 0x1004dbae
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, edx
mov eax, dword [ebx]
nop dword [eax]
cmp edi, 7
ja case.default.0x1004da95
jmp dword [edi*4 + 0x1004dc28]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x1004dad8
sub ecx, 1
je 0x1004dac5
sub ecx, 1
jne 0x1004daeb
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x1004db6d
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x101fe5c8]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
sub edx, 1
jne 0x1004daf4
and edi, 7
jmp 0x1004da90
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x101fe5c8]
mov dword [ebx], eax
pop ebx
ret
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101fe5c8]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
ret
Function at 0x10051340
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x103a3f6c]
test eax, eax
je 0x1005135c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100513af
mov eax, dword [eax]
test eax, eax
jne 0x10051350
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x100513ad
push esi
push edi
xor edi, edi
mov dword [edx + 8], 0
lea ecx, [edx + 0x20]
lea esi, [edi + 0x20]
mov dword [ecx], edi
mov eax, ecx
mov dword [edx + 4], ecx
add esi, 0x20
add ecx, 0x20
mov edi, eax
cmp esi, 0xfe0
jbe 0x10051387
mov eax, dword [0x103a3f6c]
pop edi
pop esi
mov dword [edx], eax
mov dword [0x103a3f6c], edx
mov eax, edx
ret
Function at 0x10051e80
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x10249010]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10051f70
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10051f69
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
nop dword [eax + eax]
cmp dword [esp + 0x10], 0x10
jb 0x10051f4b
call ebp
cmp dword [esp + 0x1c], eax
jne 0x10051f4b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x10051f4b
mov eax, dword [esi]
test eax, eax
jne 0x10051f15
push 0x200
push eax
push dword [0x1039eb84]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10051f67
lea edi, [esi + 8]
jmp 0x10051f40
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], ecx
jb 0x10051f40
shl ecx, 3
push ecx
push eax
push 0
push dword [0x1039eb84]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10051f67
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
mov dword [eax + edx*4], ecx
inc dword [edi]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10051ed0
pop edi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.1015164c
add esp, 0x20
ret

Function at 0x10051f90
Capabilities:
Suspend thread

Disassembly:
push ecx
push edi
mov edi, ecx
mov dword [esp + 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10051e80
cmp dword [edi], 0
je 0x10051fff
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10051ffe
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10051ff6
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.10051d70
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10051fc4
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret

Function at 0x10052010
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x10052060
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1005204f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10052047
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10052028
pop edi
pop ebp
push dword [ebx]
push 0
push dword [0x1039eb84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10052070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x103a3f60]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100520b6
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
pop ecx
ret
test ebx, ebx
je 0x100520d7
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100520f8
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100520f8
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100520f2
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100520f8
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
mov al, bl
and cl, 0xfd
add al, al
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10053230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0xc], edx
push esi
push edi
test ebp, ebp
je 0x100532c0
xor ebx, ebx
cmp dword [ebp + 4], ebx
jle 0x100532b9
xor edx, edx
mov dword [esp + 0x10], edx
nop
mov esi, dword [ebp]
add esi, edx
mov edx, dword [esi + 4]
test edx, edx
je 0x100532a8
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10053261
sub eax, edi
mov edi, 0x4fa38bcd
lea ecx, [eax + 1]
test ecx, ecx
je 0x10053289
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, edi
imul edi, eax, 0xf1546419
sub ecx, 1
jne 0x10053276
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x100532ca
cmp dword [esi], 0xa
jne 0x100532a8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100532a8
mov edx, eax
call fcn.10053230
test eax, eax
jne 0x100532c2
mov edx, dword [esp + 0x10]
inc ebx
add edx, 0x3c
mov dword [esp + 0x10], edx
cmp ebx, dword [ebp + 4]
jl 0x10053250
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x10053241
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100551e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, edx
mov edi, ecx
not eax
nop dword [eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101feaf8]
sub esi, 1
jne 0x100551f0
pop edi
pop esi
not eax
ret

Function at 0x10055210
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1005526e
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10055252
cmp edi, 2
jb 0x10055252
cmp byte [esi], cl
jne 0x10055252
cmp byte [esi + 1], cl
jne 0x10055252
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101feaf8]
jmp 0x10055223
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101feaf8]
test edi, edi
jne 0x10055223
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1005529d
cmp cl, 0x23
jne 0x10055284
cmp byte [esi], cl
jne 0x10055284
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x101feaf8]
test cl, cl
jne 0x10055275
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x10055410
Capabilities:
Read file on windows

Disassembly:
push edx
push dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor edx, edx
ret

Function at 0x10055430
Capabilities:
Write file on windows

Disassembly:
push edx
push dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor edx, edx
ret
Function at 0x10068f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 8], 0xffffffff
push ebp
push esi
push edi
movq xmm0, qword [ebx + 0x70]
lea ecx, [esp + 0x1c]
mov eax, dword [ebx + 0x78]
mov edi, edx
xor edx, edx
mov dword [esp + 0x10], ebx
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], eax
call fcn.100674a0
call fcn.10067460
movzx eax, al
test eax, eax
jne 0x10068f59
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.100674c0
call fcn.10067460
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x10068fbd
cmp eax, 3
jne 0x10068fbd
lea edx, [eax - 1]
lea ecx, [esp + 0x1c]
call fcn.100674d0
mov edx, 2
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.100674d0
xor esi, esi
mov ebx, eax
test ebp, ebp
jle 0x10068fb9
lea ecx, [esp + 0x1c]
call fcn.10067460
movzx eax, al
lea ecx, [esp + 0x1c]
mov edx, 2
mov dword [esp + 0x18], eax
call fcn.100674d0
cmp edi, ebx
jl 0x10068fa8
cmp edi, eax
jl 0x10068fb1
inc esi
mov ebx, eax
cmp esi, ebp
jl 0x10068f82
jmp 0x10068fb9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
movq xmm0, qword [ebx + 0x64]
sub esp, 0xc
mov eax, dword [ebx + 0x6c]
mov edx, esp
mov ecx, dword [esp + 0x20]
movq qword [edx], xmm0
mov dword [edx + 8], eax
lea eax, [esp + 0x28]
push eax
call fcn.10067810
add esp, 4
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
movq xmm0, qword [ebx + 0x34]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebx + 0x3c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x40]
push eax
call fcn.10067a70
mov edx, dword [esp + 0x54]
add esp, 0x1c
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, edx
pop edi
pop esi
pop ebp
movq qword [edx], xmm0
mov dword [edx + 8], ecx
pop ebx
add esp, 0x24
ret
Function at 0x1006ccb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1006ccd3
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10057820
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1006ccf4
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.10057820
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1006cd15
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.10057820
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1006cd52
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.10057820
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1006cd73
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.10057820
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1006cd94
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.10057820
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100705c0