joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eb4a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x100eb62b
je 0x100eb652
sub eax, 0xa1
je 0x100eb652
sub eax, 1
je 0x100eb652
dec eax
sub eax, 1
je 0x100eb652
sub eax, 1
je 0x100eb652
dec eax
sub eax, 1
je 0x100eb652
sub eax, 1
je 0x100eb652
sub eax, 0x58
jne 0x100eb690
cmp dword [edi + 0xc0], 0xffffffff
je 0x100eb652
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100eb652
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100eb580
sub eax, 1
jne 0x100eb652
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100eb56f
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
test eax, eax
jne 0x100eb5cc
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100eb545
jmp 0x100eb6aa
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100eb6aa
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
test eax, eax
jne 0x100eb5cc
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100eb597
jmp 0x100eb6aa
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
mov ecx, eax
call fcn.1002cc64
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100eb6aa
sub eax, 0x200
je 0x100eb652
sub eax, 1
je 0x100eb652
sub eax, 1
je 0x100eb652
dec eax
sub eax, 1
je 0x100eb652
sub eax, 1
je 0x100eb652
dec eax
sub eax, 1
je 0x100eb652
sub eax, 1
jne 0x100eb690
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100eb671
cmp dword [eax + 0x20], ebx
je 0x100eb671
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x100eb690
cmp dword [eax + 0x20], ebx
je 0x100eb690
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100eb6af
lea eax, [edi + 0x2250]
test eax, eax
je 0x100eb6a6
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100eb6af
xor eax, eax
inc eax
jmp 0x100eb6b7
push esi
mov ecx, edi
call fcn.100721b4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101180e7
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x10184b1f
call fcn.10158574
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101181c8
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101181c8
cmp esi, 0x43
je 0x10118129
cmp esi, 0x2d
jne 0x101181c8
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101181c8
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10007ad0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.1000a150
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x101181b6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x101181b6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10001eb0
push ebx
mov ecx, edi
call fcn.10025155
call fcn.10158542
ret 4
Function at 0x1011ac83
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101e6e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.1015aee0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10168920
push eax
call fcn.10010d90
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x101a199c]
je 0x1011ade4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1011adf8
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1011adf8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x1011ad3f
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1011ad33
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.1011aa34
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x1011ad3a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011ad41
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1011af39
test eax, eax
je 0x1011ad6d
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1011a8bb
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x1011ad72
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.1011af39
test eax, eax
je 0x1011ad9a
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.1011a8bb
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x1011ada0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.1011af39
test eax, eax
je 0x1011adc2
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.1011a8bb
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x1011adc4
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1011add6
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1011ade4
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10158534
leave
ret 4
xor eax, eax
jmp 0x1011ade7
Function at 0x1011e882
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x1018f4dd
call fcn.101585a7
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1011ea13
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1011e9e5
sub eax, 1
je 0x1011e901
sub eax, 1
je 0x1011e8d9
sub eax, 1
je 0x1011e901
push 0x101c686c
mov ecx, edi
call fcn.1001080e
mov eax, edi
call fcn.10158556
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1011e8c3
lea eax, [ebp - 0x28c]
push eax
jmp 0x1011e8c8
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1011e8c3
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.1011adfc
test eax, eax
je 0x1011e8c3
lea ecx, [ebp - 0x3a0]
call fcn.10007ad0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1011e99b
test byte [ebp - 0x21c], 0x18
jne 0x1011e9bd
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x10193a10]
mov ecx, ebx
call esi
jmp 0x1011e9bd
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x10193a10]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10010edc
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10001eb0
jmp 0x1011e8cf
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1011e8c3
lea eax, [ebp - 0x390]
jmp 0x1011e8fe
call fcn.10022b32
int3

Function at 0x1011eb8b
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10153197
call fcn.1002e2c3
cmp dword [eax + 0x14], 0
jne 0x1011eba6
mov ecx, esi
pop esi
jmp fcn.1011de94
pop esi
ret
Function at 0x1011eca1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1002c368
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1011ecdd
call fcn.1011eebe
mov dword [esi + 0xc], 1
jmp 0x1011ece2
call fcn.1011eebe
cmp dword [esi], 0
je 0x1011ed2d
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1011ed08
push edi
call fcn.10020fc5
lea ecx, [edi + 1]
push ecx
jmp 0x1011ed17
push 0xff
call fcn.10009100
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1001e34a
pop edi
jmp 0x1011ed51
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x1011ed51
push dword [esi]
push dword [ebp - 4]
call fcn.1009c9af
pop esi
leave
ret 0xc

Function at 0x1011ee15
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1011eebe
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1011ee5d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10020fc5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1001e34a
jmp 0x1011ee68
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1009c9af
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x101216ff
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10121845
mov ecx, 0x101e6a40
call fcn.1002dbe0
mov esi, eax
test esi, esi
je 0x1012183a
xor eax, eax
cmp word [esi + 8], ax
jne 0x10121804
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x101217c0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x10121786
push str.MS_UI_Gothic
call fcn.10121883
pop ecx
test eax, eax
je 0x10121786
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x101217a1
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101217c0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x101217c6
push ebx
push edi
push eax
call fcn.100a1526
add esp, 0xc
jmp 0x101217c6
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.1002040a
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1012183f
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1009bdbb
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x10121807
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x10121815
push edi
call fcn.10167940
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.10009e00
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.10022b32
call fcn.10022b4c
int3

Function at 0x10121946
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1016d392
pop ecx
test eax, eax
jne 0x10121988
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10001d80
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1012194e
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x1012f31d
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x1012f36a
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.10167940
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x1012f361
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x1012f34f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.10022b32
int3

Function at 0x1015070f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x101e6e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x10150779
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x1015075e
lea eax, [ebp - 0x158]
push eax
jmp 0x10150763
push 0x101bbfe8
call fcn.1001080e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10158534
leave
ret 8
call fcn.10022b32
int3

Function at 0x10150c5e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10006130
call fcn.1002e2c3
cmp dword [eax + 0x14], 0
jne 0x10150c79
mov ecx, esi
pop esi
jmp fcn.101504b9
pop esi
ret
Function at 0x1016e27c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10158720
mov eax, dword [0x101e6e80]
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.1016de5a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1016e2be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1016e41a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10158d10
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 + 0x101f0248]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10176d94
mov ecx, dword [esi*4 + 0x101f0248]
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 0x1016e413
cmp eax, dword [ecx + edi + 0x24]
jne 0x1016e413
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 0x1016e413
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10176d94
add esp, 0x14
test edx, edx
jl 0x1016e413
jg 0x1016e389
test eax, eax
jb 0x1016e413
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1016e413
jl 0x1016e3a3
cmp dword [ebp - 0x1008], eax
ja 0x1016e413
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1016e3c1
test ebx, ebx
je 0x1016e3fa
cmp ecx, edi
jae 0x1016e3fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x1016e3db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1016e3e7
cmp byte [ecx + 1], 0xa
jne 0x1016e3e7
inc ecx
jmp 0x1016e3e7
movzx eax, al
movsx eax, byte [eax + 0x101e71a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1016e3c1
cmp edx, ebx
jne 0x1016e3c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1016e418
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10158534
leave
ret

Function at 0x1016ec6b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1016ecaa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1016ecaa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1016ecaa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1016ecaa
cmp dword [ecx + 0x74], 0xe
jbe 0x1016ecaa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101752fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c26e8
push 0x101c26e0
push str.FlsAlloc
push 0x1f
call fcn.10175129
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10175332
push dword [ebp + 8]
mov ecx, esi
call dword [0x10193a10]
call esi
jmp 0x10175338
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1017537c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c26f8
push 0x101c26f0
push str.FlsGetValue
push 0x21
call fcn.10175129
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101753b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10193a10]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101753bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c2700
push 0x101c26f8
push str.FlsSetValue
push 0x22
call fcn.10175129
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101753f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10193a10]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1017622c
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 + 0x101f0248]
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 0x1017626c
cmp byte [ebx], 0xa
jne 0x1017626c
or byte [edi + eax + 0x28], 4
jmp 0x10176271
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 0x10176370
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10176353
inc eax
cmp dl, 0xd
je 0x1017629d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101762c3
cmp eax, ecx
jae 0x101762d1
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 0x10176285
jmp 0x10176370
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 0x1017634e
cmp dword [ebp - 0x10], 0
je 0x1017634e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101f0248]
test byte [eax + edi + 0x28], 0x48
je 0x10176328
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10176313
mov byte [esi], dl
jmp 0x10176324
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101f0248]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10176370
cmp byte [ebp - 1], 0xa
jne 0x10176337
cmp esi, ebx
jne 0x10176337
mov byte [esi], 0xa
jmp 0x1017636f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10176db2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10176370
mov byte [esi], 0xd
jmp 0x1017636f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101f0248]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1017636d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10176370
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret