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

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x73e75c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x641f4b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x641f9a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x641fa2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x642013
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x641fd0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x642045
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x6f5019
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x6f501a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x642020
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x642050
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.005ca1b0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x73e75c]
mov esi, eax
add esp, 8
test esi, esi
je 0x6421d2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x6420d2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x642143
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x642100
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x642175
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x6f5019
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x6f501a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x642150
push dword [esp + 0x30]
call fcn.005ca1b0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x6421a0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x73e760]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x642fb0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x642ffc
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x642fc1
pop ebx
pop edi
pop esi
ret

Function at 0x659f9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.005c9540
mov eax, dword [0x73c280]
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.006613e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x659fde
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x65a155
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005c9140
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x7c2b70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0066a6d4
mov ecx, dword [esi*4 + 0x7c2b70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x65a14e
cmp eax, dword [edi + ecx + 0x24]
jne 0x65a14e
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x65a14e
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0066a6d4
add esp, 0x14
cmp edx, esi
jl 0x65a14e
jg 0x65a0a9
cmp eax, esi
jb 0x65a14e
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x65a14e
jl 0x65a0cb
cmp dword [ebp - 0x1008], eax
ja 0x65a14e
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x65a0f0
cmp ebx, esi
je 0x65a135
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x65a135
mov al, byte [ecx]
cmp al, 0xd
jne 0x65a116
lea eax, [edi - 1]
cmp ecx, eax
jae 0x65a122
cmp byte [ecx + 1], 0xa
jne 0x65a122
inc ecx
jmp 0x65a122
movzx eax, al
movsx eax, byte [eax + 0x73ed80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x65a0fc
cmp edx, ebx
jne 0x65a0fc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x65a153
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005c8a4d
leave
ret
Function at 0x65f32b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x65f36e
call fcn.006583e0
mov dword [eax], 0xf
call fcn.006583f5
mov dword [eax], 0xd
call fcn.0064e35a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
leave
ret
test eax, eax
jne 0x65f375
inc eax
jmp 0x65f362
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x65f360
xor eax, eax
cmp ecx, 1
setne al
jmp 0x65f362

Function at 0x661cdd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6f7c10
push esi
call fcn.0067419e
pop ecx
pop ecx
test eax, eax
jne 0x661d0b
xor al, al
jmp 0x661d88
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006619f3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x661d45
push dword [ebp - 0x210]
call fcn.00658410
xor al, al
jmp 0x661d86
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x661d4b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x661d6b
push edx
call fcn.00661c14
pop ecx
test al, al
je 0x661d36
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x661d79
mov bl, 1
push dword [ebp - 0x210]
call fcn.00658410
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c8a4d
leave
ret
Function at 0x66e456
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7c2b70]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x66e498
cmp byte [ebx], 0xa
jne 0x66e498
or byte [edi + eax + 0x28], 4
jmp 0x66e49d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x66e5a0
mov cl, byte [eax]
cmp cl, 0x1a
je 0x66e57b
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x66e4cc
mov eax, dword [ebp - 8]
jmp 0x66e4ec
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x66e508
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x66e4e6
add eax, 2
mov cl, 0xa
jmp 0x66e4e9
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x66e4ae
jmp 0x66e5a0
push 0
lea eax, [ebp - 0x10]
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 0x66e576
cmp dword [ebp - 0x10], 0
je 0x66e576
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x7c2b70]
test byte [eax + edi + 0x28], 0x48
je 0x66e555
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x66e545
mov byte [esi], 0xa
jmp 0x66e59f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x7c2b70]
mov byte [eax + edi + 0x2a], cl
jmp 0x66e59f
cmp byte [ebp - 1], 0xa
jne 0x66e55f
cmp esi, ebx
je 0x66e540
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0066a6f2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x66e5a0
mov byte [esi], 0xd
jmp 0x66e59f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x7c2b70]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x66e59d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x66e5a0
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x66e5a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x7c2b70]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x66e5ed
push 0xa
pop esi
cmp word [ebx], si
jne 0x66e5ed
or byte [eax + edi + 0x28], 4
jmp 0x66e5f2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x66e75d
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x66e735
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x66e63f
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x66e669
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x66e688
push 0xa
pop ebx
cmp word [edx], bx
jne 0x66e656
push ebx
add eax, 4
pop edx
jmp 0x66e65e
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x66e604
jmp 0x66e75d
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 0x66e730
cmp dword [ebp - 0x14], 0
je 0x66e730
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x7c2b70]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x66e70c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x66e6d4
mov word [esi], ax
jmp 0x66e75a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x7c2b70]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7c2b70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7c2b70]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x66e75a
cmp word [ebp - 4], ax
jne 0x66e716
cmp esi, ebx
je 0x66e6cc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0066a6f2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x66e75d
push 0xd
pop eax
jmp 0x66e6cc
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x7c2b70]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x66e757
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x66e75d
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x67041a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x670434
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x67044b
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x6704a3
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00674964
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x6704a3
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x6704a3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x6704a3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x67049d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x67049f
xor bl, bl
mov al, bl
jmp 0x6704a5
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x677543
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 0x6775e0
push ebx
push esi
call fcn.0067750c
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.00673a48
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x67758d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6775df
push edi
push eax
call fcn.0066ada0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6775ad
call fcn.0066ad50
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6775de
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00673a48
add esp, 0x20
test eax, eax
jne 0x6775cc
push edi
call fcn.0066ad50
jmp 0x6775d4
push ebx
call fcn.0066ad50
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 0x6775e3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6775f4
pop esi
ret
push ebx
push edi
push esi
call fcn.0067750c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0066ada0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x67761c
push ebx
push esi
push edi
call fcn.00643a30
add esp, 0xc
push 0
call fcn.0066ad50
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x677d73
Capabilities:
Set environment variable

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

Function at 0x67a5fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0066abd0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x67a66b
cmp esi, dword [ebp - 4]
je 0x67a666
cmp dword [ebp + 0xc], 0
je 0x67a666
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x67a643
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0067a151
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x67a66d
xor eax, eax
inc eax
jmp 0x67a66d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x67a6d8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x73c280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0066abd0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0066abd0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x67a74f
cmp word [ecx], dx
je 0x67a74f
mov eax, dword [0x702484]
push edi
dec eax
push eax
push 0x702370
call fcn.0067a671
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x67a7c2
cmp word [eax], dx
je 0x67a7c2
mov eax, dword [edi]
test eax, eax
je 0x67a773
cmp word [eax], dx
je 0x67a773
lea eax, [ebp - 0x10]
push eax
call fcn.0067a057
jmp 0x67a77c
lea eax, [ebp - 0x10]
push eax
call fcn.0067a0f2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x67a7ec
mov eax, dword [0x70236c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x702060
call fcn.0067a671
add esp, 0xc
test al, al
je 0x67a7ec
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x67a7b7
cmp word [eax], di
je 0x67a7b7
lea eax, [ebp - 0x10]
push eax
call fcn.0067a057
pop ecx
jmp 0x67a7ee
lea eax, [ebp - 0x10]
push eax
call fcn.0067a0f2
jmp 0x67a7b4
mov eax, dword [edi]
test eax, eax
je 0x67a7d9
cmp word [eax], dx
je 0x67a7d9
lea eax, [ebp - 0x10]
push eax
call fcn.0067a00c
pop ecx
jmp 0x67a7ec
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x67a8b7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0067a4f6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x67a8b7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x67a8b7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x67a8b7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x67a844
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0066d67e
test ebx, ebx
je 0x67a8b2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0066d67e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x67a8b7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x67a8b7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0067cfea
add esp, 0x10
xor eax, eax
inc eax
jmp 0x67a8b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8a4d
leave
ret
Function at 0x67ac56
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0067abd2
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x67adc5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x67adc5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x67ad7a
jg 0x67acb2
test eax, eax
je 0x67ad70
push 1
push 0x1000
call fcn.0066e370
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x67acd5
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x67ad67
push 0x8000
push ebx
call fcn.00666131
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x67acfe
jg 0x67acf9
cmp ecx, 0x1000
jb 0x67acfe
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0066fe68
add esp, 0x10
cmp eax, 0xffffffff
je 0x67ad43
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 0x67acf9
jl 0x67ad2a
test ecx, ecx
jne 0x67aceb
push dword [ebp - 0xc]
push ebx
call fcn.00666131
push esi
call fcn.0066ad50
add esp, 0xc
xor ebx, ebx
jmp 0x67add3
cmp byte [edi + 0x24], 0
je 0x67ad5a
cmp dword [edi + 0x20], 5
jne 0x67ad5a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x67ad65
mov ebx, dword [edi + 0x18]
jmp 0x67ad67
xor ebx, ebx
push esi
call fcn.0066ad50
pop ecx
jmp 0x67add3
test ecx, ecx
jg 0x67ad3c
jl 0x67ad7a
test eax, eax
jae 0x67ad3c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0066a6f2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x67ad9a
cmp byte [edi + 0x1c], 0
je 0x67ad3c
jmp 0x67adcb
push ebx
call fcn.00674964
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x67ad3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x67add3
cmp byte [edi + 0x1c], 0
je 0x67add0
mov ebx, dword [edi + 0x18]
jmp 0x67add3
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0066a6f2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret