joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025f00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6db7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10126008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x38
mov dword [ebx], vtable.RC::RCHomepageProtectLogDbItemFactory.0
call fcn.100f1774
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x38
push 0
push edi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, edi
push dword [ebp + 8]
call fcn.100067b0
lea esi, [edi + 0x18]
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10006c00
mov dword [esi], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
push 7
mov word [edi + 0x20], ax
push str.info_id
mov dword [ebx + 4], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
push 1
push ecx
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
mov ecx, dword [ebx + 4]
push eax
push 0
call fcn.10033930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10006900
push 8
xor eax, eax
mov dword [ebp - 0x18], 0
push str.log_type
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
push 0
push ecx
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
mov ecx, dword [ebx + 4]
push eax
push 0
call fcn.10033930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10006900
push 8
xor eax, eax
mov dword [ebp - 0x18], 0
push str.log_time
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
mov dword [ebp - 4], 4
push 0
push ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x28]
push 0
push eax
push 1
call fcn.10033930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10006900
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
push str.program_path
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
push 0
push ecx
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
mov ecx, dword [ebx + 4]
push eax
push 2
call fcn.10033930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10006900
push 0xb
xor eax, eax
mov dword [ebp - 0x18], 0
push str.target_path
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
push 0
push ecx
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
mov ecx, dword [ebx + 4]
push eax
push 2
call fcn.10033930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10006900
push 9
xor eax, eax
mov dword [ebp - 0x18], 0
push str.oper_type
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006990
push 0
push ecx
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 7
mov ecx, dword [ebx + 4]
push eax
push 0
call fcn.10033930
lea ecx, [ebp - 0x28]
call fcn.10006900
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10028140
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
lea esi, [eax + 0x6c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10028191
mov ecx, dword [esi]
test ecx, ecx
je 0x10028191
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100282c4
mov ebx, dword [ebp + 8]
test bl, 1
je 0x100281b9
push 1
call fcn.10016cb0
mov edi, eax
mov eax, dword [ebp - 0x18]
test ebx, 0x4000
je 0x100281d0
mov ecx, dword [eax + 4]
push 0x4000
call fcn.10016cb0
add edi, eax
test ebx, 0x200
je 0x100281ea
mov ecx, dword [ebp - 0x18]
push 0x200
mov ecx, dword [ecx + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x100
je 0x10028204
mov eax, dword [ebp - 0x18]
push 0x100
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x400
je 0x1002821e
mov eax, dword [ebp - 0x18]
push 0x400
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x8000000
je 0x10028238
mov eax, dword [ebp - 0x18]
push 0x8000000
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test bl, 0x20
je 0x1002824c
mov eax, dword [ebp - 0x18]
push 0x20
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test bl, 0x40
je 0x10028260
mov eax, dword [ebp - 0x18]
push 0x40
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x10000000
je 0x1002827a
mov eax, dword [ebp - 0x18]
push 0x10000000
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x20000000
je 0x10028294
mov eax, dword [ebp - 0x18]
push 0x20000000
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, 0x40000000
je 0x100282ae
mov eax, dword [ebp - 0x18]
push 0x40000000
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
test ebx, ebx
jns 0x100282c4
mov eax, dword [ebp - 0x18]
push 0x80000000
mov ecx, dword [eax + 4]
call fcn.10016cb0
add edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x100282e3
mov eax, dword [esi]
test eax, eax
je 0x100282dc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov eax, edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret 4
Function at 0x10028310
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
lea esi, [eax + 0x6c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10028361
mov ecx, dword [esi]
test ecx, ecx
je 0x10028361
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100284a8
mov ebx, dword [ebp + 8]
test bl, 1
je 0x10028389
push 1
call fcn.10018f50
mov edi, eax
mov eax, dword [ebp - 0x18]
test ebx, 0x4000
je 0x100283a0
mov ecx, dword [eax + 4]
push 0x4000
call fcn.10018f50
add edi, eax
test ebx, 0x200
je 0x100283ba
mov ecx, dword [ebp - 0x18]
push 0x200
mov ecx, dword [ecx + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x100
je 0x100283d4
mov eax, dword [ebp - 0x18]
push 0x100
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x400
je 0x100283ee
mov eax, dword [ebp - 0x18]
push 0x400
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x8000000
je 0x10028408
mov eax, dword [ebp - 0x18]
push 0x8000000
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test bl, 0x20
je 0x1002841c
mov eax, dword [ebp - 0x18]
push 0x20
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test bl, 0x40
je 0x10028430
mov eax, dword [ebp - 0x18]
push 0x40
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x10000000
je 0x1002844a
mov eax, dword [ebp - 0x18]
push 0x10000000
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x20000000
je 0x10028464
mov eax, dword [ebp - 0x18]
push 0x20000000
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test bl, 8
je 0x10028478
mov eax, dword [ebp - 0x18]
push 8
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, 0x40000000
je 0x10028492
mov eax, dword [ebp - 0x18]
push 0x40000000
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
test ebx, ebx
jns 0x100284a8
mov eax, dword [ebp - 0x18]
push 0x80000000
mov ecx, dword [eax + 4]
call fcn.10018f50
add edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x100284c7
mov eax, dword [esi]
test eax, eax
je 0x100284c0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov eax, edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret 4
Function at 0x100288c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f70b8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x6c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1002890b
mov eax, dword [esi]
test eax, eax
je 0x1002890b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10028920
xor bl, bl
jmp 0x10028a4c
mov eax, dword [ebp + 8]
mov bl, 1
test bl, al
je 0x10028938
push 1
call fcn.1001ef50
mov bl, al
mov eax, dword [ebp + 8]
and bl, 1
test eax, 0x4000
je 0x10028951
mov ecx, dword [edi + 4]
push 0x4000
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x200
je 0x1002896a
mov ecx, dword [edi + 4]
push 0x200
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x100
je 0x10028983
mov ecx, dword [edi + 4]
push 0x100
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x1002899c
mov ecx, dword [edi + 4]
push 0x400
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x8000000
je 0x100289b5
mov ecx, dword [edi + 4]
push 0x8000000
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test al, 0x20
je 0x100289c8
mov ecx, dword [edi + 4]
push 0x20
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test al, 0x40
je 0x100289db
mov ecx, dword [edi + 4]
push 0x40
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x10000000
je 0x100289f4
mov ecx, dword [edi + 4]
push 0x10000000
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x20000000
je 0x10028a0d
mov ecx, dword [edi + 4]
push 0x20000000
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test al, 8
je 0x10028a20
mov ecx, dword [edi + 4]
push 8
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x40000000
je 0x10028a39
mov ecx, dword [edi + 4]
push 0x40000000
call fcn.1001ef50
and bl, al
mov eax, dword [ebp + 8]
test eax, eax
jns 0x10028a4c
mov ecx, dword [edi + 4]
push 0x80000000
call fcn.1001ef50
and bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x10028a6b
mov eax, dword [esi]
test eax, eax
je 0x10028a64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret 4
Function at 0x1003af00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x1003af59
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x1003af20
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret

Function at 0x1003af90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov eax, ecx
mov dword [esp], eax
je 0x1003b017
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1003b016
push ebx
push esi
push edi
mov edi, dword [eax]
xor dl, dl
xor cl, cl
xor eax, eax
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x1003afb1
mov word [edi + 0x100], 0
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x1003afd0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ecx
ret 8
Function at 0x1003c480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa200
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10011ea0
test al, al
je 0x1003c4bd
xor al, al
jmp 0x1003c65f
call fcn.1003c280
test al, al
je 0x1003c4cd
mov al, 1
jmp 0x1003c65f
push 0
mov ecx, edi
call fcn.10006720
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1003c51b
lea ecx, [ebp - 0x28]
call fcn.10006790
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.10047680
test al, al
je 0x1003c50c
push 0
lea ecx, [ebp - 0x28]
call fcn.10006720
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
mov ecx, edi
call fcn.1003c280
test al, al
jne 0x1003c4c6
mov ecx, edi
call fcn.10011eb0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1003c605
call fcn.100053d0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1003c54d
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1003c570
mov eax, ebx
cmp ecx, 8
jb 0x1003c566
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1003c5f5
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1003a8b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10011ea0
test al, al
jne 0x1003c5e6
call fcn.1003c080
test al, al
jne 0x1003c5e6
push 0
lea ecx, [ebp - 0x28]
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1003c5e6
lea ecx, [ebp - 0x40]
call fcn.10006790
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.10047680
test al, al
je 0x1003c5da
push 0
lea ecx, [ebp - 0x40]
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10006730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1003c541
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1003c080
test al, al
jne 0x1003c658
push 0
mov ecx, edi
call fcn.10006720
push eax
call ebx
test eax, eax
jne 0x1003c658
lea ecx, [ebp - 0x40]
call fcn.10006790
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.10047680
test al, al
je 0x1003c649
push 0
lea ecx, [ebp - 0x40]
call fcn.10006720
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10006730
mov ecx, edi
call fcn.1003c280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret
Function at 0x100436d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10122e60
push 0x100f2189
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10126008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.100053d0
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10043738
mov eax, dword [eax]
lea edx, [ebp - 0x43c]
mov ecx, eax
call fcn.10006b50
mov edx, esi
call fcn.10043830
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004377b
test bl, bl
jne 0x1004380b
mov ecx, esi
call fcn.100053d0
mov dword [ebp - 0x438], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x100437a3
mov eax, dword [eax]
lea edx, [ebp - 0x438]
mov ecx, eax
call fcn.10006b50
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
call fcn.10006b80
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10006990
mov ecx, esi
call fcn.10011ea0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret
Function at 0x10046e50
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x10046e8a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10046e8a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10046e8a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10046e8a
cmp edi, dword [esi]
jne 0x10046e8a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10046ea0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10126008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10046f03
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10046f03
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10046ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10046f03
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100f1763
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100f1763
add esp, 8
ret 4

Function at 0x10046fb0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1004705e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10046f20
test al, al
je 0x1004705e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10046f20
test al, al
je 0x1004705e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10047034
cmp dword [esp + 0x14], edi
jne 0x10047034
mov eax, dword [esi]
test eax, eax
jne 0x10047021
xor bl, bl
jmp 0x10047034
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004701d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10046f20
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10047070
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x100470a7
xor al, al
jmp 0x10047109
and esi, 0xffffb1af
push esi
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100470c2
mov al, 1
jmp 0x10047109
lea ecx, [ebp - 0x28]
call fcn.10006790
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.10047680
test al, al
je 0x100470f6
push esi
lea ecx, [ebp - 0x28]
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100470f6
mov bl, 1
jmp 0x100470f8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100471ad
lea ecx, [ebp - 0x28]
call fcn.10006790
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.10047680
test al, al
je 0x1004719c
lea ecx, [ebp - 0x28]
call fcn.10006720
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret
Function at 0x100472e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fbab0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10126008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10006720
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10047326
mov al, 1
jmp 0x1004741a
mov ecx, esi
call fcn.10006720
push eax
lea ecx, [ebp - 0x28]
call fcn.10006740
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10047130
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
cmp ebx, 0xffffffff
jne 0x10047365
xor al, al
jmp 0x1004741a
mov ecx, esi
call fcn.10006720
push eax
lea ecx, [ebp - 0x28]
call fcn.10006740
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10047070
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
test bl, bl
je 0x1004735e
mov ecx, esi
call fcn.10006720
push eax
call edi
test eax, eax
jne 0x1004731f
lea ecx, [ebp - 0x28]
call fcn.10006790
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, esi
call fcn.10047680
test al, al
je 0x100473dc
lea ecx, [ebp - 0x28]
call fcn.10006720
push eax
call edi
test eax, eax
je 0x100473dc
mov bl, 1
jmp 0x10047409
mov ecx, esi
call fcn.10006720
push eax
lea ecx, [ebp - 0x44]
call fcn.10006740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10047070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10006730
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f1763
mov esp, ebp
pop ebp
ret