joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017960
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x100a3324]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [esi + 0x3e58]
mov ecx, edx
mov dword [ebp - 0xc], edx
cmp dword [edx + 0x190], 0
jne 0x10017998
cmp dword [esi + 0x4a14], 0
mov eax, 0x228
je 0x1001799d
mov eax, 0x1f8
movss xmm4, dword [eax + edx]
xorps xmm3, xmm3
movss xmm5, dword [eax + edx + 4]
subss xmm4, dword [ecx + 0xf0]
subss xmm5, dword [ecx + 0xf4]
mov ecx, dword [ebp + 8]
movss xmm2, dword [0x10099080]
mov dword [ebp - 4], 0
mov dword [ebp + 8], 2
cvttss2si eax, dword [ecx]
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm3
lahf
test ah, 0x44
mov eax, dword [ebp - 4]
cmovnp eax, dword [ebp + 8]
or eax, ecx
comiss xmm3, xmm1
mov dword [ebp - 4], eax
jb 0x10017a20
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x10017a20
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x10017a31
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x10017a31
movaps xmm0, xmm2
or dword [esi + 0x470c], 2
movss dword [esi + 0x472c], xmm1
movss dword [esi + 0x4730], xmm0
mov dword [esi + 0x4714], 1
mov eax, dword [edx + 4]
push ebx
test edi, edi
je 0x10017a71
push edi
push eax
push str._s__s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.1000f770
add esp, 0x18
jmp 0x10017a85
push eax
push str._s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.1000f770
add esp, 0x14
movss xmm0, dword [esi + 0x37b0]
xor edx, edx
mov ecx, dword [ebp + 8]
push 0x1000107
movss dword [ebp - 8], xmm0
call fcn.1001af50
mov edi, dword [esi + 0x3e58]
add esp, 4
movss xmm0, dword [ebp - 8]
movss dword [esi + 0x37b0], xmm0
mov byte [ebp + 0xb], al
cmp word [edi + 0xb6], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [edi + 0x74], ebx
mov byte [edi + 0xc6], al
jne 0x10017ae8
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [edx + 0xf0], ecx
mov dword [edx + 0xf4], eax
mov edi, ebx
mov edx, 0x10092281
not edi
mov al, 0x23
mov ebx, edi
cmp al, 0x23
jne 0x10017b03
cmp byte [edx], al
jne 0x10017b03
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x1008c508]
test al, al
jne 0x10017af5
mov edi, dword [ebp - 8]
not ebx
cmp dword [esi + 0x3ea4], ebx
jne 0x10017b32
xor edx, edx
xor ecx, ecx
call fcn.10013d00
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x47e8], eax
jne 0x10017b77
cmp word [edi + 0x14c], 0
jne 0x10017b50
cmp byte [edi + 0x152], 0
je 0x10017b77
xor edx, edx
mov ecx, edi
call fcn.1001e1a0
xor dl, dl
mov ecx, edi
call fcn.10025540
mov edx, edi
mov ecx, ebx
call fcn.10013d00
mov eax, dword [esi + 0x480c]
mov dword [esi + 0x3ec4], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017dc0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x10017dff
cmp bl, 0x23
jne 0x10017de1
cmp byte [esi], bl
jne 0x10017de1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x1008c508]
test bl, bl
jne 0x10017dd2
mov ecx, dword [0x100a3324]
not eax
mov esi, dword [ecx + 0x3e40]
mov edi, dword [ecx + 0x3e48]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10017e3e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10017e38
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10017e3a
mov esi, edx
test esi, esi
jne 0x10017e20
cmp edi, ebx
je 0x10017e4d
cmp dword [edi], eax
jne 0x10017e4d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10029210
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a3324]
lea edx, [ecx + 1]
push ebx
mov dword [ebp - 4], eax
or ebx, 0xffffffff
mov al, byte [ecx]
push esi
push edi
test al, al
je 0x10029257
or esi, 0xffffffff
nop
cmp al, 0x23
jne 0x1002923e
cmp byte [edx], al
jne 0x1002923e
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x1008c508]
test al, al
jne 0x10029230
mov ecx, dword [ebp - 4]
xor esi, esi
not ebx
mov eax, dword [ecx + 0x5a74]
test eax, eax
jle 0x100292ac
xor edi, edi
nop word [eax + eax]
test esi, esi
js 0x10029278
cmp esi, eax
jl 0x10029292
push 0x72d
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push str.i___0__i___Size
call fcn.10065b09
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ecx + 0x5a7c]
cmp dword [eax + edi + 4], ebx
je 0x100292b5
mov eax, dword [ecx + 0x5a74]
inc esi
add edi, 0x24
cmp esi, eax
jl 0x10029270
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x100292c1
cmp esi, dword [ecx + 0x5a74]
jl 0x100292d8
push 0x72d
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push str.i___0__i___Size
call fcn.10065b09
add esp, 0xc
mov eax, dword [ebp - 4]
lea ecx, [esi + esi*8]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x5a7c]
lea eax, [eax + ecx*4]
mov esp, ebp
pop ebp
ret
Function at 0x100330f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10033126
mov eax, dword [0x100a3324]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10033116
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1003315a
mov eax, dword [0x100a3324]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1003314a
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1003318e
mov eax, dword [0x100a3324]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1003317e
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100331de
mov eax, dword [0x100a3324]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100331ce
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10033212
mov eax, dword [0x100a3324]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10033202
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10033246
mov eax, dword [0x100a3324]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10033236
dec dword [eax + 0xac]
push ecx
call fcn.1005e6df
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10035a30
Function at 0x1003c5c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [0x100a3324]
mov edx, 0x210
push esi
push edi
call fcn.1001eeb0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax], 0
je 0x1003c656
mov ecx, dword [0x100a3324]
mov edx, 0x210
call fcn.1000e980
cmp byte [eax + 8], 0
jne 0x1003c656
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x1003c656
cmp dword [0x100a3324], 0
jne 0x1003c621
push 0x108f
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10065b09
add esp, 0xc
mov esi, dword [0x100a3324]
cmp byte [esi + 0x3769], 0
je 0x1003c642
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.1000f030
mov dword [esi + 0x338], 0x210
mov dword [esi + 0x8f8], 0xa0
mov ecx, dword [0x100a3324]
mov edx, 0x214
call fcn.1001eeb0
cmp byte [eax], 0
je 0x1003c6e4
mov ecx, dword [0x100a3324]
mov edx, 0x214
call fcn.1000e980
cmp byte [eax + 8], 0
jne 0x1003c6e4
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x1003c6e4
cmp dword [0x100a3324], 0
jne 0x1003c6af
push 0x108f
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10065b09
add esp, 0xc
mov esi, dword [0x100a3324]
cmp byte [esi + 0x3769], 0
je 0x1003c6d0
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.1000f030
mov dword [esi + 0x33c], 0x214
mov dword [esi + 0x908], 0xa1
mov ecx, dword [0x100a3324]
mov edx, 0x212
call fcn.1001eeb0
cmp byte [eax], 0
je 0x1003c76f
mov ecx, dword [0x100a3324]
mov edx, 0x212
call fcn.1000e980
cmp byte [eax + 8], 0
jne 0x1003c76f
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x1003c76f
cmp dword [0x100a3324], 0
jne 0x1003c73a
push 0x108f
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10065b09
add esp, 0xc
mov esi, dword [0x100a3324]
cmp byte [esi + 0x3769], 0
je 0x1003c75b
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.1000f030
mov dword [esi + 0x224], 0x212
mov dword [esi + 0x900], 0x5b
mov ecx, dword [0x100a3324]
mov edx, 0x216
call fcn.1001eeb0
cmp byte [eax], 0
je 0x1003c7fb
mov ecx, dword [0x100a3324]
mov edx, 0x216
call fcn.1000e980
cmp byte [eax + 8], 0
jne 0x1003c7fb
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x1003c7fb
mov esi, dword [0x100a3324]
test esi, esi
jne 0x1003c7cc
push 0x108f
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.10065b09
mov esi, dword [0x100a3324]
add esp, 0xc
cmp byte [esi + 0x3769], 0
je 0x1003c7e7
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.1000f030
mov dword [esi + 0x228], 0x216
mov dword [esi + 0x910], 0x5c
pop edi
pop esi
ret
Function at 0x1004ed00
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov esi, edx
je 0x1004ed72
mov cl, byte [esi]
or eax, 0xffffffff
inc esi
test cl, cl
je 0x1004ed48
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x1004ed2f
cmp byte [esi], cl
jne 0x1004ed2f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1008c508]
test cl, cl
jne 0x1004ed20
mov ecx, dword [0x100a3324]
not eax
cmp dword [ecx + 0x3ea4], eax
jne 0x1004ed5e
mov dword [ecx + 0x3ea8], eax
cmp dword [ecx + 0x3ecc], eax
jne 0x1004edd8
mov byte [ecx + 0x3ed0], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x100a3324]
mov ebx, dword [eax + 0x3e58]
cmp dword [ebx + 0xe4], 0
jg 0x1004ed9d
push 0x736
push str.E:Visual_Studio_ProjectsNFSMWModMenuNFSMWModMenuimguiimgui.h
push str.Size___0
call fcn.10065b09
add esp, 0xc
mov ecx, dword [ebx + 0xe4]
xor edx, edx
mov eax, dword [ebx + 0xec]
push dword [eax + ecx*4 - 4]
mov ecx, esi
call fcn.1000f820
mov ecx, dword [ebx]
mov edi, eax
add esp, 4
cmp dword [ecx + 0x3e8c], edi
jne 0x1004edd6
push ecx
push esi
mov edx, 0xb
mov ecx, edi
call fcn.1002a5b0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10062e13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10053400
mov eax, dword [0x100a1068]
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.10067f87
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10062e55
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10062fb1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1007b080
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 + 0x100a2ea8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1006e6e4
mov ecx, dword [esi*4 + 0x100a2ea8]
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 0x10062faa
cmp eax, dword [edi + ecx + 0x24]
jne 0x10062faa
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 0x10062faa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006e6e4
add esp, 0x14
test edx, edx
jl 0x10062faa
jg 0x10062f20
test eax, eax
jb 0x10062faa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10062faa
jl 0x10062f3a
cmp dword [ebp - 0x1008], eax
ja 0x10062faa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10062f58
test ebx, ebx
je 0x10062f91
cmp ecx, edi
jae 0x10062f91
mov al, byte [ecx]
cmp al, 0xd
jne 0x10062f72
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10062f7e
cmp byte [ecx + 1], 0xa
jne 0x10062f7e
inc ecx
jmp 0x10062f7e
movzx eax, al
movsx eax, byte [eax + 0x100a12d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10062f58
cmp edx, ebx
jne 0x10062f58
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10062faf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10052338
leave
ret
Function at 0x1006c86f
Capabilities:
Read file on windows

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

Function at 0x1006cdbf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100846a8
push 0x100846a0
push str.FlsAlloc
push 0x1e
call fcn.1006cbac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006cdf3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10080204]
call esi
jmp 0x1006cdf9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006ce3d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100846b8
push 0x100846b0
push str.FlsGetValue
push 0x20
call fcn.1006cbac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006ce74
push dword [ebp + 8]
mov ecx, esi
call dword [0x10080204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1006db82
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 + 0x100a2ea8]
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 0x1006dbc2
cmp byte [ebx], 0xa
jne 0x1006dbc2
or byte [eax + edi + 0x28], 4
jmp 0x1006dbc7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1006dcc5
mov al, byte [edx]
cmp al, 0x1a
je 0x1006dca7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1006dbf6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1006dc1b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1006dc25
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 0x1006dbd8
jmp 0x1006dcc5
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 0x1006dca2
cmp dword [ebp - 0xc], 0
je 0x1006dca2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100a2ea8]
test byte [eax + edi + 0x28], 0x48
je 0x1006dc7c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006dc67
mov byte [esi], dl
jmp 0x1006dc78
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a2ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006dcc5
cmp byte [ebp - 1], 0xa
jne 0x1006dc8b
cmp esi, ebx
jne 0x1006dc8b
mov byte [esi], 0xa
jmp 0x1006dcc4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006e702
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006dcc5
mov byte [esi], 0xd
jmp 0x1006dcc4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100a2ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006dcc1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006dcc5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006dcce
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 + 0x100a2ea8]
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 0x1006dd11
cmp word [esi], dx
jne 0x1006dd11
or byte [edi + eax + 0x28], 4
jmp 0x1006dd16
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 0x1006de69
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 0x1006de49
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1006dd58
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006dd8e
cmp eax, edx
jae 0x1006dd9a
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 0x1006dd30
jmp 0x1006de69
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 0x1006de45
cmp dword [ebp - 0x14], 0
je 0x1006de45
mov eax, dword [ebx*4 + 0x100a2ea8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1006de1d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1006dde6
mov word [esi], cx
jmp 0x1006de19
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100a2ea8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100a2ea8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100a2ea8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1006de69
pop ebx
cmp word [ebp - 4], bx
jne 0x1006de2e
cmp esi, dword [ebp + 0xc]
jne 0x1006de2e
mov word [esi], bx
jmp 0x1006de66
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006e702
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1006de69
push 0xd
jmp 0x1006de62
mov ecx, dword [ebx*4 + 0x100a2ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006de60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006de69
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 0x1006f904
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006f886
Function at 0x10073726
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 0x100737c3
push ebx
push esi
call fcn.100736ef
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.100724fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10073770
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100737c2
push edi
push eax
call fcn.1006b5cd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10073790
call fcn.1006aef6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100737c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100724fb
add esp, 0x20
test eax, eax
jne 0x100737af
push edi
call fcn.1006aef6
jmp 0x100737b7
push ebx
call fcn.1006aef6
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 0x100737c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100737d7
pop esi
ret
push ebx
push edi
push esi
call fcn.100736ef
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006b5cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100737ff
push ebx
push esi
push edi
call fcn.10053e60
add esp, 0xc
push 0
call fcn.1006aef6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10073bc3
Capabilities:
Set environment variable

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