joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
mov edi, dword [ebx]
mov ebp, dword [ebx + 4]
test edi, edi
je 0x1004d324
test ebp, ebp
je 0x1004d324
mov edx, dword [esp + 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 0x6008], edx
mov word [ebx + 8], ax
cmp edx, eax
jl 0x1004d2f1
lea eax, [ebx + 0xa]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov ebx, 1
mov word [eax], bx
mov eax, ecx
mov ebx, dword [esp + 0x20]
test ecx, ecx
jle 0x1004d2b2
movzx ecx, word [ebx + eax*2 + 8]
mov edx, ecx
test cx, cx
je 0x1004d298
mov ecx, dword [edi + ecx*4]
add ecx, esi
movzx edx, word [ebp + ecx*4]
mov cx, word [ebx + eax*2 + 6]
xor cx, dx
mov word [ebx + eax*2 + 8], cx
dec eax
test eax, eax
jg 0x1004d282
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx eax, word [ebx + 8]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [edi + eax*4]
add eax, esi
inc esi
mov ax, word [ebp + eax*4]
mov word [ebx + 8], ax
mov eax, dword [esp + 0x10]
add eax, 2
sub edx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jne 0x1004d270
mov edx, dword [esp + 0x24]
xor ecx, ecx
pop esi
mov dword [ebx + 0x600c], 0
jmp 0x1004d300
mov dword [ebx + 0x600c], 0
test edx, edx
js 0x1004d324
nop
movzx eax, word [ebx + ecx*2 + 8]
mov eax, dword [edi + eax*4]
mov dword [ebx + ecx*4 + 0x2008], eax
xor eax, eax
cmp word [ebx + ecx*2 + 8], ax
sete al
inc ecx
or dword [ebx + 0x600c], eax
cmp ecx, edx
jle 0x1004d300
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x1004d330
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 4
mov dword [eax], 0
lea ebx, [ebp + 1]
mov dword [eax + 4], 0
push ebx
mov dword [esp + 0x24], ebx
call fcn.1005efab
mov edi, eax
add esp, 8
test edi, edi
je 0x1004d37e
lea eax, [ebx + ebx]
push 4
push eax
call fcn.1005efab
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1004d385
push edi
call fcn.1005b966
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
xor esi, esi
mov eax, 1
test ebp, ebp
jle 0x1004d3bd
lea ecx, [ebx + ebp*4]
mov dword [ebx + esi*4], eax
mov dword [ecx], eax
add ecx, 4
mov dword [edi + eax*4], esi
add eax, eax
mov dword [esp + 0x10], ecx
mov edx, eax
mov ecx, eax
inc esi
xor eax, dword [esp + 0x1c]
and ecx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmove eax, edx
cmp esi, ebp
jl 0x1004d394
mov eax, dword [esp + 0x18]
pop esi
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret
Function at 0x1004daa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x100d92b4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.1005ac2d
add esp, 8
test eax, eax
jne 0x1004dbb1
push 0x5c
push edi
call fcn.10059010
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004db02
push 0x2f
push edi
call fcn.10059010
mov esi, eax
add esp, 8
test esi, esi
je 0x1004dbca
sub esi, edi
lea eax, [esp + 0x14]
push esi
push edi
push eax
call fcn.10058800
mov byte [esp + esi + 0x20], 0x2f
add esp, 0xc
inc esi
cmp esi, 0x100
jae 0x1004dbce
mov byte [esp + esi + 0x14], 0
lea eax, [esp + 0x14]
mov cl, byte [esp + 0x14]
test cl, cl
je 0x1004db46
cmp cl, 0x5c
jne 0x1004db3e
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1004db36
mov ecx, dword [esp + 0x15]
lea esi, [esp + 0x15]
test cl, cl
je 0x1004dba4
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp cl, 0x2f
jne 0x1004db9a
cmp byte [esi - 1], cl
je 0x1004db9a
push 0
lea eax, [esp + 0x18]
mov byte [esi], 0
push eax
call ebp
test eax, eax
jne 0x1004db97
call ebx
cmp eax, 0xb7
jne 0x1004dbca
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004dbca
test al, 0x10
je 0x1004dbca
mov byte [esi], 0x2f
mov al, byte [esi + 1]
inc esi
mov cl, al
test al, al
jne 0x1004db60
push dword [esp + 0x10]
push edi
call fcn.1005ac2d
add esp, 8
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10057052
add esp, 0x108
ret
xor eax, eax
jmp 0x1004dbb1
call fcn.1005754b
int3
Function at 0x1004e9a0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x1004e9fa
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx eax, byte [edx]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
mov byte [ecx], al
movzx eax, byte [edx + 2]
mov byte [ecx + 1], al
movzx eax, byte [edx + 3]
mov byte [ecx + 2], al
movzx eax, byte [edx + 4]
mov byte [ecx + 3], al
movzx eax, byte [edx + 5]
mov byte [ecx + 4], al
movzx eax, byte [edx + 6]
mov byte [ecx + 5], al
mov byte [ecx + 6], 0
mov ecx, dword [esp + 0x14]
movzx eax, byte [edx + 7]
mov byte [ecx], al
mov byte [ecx + 1], 0
ret
cmp eax, 8
jne 0x1004ea49
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
mov byte [ecx + 4], 0
mov ecx, dword [esp + 0x10]
movzx eax, byte [edx + 4]
mov byte [ecx], al
movzx eax, byte [edx + 5]
mov byte [ecx + 1], al
movzx eax, byte [edx + 6]
mov byte [ecx + 2], al
movzx eax, byte [edx + 7]
mov byte [ecx + 3], al
mov byte [ecx + 4], 0
ret
cmp eax, 0xc
jne 0x1004eac2
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx eax, byte [edx]
mov byte [ecx], al
mov byte [ecx + 1], 0
movzx eax, byte [edx + 1]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
movzx eax, byte [edx + 2]
mov byte [ecx + 1], al
movzx eax, byte [edx + 3]
mov byte [ecx + 2], al
movzx eax, byte [edx + 4]
mov byte [ecx + 3], al
movzx eax, byte [edx + 5]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
mov ecx, dword [esp + 0x14]
movzx eax, byte [edx + 6]
mov byte [ecx], al
movzx eax, byte [edx + 7]
mov byte [ecx + 1], al
movzx eax, byte [edx + 8]
mov byte [ecx + 2], al
movzx eax, byte [edx + 9]
mov byte [ecx + 3], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
mov ecx, dword [esp + 0x18]
movzx eax, byte [edx + 0xb]
mov byte [ecx], al
mov byte [ecx + 1], 0
ret
cmp eax, 0xd
jne 0x1004eb3a
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx eax, byte [edx]
mov byte [ecx], al
mov byte [ecx + 1], 0
movzx eax, byte [edx + 1]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
movzx eax, byte [edx + 2]
mov byte [ecx + 1], al
movzx eax, byte [edx + 3]
mov byte [ecx + 2], al
movzx eax, byte [edx + 4]
mov byte [ecx + 3], al
movzx eax, byte [edx + 5]
mov byte [ecx + 4], al
movzx eax, byte [edx + 6]
mov byte [ecx + 5], al
mov byte [ecx + 6], 0
mov ecx, dword [esp + 0x14]
movzx eax, byte [edx + 7]
mov byte [ecx], al
movzx eax, byte [edx + 8]
mov byte [ecx + 1], al
movzx eax, byte [edx + 9]
mov byte [ecx + 2], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 3], al
movzx eax, byte [edx + 0xb]
mov byte [ecx + 4], al
movzx eax, byte [edx + 0xc]
mov byte [ecx + 5], al
mov byte [ecx + 6], 0
ret
Function at 0x1005c6fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10057850
mov eax, dword [0x100d92b4]
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.10060327
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005c73c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005c898
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1007f520
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 + 0x100da790]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006535b
mov ecx, dword [esi*4 + 0x100da790]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1005c891
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005c891
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005c891
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006535b
add esp, 0x14
test edx, edx
jl 0x1005c891
jg 0x1005c807
test eax, eax
jb 0x1005c891
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005c891
jl 0x1005c821
cmp dword [ebp - 0x1008], eax
ja 0x1005c891
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005c83f
test ebx, ebx
je 0x1005c878
cmp ecx, edi
jae 0x1005c878
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005c859
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005c865
cmp byte [ecx + 1], 0xa
jne 0x1005c865
inc ecx
jmp 0x1005c865
movzx eax, al
movsx eax, byte [eax + 0x100d94c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005c83f
cmp edx, ebx
jne 0x1005c83f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005c896
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10057052
leave
ret

Function at 0x1006151d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1006155c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006155c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006155c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1006155c
cmp dword [ecx + 0x74], 0xe
jbe 0x1006155c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10064d53
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c877c
push 0x100c8774
push str.FlsAlloc
push 0x1f
call fcn.10064bdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10064d87
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083160]
call esi
jmp 0x10064d8d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10064dd1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c878c
push 0x100c8784
push str.FlsGetValue
push 0x21
call fcn.10064bdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10064e08
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10064e10
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c8794
push 0x100c878c
push str.FlsSetValue
push 0x22
call fcn.10064bdb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10064e4a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10083160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100655c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100da790]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10065609
cmp byte [ebx], 0xa
jne 0x10065609
or byte [edi + eax + 0x28], 4
jmp 0x1006560e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1006570d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100656f0
inc eax
cmp dl, 0xd
je 0x1006563a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10065660
cmp eax, ecx
jae 0x1006566e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10065622
jmp 0x1006570d
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 0x100656eb
cmp dword [ebp - 0x10], 0
je 0x100656eb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100da790]
test byte [eax + edi + 0x28], 0x48
je 0x100656c5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100656b0
mov byte [esi], dl
jmp 0x100656c1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100da790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006570d
cmp byte [ebp - 1], 0xa
jne 0x100656d4
cmp esi, ebx
jne 0x100656d4
mov byte [esi], 0xa
jmp 0x1006570c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10065379
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006570d
mov byte [esi], 0xd
jmp 0x1006570c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100da790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006570a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006570d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10065716
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100da790]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006575c
cmp word [ebx], dx
jne 0x1006575c
or byte [eax + edi + 0x28], 4
jmp 0x10065761
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100658c4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100658a4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100657a2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100657d8
cmp eax, edx
jae 0x100657e6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006577d
jmp 0x100658c4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006589f
cmp dword [ebp - 0x18], 0
je 0x1006589f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100da790]
test byte [eax + edi + 0x28], 0x48
je 0x10065875
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10065839
mov word [esi], cx
jmp 0x10065870
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100da790]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100da790]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100da790]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100658c4
pop eax
cmp word [ebp - 4], ax
jne 0x10065885
cmp esi, ebx
jne 0x10065885
mov word [esi], ax
jmp 0x100658c1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10065379
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100658c4
push 0xd
pop eax
jmp 0x10065880
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100da790]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100658be
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100658c4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006b61d
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 0x1006b6ba
push ebx
push esi
call fcn.1006b5e6
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.1006b57a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006b667
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006b6b9
push edi
push eax
call fcn.100660e3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006b687
call fcn.1006293d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006b6b8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1006b57a
add esp, 0x20
test eax, eax
jne 0x1006b6a6
push edi
call fcn.1006293d
jmp 0x1006b6ae
push ebx
call fcn.1006293d
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 0x1006ebd5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10062f25
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 0x1006ec44
cmp esi, dword [ebp - 4]
je 0x1006ec3f
cmp dword [ebp + 0xc], 0
je 0x1006ec3f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006ec1c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1006e727
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1006ec46
xor eax, eax
inc eax
jmp 0x1006ec46
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006ecab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d92b4]
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.10062f25
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.10062f25
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 0x1006ed22
cmp word [ecx], dx
je 0x1006ed22
mov eax, dword [0x100c9a2c]
push edi
dec eax
push eax
push 0x100c9918
call fcn.1006ec4a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1006ed95
cmp word [eax], dx
je 0x1006ed95
mov eax, dword [edi]
test eax, eax
je 0x1006ed46
cmp word [eax], dx
je 0x1006ed46
lea eax, [ebp - 0x10]
push eax
call fcn.1006e62d
jmp 0x1006ed4f
lea eax, [ebp - 0x10]
push eax
call fcn.1006e6c8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006edbf
mov eax, dword [0x100c9914]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100c9608
call fcn.1006ec4a
add esp, 0xc
test al, al
je 0x1006edbf
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1006ed8a
cmp word [eax], di
je 0x1006ed8a
lea eax, [ebp - 0x10]
push eax
call fcn.1006e62d
pop ecx
jmp 0x1006edc1
lea eax, [ebp - 0x10]
push eax
call fcn.1006e6c8
jmp 0x1006ed87
mov eax, dword [edi]
test eax, eax
je 0x1006edac
cmp word [eax], dx
je 0x1006edac
lea eax, [ebp - 0x10]
push eax
call fcn.1006e5e2
pop ecx
jmp 0x1006edbf
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 0x1006ee8a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006eacf
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1006ee8a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1006ee8a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1006ee8a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006ee17
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10064f50
test ebx, ebx
je 0x1006ee85
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10064f50
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006ee8a
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 0x1006ee8a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100728a9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006ee8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10057052
leave
ret
Function at 0x10072355
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.100722d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100724c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100724c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10072479
jg 0x100723b1
test eax, eax
je 0x1007246f
push 1
push 0x1000
call fcn.100648d9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100723d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10072466
push 0x8000
push ebx
call fcn.1006079a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100723fd
jg 0x100723f8
cmp ecx, 0x1000
jb 0x100723fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10066e21
add esp, 0x10
cmp eax, 0xffffffff
je 0x10072442
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 0x100723f8
jl 0x10072429
test ecx, ecx
jne 0x100723ea
push dword [ebp - 0xc]
push ebx
call fcn.1006079a
push esi
call fcn.1006293d
add esp, 0xc
xor ebx, ebx
jmp 0x100724d2
cmp byte [edi + 0x24], 0
je 0x10072459
cmp dword [edi + 0x20], 5
jne 0x10072459
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10072464
mov ebx, dword [edi + 0x18]
jmp 0x10072466
xor ebx, ebx
push esi
call fcn.1006293d
pop ecx
jmp 0x100724d2
test ecx, ecx
jg 0x1007243b
jl 0x10072479
test eax, eax
jae 0x1007243b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10065379
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10072499
cmp byte [edi + 0x1c], 0
je 0x1007243b
jmp 0x100724ca
push ebx
call fcn.10069af8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007243b
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 0x100724d2
cmp byte [edi + 0x1c], 0
je 0x100724cf
mov ebx, dword [edi + 0x18]
jmp 0x100724d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10065379
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret