joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422be0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5033f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 0x18]
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
jne 0x422ca5
xor edi, edi
lea esp, [esp]
push 0
push 0x52af20
push 0x52af20
push 0
push 0x52af20
inc edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x422c8c
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x10], eax
push dword [eax + 4]
push eax
call fcn.00422f90
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 0x14]
sub ecx, eax
cmp ecx, 1
jb 0x422c9b
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], ecx
mov ebx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp edi, 3
jl 0x422c30
cmp dword [ebx + 0x14], 0
jne 0x422ca5
xor edi, edi
jmp 0x422ccd
push str.list_T__too_long
call fcn.004dcd29
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 0x14]
call fcn.0040823e
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
Function at 0x423870
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5036d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x556620]
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 - 0x1c], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov edi, dword [ebp + 0xc]
push edx
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push edx
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x423a32
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4238fe
cmp eax, 2
je 0x4238fe
mov eax, 0x3f4
jmp 0x423a34
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x423a1f
lea ecx, [eax + 3]
cmp ecx, eax
jbe 0x423a1b
lea eax, [ebp - 0x20]
shr ecx, 1
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0
call fcn.0041e8f0
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x423a0c
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x42397b
push ebx
mov ecx, edi
call fcn.00412520
jmp 0x423a0c
cmp eax, 2
jne 0x423a07
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4239f6
lea eax, [edi + 1]
cmp eax, edi
jbe 0x4239f6
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.0041e8f0
push edi
push dword [ebp - 0x30]
mov byte [ebp - 4], 2
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jb 0x4239e7
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00412520
lea ecx, [ebp - 0x30]
call fcn.0041eb80
jmp 0x423a0c
lea ecx, [ebp - 0x30]
mov esi, 0xa
call fcn.0041eb80
jmp 0x423a0c
test edi, edi
mov esi, 8
mov eax, 0xea
cmove esi, eax
jmp 0x423a0c
mov esi, 0x3f4
test ebx, ebx
je 0x423a32
push ebx
call fcn.0040823e
add esp, 4
jmp 0x423a32
test eax, eax
jne 0x423a2d
push 0x511a98
mov ecx, edi
call fcn.00412520
jmp 0x423a32
mov esi, 8
mov eax, esi
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.00401580
mov esp, ebp
pop ebp
ret 8
Function at 0x4254c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503803
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea edi, [ecx + 4]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp + 8]
lea esi, [ecx + 0x3c]
mov dword [ecx], vtable.acrobat_broker::SandboxMAPIDispatcher.0
lea ebx, [ecx + 0x18]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0
mov ecx, esi
mov dword [ebx], 0
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00405f90
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
add eax, 0x44
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x533720
mov ecx, edi
call fcn.00417230
push 0x533760
mov ecx, edi
call fcn.00417230
push 0x5337a0
mov ecx, edi
call fcn.00417230
push 0x5337e0
mov ecx, edi
call fcn.00417230
push 0x533860
mov ecx, edi
call fcn.00417230
push 0x533820
mov ecx, edi
call fcn.00417230
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
mov edi, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
mov dword [edi + 0x1c], eax
call esi
push ebx
push 0
push edi
push 0x4259b0
push 0
push 0
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
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 4
Function at 0x4255f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503828
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x34]
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x38]
push eax
mov dword [ebp - 4], 0
mov dword [ebx], vtable.acrobat_broker::SandboxClipboardDispatcher.0
mov dword [ebx + 0x14], 0
mov dword [edi], 0
mov byte [ebx + 0x50], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x533990
lea ecx, [ebx + 4]
call fcn.00417230
push 0x5339d0
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533a10
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533a50
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533a90
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533ad0
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533b10
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533b50
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533b90
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533bd0
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533c10
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533c50
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533c90
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533cd0
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533d10
lea ecx, [ebx + 4]
call fcn.00417230
push 0x533d50
lea ecx, [ebx + 4]
call fcn.00417230
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x18], eax
call esi
push edi
push 0
push ebx
push 0x425fb0
mov dword [ebx + 0x1c], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 0x533d90
mov dword [ebx + 0x14], eax
call esi
push 0x533d9c
call esi
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 0x4266d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50393a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], vtable.acrobat_broker::ExecProcessDispatcher.0
lea ecx, [ebx + 0x10]
mov dword [ebp - 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.00405ee0
mov dword [ebx + 0x10], eax
push 0
push 0x447070
sub esp, 0x10
mov dword [ebp - 0x20], 0x447410
mov eax, esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x38]
mov dword [ebp - 0x14], 0
movdqu xmm0, xmmword [ebp - 0x20]
push 0x445d30
mov dword [ebx + 0x30], 0
movdqu xmmword [eax], xmm0
call fcn.004268d0
push 1
push 0
sub esp, 0x10
mov dword [ebp - 0x20], fcn.00430f20
mov eax, esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x438]
mov dword [ebp - 0x14], 0
movdqu xmm0, xmmword [ebp - 0x20]
push 0x4bea20
movdqu xmmword [eax], xmm0
call fcn.004268d0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x838], eax
mov dword [ebx + 0x83c], 0
mov dword [ebx + 0x840], 0
mov dword [ebx + 0x844], 0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 4
push eax
mov byte [ebx + 0x848], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x5d]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x42683a
mov edi, dword [0x55b408]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x39]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x42683a
mov eax, 1
jmp 0x42683c
xor eax, eax
mov esi, dword [ebp - 0x10]
push 0x5358e0
lea ecx, [esi + 4]
mov byte [esi + 0x848], al
call fcn.00417230
push 0x535920
lea ecx, [esi + 4]
call fcn.00417230
push 0x535960
lea ecx, [esi + 4]
call fcn.00417230
push 0x5359a0
lea ecx, [esi + 4]
call fcn.00417230
push 0x5359e0
lea ecx, [esi + 4]
call fcn.00417230
push 0x535a20
lea ecx, [esi + 4]
call fcn.00417230
push 0x535a60
lea ecx, [esi + 4]
call fcn.00417230
push 0x535aa0
lea ecx, [esi + 4]
call fcn.00417230
push 0x535ae0
lea ecx, [esi + 4]
call fcn.00417230
mov eax, esi
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 0x427150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503a1e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 4]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x14]
mov dword [edi], vtable.acrobat_broker::SandboxPreviewDispatcher.0
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00425ed0
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x1c], 0
lea esi, [eax + 0x5c]
add edi, 0x20
mov ecx, esi
mov byte [ebp - 4], 1
mov byte [eax + 0x58], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00427280
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0x40
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x534f80
mov ecx, ebx
call fcn.00417230
push 0x534fc0
mov ecx, ebx
call fcn.00417230
push 0x535000
mov ecx, ebx
call fcn.00417230
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
mov ebx, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x24], eax
call esi
push edi
push 0
push ebx
push 0x427450
push 0
push 0
mov dword [ebx + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x1c], eax
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 0x427350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503a48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x18]
mov dword [edi], vtable.acrobat_broker::SandboxDDEDispatcher.0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [ebx], 0
cmp dword [0x55b408], 0
mov dword [ebp - 4], 0
jne 0x4273d4
lea ecx, [ebp - 0x1c]
call fcn.004dee68
push 0x548b94
lea eax, [ebp - 0x1c]
push eax
call fcn.004de024
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x535498
lea ecx, [edi + 4]
call fcn.00417230
push 0x5354d8
lea ecx, [edi + 4]
call fcn.00417230
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x1c], eax
call esi
push ebx
push 0
push edi
push 0x427aa0
push 0
push 0
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
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 4
Function at 0x429f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503d28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push str.Readerplug_insTest_Tools_aaFEAT.api
push eax
call fcn.00418230
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x429fe1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429fe1
mov bl, 1
jmp 0x429fe3
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x429ff4
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x42a880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5032b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
test edi, edi
je 0x42a916
cmp word [edi], si
je 0x42a916
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x42a916
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0042a980
mov esi, dword [ebp - 0x1c]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x42a90f
mov dword [ebp - 0x18], esi
jmp 0x42a916
mov edx, esi
cmp esi, dword [ebp - 0x18]
jne 0x42a91b
mov edx, 0x511a98
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [edx], ax
jne 0x42a93a
xor ecx, ecx
jmp 0x42a94f
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a940
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004073d0
test esi, esi
je 0x42a965
push esi
call fcn.0040823e
add esp, 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

Function at 0x42ab10
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x42abaf
mov esi, ebx
cmp word [ebx], di
je 0x42ab4f
lea esp, [esp]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ab35
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], di
jne 0x42ab30
sub esi, ebx
add esi, 2
sar esi, 1
cmp esi, 0x3ffffffe
jb 0x42ab64
pop edi
pop esi
xor eax, eax
pop ebx
ret
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push 0x55bdb7
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041941d
mov edi, eax
add esp, 8
test edi, edi
je 0x42aba8
lea ecx, [esi + esi]
push ecx
push ebx
push ecx
push edi
call fcn.0041e67e
add esp, 0x10
test eax, eax
je 0x42aba8
push edi
call fcn.00419db5
add esp, 4
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x42af80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503e48
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x556620]
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]
test esi, esi
je 0x42b0a9
cmp word [esi], 0
je 0x42b0a9
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00412490
add esp, 4
test al, al
jne 0x42afec
xor esi, esi
jmp 0x42b094
lea eax, [ebp - 0x28]
push eax
call fcn.0042b0d0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x42b06d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x42b06d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00408420
push 0x514704
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0042b180
push esi
lea ecx, [ebp - 0x58]
call fcn.0042b180
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040c7d0
cmp dword [ebp - 0x2c], 8
mov esi, eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x58]
call fcn.00408450
jmp 0x42b06f
xor esi, esi
cmp dword [ebp - 0x14], 8
jb 0x42b080
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
jb 0x42b0a5
push dword [ebp - 0x40]
call fcn.0040823e
add esp, 4
mov eax, esi
jmp 0x42b0ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret

Function at 0x42b0d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], 0
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42b14b
cmp eax, 0x104
jae 0x42b14b
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407370
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x511a98
mov word [esi], ax
call fcn.004073d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x42b1d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], ecx
cmp dword [esi + 0x10], 0
jne 0x42b206
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4
push ebx
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x42b213
mov eax, dword [esi]
jmp 0x42b215
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x42b234
cmp eax, 0x50
je 0x42b234
cmp eax, 0xb7
jne 0x42b2cc
cmp dword [esi + 0x14], 8
jb 0x42b23c
mov esi, dword [esi]
lea ecx, [ebp - 0x210]
mov edx, 0x105
push edi
mov eax, ecx
xor edi, edi
sub esi, eax
mov edi, edi
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x42b26e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42b26e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x42b250
jmp 0x42b272
test edx, edx
jne 0x42b27a
sub ecx, 2
mov edi, 0x8007007a
xor eax, eax
test edi, edi
mov word [ecx], ax
pop edi
js 0x42b2cc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x42b2cc
push 0x52caa0
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0042b2e0
test eax, eax
js 0x42b2cc
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
push 0
push 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
sete bl
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00401580
mov esp, ebp
pop ebp
ret 4

Function at 0x42b3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor bl, bl
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x214], 0
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42b4a3
cmp word [ebp - 0x210], 0
je 0x42b4a3
test edi, edi
je 0x42b470
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42b4a3
cmp byte [ebp + 0x14], 0
je 0x42b4a1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x42b4a3
push 0x52caa0
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0042b2e0
test eax, eax
js 0x42b4a3
mov bl, 1
test bl, bl
mov dword [esi + 0x14], 7
mov eax, 0x511a98
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x210]
cmove edx, eax
xor eax, eax
mov word [esi], ax
cmp word [edx], ax
jne 0x42b4cf
xor ecx, ecx
jmp 0x42b4e3
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b4d4
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004073d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret