joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100067e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x114], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x10006833
xor al, al
jmp 0x100068b3
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x10006860
xor al, al
jmp 0x100068b3
lea ecx, [ebp - 0x108]
push ecx
push str.Scanning_Module:__s_n
call fcn.10006910
add esp, 8
push 0xc
mov edx, dword [ebp - 0x10c]
add edx, 4
push edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_K32GetModuleInformation
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.10006780
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003226b
mov esp, ebp
pop ebp
ret

Function at 0x1000cda0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x1000cdcf
xor al, al
jmp 0x1000ce41
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000ce32
mov ecx, dword [ebp + 8]
call fcn.1000a8a0
push eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000ce1b
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1000ce41
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000cdf0
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003226b
mov esp, ebp
pop ebp
ret
Function at 0x1000e6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000e6ca
jl 0x1000e6c1
cmp dword [ebp + 0xc], 0
ja 0x1000e6ca
xor eax, eax
xor edx, edx
jmp 0x1000e801
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1000e6ec
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.1000c300
jmp 0x1000e801
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.10009b90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000e75b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.100023b0
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.1000b020
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10005610
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.1000af50
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x1000e7f2
mov ecx, dword [ebp - 0x10]
call fcn.1000d2f0
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1000e7cb
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.1003bdd8
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 0x1000e7c9
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 0x1000e801
jmp 0x1000e777
cmp dword [ebp - 8], 0
jbe 0x1000e7f2
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.1003bdd8
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.1003226b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.10033680
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x10019d63
cmp dword [ebp - 0x108], 1
je 0x10019cf6
jmp 0x10019d6e
cmp dword [ebp + 0x10], 0
je 0x10019d19
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
add eax, 8
push eax
call fcn.1000bbd0
add esp, 4
jmp 0x10019d3e
push 0x100
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.1000bbd0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [0x1006bc18], ecx
push 0
push 0
push 0
push 0x10019c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1006be08], eax
jmp 0x10019d6e
call fcn.10019bf0
mov dword [ebp - 0x110], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003226b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002e100
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.1002e2d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002e1dd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a320]
jb 0x1002e14a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a324]
ja 0x1002e14a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e11a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033680
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 0x1002e16f
jmp 0x1002e1dd
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e1c3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e1c3
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 0x1002e1a6
mov eax, dword [ebp - 8]
jmp 0x1002e1df
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002e1b6
xor eax, eax
jmp 0x1002e1df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e1d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002e2d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e11a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002e1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002e300
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002e2c5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a320]
jb 0x1002e235
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a324]
ja 0x1002e235
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e205
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033680
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 0x1002e25a
jmp 0x1002e2c5
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e2ae
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e2ae
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 0x1002e291
mov eax, dword [ebp - 8]
jmp 0x1002e2c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002e2a1
xor eax, eax
jmp 0x1002e2c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e2c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002e300
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e205
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002e330
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.1002e720
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006be4c], 0
jne 0x1002e36d
cmp dword [0x1006be48], 0
je 0x1002e36d
mov eax, dword [0x1006be48]
mov dword [0x1006be4c], eax
cmp dword [0x1006be4c], 0
je 0x1002e3ea
mov ecx, dword [0x1006be4c]
cmp dword [ecx + 8], 0
je 0x1002e3ea
mov edx, dword [0x1006be4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002e3ea
mov ecx, dword [0x1006be4c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002e3ea
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1002e3b9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1002e3c0
xor eax, eax
jmp 0x1002e509
mov ecx, dword [0x1006be4c]
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.10033680
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1002e509
mov edx, dword [0x1006be48]
mov dword [0x1006be4c], edx
jmp 0x1002e406
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 4]
mov dword [0x1006be4c], ecx
cmp dword [0x1006be4c], 0
je 0x1002e446
cmp dword [0x1006be4c], 0
je 0x1002e444
mov edx, dword [0x1006be4c]
cmp dword [edx + 8], 0
je 0x1002e444
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1002e444
mov edx, dword [0x1006be4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1002e444
jmp 0x1002e39e
jmp 0x1002e3f8
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.1002e510
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002e507
mov eax, dword [ebp - 0x18]
mov dword [0x1006be4c], eax
mov ecx, dword [0x1006be4c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006be4c]
mov dword [edx + 8], 0
mov eax, dword [0x1006be4c]
mov ecx, dword [0x1006be48]
mov dword [eax + 4], ecx
mov edx, dword [0x1006be4c]
mov dword [0x1006be48], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006be4c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1002e4d7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1002e4f7
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 0x1002e4ce
mov eax, dword [0x1006be4c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002e39e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002f250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006be48]
mov dword [ebp - 4], eax
jmp 0x1002f269
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1002f290
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 0x1002f28e
call sub.KERNEL32.dll_GetLastError
jmp 0x1002f292
jmp 0x1002f260
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002f700
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1006be58], eax
je 0x1002f724
mov eax, 0x10dd
jmp 0x1002f8cc
cmp dword [0x1006be5c], 0
je 0x1002f737
mov eax, dword [0x1006be5c]
jmp 0x1002f8cc
cmp dword [ebp + 0xc], 0
jne 0x1002f747
mov eax, 0x57
jmp 0x1002f8cc
cmp dword [ebp + 8], 0
jne 0x1002f757
mov eax, 6
jmp 0x1002f8cc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1002f780
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1006be5c], ecx
mov edx, dword [ebp + 8]
mov dword [0x1006be60], edx
mov eax, dword [ebp - 8]
jmp 0x1002f8cc
push 0x18
call fcn.100322ce
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002f7db
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1006be5c], ecx
cmp dword [ebp - 4], 0
je 0x1002f7ca
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003225d
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1006be60], ecx
mov eax, dword [ebp - 8]
jmp 0x1002f8cc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1002f6e0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1002f6e0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1002f81b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1002f837
mov dword [ebp - 8], 9
cmp dword [0x1006be50], 0
je 0x1002f832
jmp 0x1002f7a9
jmp 0x1002f7a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1002f85e
mov dword [ebp - 8], 9
cmp dword [0x1006be50], 0
je 0x1002f859
jmp 0x1002f7a9
jmp 0x1002f7a0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1002f889
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1002f7a0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1006be68]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1006be68], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1002f8e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1006be58], eax
je 0x1002f8fd
mov eax, 0x10dd
jmp 0x1002f9e0
mov eax, dword [0x1006be68]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002f97c
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 0x1002f958
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1002f958
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1002e7b0
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.1003225d
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1002f905
mov dword [0x1006be68], 0
call fcn.1002f090
mov ecx, dword [0x1006be64]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1002f9ca
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.1003225d
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1002f994
mov dword [0x1006be64], 0
mov dword [0x1006be58], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002fec0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1006be5c], 0
je 0x1002fed9
mov eax, dword [0x1006be5c]
jmp 0x1002ff78
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1002feea
xor eax, eax
jmp 0x1002ff78
push 8
call fcn.100322ce
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002ff42
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1002ff2b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003225d
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1006be5c], eax
mov dword [0x1006be60], 0
mov eax, dword [ebp - 8]
jmp 0x1002ff78
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1002ff5a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1002ff0a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1006be64]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1006be64], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10043281
Capabilities:
Parse pe header

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

Function at 0x10044c33
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005fd10
push 0x1005fd08
push str.FlsAlloc
push 0x1f
call fcn.10044a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044c67
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a25c]
call esi
jmp 0x10044c6d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10044cb1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005fd20
push 0x1005fd18
push str.FlsGetValue
push 0x21
call fcn.10044a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044ce8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a25c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10044cf0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005fd28
push 0x1005fd20
push str.FlsSetValue
push 0x22
call fcn.10044a9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10044d2a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005a25c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10049c74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10032280
mov eax, dword [0x1006a3c0]
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.1004619e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10049cb6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10049e12
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10032820
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 + 0x1006c818]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004ac71
mov ecx, dword [esi*4 + 0x1006c818]
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 0x10049e0b
cmp eax, dword [ecx + edi + 0x24]
jne 0x10049e0b
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 0x10049e0b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004ac71
add esp, 0x14
test edx, edx
jl 0x10049e0b
jg 0x10049d81
test eax, eax
jb 0x10049e0b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10049e0b
jl 0x10049d9b
cmp dword [ebp - 0x1008], eax
ja 0x10049e0b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10049db9
test ebx, ebx
je 0x10049df2
cmp ecx, edi
jae 0x10049df2
mov al, byte [ecx]
cmp al, 0xd
jne 0x10049dd3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10049ddf
cmp byte [ecx + 1], 0xa
jne 0x10049ddf
inc ecx
jmp 0x10049ddf
movzx eax, al
movsx eax, byte [eax + 0x1006a808]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10049db9
cmp edx, ebx
jne 0x10049db9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10049e10
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003226b
leave
ret
Function at 0x1004a109
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 + 0x1006c818]
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 0x1004a149
cmp byte [ebx], 0xa
jne 0x1004a149
or byte [edi + eax + 0x28], 4
jmp 0x1004a14e
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 0x1004a24d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004a230
inc eax
cmp dl, 0xd
je 0x1004a17a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004a1a0
cmp eax, ecx
jae 0x1004a1ae
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 0x1004a162
jmp 0x1004a24d
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 0x1004a22b
cmp dword [ebp - 0x10], 0
je 0x1004a22b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1006c818]
test byte [eax + edi + 0x28], 0x48
je 0x1004a205
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004a1f0
mov byte [esi], dl
jmp 0x1004a201
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006c818]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004a24d
cmp byte [ebp - 1], 0xa
jne 0x1004a214
cmp esi, ebx
jne 0x1004a214
mov byte [esi], 0xa
jmp 0x1004a24c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004ac8f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004a24d
mov byte [esi], 0xd
jmp 0x1004a24c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1006c818]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004a24a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004a24d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret