joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
cmp word [0x10113b30], 0
jne 0x1003c37b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a3d80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str...LocalMicrosoftEdgeUser_DataDefault
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x10113b30
lea esi, [ebp - 0x218]
mov edx, 0x104
sub esi, ecx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003c36e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003c36e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1003c350
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x1003c3eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10113b30
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004160
test al, al
jne 0x1003c3cc
mov ecx, 0x10113b30
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c3b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x10113b30
mov ecx, edi
call fcn.100045a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10003fe0
int3
Function at 0x1003cab0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d18a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010f404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x30], 0
je 0x1003caf4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.1003c2c0
mov dword [ebp - 4], 0
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x1003cc4d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebx + 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edx
jge 0x1003cb52
push 0x104
lea ecx, [ebp - 0x14]
call fcn.10004500
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp dword [esi - 8], 0x104
jl 0x1003cc57
push edi
push edx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.100a8086
add esp, 8
test eax, eax
js 0x1003cc57
cmp eax, dword [esi - 8]
jg 0x1003cc57
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x1003cbf7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003cbf7
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003cbf7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x3c]
call fcn.10009470
lea eax, [ebx + 0x44]
mov ecx, ebx
push eax
lea eax, [ebx + 0x48]
push eax
call fcn.1003c400
lea eax, [ebx + 0x38]
push eax
push 0x11
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
call fcn.10038930
mov ecx, eax
call fcn.10046e60
mov dword [ebx + 0x30], 1
xor edi, edi
jmp 0x1003cbfc
mov edi, 0x80004005
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003cc1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003cc39
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
int3
Function at 0x1003e110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010f404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x30], 0
je 0x1003e157
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
call fcn.1003d450
mov dword [ebp - 4], 0
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x1003e2bd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
jge 0x1003e1ac
push 0x104
lea ecx, [ebp - 0x18]
call fcn.10004500
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], 0x104
jl 0x1003e2c7
push str.prefs.js
push ebx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.100a8086
add esp, 8
test eax, eax
js 0x1003e2c7
cmp eax, dword [esi - 8]
jg 0x1003e2c7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x1003e267
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e267
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003e267
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x3c]
call fcn.10009470
push 8
push str.prefs.js
lea ecx, [edi + 0x40]
call fcn.100045a0
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x44]
push eax
call fcn.1003d7b0
mov eax, dword [ebp - 0x10]
add eax, 0x38
push eax
push 0x11
push dword [edi + 0x40]
push dword [edi + 0x3c]
call fcn.10038930
mov ecx, eax
call fcn.10046e60
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [eax + 0x30], 1
jmp 0x1003e26c
mov edi, 0x80004005
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e28a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003e2a9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
int3
Function at 0x1003e310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x740053
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x10113e10
mov dword [ebp - 0x18], 0x720061
mov dword [ebp - 0x14], 0x200074
mov edx, 0xc
mov dword [ebp - 0x10], 0x610050
sub esi, eax
mov dword [ebp - 0xc], 0x650067
nop dword [eax]
lea ecx, [edx + 0x7ffffff2]
test ecx, ecx
je 0x1003e37e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003e37e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003e360
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x10113e10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret

Function at 0x1003e3a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x10113d48
mov dword [ebp - 0x58], 0x6f0053
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x740066
push edi
mov dword [ebp - 0x50], 0x610077
mov edx, 0x2b
mov dword [ebp - 0x4c], 0x650072
sub esi, eax
mov dword [ebp - 0x48], 0x4d005c
mov dword [ebp - 0x44], 0x630069
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x6f0073
mov dword [ebp - 0x38], 0x740066
mov dword [ebp - 0x34], 0x49005c
mov dword [ebp - 0x30], 0x74006e
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x65006e
mov dword [ebp - 0x24], 0x200074
mov dword [ebp - 0x20], 0x780045
mov dword [ebp - 0x1c], 0x6c0070
mov dword [ebp - 0x18], 0x72006f
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x4d005c
mov dword [ebp - 0xc], 0x690061
mov dword [ebp - 8], 0x6e
lea ecx, [edx + 0x7fffffd3]
test ecx, ecx
je 0x1003e473
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003e473
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003e455
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov eax, 0x10113d48
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret

Function at 0x1003e4a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x740053
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x10113da0
mov dword [ebp - 0x18], 0x720061
mov dword [ebp - 0x14], 0x200074
mov edx, 0xc
mov dword [ebp - 0x10], 0x610050
sub esi, eax
mov dword [ebp - 0xc], 0x650067
nop dword [eax]
lea ecx, [edx + 0x7ffffff2]
test ecx, ecx
je 0x1003e50e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003e50e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003e4f0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x10113da0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret
Function at 0x1003e530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x10113db8
mov dword [ebp - 0x58], 0x6f0053
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x740066
push edi
mov dword [ebp - 0x50], 0x610077
mov edx, 0x2b
mov dword [ebp - 0x4c], 0x650072
sub esi, eax
mov dword [ebp - 0x48], 0x4d005c
mov dword [ebp - 0x44], 0x630069
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x6f0073
mov dword [ebp - 0x38], 0x740066
mov dword [ebp - 0x34], 0x49005c
mov dword [ebp - 0x30], 0x74006e
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x65006e
mov dword [ebp - 0x24], 0x200074
mov dword [ebp - 0x20], 0x780045
mov dword [ebp - 0x1c], 0x6c0070
mov dword [ebp - 0x18], 0x72006f
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x4d005c
mov dword [ebp - 0xc], 0x690061
mov dword [ebp - 8], 0x6e
lea ecx, [edx + 0x7fffffd3]
test ecx, ecx
je 0x1003e603
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003e603
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003e5e5
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov eax, 0x10113db8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret

Function at 0x1003f7d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x780065
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x10113e28
mov dword [ebp - 0x1c], 0x6c0070
mov dword [ebp - 0x18], 0x72006f
mov edx, 0xe
mov dword [ebp - 0x14], 0x720065
sub esi, eax
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x1003f83e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003f83e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003f820
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x10113e28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret

Function at 0x1003f860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x10113e44
mov dword [ebp - 0x1c], 0x610074
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x6b0073
mov dword [ebp - 0x14], 0x67006d
mov edx, 0xd
mov dword [ebp - 0x10], 0x2e0072
sub esi, eax
mov dword [ebp - 0xc], 0x780065
mov dword [ebp - 8], 0x65
nop word [eax + eax]
lea ecx, [edx + 0x7ffffff1]
test ecx, ecx
je 0x1003f8ce
movzx ecx, word [esi + eax]
test cx, cx
je 0x1003f8ce
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1003f8b0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x10113e44
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret
Function at 0x100406c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d206d
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.1007d4f0
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1038], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x102c], 0
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x10040858
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x102c], 1
mov dword [ebp - 0x1034], 1
call fcn.100a3d80
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1030], 0x800
push str.TK8Fj70YG_v_3_vPPg7Vdm30XuBkLQEO1THF4mZ06i_foDUuatiCLqo3UQuDlAcNYT9wv6OGo2LxfcPIj7LcA
push eax
call fcn.100526e0
add esp, 0x14
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1030]
push ecx
lea ecx, [ebp - 0x1010]
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x1034]
push ecx
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push str.InstallLocation
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100407fe
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.User_DataDefault
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100407e0
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.100045a0
mov edx, dword [ebp - 0x1014]
cmp edx, 8
jb 0x1004083a
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10040830
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040862
push edx
push ecx
call fcn.1007d115
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10003fe0
call fcn.100a7ba5
int3
Function at 0x10043e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
cmp word [0x10113e70], 0
jne 0x10043efb
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a3d80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SogouExplorer
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x10113e70
lea esi, [ebp - 0x218]
mov edx, 0x104
sub esi, ecx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10043eee
movzx eax, word [esi + ecx]
test ax, ax
je 0x10043eee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10043ed0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x10043f6b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10113e70
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004160
test al, al
jne 0x10043f4c
mov ecx, 0x10113e70
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043f30
sub ecx, edx
sar ecx, 1
push ecx
push 0x10113e70
mov ecx, edi
call fcn.100045a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10003fe0
int3
Function at 0x10044aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d18a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010f404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x30], 0
je 0x10044ae4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.10043e40
mov dword [ebp - 4], 0
call fcn.10004450
mov ecx, eax
test ecx, ecx
je 0x10044c3d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov edx, dword [ebp - 0x10]
mov edi, dword [ebx + 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edx
jge 0x10044b42
push 0x104
lea ecx, [ebp - 0x14]
call fcn.10004500
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp dword [esi - 8], 0x104
jl 0x10044c47
push edi
push edx
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.100a8086
add esp, 8
test eax, eax
js 0x10044c47
cmp eax, dword [esi - 8]
jg 0x10044c47
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x10044be7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10044be7
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10044be7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x3c]
call fcn.10009470
lea eax, [ebx + 0x44]
mov ecx, ebx
push eax
lea eax, [ebx + 0x48]
push eax
call fcn.10043f80
lea eax, [ebx + 0x38]
push eax
push 0x11
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
call fcn.10038930
mov ecx, eax
call fcn.10046e60
mov dword [ebx + 0x30], 1
xor edi, edi
jmp 0x10044bec
mov edi, 0x80004005
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10044c0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10044c29
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003fe0
push 0x80070057
call fcn.10003fe0
int3
Function at 0x10044c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10044d01
cmp byte [esi + 0x3d], 0
je 0x10044d01
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10044cb7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10044cc9
sub eax, 1
je 0x10044ccd
sub eax, 2
je 0x10044d01
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10044cea
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100ad6ee
add esp, 0x10
cmp edi, eax
jne 0x10044cb7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1007d494
mov esp, ebp
pop ebp
ret
Function at 0x100453a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1010f404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100453d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004540c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1004540c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100454f1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10045434
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10045467
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100aaf85
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x100454f1
cmp eax, 1
jle 0x100454c4
cmp eax, 3
jne 0x100454f1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10042e10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100454e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100ad6ee
add esp, 0x10
cmp edi, eax
jne 0x100454f1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100453f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d494
mov esp, ebp
pop ebp
ret 4