joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073360
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10187080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1004ed0b
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1004dd44
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10026fe0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10030a80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10187080]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
push 0
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10030ae6
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
mov word [esi], 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x10030b1f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x10030aaf
mov ecx, edx
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [ecx + 1]
mov dword [esp + 8], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030b50
sub ecx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.1002f1e0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
Function at 0x10032620
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x10187080]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x30]
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm3
sub esp, 8
mov esi, ecx
movsd qword [esp], xmm0
push 0x100efaf8
push eax
call fcn.10032600
add esp, 0x10
lea eax, [esp + 0x138]
push esi
push 0xff
push eax
lea eax, [esp + 0x44]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x138]
push eax
call fcn.1005a946
mov ecx, dword [esp + 0x240]
add esp, 4
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
movss xmm0, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret 8

Function at 0x100326c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10187080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [ebp + 0x10]
mov eax, str.True
push ebx
mov ebx, dword [ebp + 8]
test dl, dl
push esi
mov esi, ecx
mov ecx, str.False
push edi
mov edi, dword [ebp + 0xc]
cmove eax, ecx
push eax
lea eax, [ebp - 0x204]
push 0x100efb0c
push eax
call fcn.10032600
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push 0xff
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov ecx, str.True
lea eax, [ebp - 0x104]
pop ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10032750
test dl, dl
je 0x1003274c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10032750
add eax, 2
add ecx, 2
test dl, dl
jne 0x10032730
xor eax, eax
jmp 0x10032755
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003279f
mov ecx, str.true
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10032784
test dl, dl
je 0x10032780
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10032784
add eax, 2
add ecx, 2
test dl, dl
jne 0x10032764
xor eax, eax
jmp 0x10032789
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003279f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10032830
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x10187b30], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
je 0x10032877
mov esi, dword [0x1018ae64]
mov eax, dword [0x1018950c]
inc esi
add eax, dword [ebp + 0x10]
mov dword [0x1018ae64], esi
cmp esi, eax
jge 0x1003286d
call ebx
add eax, dword [ebp + 8]
jmp 0x10032872
call ebx
add eax, dword [ebp + 0xc]
mov dword [0x1018b2e0], eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
call esi
test ax, ax
jns 0x100328ba
cmp byte [edi*2 + 0x1018ae68], 0
jne 0x100328ba
mov word [edi*2 + 0x1018ae68], 1
call ebx
cmp eax, dword [0x1018b2e0]
setae byte [0x10187b30]
call ebx
cmp eax, dword [0x1018b2e0]
setae al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi*2 + 0x1018ae68], 1
jne 0x100328d6
push edi
call esi
test ax, ax
js 0x100328d6
mov word [edi*2 + 0x1018ae68], 0x100
push edi
call esi
test ax, ax
jns 0x100328e8
mov byte [edi*2 + 0x1018ae69], 0
jmp 0x10032899
mov edx, dword [ebp - 4]
mov byte [edi*2 + 0x1018ae69], 1
call fcn.10032960
test al, al
jne 0x10032899
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003c510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10187080]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.1002b1c0
cmp byte [0x1018b066], 0
push dword [0x1018b304]
je 0x1003c67f
call fcn.1003ce80
add esp, 4
test al, al
jne 0x1003c58b
mov edx, 0x1018b304
mov byte [0x1018b0a9], al
mov byte [0x1018b0b0], al
call fcn.1003cd40
push dword [0x1018b304]
mov cl, 1
call fcn.1002b110
push dword [0x1018b304]
call fcn.1003d1c0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1003c5bd
mov edx, 5
call fcn.10032960
test al, al
jne 0x1003c5bd
mov edx, 1
mov ecx, edx
call fcn.1003dd20
xor cl, cl
call fcn.1002d7e0
xor cl, cl
jmp 0x1003c5cf
xor edx, edx
xor ecx, ecx
call fcn.1003dd20
mov cl, 1
call fcn.1002d7e0
mov cl, 1
push dword [ebp - 0x2c]
call fcn.1002b110
add esp, 4
mov dword [ebp - 0x30], 0
call fcn.10027530
mov ecx, eax
call fcn.10041420
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.100414c0
movss xmm3, dword [0x1017e4b8]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x30]
lea edx, [ebp - 0xc]
xorps xmm2, xmm2
lea ecx, [ebp - 0x10]
xorps xmm1, xmm1
call fcn.10028810
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.1003cfd0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.1003cf20
push dword [0x1018b304]
movss xmm1, dword [0x1017e558]
xorps xmm3, xmm3
xorps xmm2, xmm2
call fcn.1002b310
push dword [0x1018b304]
movss xmm3, dword [ebp - 8]
movss xmm2, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x10]
call fcn.1002b260
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
call fcn.1003ce80
add esp, 4
test al, al
je 0x1003c6b3
push dword [0x1018b304]
call fcn.1003cde0
xor edx, edx
xor ecx, ecx
call fcn.1003dd20
mov cl, 1
call fcn.1002d7e0
push dword [ebp - 0x2c]
mov cl, 1
call fcn.1002b110
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret

Function at 0x1003f180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x1018b116], 0
je 0x1003f244
mov dword [ebp - 4], 0
call fcn.10027530
mov ecx, eax
call fcn.10041420
lea edx, [ebp - 4]
mov ecx, eax
call fcn.100414c0
push dword [ebp - 4]
call fcn.10028b50
add esp, 4
test al, al
je 0x1003f244
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1003f1da
mov byte [0x1018afa9], 0
jmp 0x1003f1ef
mov edx, 0x10
mov byte [0x1018afa9], 1
call fcn.10032960
test al, al
je 0x1003f244
mov dword [ebp - 4], 0
call fcn.10027530
mov ecx, eax
call fcn.10041420
lea edx, [ebp - 4]
mov ecx, eax
call fcn.100414c0
movss xmm3, dword [0x1017e47c]
sub esp, 0x1c
xorps xmm2, xmm2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [ebp - 4]
call fcn.10041600
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x1004ac30
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10187080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1018b253], 0
je 0x1004ae78
mov dword [ebp - 0x5c], 0
call fcn.10027530
mov ecx, eax
call fcn.10041420
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.100414c0
push dword [ebp - 0x5c]
call fcn.1003cac0
add esp, 4
test al, al
je 0x1004ae78
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 2
call esi
test ax, ax
mov al, byte [0x1018ae6c]
jns 0x1004aca1
test al, al
jne 0x1004aca1
mov word [0x1018ae6c], 1
jmp 0x1004acc9
cmp al, 1
jne 0x1004acb7
push 2
call esi
test ax, ax
js 0x1004acb7
mov word [0x1018ae6c], 0x100
mov edx, 5
call fcn.1002b9d0
test al, al
je 0x1004ae77
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x101899cc]
add ecx, 0x96
cmp ecx, eax
jae 0x1004ae77
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.10027530
mov ecx, eax
call fcn.10041420
lea edx, [ebp - 0x60]
mov ecx, eax
call fcn.100414c0
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.10029d10
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
call fcn.10029f00
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.10029e50
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x58]
call fcn.1004c740
movss xmm1, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
movss xmm2, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
addss xmm1, dword [0x1017e330]
addss xmm2, dword [0x1017e470]
movss xmm3, dword [0x1017e2d0]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x5c]
xorps xmm1, xmmword [0x1017e730]
call fcn.1002a1d0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x38]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
addss xmm2, dword [0x1017e470]
addss xmm1, dword [0x1017e330]
movss xmm3, dword [0x1017e2d0]
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x5c]
call fcn.1002a1d0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
addss xmm2, dword [0x1017e4e8]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
xorps xmm1, xmmword [0x1017e730]
lea ecx, [ebp - 0x1c]
movss xmm3, dword [0x1017e2d0]
push eax
push dword [ebp - 0x5c]
call fcn.1002a1d0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
addss xmm2, dword [0x1017e4e8]
movss xmm3, dword [0x1017e2d0]
lea edx, [ebp - 0x30]
movss xmm1, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
call fcn.1002a1d0
movss xmm0, dword [ebp - 0x14]
add esp, 0x2c
movss xmm3, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x24]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x28]
call fcn.1002c140
movss xmm0, dword [ebp - 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss xmm3, dword [ebp - 0x34]
movss xmm2, dword [ebp - 0x38]
movss xmm1, dword [ebp - 0x3c]
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x40]
call fcn.1002c140
add esp, 8
call esi
mov dword [0x101899cc], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ecf8
mov esp, ebp
pop ebp
ret
Function at 0x10061e9b
Capabilities:
Read file on windows

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

Function at 0x10062337
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100790b0
push 0x100790a8
push str.FlsAlloc
push 0x1e
call fcn.100621a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006236b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100751d0]
call esi
jmp 0x10062371
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100623b5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100790c0
push 0x100790b8
push str.FlsGetValue
push 0x20
call fcn.100621a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100623ec
push dword [ebp + 8]
mov ecx, esi
call dword [0x100751d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10063bee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004fbe0
mov eax, dword [0x10187080]
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.1005eb92
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10063c30
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10063d8c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10070b50
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 + 0x1018a9f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10064d9f
mov ecx, dword [esi*4 + 0x1018a9f8]
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 0x10063d85
cmp eax, dword [edi + ecx + 0x24]
jne 0x10063d85
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 0x10063d85
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10064d9f
add esp, 0x14
test edx, edx
jl 0x10063d85
jg 0x10063cfb
test eax, eax
jb 0x10063d85
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10063d85
jl 0x10063d15
cmp dword [ebp - 0x1008], eax
ja 0x10063d85
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10063d33
test ebx, ebx
je 0x10063d6c
cmp ecx, edi
jae 0x10063d6c
mov al, byte [ecx]
cmp al, 0xd
jne 0x10063d4d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10063d59
cmp byte [ecx + 1], 0xa
jne 0x10063d59
inc ecx
jmp 0x10063d59
movzx eax, al
movsx eax, byte [eax + 0x10187338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10063d33
cmp edx, ebx
jne 0x10063d33
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10063d8a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004ecf8
leave
ret
Function at 0x1006423d
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 + 0x1018a9f8]
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 0x1006427d
cmp byte [ebx], 0xa
jne 0x1006427d
or byte [eax + edi + 0x28], 4
jmp 0x10064282
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10064380
mov al, byte [edx]
cmp al, 0x1a
je 0x10064362
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100642b1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100642d6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100642e0
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 0x10064293
jmp 0x10064380
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 0x1006435d
cmp dword [ebp - 0xc], 0
je 0x1006435d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1018a9f8]
test byte [eax + edi + 0x28], 0x48
je 0x10064337
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10064322
mov byte [esi], dl
jmp 0x10064333
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1018a9f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10064380
cmp byte [ebp - 1], 0xa
jne 0x10064346
cmp esi, ebx
jne 0x10064346
mov byte [esi], 0xa
jmp 0x1006437f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10064dbd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10064380
mov byte [esi], 0xd
jmp 0x1006437f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1018a9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006437c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10064380
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10064389
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 + 0x1018a9f8]
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 0x100643cc
cmp word [esi], dx
jne 0x100643cc
or byte [edi + eax + 0x28], 4
jmp 0x100643d1
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 0x10064524
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 0x10064504
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10064413
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10064449
cmp eax, edx
jae 0x10064455
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 0x100643eb
jmp 0x10064524
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 0x10064500
cmp dword [ebp - 0x14], 0
je 0x10064500
mov eax, dword [ebx*4 + 0x1018a9f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100644d8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100644a1
mov word [esi], cx
jmp 0x100644d4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1018a9f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1018a9f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1018a9f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10064524
pop ebx
cmp word [ebp - 4], bx
jne 0x100644e9
cmp esi, dword [ebp + 0xc]
jne 0x100644e9
mov word [esi], bx
jmp 0x10064521
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10064dbd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10064524
push 0xd
jmp 0x1006451d
mov ecx, dword [ebx*4 + 0x1018a9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006451b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10064524
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 0x100684f6
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 0x10068593
push ebx
push esi
call fcn.100684bf
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.10063e87
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10068540
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068592
push edi
push eax
call fcn.100628f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10068560
call fcn.10061928
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10068591
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10063e87
add esp, 0x20
test eax, eax
jne 0x1006857f
push edi
call fcn.10061928
jmp 0x10068587
push ebx
call fcn.10061928
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 0x10068596
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100685a7
pop esi
ret
push ebx
push edi
push esi
call fcn.100684bf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100628f9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100685cf
push ebx
push esi
push edi
call fcn.10050280
add esp, 0xc
push 0
call fcn.10061928
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10068993
Capabilities:
Set environment variable

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