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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6a37
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::RCBrowserProtectLogDbItemFactory.0
call fcn.100f13f4
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.10006760
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.10006bb0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
call fcn.100068b0
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 0x10025b70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6a37
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.100f13f4
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.10006760
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.10006bb0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100068b0
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.10006940
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.10033570
lea ecx, [ebp - 0x28]
call fcn.100068b0
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 0x10027d80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6cf8
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 0x10027dd1
mov ecx, dword [esi]
test ecx, ecx
je 0x10027dd1
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 0x10027f04
mov ebx, dword [ebp + 8]
test bl, 1
je 0x10027df9
push 1
call fcn.10016920
mov edi, eax
mov eax, dword [ebp - 0x18]
test ebx, 0x4000
je 0x10027e10
mov ecx, dword [eax + 4]
push 0x4000
call fcn.10016920
add edi, eax
test ebx, 0x200
je 0x10027e2a
mov ecx, dword [ebp - 0x18]
push 0x200
mov ecx, dword [ecx + 4]
call fcn.10016920
add edi, eax
test ebx, 0x100
je 0x10027e44
mov eax, dword [ebp - 0x18]
push 0x100
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, 0x400
je 0x10027e5e
mov eax, dword [ebp - 0x18]
push 0x400
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, 0x8000000
je 0x10027e78
mov eax, dword [ebp - 0x18]
push 0x8000000
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test bl, 0x20
je 0x10027e8c
mov eax, dword [ebp - 0x18]
push 0x20
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test bl, 0x40
je 0x10027ea0
mov eax, dword [ebp - 0x18]
push 0x40
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, 0x10000000
je 0x10027eba
mov eax, dword [ebp - 0x18]
push 0x10000000
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, 0x20000000
je 0x10027ed4
mov eax, dword [ebp - 0x18]
push 0x20000000
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, 0x40000000
je 0x10027eee
mov eax, dword [ebp - 0x18]
push 0x40000000
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
test ebx, ebx
jns 0x10027f04
mov eax, dword [ebp - 0x18]
push 0x80000000
mov ecx, dword [eax + 4]
call fcn.10016920
add edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x10027f23
mov eax, dword [esi]
test eax, eax
je 0x10027f1c
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.100f13e3
mov esp, ebp
pop ebp
ret 4
Function at 0x10027f50
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6cf8
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 0x10027fa1
mov ecx, dword [esi]
test ecx, ecx
je 0x10027fa1
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 0x100280e8
mov ebx, dword [ebp + 8]
test bl, 1
je 0x10027fc9
push 1
call fcn.10018bc0
mov edi, eax
mov eax, dword [ebp - 0x18]
test ebx, 0x4000
je 0x10027fe0
mov ecx, dword [eax + 4]
push 0x4000
call fcn.10018bc0
add edi, eax
test ebx, 0x200
je 0x10027ffa
mov ecx, dword [ebp - 0x18]
push 0x200
mov ecx, dword [ecx + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x100
je 0x10028014
mov eax, dword [ebp - 0x18]
push 0x100
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x400
je 0x1002802e
mov eax, dword [ebp - 0x18]
push 0x400
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x8000000
je 0x10028048
mov eax, dword [ebp - 0x18]
push 0x8000000
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test bl, 0x20
je 0x1002805c
mov eax, dword [ebp - 0x18]
push 0x20
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test bl, 0x40
je 0x10028070
mov eax, dword [ebp - 0x18]
push 0x40
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x10000000
je 0x1002808a
mov eax, dword [ebp - 0x18]
push 0x10000000
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x20000000
je 0x100280a4
mov eax, dword [ebp - 0x18]
push 0x20000000
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test bl, 8
je 0x100280b8
mov eax, dword [ebp - 0x18]
push 8
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, 0x40000000
je 0x100280d2
mov eax, dword [ebp - 0x18]
push 0x40000000
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
test ebx, ebx
jns 0x100280e8
mov eax, dword [ebp - 0x18]
push 0x80000000
mov ecx, dword [eax + 4]
call fcn.10018bc0
add edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x10028107
mov eax, dword [esi]
test eax, eax
je 0x10028100
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.100f13e3
mov esp, ebp
pop ebp
ret 4
Function at 0x10028500
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6d28
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 0x1002854b
mov eax, dword [esi]
test eax, eax
je 0x1002854b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10028560
xor bl, bl
jmp 0x1002868c
mov eax, dword [ebp + 8]
mov bl, 1
test bl, al
je 0x10028578
push 1
call fcn.1001ebc0
mov bl, al
mov eax, dword [ebp + 8]
and bl, 1
test eax, 0x4000
je 0x10028591
mov ecx, dword [edi + 4]
push 0x4000
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x200
je 0x100285aa
mov ecx, dword [edi + 4]
push 0x200
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x100
je 0x100285c3
mov ecx, dword [edi + 4]
push 0x100
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x100285dc
mov ecx, dword [edi + 4]
push 0x400
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x8000000
je 0x100285f5
mov ecx, dword [edi + 4]
push 0x8000000
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test al, 0x20
je 0x10028608
mov ecx, dword [edi + 4]
push 0x20
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test al, 0x40
je 0x1002861b
mov ecx, dword [edi + 4]
push 0x40
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x10000000
je 0x10028634
mov ecx, dword [edi + 4]
push 0x10000000
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x20000000
je 0x1002864d
mov ecx, dword [edi + 4]
push 0x20000000
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test al, 8
je 0x10028660
mov ecx, dword [edi + 4]
push 8
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, 0x40000000
je 0x10028679
mov ecx, dword [edi + 4]
push 0x40000000
call fcn.1001ebc0
and bl, al
mov eax, dword [ebp + 8]
test eax, eax
jns 0x1002868c
mov ecx, dword [edi + 4]
push 0x80000000
call fcn.1001ebc0
and bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x100286ab
mov eax, dword [esi]
test eax, eax
je 0x100286a4
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.100f13e3
mov esp, ebp
pop ebp
ret 4
Function at 0x1003ab50
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 0x1003aba9
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 0x1003ab70
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret

Function at 0x1003abe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov eax, ecx
mov dword [esp], eax
je 0x1003ac67
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1003ac66
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 0x1003ac01
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 0x1003ac20
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 0x1003c0d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9e70
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.10011e40
test al, al
je 0x1003c10d
xor al, al
jmp 0x1003c2af
call fcn.1003bed0
test al, al
je 0x1003c11d
mov al, 1
jmp 0x1003c2af
push 0
mov ecx, edi
call fcn.100066d0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1003c16b
lea ecx, [ebp - 0x28]
call fcn.10006740
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.100472d0
test al, al
je 0x1003c15c
push 0
lea ecx, [ebp - 0x28]
call fcn.100066d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100066e0
mov ecx, edi
call fcn.1003bed0
test al, al
jne 0x1003c116
mov ecx, edi
call fcn.10011e50
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1003c255
call fcn.10005380
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1003c19d
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1003c1c0
mov eax, ebx
cmp ecx, 8
jb 0x1003c1b6
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1003c245
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1003a500
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10011e40
test al, al
jne 0x1003c236
call fcn.1003bcd0
test al, al
jne 0x1003c236
push 0
lea ecx, [ebp - 0x28]
call fcn.100066d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1003c236
lea ecx, [ebp - 0x40]
call fcn.10006740
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.100472d0
test al, al
je 0x1003c22a
push 0
lea ecx, [ebp - 0x40]
call fcn.100066d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100066e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100066e0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1003c191
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1003bcd0
test al, al
jne 0x1003c2a8
push 0
mov ecx, edi
call fcn.100066d0
push eax
call ebx
test eax, eax
jne 0x1003c2a8
lea ecx, [ebp - 0x40]
call fcn.10006740
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.100472d0
test al, al
je 0x1003c299
push 0
lea ecx, [ebp - 0x40]
call fcn.100066d0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100066e0
mov ecx, edi
call fcn.1003bed0
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.100f13e3
mov esp, ebp
pop ebp
ret
Function at 0x10043320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10122b80
push 0x100f1e06
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.10005380
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10043388
mov eax, dword [eax]
lea edx, [ebp - 0x43c]
mov ecx, eax
call fcn.10006b00
mov edx, esi
call fcn.10043480
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100433cb
test bl, bl
jne 0x1004345b
mov ecx, esi
call fcn.10005380
mov dword [ebp - 0x438], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x100433f3
mov eax, dword [eax]
lea edx, [ebp - 0x438]
mov ecx, eax
call fcn.10006b00
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.10006b30
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10006940
mov ecx, esi
call fcn.10011e40
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.100f13e3
mov esp, ebp
pop ebp
ret
Function at 0x10046aa0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x10046ada
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10046ada
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10046ada
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 0x10046ada
cmp edi, dword [esi]
jne 0x10046ada
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10046af0
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 0x10046b53
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10046b53
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10046b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10046b53
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.100f13e3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100f13e3
add esp, 8
ret 4

Function at 0x10046c00
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 0x10046cae
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10046b70
test al, al
je 0x10046cae
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.10046b70
test al, al
je 0x10046cae
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10046c84
cmp dword [esp + 0x14], edi
jne 0x10046c84
mov eax, dword [esi]
test eax, eax
jne 0x10046c71
xor bl, bl
jmp 0x10046c84
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10046c6d
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.10046b70
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