joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002470
Capabilities:
Create thread
Terminate process

Disassembly:
mov ecx, 0x100396f8
call fcn.10024f43
mov ecx, str.Cheat_Engine_5.0
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.1
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.1.1
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.2
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.3
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.4
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.5
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.6
call fcn.1000233b
mov ecx, str.Cheat_Engine_5.6.1
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.0
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.1
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.2
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.3
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.4
call fcn.1000233b
mov ecx, str.Cheat_Engine_6.5
call fcn.1000233b
mov ecx, str.Cheat_Engine
call fcn.1000233b
mov ecx, str.WPE_PRO
call fcn.1000233b
mov ecx, str.WPePro_0.9a
call fcn.1000233b
mov ecx, str.WPePro_1.3
call fcn.1000233b
mov ecx, str.Process_Hacker
call fcn.1000233b
mov ecx, str.Process_Hacker_2
call fcn.1000233b
mov ecx, str.ProcessHacker
call fcn.1000233b
mov ecx, str.Epoolsoft_Windows_Information_View_Tools
call fcn.1000233b
mov ecx, str.inject
call fcn.1000233b
mov ecx, str.Cheat_Engine_7.1
call fcn.1000233b
mov ecx, str.wSyck
call fcn.1000233b
mov ecx, str.WSYCK
call fcn.1000233b
mov ecx, str.Hacker
call fcn.1000233b
mov ecx, str.autobot
call fcn.1000233b
mov ecx, str.Loader
call fcn.1000233b
mov ecx, str.Process_Hack
call fcn.1000233b
mov ecx, str.PCHunter64
call fcn.1000233b
mov ecx, str.PCHunter32
call fcn.1000233b
mov ecx, str.Process_Explorer
jmp fcn.1000233b

Function at 0x100026f8
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov ecx, 0x100396f8
call fcn.10024f43
xor ebx, ebx
mov edi, 0x10034a78
mov dl, 8
mov ecx, ebx
call fcn.10002751
mov esi, eax
push 8
shl esi, 0x18
pop edx
mov ecx, esi
lea eax, [esi + esi]
sar ecx, 0x1f
and ecx, 0x4c11db7
mov esi, ecx
xor esi, eax
sub edx, 1
jne 0x1000271d
mov dl, 0x20
mov dword [edi], esi
mov ecx, esi
call fcn.10002751
mov dword [edi], eax
inc ebx
add edi, 4
cmp edi, 0x10034e74
jle 0x1000270c
pop edi
pop esi
pop ebx
ret

Function at 0x10002793
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, ecx
mov ecx, 0x100396f8
push edi
mov edi, edx
call fcn.10024f43
or edx, 0xffffffff
xor esi, esi
test edi, edi
jle 0x100027c5
movzx ecx, byte [esi + ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10034a78]
inc esi
cmp esi, edi
jl 0x100027ad
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret
Function at 0x100027ff
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
push 0x1f4
mov eax, 0x100250ad
call fcn.10007062
mov ecx, 0x100396f8
call fcn.10024f43
lea eax, [ebp - 0x144]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x144]
mov esi, str.SkillData.bin
push eax
push esi
push eax
call fcn.100012fd
lea eax, [ebp - 0x144]
push 0x1002e168
push eax
call fcn.1000c4c0
add esp, 8
lea ecx, [ebp - 0x200]
mov edi, eax
push esi
call fcn.1000360c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1f4], 6
jne 0x100028fe
test edi, edi
je 0x100028e2
mov ecx, edi
call fcn.100027cd
mov ebx, eax
push ebx
call fcn.100068a5
push edi
push ebx
push 1
push eax
mov dword [ebp - 0x148], eax
call fcn.1000f626
push edi
mov esi, eax
call fcn.1000c965
add esp, 0x18
cmp esi, ebx
jne 0x100028e2
call fcn.100026f8
mov edi, dword [ebp - 0x148]
mov edx, ebx
mov ecx, edi
call fcn.10002793
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push 0x1002e16c
push eax
call fcn.100012fd
push edi
call fcn.10006862
add esp, 0x10
cmp esi, 0xfa4346cc
jne 0x100028fe
lea ecx, [ebp - 0x190]
call fcn.100035d3
lea ecx, [ebp - 0x190]
call fcn.100036f3
call fcn.10007020
ret
call fcn.10005afa
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000291f
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
push 0x1f4
mov eax, 0x100250ad
call fcn.10007062
mov ecx, 0x100396f8
call fcn.10024f43
lea eax, [ebp - 0x144]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x144]
mov esi, str.Env_AttributeMap.dat
push eax
push esi
push eax
call fcn.100012fd
lea eax, [ebp - 0x144]
push 0x1002e168
push eax
call fcn.1000c4c0
add esp, 8
lea ecx, [ebp - 0x200]
mov edi, eax
push esi
call fcn.1000360c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1f4], 6
jne 0x10002a1e
test edi, edi
je 0x10002a02
mov ecx, edi
call fcn.100027cd
mov ebx, eax
push ebx
call fcn.100068a5
push edi
push ebx
push 1
push eax
mov dword [ebp - 0x148], eax
call fcn.1000f626
push edi
mov esi, eax
call fcn.1000c965
add esp, 0x18
cmp esi, ebx
jne 0x10002a02
call fcn.100026f8
mov edi, dword [ebp - 0x148]
mov edx, ebx
mov ecx, edi
call fcn.10002793
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push 0x1002e16c
push eax
call fcn.100012fd
push edi
call fcn.10006862
add esp, 0x10
cmp esi, 0xfa312d30
jne 0x10002a1e
lea ecx, [ebp - 0x190]
call fcn.100035d3
lea ecx, [ebp - 0x190]
call fcn.100036f3
call fcn.10007020
ret
call fcn.10005afa
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10002a2c
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
push 0x1f4
mov eax, 0x100250ad
call fcn.10007062
mov ecx, 0x100396f8
call fcn.10024f43
lea eax, [ebp - 0x144]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x144]
mov esi, str.WYD.exe
push eax
push esi
push eax
call fcn.100012fd
lea eax, [ebp - 0x144]
push 0x1002e168
push eax
call fcn.1000c4c0
add esp, 8
lea ecx, [ebp - 0x200]
mov edi, eax
push esi
call fcn.1000360c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1f4], 6
jne 0x10002b2b
test edi, edi
je 0x10002b0f
mov ecx, edi
call fcn.100027cd
mov ebx, eax
push ebx
call fcn.100068a5
push edi
push ebx
push 1
push eax
mov dword [ebp - 0x148], eax
call fcn.1000f626
push edi
mov esi, eax
call fcn.1000c965
add esp, 0x18
cmp esi, ebx
jne 0x10002b0f
call fcn.100026f8
mov edi, dword [ebp - 0x148]
mov edx, ebx
mov ecx, edi
call fcn.10002793
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push 0x1002e16c
push eax
call fcn.100012fd
push edi
call fcn.10006862
add esp, 0x10
cmp esi, 0x317c76a9
jne 0x10002b2b
lea ecx, [ebp - 0x190]
call fcn.100035d3
lea ecx, [ebp - 0x190]
call fcn.100036f3
call fcn.10007020
ret
call fcn.10005afa
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10002e0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x10038551
mov dword [ebp - 4], edi
call fcn.10024f43
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
test esi, esi
jg 0x10002e39
jl 0x10002e30
test ebx, ebx
jne 0x10002e39
xor eax, eax
xor edx, edx
jmp 0x10002f06
cmp dword [edi + 0x38], 0
je 0x10002e50
push esi
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.10003474
jmp 0x10002f06
mov ecx, dword [ebp - 4]
mov edi, ebx
call fcn.10003d2b
test eax, eax
je 0x10002e95
mov edi, dword [ebp + 8]
cmp eax, ebx
mov esi, ebx
cmovb esi, eax
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push edi
call fcn.10003f8c
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x10002e9e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
mov edx, edi
je 0x10002efd
call fcn.10003a37
mov ecx, dword [ebp + 8]
mov edx, edi
jmp 0x10002edb
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.1000f626
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10002f0d
cmp edi, 0xfff
ja 0x10002eb2
test edx, edx
je 0x10002efd
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.1000f626
mov edx, edi
add esp, 0x10
sub edx, eax
sub ebx, edx
sbb esi, 0
mov eax, ebx
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
sub ebx, edi
jmp 0x10002eff
Function at 0x100047d8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x10032080]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov ecx, 0x100396f8
call fcn.10024f43
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100048be
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x100048b6
push dword [esp + 0x18]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100048aa
mov edi, 0x10032b0c
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x10
lea eax, [esp + 0x144]
push eax
push dword [edi - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [esp + 0x13c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4]
jne 0x1000489f
inc ecx
cmp ecx, 4
jne 0x10004870
cmp dword [0x10034f10], 1
jne 0x100048da
call fcn.10005aa9
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add edi, 0x14
cmp edi, 0x10033728
jl 0x10004849
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000482d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10006854
mov esp, ebp
pop ebp
ret
call fcn.10005aa9
push 0x1388
jmp 0x10004891

Function at 0x100053ac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x100396e1
call fcn.10024f43
and dword [ebp + 0x10], 0
push 0x10026fa2
push 5
call fcn.10006ca0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10005436
lea eax, [ebp + 0x10]
mov byte [esi], 0xe9
push eax
push 0x40
lea ecx, [edi - 0x42588c]
mov eax, 0x425887
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push eax
mov dword [esi + 1], ecx
call edi
test eax, eax
je 0x10005436
mov eax, dword [esi]
mov ecx, 0x425887
mov dword [ecx], eax
mov al, byte [esi + 4]
mov byte [ecx + 4], al
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push 5
push ecx
call edi
test eax, eax
je 0x10005436
push 5
push 0x425887
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call fcn.10006862
pop ecx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1000558e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push 0x10
push 0x1002fb20
call fcn.10007690
mov ecx, 0x100396f8
call fcn.10024f43
xor ebx, ebx
mov dword [ebp - 4], ebx
sub dword [ebp + 0xc], 1
jne 0x1000569e
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x1effff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x20]
push eax
call fcn.1000fc4e
lea eax, [ebp - 0x20]
push eax
call fcn.1000ff45
pop ecx
pop ecx
cmp dword [eax + 0xc], 0xd
jl 0x10005608
cmp dword [eax + 0x10], 6
jl 0x10005608
cmp dword [eax + 0x14], 0x7c
jl 0x10005608
push ebx
push 0x1002e458
push str.Bug_Error
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push ebx
push ebx
push 0x10005b9c
push ebx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
call esi
push ebx
push ebx
push ebx
push 0x100022fc
push ebx
push ebx
call esi
call fcn.10002470
push ebx
push ebx
push ebx
push 0x100025ce
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x100048e6
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x10004ddb
push ebx
push ebx
call esi
call fcn.10002620
call fcn.100027ff
call fcn.1000291f
call fcn.10002a2c
call fcn.1000551a
push ecx
push 0x1000492c
push ecx
push ecx
call fcn.100053ac
call fcn.10005a58
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 0x1effff
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000569e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000bfa0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007860
mov eax, dword [0x10032080]
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.10012ca3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000bfe2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000c13e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10024b00
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 + 0x10034630]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10012eb3
mov ecx, dword [esi*4 + 0x10034630]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1000c137
cmp eax, dword [edi + ecx + 0x24]
jne 0x1000c137
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c137
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10012eb3
add esp, 0x14
test edx, edx
jl 0x1000c137
jg 0x1000c0ad
test eax, eax
jb 0x1000c137
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000c137
jl 0x1000c0c7
cmp dword [ebp - 0x1008], eax
ja 0x1000c137
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000c0e5
test ebx, ebx
je 0x1000c11e
cmp ecx, edi
jae 0x1000c11e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000c0ff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000c10b
cmp byte [ecx + 1], 0xa
jne 0x1000c10b
inc ecx
jmp 0x1000c10b
movzx eax, al
movsx eax, byte [eax + 0x100322e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000c0e5
cmp edx, ebx
jne 0x1000c0e5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000c13c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006854
leave
ret
Function at 0x10014c4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10034630]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10014c8b
cmp byte [ebx], 0xa
jne 0x10014c8b
or byte [eax + edi + 0x28], 4
jmp 0x10014c90
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10014d8e
mov al, byte [edx]
cmp al, 0x1a
je 0x10014d70
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10014cbf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10014ce4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10014cee
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10014ca1
jmp 0x10014d8e
push 0
lea eax, [ebp - 0xc]
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 0x10014d6b
cmp dword [ebp - 0xc], 0
je 0x10014d6b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10034630]
test byte [eax + edi + 0x28], 0x48
je 0x10014d45
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10014d30
mov byte [esi], dl
jmp 0x10014d41
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10034630]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10014d8e
cmp byte [ebp - 1], 0xa
jne 0x10014d54
cmp esi, ebx
jne 0x10014d54
mov byte [esi], 0xa
jmp 0x10014d8d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012ed1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10014d8e
mov byte [esi], 0xd
jmp 0x10014d8d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10034630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10014d8a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10014d8e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10014d97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10034630]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10014dda
cmp word [esi], dx
jne 0x10014dda
or byte [edi + eax + 0x28], 4
jmp 0x10014ddf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10014f32
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10014f12
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10014e21
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10014e57
cmp eax, edx
jae 0x10014e63
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10014df9
jmp 0x10014f32
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014f0e
cmp dword [ebp - 0x14], 0
je 0x10014f0e
mov eax, dword [ebx*4 + 0x10034630]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10014ee6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10014eaf
mov word [esi], cx
jmp 0x10014ee2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10034630]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10034630]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10034630]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10014f32
pop ebx
cmp word [ebp - 4], bx
jne 0x10014ef7
cmp esi, dword [ebp + 0xc]
jne 0x10014ef7
mov word [esi], bx
jmp 0x10014f2f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10012ed1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10014f32
push 0xd
jmp 0x10014f2b
mov ecx, dword [ebx*4 + 0x10034630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10014f29
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10014f32
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10016f59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016dca

Function at 0x100173f5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029f30
push 0x10029f28
push str.FlsAlloc
push 0x1e
call fcn.10017262
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017429
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026208]
call esi
jmp 0x1001742f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017473
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029f40
push 0x10029f38
push str.FlsGetValue
push 0x20
call fcn.10017262
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100174aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001c377
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001c414
push ebx
push esi
call fcn.1001c340
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001b17c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c3c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c413
push edi
push eax
call fcn.1001791b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c3e1
call fcn.10016b4c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c412
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b17c
add esp, 0x20
test eax, eax
jne 0x1001c400
push edi
call fcn.10016b4c
jmp 0x1001c408
push ebx
call fcn.10016b4c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001c417
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001c428
pop esi
ret
push ebx
push edi
push esi
call fcn.1001c340
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1001791b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1001c450
push ebx
push esi
push edi
call fcn.10008450
add esp, 0xc
push 0
call fcn.10016b4c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1001c814
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c465