joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030eb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x10184080]
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 0x100ed8d4
push eax
call fcn.10030e90
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.100586a6
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.1004ca58
mov esp, ebp
pop ebp
ret 8

Function at 0x10030f50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10184080]
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 0x100ed8e8
push eax
call fcn.10030e90
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 0x10030fe0
test dl, dl
je 0x10030fdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10030fe0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10030fc0
xor eax, eax
jmp 0x10030fe5
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003102f
mov ecx, str.true
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10031014
test dl, dl
je 0x10031010
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10031014
add eax, 2
add ecx, 2
test dl, dl
jne 0x10030ff4
xor eax, eax
jmp 0x10031019
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003102f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100310c0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x10184b30], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
je 0x10031107
mov esi, dword [0x10187e84]
mov eax, dword [0x10186500]
inc esi
add eax, dword [ebp + 0x10]
mov dword [0x10187e84], esi
cmp esi, eax
jge 0x100310fd
call ebx
add eax, dword [ebp + 8]
jmp 0x10031102
call ebx
add eax, dword [ebp + 0xc]
mov dword [0x101882f4], eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
call esi
test ax, ax
jns 0x1003114a
cmp byte [edi*2 + 0x10187e88], 0
jne 0x1003114a
mov word [edi*2 + 0x10187e88], 1
call ebx
cmp eax, dword [0x101882f4]
setae byte [0x10184b30]
call ebx
cmp eax, dword [0x101882f4]
setae al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi*2 + 0x10187e88], 1
jne 0x10031166
push edi
call esi
test ax, ax
js 0x10031166
mov word [edi*2 + 0x10187e88], 0x100
push edi
call esi
test ax, ax
jns 0x10031178
mov byte [edi*2 + 0x10187e89], 0
jmp 0x10031129
mov edx, dword [ebp - 4]
mov byte [edi*2 + 0x10187e89], 1
call fcn.100311f0
test al, al
jne 0x10031129
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003ace0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10184080]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.10029e60
cmp byte [0x10187e7b], 0
push dword [0x10188318]
je 0x1003ae4f
call fcn.1003b650
add esp, 4
test al, al
jne 0x1003ad5b
mov edx, 0x10188318
mov byte [0x101880c8], al
mov byte [0x101880cb], al
call fcn.1003b510
push dword [0x10188318]
mov cl, 1
call fcn.10029db0
push dword [0x10188318]
call fcn.1003b990
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1003ad8d
mov edx, 5
call fcn.100311f0
test al, al
jne 0x1003ad8d
mov edx, 1
mov ecx, edx
call fcn.1003c4f0
xor cl, cl
call fcn.1002c480
xor cl, cl
jmp 0x1003ad9f
xor edx, edx
xor ecx, ecx
call fcn.1003c4f0
mov cl, 1
call fcn.1002c480
mov cl, 1
push dword [ebp - 0x2c]
call fcn.10029db0
add esp, 4
mov dword [ebp - 0x30], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.1003fc90
movss xmm3, dword [0x1017c200]
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.100274c0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.1003b7a0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.1003b6f0
push dword [0x10188318]
movss xmm1, dword [0x1017c2a0]
xorps xmm3, xmm3
xorps xmm2, xmm2
call fcn.10029fb0
push dword [0x10188318]
movss xmm3, dword [ebp - 8]
movss xmm2, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x10]
call fcn.10029f00
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
call fcn.1003b650
add esp, 4
test al, al
je 0x1003ae83
push dword [0x10188318]
call fcn.1003b5b0
xor edx, edx
xor ecx, ecx
call fcn.1003c4f0
mov cl, 1
call fcn.1002c480
push dword [ebp - 0x2c]
mov cl, 1
call fcn.10029db0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret

Function at 0x1003d950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x10188155], 0
je 0x1003da14
mov dword [ebp - 4], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [ebp - 4]
mov ecx, eax
call fcn.1003fc90
push dword [ebp - 4]
call fcn.10027800
add esp, 4
test al, al
je 0x1003da14
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1003d9aa
mov byte [0x10187fc9], 0
jmp 0x1003d9bf
mov edx, 0x10
mov byte [0x10187fc9], 1
call fcn.100311f0
test al, al
je 0x1003da14
mov dword [ebp - 4], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [ebp - 4]
mov ecx, eax
call fcn.1003fc90
movss xmm3, dword [0x1017c1c8]
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.1003fdd0
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x100489a0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10184080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1018826b], 0
je 0x10048be8
mov dword [ebp - 0x5c], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.1003fc90
push dword [ebp - 0x5c]
call fcn.1003b290
add esp, 4
test al, al
je 0x10048be8
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 2
call esi
test ax, ax
mov al, byte [0x10187e8c]
jns 0x10048a11
test al, al
jne 0x10048a11
mov word [0x10187e8c], 1
jmp 0x10048a39
cmp al, 1
jne 0x10048a27
push 2
call esi
test ax, ax
js 0x10048a27
mov word [0x10187e8c], 0x100
mov edx, 5
call fcn.1002a670
test al, al
je 0x10048be7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x10186a20]
add ecx, 0x96
cmp ecx, eax
jae 0x10048be7
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.100261e0
mov ecx, eax
call fcn.1003fbf0
lea edx, [ebp - 0x60]
mov ecx, eax
call fcn.1003fc90
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.100289b0
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
call fcn.10028ba0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.10028af0
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x58]
call fcn.1004a4a0
movss xmm1, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
movss xmm2, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
addss xmm1, dword [0x1017c07c]
addss xmm2, dword [0x1017c1bc]
movss xmm3, dword [0x1017c020]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x5c]
xorps xmm1, xmmword [0x1017c460]
call fcn.10028e70
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x38]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
addss xmm2, dword [0x1017c1bc]
addss xmm1, dword [0x1017c07c]
movss xmm3, dword [0x1017c020]
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x5c]
call fcn.10028e70
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
addss xmm2, dword [0x1017c230]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
xorps xmm1, xmmword [0x1017c460]
lea ecx, [ebp - 0x1c]
movss xmm3, dword [0x1017c020]
push eax
push dword [ebp - 0x5c]
call fcn.10028e70
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
addss xmm2, dword [0x1017c230]
movss xmm3, dword [0x1017c020]
lea edx, [ebp - 0x30]
movss xmm1, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
call fcn.10028e70
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.1002ade0
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.1002ade0
add esp, 8
call esi
mov dword [0x10186a20], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ca58
mov esp, ebp
pop ebp
ret
Function at 0x1005fbfb
Capabilities:
Read file on windows

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

Function at 0x10060097
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077090
push 0x10077088
push str.FlsAlloc
push 0x1e
call fcn.1005ff04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100600cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x100731c0]
call esi
jmp 0x100600d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10060115
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100770a0
push 0x10077098
push str.FlsGetValue
push 0x20
call fcn.1005ff04
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006014c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100731c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1006194e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004d940
mov eax, dword [0x10184080]
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.1005c8f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10061990
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10061aec
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006e8b0
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 + 0x10187a18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10062aff
mov ecx, dword [esi*4 + 0x10187a18]
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 0x10061ae5
cmp eax, dword [edi + ecx + 0x24]
jne 0x10061ae5
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 0x10061ae5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10062aff
add esp, 0x14
test edx, edx
jl 0x10061ae5
jg 0x10061a5b
test eax, eax
jb 0x10061ae5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10061ae5
jl 0x10061a75
cmp dword [ebp - 0x1008], eax
ja 0x10061ae5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10061a93
test ebx, ebx
je 0x10061acc
cmp ecx, edi
jae 0x10061acc
mov al, byte [ecx]
cmp al, 0xd
jne 0x10061aad
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10061ab9
cmp byte [ecx + 1], 0xa
jne 0x10061ab9
inc ecx
jmp 0x10061ab9
movzx eax, al
movsx eax, byte [eax + 0x10184338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10061a93
cmp edx, ebx
jne 0x10061a93
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10061aea
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004ca58
leave
ret
Function at 0x10061f9d
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 + 0x10187a18]
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 0x10061fdd
cmp byte [ebx], 0xa
jne 0x10061fdd
or byte [eax + edi + 0x28], 4
jmp 0x10061fe2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100620e0
mov al, byte [edx]
cmp al, 0x1a
je 0x100620c2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10062011
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10062036
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10062040
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 0x10061ff3
jmp 0x100620e0
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 0x100620bd
cmp dword [ebp - 0xc], 0
je 0x100620bd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10187a18]
test byte [eax + edi + 0x28], 0x48
je 0x10062097
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10062082
mov byte [esi], dl
jmp 0x10062093
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10187a18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100620e0
cmp byte [ebp - 1], 0xa
jne 0x100620a6
cmp esi, ebx
jne 0x100620a6
mov byte [esi], 0xa
jmp 0x100620df
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10062b1d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100620e0
mov byte [esi], 0xd
jmp 0x100620df
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10187a18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100620dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100620e0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100620e9
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 + 0x10187a18]
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 0x1006212c
cmp word [esi], dx
jne 0x1006212c
or byte [edi + eax + 0x28], 4
jmp 0x10062131
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 0x10062284
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 0x10062264
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10062173
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100621a9
cmp eax, edx
jae 0x100621b5
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 0x1006214b
jmp 0x10062284
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 0x10062260
cmp dword [ebp - 0x14], 0
je 0x10062260
mov eax, dword [ebx*4 + 0x10187a18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10062238
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10062201
mov word [esi], cx
jmp 0x10062234
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10187a18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10187a18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10187a18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10062284
pop ebx
cmp word [ebp - 4], bx
jne 0x10062249
cmp esi, dword [ebp + 0xc]
jne 0x10062249
mov word [esi], bx
jmp 0x10062281
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10062b1d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10062284
push 0xd
jmp 0x1006227d
mov ecx, dword [ebx*4 + 0x10187a18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006227b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10062284
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 0x10066256
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 0x100662f3
push ebx
push esi
call fcn.1006621f
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.10061be7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100662a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100662f2
push edi
push eax
call fcn.10060659
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100662c0
call fcn.1005f688
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100662f1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10061be7
add esp, 0x20
test eax, eax
jne 0x100662df
push edi
call fcn.1005f688
jmp 0x100662e7
push ebx
call fcn.1005f688
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 0x100662f6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10066307
pop esi
ret
push ebx
push edi
push esi
call fcn.1006621f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10060659
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006632f
push ebx
push esi
push edi
call fcn.1004dfe0
add esp, 0xc
push 0
call fcn.1005f688
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100666f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10066344
Function at 0x1006d041
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.1006cfbd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006d1b9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006d1b9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006d168
jg 0x1006d09a
test eax, eax
je 0x1006d15e
push 1
push 0x1000
call fcn.1005fc06
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006d0c0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1006d155
push 0x8000
push ebx
call fcn.1006ceee
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 0x1006d0ec
jg 0x1006d0e7
cmp ecx, 0x1000
jb 0x1006d0ec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005f488
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006d131
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 0x1006d0e7
jl 0x1006d118
test ecx, ecx
jne 0x1006d0d9
push dword [ebp - 0xc]
push ebx
call fcn.1006ceee
push esi
call fcn.1005f688
add esp, 0xc
xor edi, edi
jmp 0x1006d1ca
cmp byte [edi + 0x24], 0
je 0x1006d148
cmp dword [edi + 0x20], 5
jne 0x1006d148
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006d153
mov edi, dword [edi + 0x18]
jmp 0x1006d155
xor edi, edi
push esi
call fcn.1005f688
pop ecx
jmp 0x1006d1ca
test ecx, ecx
jg 0x1006d12a
jl 0x1006d168
test eax, eax
jae 0x1006d12a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10062b1d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006d18b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006d12a
jmp 0x1006d1c2
push ebx
call fcn.10066c42
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006d12a
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 0x1006d1ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006d1c7
mov edi, dword [edi + 0x18]
jmp 0x1006d1ca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10062b1d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006e7d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006e7fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006e7fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret