joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013041b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
lea edi, [ebp - 0x18]
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [eax], 4
push eax
push edi
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x10130465
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10130510
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0xdc], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xb0]
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x14]
cmp eax, 0x100
jb 0x101305a3
cmp dword [0x101bee4c], 1
jg 0x101305a3
cmp dword [0x101bac40], 0
je 0x101305a3
lea esi, [esp + 0xc]
mov ecx, esi
push 1
push 0x10a
push str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.10034b83
add esp, 0xc
mov ecx, esi
call fcn.10066600
mov eax, dword [esp + 0xc4]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [esp + 0xdc]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x1013ce40
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
lea esi, [esp + 0x2c]
mov dword [esi], ebx
sub esp, 0x14
mov dword [esp + 0x10], esi
movaps xmm0, xmmword [0x101b1410]
movups xmmword [esp], xmm0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push dword [esi]
call fcn.10085990
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
push esi
push edi
push ebx
push 0x100
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [esp + 4], edi
test edi, edi
je 0x1013cf26
test eax, eax
jne 0x1013cf26
xor ebx, ebx
mov esi, dword [esp + 4]
cmp dword [esi + 0x34], 0
je 0x1013cef1
mov eax, dword [esi + 0x40]
cmp eax, 0x47
je 0x1013cec9
cmp eax, 6
jne 0x1013cef1
push str.Virtual
push dword [esi + 0x24]
call fcn.10149bd6
add esp, 8
test eax, eax
jne 0x1013cef1
push str.virtual
push dword [esi + 0x24]
call fcn.10149bd6
add esp, 8
test eax, eax
je 0x1013cefa
mov esi, dword [esi + 8]
test esi, esi
jne 0x1013ceb6
jmp 0x1013cf26
push 0xc
call fcn.10145ba4
add esp, 4
mov dword [eax + 8], esi
lea ecx, [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esp + 0x20], eax
inc dword [esp + 0x28]
mov esi, dword [esi + 8]
mov bl, 1
jmp 0x1013cef4
mov dword [esp + 8], ebx
lea ebx, [esp + 0x30]
mov dword [ebx], 0x1013d0b0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ebx
push dword [esp + 0x2c]
lea esi, [esp + 0x28]
push esi
call fcn.1013d120
add esp, 0xc
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x1013d01d
mov dword [esp + 0xc], ecx
mov esi, dword [ecx + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x90], 0
cmp dword [esi + 0x34], 0
je 0x1013cfe1
xor edi, edi
movzx eax, byte [esi + edi + 0x2c]
mov dword [esp + 0x10], eax
push ebx
call fcn.10163aa4
add esp, 4
lea eax, [esp + eax*2]
add eax, 0x30
push dword [esp + 0x10]
push str._02X
push 0xffffffffffffffff
push 4
push eax
call fcn.1007db00
add esp, 0x14
inc edi
cmp edi, dword [esi + 0x34]
je 0x1013cfe1
push 0x101a03f0
push 0x32
push ebx
call fcn.101643aa
add esp, 0xc
cmp edi, dword [esi + 0x34]
jb 0x1013cf98
lea esi, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.100349a0
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.1013d062
cmp byte [esp + 0x1f], 0
jns 0x1013d00a
push dword [esp + 0x14]
call fcn.10145bd4
add esp, 4
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x20]
cmp ecx, eax
jne 0x1013cf5a
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.1013d0d6
push 0
push dword [esp + 8]
push 0x101a6dd4
call fcn.100a9690
add esp, 0xc
mov ebx, dword [esp + 8]
and bl, 1
mov ecx, esi
call fcn.1013d0d6
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013f746
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov dword [esp + 8], edx
mov ebx, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0xf8], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xb0]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.10033984
mov dword [esp + 4], ebx
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.10143ff4
test al, al
je 0x1013f815
movzx eax, word [esp + 0xb0]
cmp eax, 0x5a4d
jne 0x1013f858
mov ecx, edi
call fcn.10033984
mov edi, eax
mov eax, dword [esp + 0xec]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
push ebx
push 0
push 0x108
push esi
push edi
call fcn.10143ff4
test al, al
je 0x1013f898
cmp dword [ebx], 0x4550
jne 0x1013f8d8
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x1013f93c
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x1013f93c
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013f93c
cmp dword [0x101bac40], 0
je 0x1013f93c
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x1013f90e
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013f93c
cmp dword [0x101bac40], 0
je 0x1013f93c
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x1013f90e
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013f93c
cmp dword [0x101bac40], 0
je 0x1013f93c
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x1013f90e
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013f93c
cmp dword [0x101bac40], 0
je 0x1013f93c
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.10034b83
add esp, 0xc
mov edx, dword [esp + 4]
movzx ecx, byte [edx + 0xb]
test cl, cl
jns 0x1013f928
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.10034b83
add esp, 0xc
mov ecx, edi
call fcn.10066600
xor ebx, ebx
mov ecx, dword [esp + 0xf8]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013f954
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov dword [esp + 8], edx
mov ebx, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0xf8], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xb0]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.10033984
mov dword [esp + 4], ebx
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.10143ff4
test al, al
je 0x1013fa23
movzx eax, word [esp + 0xb0]
cmp eax, 0x5a4d
jne 0x1013fa66
mov ecx, edi
call fcn.10033984
mov edi, eax
mov eax, dword [esp + 0xec]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
push ebx
push 0
push 0xf8
push esi
push edi
call fcn.10143ff4
test al, al
je 0x1013faa6
cmp dword [ebx], 0x4550
jne 0x1013fae6
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x1013fb4a
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x1013fb4a
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013fb4a
cmp dword [0x101bac40], 0
je 0x1013fb4a
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x1013fb1c
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013fb4a
cmp dword [0x101bac40], 0
je 0x1013fb4a
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x1013fb1c
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013fb4a
cmp dword [0x101bac40], 0
je 0x1013fb4a
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x1013fb1c
xor ebx, ebx
cmp dword [0x101bee4c], 1
jg 0x1013fb4a
cmp dword [0x101bac40], 0
je 0x1013fb4a
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.100661d0
lea eax, [esp + 0x14]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.10034b83
add esp, 0xc
mov edx, dword [esp + 4]
movzx ecx, byte [edx + 0xb]
test cl, cl
jns 0x1013fb36
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.10034b83
add esp, 0xc
mov ecx, edi
call fcn.10066600
xor ebx, ebx
mov ecx, dword [esp + 0xf8]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10155c10
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10155db3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10155d88
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10155d88
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10155d37
jg 0x10155c69
test eax, eax
je 0x10155d2d
push 1
push 0x1000
call fcn.10085a80
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10155c8f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10155d24
push 0x8000
push ebx
call fcn.1015b561
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10155cbb
jg 0x10155cb6
cmp ecx, 0x1000
jb 0x10155cbb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1015f0ed
add esp, 0x10
cmp eax, 0xffffffff
je 0x10155d00
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10155cb6
jl 0x10155ce7
test ecx, ecx
jne 0x10155ca8
push dword [ebp - 0xc]
push ebx
call fcn.1015b561
push esi
call fcn.100859f0
add esp, 0xc
xor edi, edi
jmp 0x10155d99
cmp byte [edi + 0x24], 0
je 0x10155d17
cmp dword [edi + 0x20], 5
jne 0x10155d17
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10155d22
mov edi, dword [edi + 0x18]
jmp 0x10155d24
xor edi, edi
push esi
call fcn.100859f0
pop ecx
jmp 0x10155d99
test ecx, ecx
jg 0x10155cf9
jl 0x10155d37
test eax, eax
jae 0x10155cf9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1015a68d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10155d5a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10155cf9
jmp 0x10155d91
push ebx
call fcn.1015927a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10155cf9
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10155d99
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10155d96
mov edi, dword [edi + 0x18]
jmp 0x10155d99
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1015a68d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10158dc8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1018b6b4
push esi
call fcn.10169e45
pop ecx
pop ecx
test eax, eax
jne 0x10158df6
xor al, al
jmp 0x10158e73
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10158b59
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10158e30
push dword [ebp - 0x210]
call fcn.100859f0
xor al, al
jmp 0x10158e71
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10158e36
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10158e56
push edx
call fcn.10158d19
pop ecx
test al, al
je 0x10158e21
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10158e64
mov bl, 1
push dword [ebp - 0x210]
call fcn.100859f0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101465a3
leave
ret
Function at 0x1015b0a2
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 + 0x101bdf88]
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 0x1015b0e2
cmp byte [ebx], 0xa
jne 0x1015b0e2
or byte [eax + edi + 0x28], 4
jmp 0x1015b0e7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1015b1e5
mov al, byte [edx]
cmp al, 0x1a
je 0x1015b1c7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1015b116
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1015b13b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1015b145
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 0x1015b0f8
jmp 0x1015b1e5
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 0x1015b1c2
cmp dword [ebp - 0xc], 0
je 0x1015b1c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101bdf88]
test byte [eax + edi + 0x28], 0x48
je 0x1015b19c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1015b187
mov byte [esi], dl
jmp 0x1015b198
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101bdf88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1015b1e5
cmp byte [ebp - 1], 0xa
jne 0x1015b1ab
cmp esi, ebx
jne 0x1015b1ab
mov byte [esi], 0xa
jmp 0x1015b1e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1015a68d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1015b1e5
mov byte [esi], 0xd
jmp 0x1015b1e4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101bdf88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1015b1e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1015b1e5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1015b1ee
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 + 0x101bdf88]
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 0x1015b231
cmp word [esi], dx
jne 0x1015b231
or byte [edi + eax + 0x28], 4
jmp 0x1015b236
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 0x1015b36f
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 0x1015b34f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1015b278
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1015b2ae
cmp eax, edx
jae 0x1015b2ba
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 0x1015b250
jmp 0x1015b36f
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 0x1015b34b
cmp dword [ebp - 0x14], 0
je 0x1015b34b
mov eax, dword [ebx*4 + 0x101bdf88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1015b323
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1015b369
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101bdf88]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x101bdf88]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101bdf88]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1015b36c
pop ebx
cmp word [ebp - 4], bx
jne 0x1015b334
cmp esi, dword [ebp + 0xc]
jne 0x1015b334
mov word [esi], bx
jmp 0x1015b36c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1015a68d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1015b36f
push 0xd
jmp 0x1015b368
mov ecx, dword [ebx*4 + 0x101bdf88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1015b366
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1015b36f
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 0x1016139b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10146cc0
mov eax, dword [0x101b9014]
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.10158acd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101613dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10161539
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10146d60
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 + 0x101bdf88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1015a6eb
mov ecx, dword [esi*4 + 0x101bdf88]
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 0x10161532
cmp eax, dword [edi + ecx + 0x24]
jne 0x10161532
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 0x10161532
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1015a6eb
add esp, 0x14
test edx, edx
jl 0x10161532
jg 0x101614a8
test eax, eax
jb 0x10161532
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10161532
jl 0x101614c2
cmp dword [ebp - 0x1008], eax
ja 0x10161532
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101614e0
test ebx, ebx
je 0x10161519
cmp ecx, edi
jae 0x10161519
mov al, byte [ecx]
cmp al, 0xd
jne 0x101614fa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10161506
cmp byte [ecx + 1], 0xa
jne 0x10161506
inc ecx
jmp 0x10161506
movzx eax, al
movsx eax, byte [eax + 0x101b9270]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101614e0
cmp edx, ebx
jne 0x101614e0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10161537
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101465a3
leave
ret

Function at 0x10166bc6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1018ca78
push 0x1018ca70
push 0x1018ca78
push 0x1e
call fcn.10167122
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10166bfa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10166c00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10166c44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1018ca9c
push 0x1018ca94
push 0x1018ca9c
push 0x20
call fcn.10167122
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10166c7b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1016cbb8
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 0x1016cc55
push ebx
push esi
call fcn.1016cca6
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.1016cb01
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1016cc02
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1016cc54
push edi
push eax
call fcn.10085990
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1016cc22
call fcn.100859f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1016cc53
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1016cb01
add esp, 0x20
test eax, eax
jne 0x1016cc41
push edi
call fcn.100859f0
jmp 0x1016cc49
push ebx
call fcn.100859f0
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 0x1016cc58
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1016cc69
pop esi
ret
push ebx
push edi
push esi
call fcn.1016cca6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10085990
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1016cc91
push ebx
push esi
push edi
call fcn.10148eb0
add esp, 0xc
push 0
call fcn.100859f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1016cce8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016cf51

Function at 0x1017140e
Capabilities:
Read file on windows

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