joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b003c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404594
xor eax, eax
push ebp
push 0x4b0292
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x118]
call fcn.004af1dc
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 8]
mov ecx, 0x4b02a8
call fcn.004043f0
mov eax, dword [ebp - 8]
call fcn.00408d40
test al, al
jne 0x4b00c3
mov eax, dword [ebp - 8]
call fcn.00409020
lea eax, [ebp - 0xc]
mov ecx, 0x4b02c4
mov edx, dword [ebp - 8]
call fcn.004043f0
mov eax, dword [ebp - 0xc]
call fcn.00408d30
test al, al
je 0x4b00e7
mov eax, dword [ebp - 0xc]
call fcn.00408e58
mov eax, dword [ebp - 0xc]
call fcn.004045a4
mov edx, eax
lea eax, [ebp - 0x11c]
call fcn.004042dc
mov ecx, dword [ebp - 0x11c]
mov edx, 0x4b02d8
mov eax, 0x4b02e8
call fcn.004afe7c
mov eax, dword [0x4b9744]
mov eax, dword [eax]
call fcn.0045d6cc
lea eax, [ebp - 0x113]
mov edx, dword [ebp - 0xc]
call fcn.004090d4
cmp dword [ebp - 4], 0
jne 0x4b015b
push 1
push 0x4b02f0
push 0
lea eax, [ebp - 0x113]
push eax
push 0x4b02f4
mov eax, dword [0x4b9744]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4b0267
mov eax, 0x104
call fcn.0040923c
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x4b0190
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00409228
lea eax, [ebp - 0x14]
mov ecx, 0x4b0304
mov edx, dword [ebp - 0x10]
call fcn.004043f0
mov eax, dword [ebp - 0x14]
call fcn.00408d30
test al, al
je 0x4b0206
push 5
push 0
push 0x4b0314
lea eax, [ebp - 0x124]
lea edx, [ebp - 0x113]
mov ecx, 0xff
call fcn.00404354
push dword [ebp - 0x124]
push dword [0x4b91a0]
push dword [ebp - 4]
lea eax, [ebp - 0x120]
mov edx, 4
call fcn.00404464
mov eax, dword [ebp - 0x120]
call fcn.004045a4
push eax
mov eax, dword [ebp - 0x14]
call fcn.004045a4
push eax
push 0x4b02f4
mov eax, dword [0x4b9744]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4b0267
push 5
push 0
push 0
push 0x4b0314
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x113]
mov ecx, 0xff
call fcn.00404354
push dword [ebp - 0x12c]
push dword [0x4b91a0]
push dword [ebp - 4]
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00404464
mov eax, dword [ebp - 0x128]
call fcn.004045a4
push eax
push 0x4b02f4
mov eax, dword [0x4b9744]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0299
lea eax, [ebp - 0x12c]
mov edx, 6
call fcn.00404108
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404108
ret
Function at 0x4b0358
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
xor edx, edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404594
lea eax, [ebp - 0x15c]
mov edx, dword [0x40753c]
call fcn.00404a9c
xor eax, eax
push ebp
push 0x4b04a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x160]
mov ecx, 0x4b04b4
mov edx, dword [ebp - 4]
call fcn.004043f0
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.00408dc8
test eax, eax
jne 0x4b0450
test byte [ebp - 0x154], 0x10
jne 0x4b0404
push dword [ebp - 4]
push 0x4b04c4
push dword [ebp - 0x150]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00404464
mov eax, dword [ebp - 0x164]
call fcn.00408e58
jmp 0x4b0441
mov edx, dword [ebp - 0x150]
mov eax, 0x4b04d0
call fcn.004046e8
test eax, eax
jg 0x4b0441
push dword [ebp - 4]
push 0x4b04c4
push dword [ebp - 0x150]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404464
mov eax, dword [ebp - 0x168]
call fcn.004b0358
lea eax, [ebp - 0x15c]
call fcn.00408e18
test eax, eax
je 0x4b03d0
lea eax, [ebp - 0x15c]
call fcn.00408e3c
mov eax, dword [ebp - 4]
call fcn.004045a4
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b04a7
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404108
lea eax, [ebp - 0x15c]
mov edx, dword [0x40753c]
call fcn.00404b6c
lea eax, [ebp - 4]
call fcn.004040e4
ret
Function at 0x100016a0
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10027040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], 0
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.10008280
add esp, 0xc
push str.LOCALAPPDATA
call fcn.1000d16f
add esp, 4
test eax, eax
je 0x10001717
push str.LOCALAPPDATA
call fcn.1000d16f
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov ecx, dword [ebp - 0x218]
or ecx, 1
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
jmp 0x1000185d
mov dword [ebp - 0x210], 0x104
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x10001794
lea ecx, [ebp - 0x20c]
push ecx
push str.C:Users_sAppDataLocal
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.100010a0
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.1000c689
add esp, 8
test eax, eax
jne 0x10001794
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
jmp 0x1000185d
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0x8000
push 0x1001d1b0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1000180d
push 0x104
mov ecx, dword [ebp - 0x214]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.1000caaa
add esp, 0x14
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
jmp 0x1000185d
push 0
push 0x1c
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10001832
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x21c], ecx
jmp 0x1000183c
mov dword [ebp - 0x21c], 0x10024a48
mov edx, dword [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10001d60
mov eax, dword [ebp - 0x218]
or eax, 1
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006aa1
mov esp, ebp
pop ebp
ret 4
Function at 0x10001870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c410
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x10027040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
mov ecx, 0x10027940
call fcn.10001cb0
push eax
push str._sSteamlocalData.vdf
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.100010a0
add esp, 0x10
push 0x10024a98
lea ecx, [ebp - 0x114]
push ecx
call fcn.1000a3a6
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x100018ef
xor eax, eax
jmp 0x10001aed
push 2
push 0
mov edx, dword [ebp - 0x128]
push edx
call fcn.1000a7fb
add esp, 0xc
mov eax, dword [ebp - 0x128]
push eax
call fcn.1000a2bf
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10001934
mov eax, dword [ebp - 0x128]
push eax
call fcn.1000a4e2
add esp, 4
xor eax, eax
jmp 0x10001aed
push 0xc
lea ecx, [ebp - 0x120]
call fcn.10001b60
lea ecx, [ebp - 0x12d]
call fcn.10001480
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x120]
call fcn.10001c70
mov dword [ebp - 4], 0
push 0
push 0
mov edx, dword [ebp - 0x128]
push edx
call fcn.1000a7fb
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x120]
call fcn.10001c30
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x13c]
push eax
push 1
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.1000ccc0
add esp, 0x10
push 0xff
lea edx, [ebp - 0x120]
push edx
call fcn.10001b10
add esp, 8
mov eax, dword [ebp - 0x128]
push eax
call fcn.1000a4e2
add esp, 4
mov ecx, dword [ebp + 8]
imul edx, dword [ecx], 5
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.1000d17a
add esp, 4
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x10001a3f
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.10001c50
mov eax, dword [ebp - 0x144]
jmp 0x10001aed
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x148], edx
lea ecx, [ebp - 0x120]
call fcn.10001c30
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call fcn.10003ed0
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x10001abe
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.1000c713
add esp, 4
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.10001c50
mov eax, dword [ebp - 0x154]
jmp 0x10001aed
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x124]
mov dword [edx], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.10001c50
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006aa1
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10002d6f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10002e8b
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10002dfc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10002df7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002dd0
xor eax, eax
jmp 0x10002e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10008280
add esp, 0xc
jmp 0x10002d5d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10002d10
add esp, 8
test eax, eax
jne 0x10002e1d
xor eax, eax
jmp 0x10002e90
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002e54
xor eax, eax
jmp 0x10002e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10007d00
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10002d5d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10005a90
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10005aa0

Function at 0x10005d20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10005d30

Function at 0x10006050
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001dc58]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001dc58]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001dc58]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001dc58]
mov eax, edx
pop ebp
ret

Function at 0x1000a055
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001bdf0
mov eax, dword [0x10027040]
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.1000ea42
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1000a097
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1000a1f3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001bd40
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 + 0x10027fe0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000ed4d
mov ecx, dword [esi*4 + 0x10027fe0]
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 0x1000a1ec
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000a1ec
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 0x1000a1ec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000ed4d
add esp, 0x14
test edx, edx
jl 0x1000a1ec
jg 0x1000a162
test eax, eax
jb 0x1000a1ec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000a1ec
jl 0x1000a17c
cmp dword [ebp - 0x1008], eax
ja 0x1000a1ec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1000a19a
test ebx, ebx
je 0x1000a1d3
cmp ecx, edi
jae 0x1000a1d3
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000a1b4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000a1c0
cmp byte [ecx + 1], 0xa
jne 0x1000a1c0
inc ecx
jmp 0x1000a1c0
movzx eax, al
movsx eax, byte [eax + 0x10027248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1000a19a
cmp edx, ebx
jne 0x1000a19a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1000a1f1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006aa1
leave
ret
Function at 0x1000dcbd
Capabilities:
Parse pe header

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

Function at 0x1000f4c0
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 + 0x10027fe0]
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 0x1000f500
cmp byte [ebx], 0xa
jne 0x1000f500
or byte [edi + eax + 0x28], 4
jmp 0x1000f505
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 0x1000f604
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000f5e7
inc eax
cmp dl, 0xd
je 0x1000f531
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000f557
cmp eax, ecx
jae 0x1000f565
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 0x1000f519
jmp 0x1000f604
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 0x1000f5e2
cmp dword [ebp - 0x10], 0
je 0x1000f5e2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10027fe0]
test byte [eax + edi + 0x28], 0x48
je 0x1000f5bc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000f5a7
mov byte [esi], dl
jmp 0x1000f5b8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10027fe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000f604
cmp byte [ebp - 1], 0xa
jne 0x1000f5cb
cmp esi, ebx
jne 0x1000f5cb
mov byte [esi], 0xa
jmp 0x1000f603
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000ed6b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000f604
mov byte [esi], 0xd
jmp 0x1000f603
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10027fe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000f601
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000f604
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000f60d
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 + 0x10027fe0]
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 0x1000f653
cmp word [ebx], dx
jne 0x1000f653
or byte [eax + edi + 0x28], 4
jmp 0x1000f658
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 0x1000f7bb
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 0x1000f79b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000f699
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000f6cf
cmp eax, edx
jae 0x1000f6dd
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 0x1000f674
jmp 0x1000f7bb
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 0x1000f796
cmp dword [ebp - 0x18], 0
je 0x1000f796
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10027fe0]
test byte [eax + edi + 0x28], 0x48
je 0x1000f76c
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 0x1000f730
mov word [esi], cx
jmp 0x1000f767
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10027fe0]
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 + 0x10027fe0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10027fe0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000f7bb
pop eax
cmp word [ebp - 4], ax
jne 0x1000f77c
cmp esi, ebx
jne 0x1000f77c
mov word [esi], ax
jmp 0x1000f7b8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000ed6b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000f7bb
push 0xd
pop eax
jmp 0x1000f777
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10027fe0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000f7b5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000f7bb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001205f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020cd8
push 0x10020cd0
push str.FlsAlloc
push 0x1f
call fcn.10011f1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012093
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d15c]
call esi
jmp 0x10012099
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100120dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020ce8
push 0x10020ce0
push str.FlsGetValue
push 0x21
call fcn.10011f1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012114
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001211c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020cf0
push 0x10020ce8
push str.FlsSetValue
push 0x22
call fcn.10011f1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012156
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013bd8
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 0x10013c75
push ebx
push esi
call fcn.10013ba1
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.100123cf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10013c22
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013c74
push edi
push eax
call fcn.10010b42
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10013c42
call fcn.10010614
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013c73
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100123cf
add esp, 0x20
test eax, eax
jne 0x10013c61
push edi
call fcn.10010614
jmp 0x10013c69
push ebx
call fcn.10010614
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