joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452e86
mov eax, ebx
call fcn.00454fc8
test al, al
jne 0x452e86
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a60
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x452e73
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x452e93
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
jmp 0x452e93
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4541dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45424a
mov eax, esi
call fcn.0043d184
test al, al
je 0x45424a
mov eax, dword [ebx + 0x84]
call fcn.0043ce88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45424a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45423e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ce88
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00434f2c
jmp 0x45424a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454018
pop esi
pop ebx
ret

Function at 0x45671c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x456724
push ecx
mov eax, 0x4550f4
call fcn.00406728
xor eax, eax
push ebp
push 0x456859
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x458988]
mov eax, dword [eax]
call fcn.00453374
mov eax, 0x45dccc
mov edx, 0x456870
call fcn.004049c4
lea edx, [ebp - 0x18]
mov eax, dword [0x458988]
mov eax, dword [eax]
call fcn.00453afc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408c60
mov edx, dword [ebp - 0x14]
mov eax, 0x45dcc8
call fcn.004049c4
mov eax, dword [0x45dcc8]
test eax, eax
je 0x456794
sub eax, 4
mov eax, dword [eax]
mov edx, dword [0x45dcc8]
cmp byte [edx + eax - 1], 0x5c
je 0x4567b0
mov eax, 0x45dcc8
mov edx, 0x456888
call fcn.00404c3c
lea eax, [ebp - 0x1c]
mov ecx, dword [0x45dccc]
mov edx, dword [0x45dcc8]
call fcn.00404c88
mov eax, dword [ebp - 0x1c]
call fcn.00408bb4
test al, al
je 0x4567f6
push 5
lea eax, [ebp - 0x20]
mov ecx, dword [0x45dccc]
mov edx, dword [0x45dcc8]
call fcn.00404c88
mov eax, dword [ebp - 0x20]
call fcn.00404e00
push eax
call sub.kernel32.dll_WinExec
jmp 0x456832
push 0x10
push 0x456894
push dword [0x45dccc]
push 0x4568ac
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404d04
mov eax, dword [ebp - 0x24]
call fcn.00404e00
mov edx, eax
mov ecx, 0x4568bc
mov eax, dword [0x458988]
mov eax, dword [eax]
call fcn.00453594
jmp 0x45683e
mov eax, dword [0x458988]
mov eax, dword [eax]
call fcn.0045338c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456860
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404994
ret
Function at 0x10004e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10030638]
mov dword [0x10030750], eax
mov ecx, dword [0x1003061c]
mov dword [0x10030758], ecx
mov edx, dword [0x100306f4]
mov dword [0x10030760], edx
mov eax, dword [0x10030618]
mov dword [0x1003075c], eax
mov ecx, dword [0x10030510]
mov dword [0x10030764], ecx
mov edx, dword [0x1003045c]
mov dword [0x10030770], edx
mov eax, dword [0x100304ec]
mov dword [0x10030778], eax
mov ecx, dword [0x100305dc]
mov dword [0x10030768], ecx
mov edx, dword [0x100304c0]
mov dword [0x1003076c], edx
mov eax, dword [0x100304d0]
mov dword [0x10030774], eax
mov ecx, dword [0x10030608]
mov dword [0x1003034c], ecx
mov edx, dword [0x100306c8]
mov dword [0x10030748], edx
mov eax, dword [0x100303c4]
mov dword [0x1003074c], eax
push 0
push 0
push 0
push 0x10004ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10009b40
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1000a010
mov ecx, dword [0x10030688]
mov dword [0x10030354], ecx
push 0x10004cc0
push 0x10030354
call fcn.100095a0
call fcn.10009ba0
pop ebp
ret

Function at 0x100063a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x100063b2
jmp 0x100063ce
push 0
push 0
push 0
push 0x10004d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
jmp 0x100063d3
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10007b0c
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 0x10007b2d
jl 0x10007b24
test edi, edi
jne 0x10007b2d
xor eax, eax
xor edx, edx
jmp 0x10007bee
cmp dword [ebx + 0x38], 0
je 0x10007b42
push eax
push edi
push dword [ebp + 8]
call fcn.10007bf4
jmp 0x10007bee
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10007b89
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10007b89
cmp eax, edi
jb 0x10007b63
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000d630
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 0x10007b8f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10007be3
mov ecx, ebx
call fcn.100073ac
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10007bce
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10010578
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 0x10007be3
jmp 0x10007ba1
test edx, edx
je 0x10007be3
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10010578
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 0x10008400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100085d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100084dd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002f134]
jb 0x1000844a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002f138]
ja 0x1000844a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000841a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000dbb0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000846f
jmp 0x100084dd
cmp dword [ebp - 0x14], 0x10000
jne 0x100084c3
cmp dword [ebp - 0x18], 0x10000
jb 0x100084c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100084a6
mov eax, dword [ebp - 8]
jmp 0x100084df
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100084b6
xor eax, eax
jmp 0x100084df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100084d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100085d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000841a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100084f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10008600
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100085c5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002f134]
jb 0x10008535
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002f138]
ja 0x10008535
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10008505
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000dbb0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000855a
jmp 0x100085c5
cmp dword [ebp - 0x14], 0x10000
jne 0x100085ae
cmp dword [ebp - 0x18], 0x10000
jb 0x100085ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008591
mov eax, dword [ebp - 8]
jmp 0x100085c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100085a1
xor eax, eax
jmp 0x100085c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100085c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10008600
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10008505
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10008630
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10008a20
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10030b14], 0
jne 0x1000866d
cmp dword [0x10030b10], 0
je 0x1000866d
mov eax, dword [0x10030b10]
mov dword [0x10030b14], eax
cmp dword [0x10030b14], 0
je 0x100086ea
mov ecx, dword [0x10030b14]
cmp dword [ecx + 8], 0
je 0x100086ea
mov edx, dword [0x10030b14]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100086ea
mov ecx, dword [0x10030b14]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100086ea
mov eax, dword [0x10030b14]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100086b9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100086c0
xor eax, eax
jmp 0x10008809
mov ecx, dword [0x10030b14]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000dbb0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10008809
mov edx, dword [0x10030b10]
mov dword [0x10030b14], edx
jmp 0x10008706
mov eax, dword [0x10030b14]
mov ecx, dword [eax + 4]
mov dword [0x10030b14], ecx
cmp dword [0x10030b14], 0
je 0x10008746
cmp dword [0x10030b14], 0
je 0x10008744
mov edx, dword [0x10030b14]
cmp dword [edx + 8], 0
je 0x10008744
mov eax, dword [0x10030b14]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10008744
mov edx, dword [0x10030b14]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10008744
jmp 0x1000869e
jmp 0x100086f8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10008810
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10008807
mov eax, dword [ebp - 0x18]
mov dword [0x10030b14], eax
mov ecx, dword [0x10030b14]
mov dword [ecx], 0x52727464
mov edx, dword [0x10030b14]
mov dword [edx + 8], 0
mov eax, dword [0x10030b14]
mov ecx, dword [0x10030b10]
mov dword [eax + 4], ecx
mov edx, dword [0x10030b14]
mov dword [0x10030b10], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10030b14]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100087d7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100087f7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100087ce
mov eax, dword [0x10030b14]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000869e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10009550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10030b10]
mov dword [ebp - 4], eax
jmp 0x10009569
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10009590
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000958e
call sub.KERNEL32.dll_GetLastError
jmp 0x10009592
jmp 0x10009560
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10009a30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10030b20], eax
je 0x10009a4d
mov eax, 0x10dd
jmp 0x10009b30
mov eax, dword [0x10030b30]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009acc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10009aa8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10009aa8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10008ab0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000af20
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10009a55
mov dword [0x10030b30], 0
call fcn.10009390
mov ecx, dword [0x10030b2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10009b1a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000af20
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10009ae4
mov dword [0x10030b2c], 0
mov dword [0x10030b20], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a010
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10030b24], 0
je 0x1000a029
mov eax, dword [0x10030b24]
jmp 0x1000a0c8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000a03a
xor eax, eax
jmp 0x1000a0c8
push 8
call fcn.1000aef0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a092
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000a07b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000af20
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10030b24], eax
mov dword [0x10030b28], 0
mov eax, dword [ebp - 8]
jmp 0x1000a0c8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000a0aa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000a05a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10030b2c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10030b2c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10010dd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000bdb0
mov eax, dword [0x1002f144]
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.100171cf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10010e13
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10010f6f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020b30
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 + 0x100312e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10018107
mov ecx, dword [esi*4 + 0x100312e0]
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 0x10010f68
cmp eax, dword [ecx + edi + 0x24]
jne 0x10010f68
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 0x10010f68
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10018107
add esp, 0x14
test edx, edx
jl 0x10010f68
jg 0x10010ede
test eax, eax
jb 0x10010f68
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10010f68
jl 0x10010ef8
cmp dword [ebp - 0x1008], eax
ja 0x10010f68
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10010f16
test ebx, ebx
je 0x10010f4f
cmp ecx, edi
jae 0x10010f4f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10010f30
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10010f3c
cmp byte [ecx + 1], 0xa
jne 0x10010f3c
inc ecx
jmp 0x10010f3c
movzx eax, al
movsx eax, byte [eax + 0x1002f3a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10010f16
cmp edx, ebx
jne 0x10010f16
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10010f6d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b256
leave
ret

Function at 0x10013054
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028378
push 0x10028370
push str.FlsAlloc
push 0x1f
call fcn.10016a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016bd0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002216c]
call esi
jmp 0x10016bd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016c1a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028388
push 0x10028380
push str.FlsGetValue
push 0x21
call fcn.10016a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016c51
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002216c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016c59
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028390
push 0x10028388
push str.FlsSetValue
push 0x22
call fcn.10016a64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016c93
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002216c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017405
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 + 0x100312e0]
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 0x10017445
cmp byte [ebx], 0xa
jne 0x10017445
or byte [edi + eax + 0x28], 4
jmp 0x1001744a
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 0x10017549
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001752c
inc eax
cmp dl, 0xd
je 0x10017476
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001749c
cmp eax, ecx
jae 0x100174aa
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 0x1001745e
jmp 0x10017549
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 0x10017527
cmp dword [ebp - 0x10], 0
je 0x10017527
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100312e0]
test byte [eax + edi + 0x28], 0x48
je 0x10017501
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100174ec
mov byte [esi], dl
jmp 0x100174fd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100312e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10017549
cmp byte [ebp - 1], 0xa
jne 0x10017510
cmp esi, ebx
jne 0x10017510
mov byte [esi], 0xa
jmp 0x10017548
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10018125
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10017549
mov byte [esi], 0xd
jmp 0x10017548
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100312e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10017546
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10017549
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017552
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 + 0x100312e0]
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 0x10017598
cmp word [ebx], dx
jne 0x10017598
or byte [eax + edi + 0x28], 4
jmp 0x1001759d
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 0x10017700
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 0x100176e0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100175de
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10017614
cmp eax, edx
jae 0x10017622
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 0x100175b9
jmp 0x10017700
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 0x100176db
cmp dword [ebp - 0x18], 0
je 0x100176db
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100312e0]
test byte [eax + edi + 0x28], 0x48
je 0x100176b1
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 0x10017675
mov word [esi], cx
jmp 0x100176ac
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100312e0]
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 + 0x100312e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100312e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10017700
pop eax
cmp word [ebp - 4], ax
jne 0x100176c1
cmp esi, ebx
jne 0x100176c1
mov word [esi], ax
jmp 0x100176fd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10018125
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10017700
push 0xd
pop eax
jmp 0x100176bc
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100312e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100176fa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10017700
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret