joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005d10
Capabilities:
Acquire debug privileges
Get session information
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x12c], 0
push 1
push 0x10033614
call fcn.10005c50
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x10005f08
mov dword [ebp - 0x124], 0
jmp 0x10005d97
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x108]
jae 0x10005dd3
imul ecx, dword [ebp - 0x124], 0xc
mov edx, dword [ebp - 0x11c]
cmp dword [edx + ecx + 8], 0
jne 0x10005dd1
imul eax, dword [ebp - 0x124], 0xc
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x128], edx
jmp 0x10005dd3
jmp 0x10005d88
cmp dword [ebp - 0x128], 0xffffffff
je 0x10005efb
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 5
mov edx, dword [ebp - 0x128]
push edx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x10005efb
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.10014578
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10005eee
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x10005ed7
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000e870
add esp, 0xc
mov dword [ebp - 0x12c], 1
jmp 0x10005eee
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100144db
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push 0
push 0x10033628
call fcn.10005c50
add esp, 8
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret
Function at 0x10006510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100336e4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [str.ZhuDongFangYu.exe]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x100336ec]
mov dword [ebp - 0x14], edx
mov eax, dword [0x100336f0]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x100336f4]
mov dword [ebp - 0xc], ecx
mov dx, word [0x100336f8]
mov word [ebp - 8], dx
mov byte [ebp - 0x145], 0
mov dword [ebp - 0x144], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100066f2
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x100066f2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x154], ecx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
mov cl, byte [eax]
mov byte [ebp - 0x146], cl
mov edx, dword [ebp - 0x154]
cmp cl, byte [edx]
jne 0x10006625
cmp byte [ebp - 0x146], 0
je 0x10006619
mov eax, dword [ebp - 0x150]
mov cl, byte [eax + 1]
mov byte [ebp - 0x147], cl
mov edx, dword [ebp - 0x154]
cmp cl, byte [edx + 1]
jne 0x10006625
add dword [ebp - 0x150], 2
add dword [ebp - 0x154], 2
cmp byte [ebp - 0x147], 0
jne 0x100065c7
mov dword [ebp - 0x164], 0
jmp 0x10006630
sbb eax, eax
or eax, 1
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], ecx
cmp dword [ebp - 0x16c], 0
jne 0x10006651
mov byte [ebp - 0x145], 1
jmp 0x100066f2
lea edx, [ebp - 0x18]
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dl, byte [ecx]
mov byte [ebp - 0x148], dl
mov eax, dword [ebp - 0x15c]
cmp dl, byte [eax]
jne 0x100066c4
cmp byte [ebp - 0x148], 0
je 0x100066b8
mov ecx, dword [ebp - 0x158]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x149], dl
mov eax, dword [ebp - 0x15c]
cmp dl, byte [eax + 1]
jne 0x100066c4
add dword [ebp - 0x158], 2
add dword [ebp - 0x15c], 2
cmp byte [ebp - 0x149], 0
jne 0x10006666
mov dword [ebp - 0x168], 0
jmp 0x100066cf
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
jne 0x100066ed
mov byte [ebp - 0x145], 1
jmp 0x100066f2
jmp 0x10006596
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x145]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret
Function at 0x10006720
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1000674c
xor al, al
jmp 0x100067d9
push 4
push str.WinDefend
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10006774
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x100067d9
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100067a6
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x100067d9
cmp dword [ebp - 0x28], 4
jne 0x100067b5
mov dword [ebp - 0x3c], 1
jmp 0x100067bc
mov dword [ebp - 0x3c], 0
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 0x2d], cl
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret

Function at 0x100069f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10006a09
jmp 0x10006a1a
mov ecx, dword [ebp - 4]
or ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret

Function at 0x10006aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.RegWorkshop.ini]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x10033a48]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x10033a4c]
mov dword [ebp - 0xc], edx
mov eax, dword [0x10033a50]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [0x1003ab2c]
push edx
push 0x10033a54
lea eax, [ebp - 0x118]
push eax
call fcn.10001260
add esp, 0x10
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
je 0x10006b31
mov edx, dword [ebp - 0x11c]
and edx, 0x10
jne 0x10006b31
lea eax, [ebp - 0x118]
push eax
call fcn.100157cd
add esp, 4
mov eax, 1
jmp 0x10006b33
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret
Function at 0x10006df0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x1002b2c0
push 1
push 0
push 0x1002b2d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ecx + 0x24]
call eax
cmp dword [ebp + 0x18], 0
je 0x10006eb1
movzx ecx, word [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [eax + 0x34]
call edx
lea eax, [ebp - 0x214]
push eax
push 0x1002b2e0
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 4]
call edx
lea eax, [ebp - 0x218]
push eax
push 0x1002b2f0
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x21c], eax
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.1000edf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret
Function at 0x10007510
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 7
mov esi, str..pipeWF3ss22NHFsnBgfsHDF6
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0
push 0
push 0
push 0
push 1
push 0
push 3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1003abd0], eax
cmp dword [0x1003abd0], 0xffffffff
jne 0x10007562
mov dword [ebp - 0x28], 1
jmp 0x10007569
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret

Function at 0x10007580
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edx, dword [0x1003ab18]
mov dword [ebp - 0x330], edx
mov dword [ebp - 0x32c], str.TrackerUI.sys
mov dword [ebp - 0x320], 2
mov dword [ebp - 0x318], 0
jmp 0x100075ef
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
cmp ecx, dword [ebp - 0x320]
jge 0x100076dd
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp + edx*4 - 0x330]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x10033da4
lea edx, [ebp - 0x108]
push edx
call fcn.10001260
add esp, 0x10
mov eax, dword [ebp - 0x318]
mov ecx, dword [ebp + eax*4 - 0x330]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x10033dac
lea eax, [ebp - 0x310]
push eax
call fcn.10001260
add esp, 0x10
push 1
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x318], 0
jne 0x100076d8
lea eax, [ebp - 0x108]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
add ecx, 1
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x31c]
mov al, byte [edx]
mov byte [ebp - 0x311], al
add dword [ebp - 0x31c], 1
cmp byte [ebp - 0x311], 0
jne 0x1000768a
mov ecx, dword [ebp - 0x31c]
sub ecx, dword [ebp - 0x324]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
add edx, 1
push edx
lea eax, [ebp - 0x108]
push eax
push 0x1003a9c0
call fcn.10002d00
add esp, 0xc
jmp 0x100075e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret
Function at 0x10007ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.10003c70
call fcn.10003dc0
call fcn.10005a20
call fcn.10003da0
call fcn.10007510
test eax, eax
je 0x10007ee8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1003ab60
push 0x1003abc4
call fcn.10005d10
add esp, 8
push 0x1003ab5c
mov eax, dword [0x1003abc4]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
call fcn.10006510
movzx ecx, al
mov dword [0x10038b88], ecx
call fcn.10006720
movzx edx, al
mov dword [0x10038b84], edx
call fcn.10007bb0
mov dword [0x10038abc], eax
cmp dword [0x10038abc], 0
je 0x10007f41
call fcn.10006a20
jmp 0x10007f46
call fcn.100076f0
xor eax, eax
pop ebp
ret
Function at 0x100083a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x100083ca
jl 0x100083c1
cmp dword [ebp + 0xc], 0
ja 0x100083ca
xor eax, eax
xor edx, edx
jmp 0x10008501
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x100083ec
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10008e00
jmp 0x10008501
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10009c90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000845b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10008520
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10009e30
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1000a580
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10009db0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x100084f2
mov ecx, dword [ebp - 0x10]
call fcn.100098d0
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x100084cb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10016629
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x100084c9
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10008501
jmp 0x10008477
cmp dword [ebp - 8], 0
jbe 0x100084f2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.10016629
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10018069
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f2c0
push 0x1002f2b8
push str.FlsAlloc
push 0x1f
call fcn.1001e2ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e419
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b238]
call esi
jmp 0x1001e41f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e463
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f2d0
push 0x1002f2c8
push str.FlsGetValue
push 0x21
call fcn.1001e2ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e49a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b238]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e4a2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002f2d8
push 0x1002f2d0
push str.FlsSetValue
push 0x22
call fcn.1001e2ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e4dc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002b238]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001f9e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000de20
mov eax, dword [0x1003802c]
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.1001a30c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001fa29
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001fb85
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10029ff0
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 + 0x10039998]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001f570
mov ecx, dword [esi*4 + 0x10039998]
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 0x1001fb7e
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001fb7e
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 0x1001fb7e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f570
add esp, 0x14
test edx, edx
jl 0x1001fb7e
jg 0x1001faf4
test eax, eax
jb 0x1001fb7e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001fb7e
jl 0x1001fb0e
cmp dword [ebp - 0x1008], eax
ja 0x1001fb7e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001fb2c
test ebx, ebx
je 0x1001fb65
cmp ecx, edi
jae 0x1001fb65
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001fb46
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001fb52
cmp byte [ecx + 1], 0xa
jne 0x1001fb52
inc ecx
jmp 0x1001fb52
movzx eax, al
movsx eax, byte [eax + 0x100382b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001fb2c
cmp edx, ebx
jne 0x1001fb2c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001fb83
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000cf0a
leave
ret
Function at 0x1001fc24
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 + 0x10039998]
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 0x1001fc64
cmp byte [ebx], 0xa
jne 0x1001fc64
or byte [edi + eax + 0x28], 4
jmp 0x1001fc69
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 0x1001fd68
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001fd4b
inc eax
cmp dl, 0xd
je 0x1001fc95
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001fcbb
cmp eax, ecx
jae 0x1001fcc9
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 0x1001fc7d
jmp 0x1001fd68
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 0x1001fd46
cmp dword [ebp - 0x10], 0
je 0x1001fd46
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10039998]
test byte [eax + edi + 0x28], 0x48
je 0x1001fd20
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001fd0b
mov byte [esi], dl
jmp 0x1001fd1c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10039998]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001fd68
cmp byte [ebp - 1], 0xa
jne 0x1001fd2f
cmp esi, ebx
jne 0x1001fd2f
mov byte [esi], 0xa
jmp 0x1001fd67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f58e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001fd68
mov byte [esi], 0xd
jmp 0x1001fd67
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10039998]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001fd65
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001fd68
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret