joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100201d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10071ba8]
mov ecx, dword [ecx + 4]
push ebx
push esi
mov eax, dword [eax]
mov ebx, 6
cmp eax, 3
jne 0x10020201
cmp byte [ecx + 0x1c], 0
jne 0x10020212
lea ebx, [eax - 1]
jmp 0x10020212
cmp eax, 4
jne 0x10020212
cmp byte [ecx + 0x1d], 0
mov eax, 2
cmove ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x53fa50
call esi
lea eax, [ebp - 8]
mov byte [0x53fa50], bl
push eax
push dword [ebp - 8]
push 1
push 0x53fa50
call esi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push 0x53f648
call esi
lea eax, [ebp - 0xc]
mov byte [0x53f648], bl
push eax
push dword [ebp - 0xc]
push 1
push 0x53f648
call esi
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.10031260
mov esp, ebp
pop ebp
ret 4

Function at 0x100206f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10076abc]
push edi
mov edi, dword [eax + 0x3c]
mov eax, dword [0x7f94e0]
cmp byte [edi + 0x84], 0
je 0x100207a4
movss xmm1, dword [edi + 0x30]
divss xmm1, dword [0x1006579c]
movss xmm2, dword [0x100657a4]
movss xmm0, dword [0x100657d0]
mulss xmm1, xmm2
maxss xmm0, xmm1
minss xmm2, xmm0
movss dword [eax + 0x74], xmm2
mov eax, dword [0x10071ba8]
mov dword [edi + 0x38], 0
cmp dword [eax], 5
jne 0x10020769
cmp byte [0x798550], 0
je 0x10020769
mov dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x4db8ce
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x84]
mov ecx, 0x4db8ce
mov dword [ecx], eax
mov ax, word [edi + 0x88]
mov word [ecx + 4], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10031260
mov esp, ebp
pop ebp
ret
Function at 0x100209f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100587e5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [0x10071b94]
mov esi, eax
xor al, al
mov byte [ebp - 0x15], al
cmp byte [0x8092d8], al
je 0x10020a59
mov ecx, dword [0x809db4]
xor edx, edx
call dword [0x10071b8c]
test eax, eax
je 0x10020a56
push 2
xor edx, edx
mov ecx, eax
call dword [0x10071b9c]
test eax, eax
setne al
jmp 0x10020a59
mov al, byte [ebp - 0x15]
test esi, esi
jne 0x10020b81
test al, al
jne 0x10020b81
cmp dword [ebp + 8], esi
je 0x10020b81
cmp byte [edi], al
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sete al
mov byte [ebp - 0x15], al
mov byte [edi], al
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x7985ec
call esi
mov al, byte [ebp - 0x15]
mov byte [0x7985ec], al
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 1
push 0x7985ec
call esi
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x48]
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.NetstatVisibilityState
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.100054b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x100621d8
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.100054b0
push edi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.10008580
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10020b3f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10020b35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020b9e
push ecx
push edx
call fcn.100312a8
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x10020b81
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10020b77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020b9e
push ecx
push edx
call fcn.100312a8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10031260
mov esp, ebp
pop ebp
ret 4
call fcn.10038464
int3
Function at 0x10020f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
mov bl, byte [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x7985ec
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [0x7985ec], bl
push eax
push dword [ebp - 8]
push 1
push 0x7985ec
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10031260
mov esp, ebp
pop ebp
ret
Function at 0x10023400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10023432
jl 0x10023425
test ecx, ecx
jne 0x10023432
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100234f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10003f40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1002349e
jg 0x1002345d
test esi, esi
je 0x1002349e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10023475
mov eax, dword [esp + 0x10]
jl 0x1002346f
cmp eax, esi
jae 0x10023475
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10032a10
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100234bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100234db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10023444
jl 0x100234db
test ecx, ecx
jne 0x10023444
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
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 0x10023530
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10023530
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10032a10
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10023599
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10023556
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 [esp + 0xc]
cmp edi, 0xfff
jbe 0x10023584
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1003d2c3
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10023599
cmp edi, eax
ja 0x10023562
test edi, edi
je 0x10023599
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1003d2c3
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10024820
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058fb2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1028
call fcn.10032350
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x101c], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x101c], 1
jbe 0x100248b7
mov eax, dword [esi]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jne 0x10024920
mov edx, str.Failed_to_read_INI_file:
mov ecx, 0x10075c70
call fcn.10004f20
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x100248e8
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.100089e0
add esp, 4
push eax
call fcn.100051c0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10031260
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x100248fe
nop
mov ecx, esi
mov dword [ebp - 0x1024], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1020], 0
movups xmmword [ebp - 0x1034], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024953
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1034]
call fcn.100054b0
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x100249a1
movups xmm0, xmmword [ebp - 0x1034]
mov ecx, 0xf
mov byte [ebp - 0x1034], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1024]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x100249b6
lea ecx, [ebp - 0x1034]
push ecx
push eax
mov ecx, edi
call fcn.1002d150
mov ecx, dword [ebp - 0x1020]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x100249ea
mov edx, dword [ebp - 0x1034]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100249e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024a09
push ecx
push edx
call fcn.100312a8
add esp, 8
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100249f0
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x10024930
jmp 0x100248fe
call fcn.10038464
int3
Function at 0x1002f700
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10071080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov byte [edi + 0xa0], 1
cmp byte [edi + 0x84], 0
mov eax, dword [0x7f94e0]
je 0x1002f7b5
movss xmm1, dword [edi + 0x30]
divss xmm1, dword [0x1006579c]
movss xmm2, dword [0x100657a4]
movss xmm0, dword [0x100657d0]
mulss xmm1, xmm2
maxss xmm0, xmm1
minss xmm2, xmm0
movss dword [eax + 0x74], xmm2
mov eax, dword [0x10071ba8]
mov dword [edi + 0x38], 0
cmp dword [eax], 5
jne 0x1002f77a
cmp byte [0x798550], 0
je 0x1002f77a
mov dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x4db8ce
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x84]
mov ecx, 0x4db8ce
mov dword [ecx], eax
mov ax, word [edi + 0x88]
mov word [ecx + 4], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [edi + 0x64]
call fcn.10016a40
push 0xa8
push edi
call fcn.100312a8
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
call fcn.10031260
mov esp, ebp
pop ebp
ret 4

Function at 0x10045094
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e58c
push 0x1005e584
push str.FlsAlloc
push 0x1e
call fcn.10044ec1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100450c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a1b4]
call esi
jmp 0x100450ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10045112
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e59c
push 0x1005e594
push str.FlsGetValue
push 0x20
call fcn.10044ec1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045149
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a1b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100468ce
Capabilities:
Read file on windows

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

Function at 0x10046d73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10032350
mov eax, dword [0x10071080]
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.100413ca
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10046db5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10046f11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10052dd0
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 + 0x10076670]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10047b54
mov ecx, dword [esi*4 + 0x10076670]
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 0x10046f0a
cmp eax, dword [edi + ecx + 0x24]
jne 0x10046f0a
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 0x10046f0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10047b54
add esp, 0x14
test edx, edx
jl 0x10046f0a
jg 0x10046e80
test eax, eax
jb 0x10046f0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10046f0a
jl 0x10046e9a
cmp dword [ebp - 0x1008], eax
ja 0x10046f0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10046eb8
test ebx, ebx
je 0x10046ef1
cmp ecx, edi
jae 0x10046ef1
mov al, byte [ecx]
cmp al, 0xd
jne 0x10046ed2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10046ede
cmp byte [ecx + 1], 0xa
jne 0x10046ede
inc ecx
jmp 0x10046ede
movzx eax, al
movsx eax, byte [eax + 0x100714d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10046eb8
cmp edx, ebx
jne 0x10046eb8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10046f0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10031260
leave
ret
Function at 0x1004700c
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 + 0x10076670]
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 0x1004704c
cmp byte [ebx], 0xa
jne 0x1004704c
or byte [eax + edi + 0x28], 4
jmp 0x10047051
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004714f
mov al, byte [edx]
cmp al, 0x1a
je 0x10047131
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10047080
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100470a5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100470af
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 0x10047062
jmp 0x1004714f
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 0x1004712c
cmp dword [ebp - 0xc], 0
je 0x1004712c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10076670]
test byte [eax + edi + 0x28], 0x48
je 0x10047106
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100470f1
mov byte [esi], dl
jmp 0x10047102
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10076670]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004714f
cmp byte [ebp - 1], 0xa
jne 0x10047115
cmp esi, ebx
jne 0x10047115
mov byte [esi], 0xa
jmp 0x1004714e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10047b72
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004714f
mov byte [esi], 0xd
jmp 0x1004714e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10076670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004714b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004714f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10047158
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 + 0x10076670]
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 0x1004719b
cmp word [esi], dx
jne 0x1004719b
or byte [edi + eax + 0x28], 4
jmp 0x100471a0
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 0x100472d9
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 0x100472b9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100471e2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10047218
cmp eax, edx
jae 0x10047224
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 0x100471ba
jmp 0x100472d9
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 0x100472b5
cmp dword [ebp - 0x14], 0
je 0x100472b5
mov eax, dword [ebx*4 + 0x10076670]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004728d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100472d3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10076670]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10076670]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10076670]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100472d6
pop ebx
cmp word [ebp - 4], bx
jne 0x1004729e
cmp esi, dword [ebp + 0xc]
jne 0x1004729e
mov word [esi], bx
jmp 0x100472d6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10047b72
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100472d9
push 0xd
jmp 0x100472d2
mov ecx, dword [ebx*4 + 0x10076670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100472d0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100472d9
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 0x1004a422
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 0x1004a4bf
push ebx
push esi
call fcn.1004a3eb
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.10049227
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004a46c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004a4be
push edi
push eax
call fcn.100404d9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004a48c
call fcn.1004049f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004a4bd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10049227
add esp, 0x20
test eax, eax
jne 0x1004a4ab
push edi
call fcn.1004049f
jmp 0x1004a4b3
push ebx
call fcn.1004049f
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 0x1004a4c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004a4d3
pop esi
ret
push ebx
push edi
push esi
call fcn.1004a3eb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100404d9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004a4fb
push ebx
push esi
push edi
call fcn.10032a10
add esp, 0xc
push 0
call fcn.1004049f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004a8bf
Capabilities:
Set environment variable

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