joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100410e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ebp
push esi
mov esi, ebp
mov edx, ebp
shr esi, 5
inc esi
push edi
cmp ebp, esi
jb 0x1004111f
mov ebp, dword [esp + 0x20]
nop dword [eax]
movzx ecx, byte [edx + ebp - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x10041100
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x100411a5
cmp dword [edi + 0xc], ebp
jne 0x1004119f
mov edx, dword [esp + 0x20]
lea eax, [edi + 0x10]
mov esi, ebp
sub esi, 4
jb 0x10041159
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10041162
add edx, 4
add eax, 4
sub esi, 4
jae 0x10041148
cmp esi, 0xfffffffc
je 0x100412c8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1004119f
cmp esi, 0xfffffffd
je 0x100412c8
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1004119f
cmp esi, 0xfffffffe
je 0x100412c8
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1004119f
cmp esi, 0xffffffff
je 0x100412c8
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x100412c8
mov edi, dword [edi]
test edi, edi
jne 0x10041135
mov edi, dword [esp + 0x1c]
lea eax, [ebp + 0x11]
push eax
push 0
push 0
push edi
call fcn.1003ac90
mov esi, eax
push ebp
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], ebp
push ecx
mov dword [esi + 8], ebx
mov word [esi + 4], 4
mov byte [esi + 6], 0
call fcn.100aff00
mov byte [esi + ebp + 0x10], 0
add esp, 0x1c
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
dec eax
and eax, ebx
lea ecx, [eax*4]
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [esi], eax
mov eax, dword [edx]
mov dword [ecx + eax], esi
inc dword [edx + 4]
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jle 0x100412be
cmp eax, 0x3ffffffe
jg 0x100412be
add eax, eax
mov dword [esp + 0x24], eax
lea esi, [eax*4]
push esi
push 0
push 0
push edi
call fcn.1003ac90
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [edi + 0x10]
mov ebp, eax
mov dword [esp + 0x10], ebx
test ecx, ecx
jle 0x10041254
shr esi, 2
mov edi, ebp
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x1004129c
nop dword [eax]
mov eax, dword [ebx]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x10041290
lea ebx, [ecx - 1]
nop dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, ebx
lea ecx, [eax*4]
mov eax, dword [ecx + ebp]
mov dword [esi], eax
mov dword [ecx + ebp], esi
mov esi, edx
test edx, edx
jne 0x10041270
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
inc edi
mov ecx, dword [esp + 0x24]
cmp edi, eax
jl 0x10041260
push 0
shl eax, 2
push eax
push dword [ebx]
mov eax, dword [esp + 0x28]
push eax
call fcn.1003ac90
mov eax, dword [esp + 0x34]
add esp, 0x10
mov esi, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx], ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1004b090
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x10125a94]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push eax
push ebx
call fcn.10046b40
mov edi, dword [esp + 0x234]
add esp, 8
mov esi, 0x200
lea eax, [esp + 0x10]
push eax
call fcn.10047550
cmp esi, edi
mov ecx, edi
push ebp
cmovbe ecx, esi
mov esi, ecx
push esi
push 1
push eax
call fcn.100ba32e
add dword [esp + 0x24], eax
add esp, 0x14
sub edi, eax
je 0x1004b0fc
cmp eax, esi
je 0x1004b0d0
lea eax, [esp + 0x10]
push eax
call fcn.10047580
add esp, 4
test edi, edi
je 0x1004b11c
push 0xffffffffffffffff
push ebx
call fcn.10038470
add esp, 8
test eax, eax
je 0x1004b121
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100aebeb
add esp, 0x210
ret

Function at 0x100528b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100528d0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100528d0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100528d0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10060220
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x1505
cmp dword [ebp + 8], 0
jne 0x10060235
xor eax, eax
jmp 0x10060269
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
test ecx, ecx
je 0x10060266
imul edx, dword [ebp - 4], 0x21
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
add edx, ecx
xor eax, eax
push 1
push 0
push eax
push edx
call fcn.100af690
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x10060235
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1006c6d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1006c711
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006c5b0
add esp, 4
push eax
push 5
mov edx, dword [ebp + 8]
push edx
call fcn.1005f780
add esp, 0xc
xor al, al
jmp 0x1006c7aa
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.1006c540
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x1006c740
push 0x22
push 5
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005f780
add esp, 0xc
xor al, al
jmp 0x1006c7aa
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x10], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1006c7a8
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x11], 1
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1006c7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006c5b0
add esp, 4
push eax
push 5
mov ecx, dword [ebp + 8]
push ecx
call fcn.1005f780
add esp, 0xc
xor al, al
jmp 0x1006c7aa
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1006c7b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
jmp 0x1006c7c8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jae 0x1006c82e
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
cmp dword [ebp + 0xc], 0
je 0x1006c81b
mov ecx, dword [ebp + 8]
push ecx
call fcn.1006c9b0
add esp, 4
mov byte [ebp - 2], al
movzx edx, byte [ebp - 1]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1006c8f0
add esp, 8
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov cl, byte [ebp - 1]
mov byte [eax], cl
jmp 0x1006c82c
movzx edx, byte [ebp - 1]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1006c8f0
add esp, 8
jmp 0x1006c7bf
mov esp, ebp
pop ebp
ret
Function at 0x1006ca10
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1006ca31
xor al, al
jmp 0x1006ca62
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1006ca4c
xor al, al
jmp 0x1006ca62
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1006ca60
xor al, al
jmp 0x1006ca62
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1006e7d0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e7e0

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1006ea6c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.1006ea80

Function at 0x10070720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100708ae
cmp dword [edi + 0x20], 0
je 0x100708ae
cmp dword [edi + 0x24], 0
je 0x100708ae
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x100708ae
cmp dword [esi], edi
jne 0x100708ae
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x10070788
cmp eax, 0x39
je 0x10070788
cmp eax, 0x45
je 0x10070788
cmp eax, 0x49
je 0x10070788
cmp eax, 0x5b
je 0x10070788
cmp eax, 0x67
je 0x10070788
cmp eax, 0x71
je 0x10070788
cmp eax, 0x29a
jne 0x100708ae
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x100707bd
neg ecx
mov dword [esi + 0x18], ecx
push 0
push 0
push 0
cmp ecx, 2
jne 0x100707d6
mov dword [esi + 4], 0x39
call fcn.1006ea60
jmp 0x100707ed
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
call fcn.1006e7d0
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.10072190
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.100b0480
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x10100d8a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x10100d88]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x10100d8c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x10100d8e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x10078510
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x1007855c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jae 0x100785c4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*8 + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*8 + 6]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10078ff0
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8]
push edx
call fcn.10078600
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 0x20]
push edx
call fcn.10079030
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x10078553
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 1
jne 0x100785da
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0x23
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 2
jne 0x100785f0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx], 0x34
mov esp, ebp
pop ebp
ret

Function at 0x1009eee0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0xf
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x85ebca77
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 0xd
xor edx, dword [ebp + 8]
mov dword [ebp + 8], edx
imul eax, dword [ebp + 8], 0xc2b2ae3d
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x100bb0af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100af710
mov eax, dword [0x10125a94]
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.100c75ce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bb0f1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bb24d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100efe90
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 + 0x10128348]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100ceaf7
mov ecx, dword [esi*4 + 0x10128348]
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 0x100bb246
cmp eax, dword [edi + ecx + 0x24]
jne 0x100bb246
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 0x100bb246
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ceaf7
add esp, 0x14
test edx, edx
jl 0x100bb246
jg 0x100bb1bc
test eax, eax
jb 0x100bb246
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100bb246
jl 0x100bb1d6
cmp dword [ebp - 0x1008], eax
ja 0x100bb246
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100bb1f4
test ebx, ebx
je 0x100bb22d
cmp ecx, edi
jae 0x100bb22d
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bb20e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bb21a
cmp byte [ecx + 1], 0xa
jne 0x100bb21a
inc ecx
jmp 0x100bb21a
movzx eax, al
movsx eax, byte [eax + 0x10125e68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bb1f4
cmp edx, ebx
jne 0x100bb1f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100bb24b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100aebeb
leave
ret
Function at 0x100ccf8a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010b808
push 0x1010b800
push str.FlsAlloc
push 0x1e
call fcn.100ccdf7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ccfbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f2244]
call esi
jmp 0x100ccfc4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cd008
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010b818
push 0x1010b810
push str.FlsGetValue
push 0x20
call fcn.100ccdf7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cd03f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f2244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100cd6c9
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 + 0x10128348]
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 0x100cd709
cmp byte [ebx], 0xa
jne 0x100cd709
or byte [eax + edi + 0x28], 4
jmp 0x100cd70e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100cd80c
mov al, byte [edx]
cmp al, 0x1a
je 0x100cd7ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100cd73d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100cd762
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100cd76c
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 0x100cd71f
jmp 0x100cd80c
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 0x100cd7e9
cmp dword [ebp - 0xc], 0
je 0x100cd7e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10128348]
test byte [eax + edi + 0x28], 0x48
je 0x100cd7c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100cd7ae
mov byte [esi], dl
jmp 0x100cd7bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10128348]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100cd80c
cmp byte [ebp - 1], 0xa
jne 0x100cd7d2
cmp esi, ebx
jne 0x100cd7d2
mov byte [esi], 0xa
jmp 0x100cd80b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ceb15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100cd80c
mov byte [esi], 0xd
jmp 0x100cd80b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10128348]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cd808
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cd80c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100cd815
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 + 0x10128348]
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 0x100cd858
cmp word [esi], dx
jne 0x100cd858
or byte [edi + eax + 0x28], 4
jmp 0x100cd85d
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 0x100cd996
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 0x100cd976
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100cd89f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100cd8d5
cmp eax, edx
jae 0x100cd8e1
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 0x100cd877
jmp 0x100cd996
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 0x100cd972
cmp dword [ebp - 0x14], 0
je 0x100cd972
mov eax, dword [ebx*4 + 0x10128348]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100cd94a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100cd990
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10128348]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10128348]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10128348]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100cd993
pop ebx
cmp word [ebp - 4], bx
jne 0x100cd95b
cmp esi, dword [ebp + 0xc]
jne 0x100cd95b
mov word [esi], bx
jmp 0x100cd993
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ceb15
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100cd996
push 0xd
jmp 0x100cd98f
mov ecx, dword [ebx*4 + 0x10128348]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100cd98d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100cd996
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 0x100ce1b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ce028
Function at 0x100d446c
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 0x100d4509
push ebx
push esi
call fcn.100d4435
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.100d0e21
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d44b6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d4508
push edi
push eax
call fcn.100ca918
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d44d6
call fcn.100c732b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d4507
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d0e21
add esp, 0x20
test eax, eax
jne 0x100d44f5
push edi
call fcn.100c732b
jmp 0x100d44fd
push ebx
call fcn.100c732b
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 0x100d450c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d451d
pop esi
ret
push ebx
push edi
push esi
call fcn.100d4435
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100ca918
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d4545
push ebx
push esi
push edi
call fcn.100aff00
add esp, 0xc
push 0
call fcn.100c732b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d4c91
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d47b8