joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100714d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10071502
mov eax, dword [ebp + 8]
push eax
mov dword [0x101a0ee8], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10072387
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10078840
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x1007884c
mov ecx, dword [eax]
jmp 0x1007884e
xor ecx, ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push 0
push 0x10000
push esi
push 0x10078940
push ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
push 0
mov dword [esi + 8], eax
call fcn.100ccf26
xor ecx, ecx
mov dword [esi], eax
add esp, 0x18
test eax, eax
sete cl
mov eax, ecx
pop esi
ret
Function at 0x10093bf0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x1019cd80], 0
jne 0x10093d27
push 0x120
push 0
push 0x1019cd94
mov dword [0x1019cd80], 0
call fcn.100c6790
push 0x25d4
push 0
push 0x1019ced4
call fcn.100c6790
movups xmm0, xmmword [0x101642c8]
mov eax, dword [0x1019f8b8]
add esp, 0x18
mov ecx, dword [0x1019f8b4]
mov dword [0x1019cd88], eax
mov eax, dword [0x1019f8bc]
mov dword [0x1019cd8c], eax
mov eax, dword [0x1019f8c0]
mov dword [0x1019cd84], ecx
mov dword [0x1019cd90], eax
movups xmmword [0x1019ceb4], xmm0
movups xmm0, xmmword [0x101642d8]
movups xmmword [0x1019cec4], xmm0
test ecx, ecx
jne 0x10093c94
mov dword [0x1019cd84], 0x10093bb0
mov dword [0x1019cd88], 0x10093bd0
mov dword [0x1019cd8c], 0x10093bc0
push 0x1019cd94
push dword [0x101642d0]
call fcn.10095140
add esp, 8
test eax, eax
je 0x10093d32
call dword [0x1019cd98]
test eax, eax
je 0x10093d2d
push 0x1019e288
call fcn.100944d0
add esp, 4
test eax, eax
je 0x10093d2d
push 0x1019e278
call fcn.100944f0
add esp, 4
test eax, eax
je 0x10093d2d
push 0x1019e280
call fcn.100944f0
add esp, 4
test eax, eax
je 0x10093d2d
push 0x1019f4a8
push 0x1019e278
call fcn.100945a0
add esp, 8
call fcn.100947d0
call fcn.10095130
call fcn.10095110
mov dword [0x1019e2a8], eax
mov dword [0x1019e2ac], edx
mov dword [0x1019cd80], 1
call fcn.10094310
mov eax, 1
ret
call fcn.10093d50
xor eax, eax
ret

Function at 0x100944f0
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x10094517
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.100935b0
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret
Function at 0x10096480
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x164
mov eax, dword [0x10164bc0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x74]
push 0
push eax
call fcn.100c6790
push 0x6d1
push 0
push 0x1019ea82
call fcn.100c6790
mov eax, 0x1019eb22
lea ebx, [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov esi, 0x20
sub ebx, 0x480
movsx edi, word [esi*2 + 0x1019e7c8]
cmp edi, 0xffffffff
je 0x100965dd
cmp esi, 0x140
jb 0x1009657a
cmp esi, 0x14e
ja 0x1009657a
mov dword [esp + 0x14], 0x60
mov dword [esp + 0x18], 0x61
mov dword [esp + 0x1c], 0x62
mov dword [esp + 0x20], 0x63
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 0x65
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x34], 0x68
mov dword [esp + 0x38], 0x69
mov dword [esp + 0x3c], 0x6e
mov dword [esp + 0x40], 0x6f
mov dword [esp + 0x44], 0x6a
mov dword [esp + 0x48], 0x6d
mov dword [esp + 0x4c], 0x6b
mov ebp, dword [ebx]
jmp 0x10096585
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x100965b6
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x100965d9
push 0
push 0
push 5
push dword [esp + 0x1c]
lea eax, [esp + 0x60]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x10]
inc esi
add eax, 5
add ebx, 4
mov dword [esp + 0x10], eax
cmp esi, 0x15c
jle 0x100964d5
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c490a
add esp, 0x164
ret

Function at 0x10099fb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
mov ecx, 0x7fffffff
test ebp, ebp
jle 0x10099fff
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 4]
mov esi, ecx
imul eax, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, edi
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
cmovge edx, ebx
add edi, 0xc
mov ebx, edx
mov edx, dword [esp + 0x1c]
sub ebp, 1
jne 0x10099fd4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x1009a890
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x10164bc0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
mov dword [0x1019f168], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1009a8ee
lea eax, [esp + 8]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x1019f158], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x1019f160], xmm0
mov eax, dword [edi + 0x70]
cmp eax, 0x34001
je 0x1009a907
cmp eax, 0x34004
je 0x1009a907
push dword [0x1019f17c]
jmp 0x1009a921
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1009a913
push dword [eax + 4]
jmp 0x1009a921
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push edi
call fcn.10094740
add esp, 4
lea eax, [esp + 8]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 8]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x2b4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
mov dword [0x1019f16c], edi
cmp dword [edi + 0x1f0], 0
je 0x1009a9bc
mov eax, dword [edi + 0x2b4]
push 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1009a9bc
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.10096130
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.100c490a
add esp, 0x14
ret

Function at 0x1009a9d0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1009aa10
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.10096130
add esp, 8
add esp, 0xc
ret
Function at 0x1009aa20
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1f0], 0
je 0x1009aa6e
push 0xc
push 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x20001
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1009aa6e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.10096130
add esp, 8
push 0
mov dword [0x1019f168], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x1019f160]
mov dword [0x1019f16c], 0
cvttsd2si ecx, qword [0x1019f158]
mov dword [esp + 8], eax
mov dword [esi + 0x2ec], eax
lea eax, [esp + 4]
push eax
push dword [esi + 0x2b4]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x2e8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [esi + 0x70]
cmp eax, 0x34001
je 0x1009aaef
cmp eax, 0x34004
je 0x1009aaef
push dword [0x1019f17c]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1009ab04
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret

Function at 0x1009ab20
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push 0xc
push 1
mov dword [esp + 8], 0x20001
mov eax, dword [eax + 0x2b4]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1009ab66
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.10096130
add esp, 8
add esp, 0xc
ret

Function at 0x1009abf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
push 0x11
shr esi, 0xf
call ebp
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebp
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
call ebp
push 0x5b
mov si, ax
call ebp
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
call ebp
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebp
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x100a67d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [0x10164b78]
mov edx, dword [esp + 4]
mov ecx, dword [eax + 0x9c]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax + ecx*4 - 4]
mov al, byte [edx]
test al, al
je 0x100a6804
nop
movsx eax, al
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0x1000193
mov al, byte [edx]
test al, al
jne 0x100a67f0
mov eax, ecx
ret
Function at 0x100ab8e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
mov ecx, dword [eax]
push edi
mov edi, dword [esp + 0x18]
cmp dword [ecx + 4], 0
jne 0x100aba23
push esi
push dword [eax + 4]
mov esi, dword [ecx]
push dword [esp + 0x1c]
push ecx
call fcn.100ac900
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 4]
movsd xmm1, qword [eax + 8]
movsd xmm2, qword [eax]
movaps xmm0, xmm1
addsd xmm0, xmm2
mov eax, esi
shl eax, 4
subsd xmm2, xmm1
mov dword [esp + 8], eax
movsd qword [edi], xmm0
xorps xmm0, xmm0
movsd qword [eax + edi], xmm2
movsd qword [edi + 8], xmm0
movsd qword [eax + edi + 8], xmm0
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
cmp eax, 1
jl 0x100aba22
mov esi, dword [esp + 8]
mov ecx, 0x10
mov edx, dword [esp + 0x14]
add esi, 0xfffffff0
nop word [eax + eax]
mov eax, dword [edx + 4]
movsd xmm1, qword [esi + eax + 8]
movsd xmm7, qword [ecx + eax]
movsd xmm4, qword [ecx + eax + 8]
movsd xmm6, qword [esi + eax]
xorps xmm1, xmmword [0x10139010]
addsd xmm6, xmm7
subsd xmm7, qword [esi + eax]
mov eax, dword [edx + 8]
movaps xmm5, xmm1
addsd xmm5, xmm4
subsd xmm4, xmm1
movsd xmm1, qword [0x10160458]
movaps xmm3, xmm7
mulsd xmm7, qword [eax + ecx - 8]
mulsd xmm3, qword [eax + ecx - 0x10]
movaps xmm0, xmm4
mulsd xmm4, qword [eax + ecx - 0x10]
mulsd xmm0, qword [eax + ecx - 8]
addsd xmm7, xmm4
subsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm6
subsd xmm6, xmm3
mulsd xmm0, xmm1
mulsd xmm6, xmm1
movsd qword [edi + ecx], xmm0
movaps xmm0, xmm7
addsd xmm0, xmm5
subsd xmm7, xmm5
mulsd xmm0, xmm1
mulsd xmm7, xmm1
movsd qword [edi + ecx + 8], xmm0
add ecx, 0x10
movsd qword [edi + esi], xmm6
movsd qword [edi + esi + 8], xmm7
sub esi, 0x10
sub dword [esp + 0xc], 1
jne 0x100ab970
pop esi
pop edi
add esp, 8
ret
Function at 0x100abbd0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x100abcfc
mov eax, dword [eax]
mov edx, eax
movsd xmm0, qword [edi]
mov ecx, dword [esi + 4]
shl edx, 4
mov dword [esp + 8], edx
addsd xmm0, qword [edx + edi]
movsd qword [ecx], xmm0
movsd xmm0, qword [edi]
subsd xmm0, qword [edx + edi]
mov ecx, dword [esi + 4]
cdq
sub eax, edx
sar eax, 1
movsd qword [ecx + 8], xmm0
mov dword [esp + 0x10], eax
cmp eax, 1
jl 0x100abceb
mov ecx, dword [esp + 8]
mov edx, 0x10
add ecx, 0xfffffff0
movsd xmm1, qword [edi + ecx + 8]
movsd xmm7, qword [edi + edx]
movsd xmm4, qword [edi + edx + 8]
movsd xmm5, qword [edi + ecx]
xorps xmm1, xmmword [0x10139010]
addsd xmm5, xmm7
subsd xmm7, qword [edi + ecx]
mov eax, dword [esi + 8]
movaps xmm6, xmm1
addsd xmm6, xmm4
subsd xmm4, xmm1
movaps xmm3, xmm7
mulsd xmm7, qword [eax + edx - 8]
mulsd xmm3, qword [eax + edx - 0x10]
movaps xmm0, xmm4
mulsd xmm4, qword [eax + edx - 0x10]
mulsd xmm0, qword [eax + edx - 8]
mov eax, dword [esi + 4]
addsd xmm7, xmm4
subsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm5
subsd xmm5, xmm3
movsd qword [edx + eax], xmm0
movaps xmm0, xmm7
mov eax, dword [esi + 4]
addsd xmm0, xmm6
subsd xmm6, xmm7
movsd qword [edx + eax + 8], xmm0
add edx, 0x10
mov eax, dword [esi + 4]
movsd qword [ecx + eax], xmm5
mov eax, dword [esi + 4]
movsd qword [ecx + eax + 8], xmm6
mov eax, dword [esi + 4]
movsd xmm0, qword [ecx + eax + 8]
mulsd xmm0, qword [0x1013b2e0]
movsd qword [ecx + eax + 8], xmm0
sub ecx, 0x10
sub dword [esp + 0x10], 1
jne 0x100abc31
push dword [esp + 0x18]
push dword [esi + 4]
push dword [esi]
call fcn.100ac900
add esp, 0xc
pop edi
pop esi
pop ecx
ret
Function at 0x100af9c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
movzx esi, word [esp + 0x18]
push edi
cmp ebx, 0x20
jb 0x100afa5a
push ebp
mov ebp, ebx
shr ebp, 5
nop dword [eax + eax]
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.100afb80
mov edi, eax
add esp, 8
mov ecx, edi
shr eax, 8
shr ecx, 0x10
sub ebx, 0x20
xor ecx, esi
shl esi, 8
shr ecx, 8
movzx ecx, cl
movzx edx, word [ecx*2 + 0x1013bcc0]
xor edx, esi
xor eax, edx
shl edx, 8
shr eax, 8
movzx eax, al
movzx ecx, word [eax*2 + 0x1013bcc0]
mov eax, edi
xor ecx, edx
xor eax, ecx
shl ecx, 8
shr eax, 8
movzx eax, al
movzx edx, word [eax*2 + 0x1013bcc0]
xor edx, ecx
mov eax, edx
shl edx, 8
shr eax, 8
xor eax, edi
movzx eax, al
movzx esi, word [eax*2 + 0x1013bcc0]
xor esi, edx
sub ebp, 1
jne 0x100af9e0
pop ebp
mov eax, ebx
shr eax, 3
sub eax, 1
je 0x100afaba
sub eax, 1
je 0x100afa94
sub eax, 1
jne 0x100afae3
lea eax, [esp + 0x10]
push 8
push eax
call fcn.100afb80
mov ecx, esi
add esp, 8
shr ecx, 8
xor eax, ecx
shl esi, 8
movzx eax, al
movzx eax, word [eax*2 + 0x1013bcc0]
xor esi, eax
lea eax, [esp + 0x10]
push 8
push eax
call fcn.100afb80
mov ecx, esi
add esp, 8
shr ecx, 8
xor eax, ecx
shl esi, 8
movzx eax, al
movzx eax, word [eax*2 + 0x1013bcc0]
xor esi, eax
lea eax, [esp + 0x10]
push 8
push eax
call fcn.100afb80
mov ecx, esi
add esp, 8
shr ecx, 8
xor eax, ecx
shl esi, 8
movzx eax, al
movzx eax, word [eax*2 + 0x1013bcc0]
xor esi, eax
and ebx, 7
test ebx, ebx
je 0x100afb10
lea eax, [esp + 0x10]
push 1
push eax
lea edi, [esi + esi]
call fcn.100afb80
shr esi, 0xf
add esp, 8
xor eax, esi
mov esi, edi
xor esi, 0x8005
test al, 1
cmove esi, edi
sub ebx, 1
jne 0x100afae7
pop edi
mov ax, si
pop esi
pop ebx
ret
Function at 0x100b3e70
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov edx, dword [esp + 0xc]
cmp edx, 4
jb 0x100b3eb8
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
shr edx, 2
nop word [eax + eax]
imul ecx, dword [esi], 0x5bd1e995
lea esi, [esi + 4]
imul edi, edi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
sub edx, 1
jne 0x100b3e90
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 4]
ret
Function at 0x100b7850
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [eax*4 + 4]
xor esi, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], 0x1014dde0
test edi, edi
je 0x100b78ab
mov eax, dword [esp + 0x24]
add eax, 2
movzx edx, byte [eax + 1]
lea eax, [eax + 4]
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 6]
shl edx, 8
or edx, ecx
mov dword [ebx + esi*4], edx
inc esi
cmp esi, edi
jb 0x100b7881
mov esi, edi
cmp edi, ebp
jae 0x100b797d
mov ebp, ebx
xor edx, edx
mov ebx, dword [ebx + esi*4 - 4]
mov eax, esi
div edi
test edx, edx
jne 0x100b7916
movzx eax, bl
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx ebx, byte [eax + str.cw]
movzx eax, byte [edx]
or ebx, ecx
xor ebx, eax
inc edx
mov dword [esp + 0x18], edx
jmp 0x100b7963
cmp edi, 6
jbe 0x100b7963
cmp edx, 4
jne 0x100b7963
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx ebx, byte [eax + str.cw]
or ebx, ecx
mov eax, dword [ebp]
add ebp, 4
xor eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x100b78b7
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100c5398
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x100c53cd
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x100c53ca
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x100c53d6
add edx, 0x28
cmp edx, esi
jne 0x100c53b8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100c53d3

Function at 0x100cbe55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100c4cf0
mov eax, dword [0x10164bc0]
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.100d6b77
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100cbe97
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100cbff3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101048c0
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 + 0x101a0ac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100d88ac
mov ecx, dword [esi*4 + 0x101a0ac8]
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 0x100cbfec
cmp eax, dword [ecx + edi + 0x24]
jne 0x100cbfec
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 0x100cbfec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d88ac
add esp, 0x14
test edx, edx
jl 0x100cbfec
jg 0x100cbf62
test eax, eax
jb 0x100cbfec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100cbfec
jl 0x100cbf7c
cmp dword [ebp - 0x1008], eax
ja 0x100cbfec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100cbf9a
test ebx, ebx
je 0x100cbfd3
cmp ecx, edi
jae 0x100cbfd3
mov al, byte [ecx]
cmp al, 0xd
jne 0x100cbfb4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100cbfc0
cmp byte [ecx + 1], 0xa
jne 0x100cbfc0
inc ecx
jmp 0x100cbfc0
movzx eax, al
movsx eax, byte [eax + 0x10164e28]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100cbf9a
cmp edx, ebx
jne 0x100cbf9a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100cbff1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100c490a
leave
ret
Function at 0x100d4bec
Capabilities:
Parse pe header

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

Function at 0x100d635f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101521d4
push 0x101521cc
push str.FlsAlloc
push 0x1f
call fcn.100d61de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d6393
push dword [ebp + 8]
mov ecx, esi
call dword [0x10106378]
call esi
jmp 0x100d6399
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d63dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101521e4
push 0x101521dc
push str.FlsGetValue
push 0x21
call fcn.100d61de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d6414
push dword [ebp + 8]
mov ecx, esi
call dword [0x10106378]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100d641c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101521ec
push 0x101521e4
push str.FlsSetValue
push 0x22
call fcn.100d61de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d6456
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10106378]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]