joyce8/EMBER2024-capa huggingface dataset:
Function at 0x739bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x18], 0x200
jb 0x739c13
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x739c1a
xor eax, eax
jmp 0x739d31
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1000
jae 0x739c42
mov ecx, dword [ebp - 0xc]
add ecx, 0x200
cmp ecx, dword [ebp - 0x18]
ja 0x739c42
mov edx, dword [ebp - 0xc]
and edx, 7
je 0x739c49
xor eax, eax
jmp 0x739d31
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
je 0x739c64
xor eax, eax
jmp 0x739d31
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x1c4
jg 0x739ca5
cmp dword [ebp - 8], 0x1c4
je 0x739ccb
cmp dword [ebp - 8], 0x14c
je 0x739cb9
cmp dword [ebp - 8], 0x1c0
je 0x739cc2
cmp dword [ebp - 8], 0x1c2
je 0x739cc2
jmp 0x739cdd
cmp dword [ebp - 8], 0x200
je 0x739cd4
cmp dword [ebp - 8], 0x8664
je 0x739cb9
jmp 0x739cdd
mov dword [ebp - 0x10], 0x3030103
jmp 0x739ce1
mov dword [ebp - 0x10], 0x3030501
jmp 0x739ce1
mov dword [ebp - 0x10], 0x3030701
jmp 0x739ce1
mov dword [ebp - 0x10], 0x3030401
jmp 0x739ce1
xor eax, eax
jmp 0x739d31
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x400
jbe 0x739cf8
xor eax, eax
jmp 0x739d31
mov ecx, dword [ebp - 4]
add ecx, 0x14
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x10b
je 0x739d1e
cmp dword [ebp - 0x1c], 0x20b
je 0x739d1e
jmp 0x739d20
jmp 0x739d24
xor eax, eax
jmp 0x739d31
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x7448d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0xc3d2e1f0
mov eax, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov esp, ebp
pop ebp
ret
Function at 0x745980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b1fb0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x8a0204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp + 8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0070c1c0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.006d8ec0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 0x54]
mov byte [eax + 0x54], dl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x746990
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b220d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x8a0204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x10], dl
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x1c]
call fcn.006e2900
mov al, byte [ebp - 0x10]
mov byte [ebp - 0x1a], al
mov cx, word [ebp + 8]
mov word [ebp - 0x18], cx
mov edx, 0x63
mov eax, dword [ebp - 0x14]
mov word [eax + 2], dx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], 0
lea ecx, [ebp - 0x28]
call fcn.006ccac0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x1c]
call fcn.007480d0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.006cd3b0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
call fcn.006cd3b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.006ccfc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x75aab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x8a01ec]
jbe 0x75aacd
mov ecx, dword [0x8a01ec]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
call fcn.006c8070
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x75aed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.0075bb20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x75af13
mov eax, dword [ebp - 4]
and eax, 0x10
jne 0x75af13
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x75af13
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov ecx, dword [ebp - 8]
call fcn.0075b060
movzx edx, al
test edx, edx
jne 0x75af13
xor al, al
jmp 0x75af27
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x75af25
mov al, 1
jmp 0x75af27
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x75af30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x218]
call fcn.006cdf10
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x20c
jae 0x75af70
jmp 0x75af75
call fcn.0075ca57
xor edx, edx
mov eax, dword [ebp - 0x214]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x218]
call fcn.006d5a10
cmp dword [ebp - 0x21c], 0
jbe 0x75afd0
cmp dword [ebp - 0x21c], 0x104
ja 0x75afd0
mov dword [ebp - 0x220], 1
jmp 0x75afda
mov dword [ebp - 0x220], 0
mov al, byte [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0075c173
mov esp, ebp
pop ebp
ret

Function at 0x75b060
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x75b082
mov al, 1
jmp 0x75b084
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x75bb20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x75bb41
mov eax, dword [ebp - 4]
jmp 0x75bb44
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x780dcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0075cd80
mov eax, dword [0x8a0204]
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.0078af0f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x780e0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x780f6b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0075d150
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 + 0x8a9e80]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0078a998
mov ecx, dword [esi*4 + 0x8a9e80]
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 0x780f64
cmp eax, dword [ecx + edi + 0x24]
jne 0x780f64
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 0x780f64
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0078a998
add esp, 0x14
test edx, edx
jl 0x780f64
jg 0x780eda
test eax, eax
jb 0x780f64
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x780f64
jl 0x780ef4
cmp dword [ebp - 0x1008], eax
ja 0x780f64
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x780f12
test ebx, ebx
je 0x780f4b
cmp ecx, edi
jae 0x780f4b
mov al, byte [ecx]
cmp al, 0xd
jne 0x780f2c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x780f38
cmp byte [ecx + 1], 0xa
jne 0x780f38
inc ecx
jmp 0x780f38
movzx eax, al
movsx eax, byte [eax + 0x8a03b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x780f12
cmp edx, ebx
jne 0x780f12
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x780f69
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0075c173
leave
ret
Function at 0x78a112
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x856db8
push esi
call fcn.007886de
pop ecx
pop ecx
test eax, eax
jne 0x78a140
xor al, al
jmp 0x78a1bd
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.00789e14
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x78a17a
push dword [ebp - 0x210]
call fcn.0077e13a
xor al, al
jmp 0x78a1bb
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x78a180
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x78a1a0
push edx
call fcn.0078a049
pop ecx
test al, al
je 0x78a16b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x78a1ae
mov bl, 1
push dword [ebp - 0x210]
call fcn.0077e13a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0075c173
leave
ret

Function at 0x78bbd2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x78bc11
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x78bc11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x78bc11
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x78bc11
cmp dword [ecx + 0x74], 0xe
jbe 0x78bc11
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x790cab
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 + 0x8a9e80]
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 0x790ceb
cmp byte [ebx], 0xa
jne 0x790ceb
or byte [edi + eax + 0x28], 4
jmp 0x790cf0
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 0x790def
mov dl, byte [eax]
cmp dl, 0x1a
je 0x790dd2
inc eax
cmp dl, 0xd
je 0x790d1c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x790d42
cmp eax, ecx
jae 0x790d50
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 0x790d04
jmp 0x790def
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 0x790dcd
cmp dword [ebp - 0x10], 0
je 0x790dcd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x8a9e80]
test byte [eax + edi + 0x28], 0x48
je 0x790da7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x790d92
mov byte [esi], dl
jmp 0x790da3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x8a9e80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x790def
cmp byte [ebp - 1], 0xa
jne 0x790db6
cmp esi, ebx
jne 0x790db6
mov byte [esi], 0xa
jmp 0x790dee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0078a9b6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x790def
mov byte [esi], 0xd
jmp 0x790dee
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x8a9e80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x790dec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x790def
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x790df8
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 + 0x8a9e80]
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 0x790e3e
cmp word [ebx], dx
jne 0x790e3e
or byte [eax + edi + 0x28], 4
jmp 0x790e43
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 0x790fa6
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 0x790f86
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x790e84
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x790eba
cmp eax, edx
jae 0x790ec8
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 0x790e5f
jmp 0x790fa6
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 0x790f81
cmp dword [ebp - 0x18], 0
je 0x790f81
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x8a9e80]
test byte [eax + edi + 0x28], 0x48
je 0x790f57
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 0x790f1b
mov word [esi], cx
jmp 0x790f52
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x8a9e80]
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 + 0x8a9e80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x8a9e80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x790fa6
pop eax
cmp word [ebp - 4], ax
jne 0x790f67
cmp esi, ebx
jne 0x790f67
mov word [esi], ax
jmp 0x790fa3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0078a9b6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x790fa6
push 0xd
pop eax
jmp 0x790f62
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x8a9e80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x790fa0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x790fa6
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 0x7933dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x858150
push 0x858148
push str.FlsAlloc
push 0x1f
call fcn.00793208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x793411
push dword [ebp + 8]
mov ecx, esi
call dword [0x7b588c]
call esi
jmp 0x793417
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x79345b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x858160
push 0x858158
push str.FlsGetValue
push 0x21
call fcn.00793208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x793492
push dword [ebp + 8]
mov ecx, esi
call dword [0x7b588c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x79349a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x858168
push 0x858160
push str.FlsSetValue
push 0x22
call fcn.00793208
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7934d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x7b588c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x798daa
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.00798d26
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x798f19
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x798f19
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x798ece
jg 0x798e06
test eax, eax
je 0x798ec4
push 1
push 0x1000
call fcn.00792ecc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x798e29
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x798ebb
push 0x8000
push ebx
call fcn.0078b0c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x798e52
jg 0x798e4d
cmp ecx, 0x1000
jb 0x798e52
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00791f15
add esp, 0x10
cmp eax, 0xffffffff
je 0x798e97
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 0x798e4d
jl 0x798e7e
test ecx, ecx
jne 0x798e3f
push dword [ebp - 0xc]
push ebx
call fcn.0078b0c0
push esi
call fcn.00792f29
add esp, 0xc
xor ebx, ebx
jmp 0x798f27
cmp byte [edi + 0x24], 0
je 0x798eae
cmp dword [edi + 0x20], 5
jne 0x798eae
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x798eb9
mov ebx, dword [edi + 0x18]
jmp 0x798ebb
xor ebx, ebx
push esi
call fcn.00792f29
pop ecx
jmp 0x798f27
test ecx, ecx
jg 0x798e90
jl 0x798ece
test eax, eax
jae 0x798e90
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0078a9b6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x798eee
cmp byte [edi + 0x1c], 0
je 0x798e90
jmp 0x798f1f
push ebx
call fcn.00798cbc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x798e90
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 0x798f27
cmp byte [edi + 0x1c], 0
je 0x798f24
mov ebx, dword [edi + 0x18]
jmp 0x798f27
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0078a9b6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x79a8ef
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 0x79a98c
push ebx
push esi
call fcn.0079a8b8
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.00798777
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x79a939
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x79a98b
push edi
push eax
call fcn.00793b54
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x79a959
call fcn.00792f29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x79a98a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00798777
add esp, 0x20
test eax, eax
jne 0x79a978
push edi
call fcn.00792f29
jmp 0x79a980
push ebx
call fcn.00792f29
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 0x79a98f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x79a9a0
pop esi
ret
push ebx
push edi
push esi
call fcn.0079a8b8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00793b54
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x79a9c8
push ebx
push esi
push edi
call fcn.00774520
add esp, 0xc
push 0
call fcn.00792f29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x79b122
Capabilities:
Set environment variable

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

Function at 0x79d38b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00793fa2
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 0x79d3fa
cmp esi, dword [ebp - 4]
je 0x79d3f5
cmp dword [ebp + 0xc], 0
je 0x79d3f5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x79d3d2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0079cedd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x79d3fc
xor eax, eax
inc eax
jmp 0x79d3fc
xor eax, eax
pop edi
pop esi
leave
ret