joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4316a0
Capabilities:
Connect pipe
Copy file
Get disk information
Get file attributes
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2060
call fcn.00406fb0
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push edi
xor edi, edi
jmp 0x4316d0
cmp dword [0x50e3dc], 0x7d
jne 0x431704
push 0
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x2048]
push ecx
lea edx, [ebp - 0x2040]
push edx
lea eax, [ebp - 0x2050]
push eax
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call ebx
cmp edi, 0x4e8
jne 0x43171e
mov edx, dword [0x435268]
add edx, 0x9e49
mov dword [0x50e3dc], edx
cmp dword [0x50e3dc], 0xbcd
jne 0x431763
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 0x204c]
push edx
mov word [ebp - 0x203c], ax
mov word [ebp - 0x203a], cx
mov eax, dword [ebp - 0x203c]
push eax
push ecx
push ecx
push ecx
call esi
mov dword [0x435e50], 0xec58ac98
mov dword [0x435e54], 0xffffffff
inc edi
cmp edi, 0x114af2c
jl 0x4316d0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
xor esi, esi
cmp esi, 0x56051f
jne 0x43178c
mov ecx, dword [0x434c58]
mov dword [0x50e50c], ecx
cmp dword [0x50e3dc], 0x3c
jne 0x431799
push 0
call edi
inc esi
cmp esi, 0x4cab834c
jl 0x431778
cmp dword [0x50e3dc], 0x7c
jne 0x4318bd
push 0
push 0
lea edx, [ebp - 0x204c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [ebp - 0x2050]
push eax
lea ecx, [ebp - 0x804]
push ecx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x2e
lea edx, [ebp - 0x2034]
push esi
push edx
mov dword [ebp - 0x2038], esi
call fcn.00404180
add esp, 0xc
push esi
lea eax, [ebp - 0x2038]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
lea ecx, [ebp - 0x2048]
push ecx
mov dword [ebp - 0x2048], esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor eax, eax
xor edx, edx
mov word [ebp - 0x203e], ax
xor ecx, ecx
mov word [ebp - 0x203a], dx
lea eax, [ebp - 0x2058]
push eax
mov word [ebp - 0x203c], cx
mov ecx, dword [ebp - 0x203c]
push ecx
mov word [ebp - 0x2040], dx
mov edx, dword [ebp - 0x2040]
push edx
lea eax, [ebp - 0x2044]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
Function at 0x402df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4acae1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4c0390]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402ca0
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x30]
call fcn.0042c6b0
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x1e70]
call fcn.00454500
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x20]
mov byte [esi + 0x1e6c], bl
mov byte [esi + 0x1e6d], bl
mov dword [esi + 0x1e58], ebx
mov dword [esi + 0x1e60], ebx
mov dword [esi + 0x1e64], ebx
mov dword [esi + 0x1e68], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1ecc], esi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406430
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x190
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x1a4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1a0]
mov ebx, ecx
mov ecx, dword [esp + 0x1b4]
push 0x408
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
call fcn.0049e9f4
mov edx, dword [esp + 0x1a8]
mov esi, eax
mov eax, dword [esp + 0x1ac]
add esp, 4
push edi
mov dword [esi], edx
mov dword [esi + 4], eax
call fcn.00464fd0
lea edx, [esi + 8]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x406491
cmp byte [ebx + 4], cl
je 0x4065ce
cmp dword [ebx + 8], 0x50000
push ebp
jb 0x4064ca
cmp dword [0x4dbcbc], 4
jne 0x4064c0
cmp dword [0x4dbcc0], 0
je 0x4064ca
cmp byte [esp + 0x1c4], 0
jne 0x40651f
mov ebp, dword [esp + 0x1b0]
cmp ebp, 0xffffffff
je 0x4064dd
cmp dword [esp + 0x10], 0
jne 0x406526
cmp dword [esp + 0x1a8], 2
mov eax, 0x4201
jne 0x4064f1
mov eax, 0x4203
push eax
push 0x160
lea ecx, [esp + 0x44]
push ecx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp ebp, 0xffffffff
jne 0x40650e
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x10], 0
jne 0x406526
lea edx, [esp + 0x48]
mov dword [esp + 0x10], edx
jmp 0x406526
mov ebp, dword [esp + 0x1b0]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0x37
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x406568
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
pop ebp
test esi, esi
je 0x4065b7
call fcn.0043ca60
test eax, eax
je 0x4065b7
mov eax, dword [ebx]
lea edx, [esp + 0x10]
push edx
push 0
push 0x40b
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4065f3
mov edx, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4065f3
mov eax, dword [esp + 0x1bc]
mov ecx, dword [ebx]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x14a
push ecx
call edi
mov edx, dword [ebx]
push esi
push eax
push 0x151
push edx
call edi
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x190
ret 0x24
Function at 0x406fb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x4dfee0
call fcn.0043f510
mov ebp, eax
xor esi, esi
cmp ebp, esi
je 0x40705a
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x407049
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi]
push 0
push esi
push 0x150
push ecx
call ebx
cmp eax, 0xffffffff
je 0x407049
mov eax, dword [eax + 4]
test eax, eax
je 0x407022
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ebp
push 0
push ecx
call eax
test eax, eax
je 0x40703c
inc esi
cmp esi, 0x80
jl 0x406ff5
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4070e5
mov ecx, dword [edi]
push 0
push esi
push 0x14e
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4070e5
lea ecx, [esp + 0x14]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi]
push 0
push esi
push 0x150
push edx
call ebx
cmp eax, 0xffffffff
je 0x4070ae
cmp dword [eax], 0
jne 0x4070a5
movsx eax, byte [eax + 8]
push eax
call fcn.0049ed36
movsx ecx, byte [esp + 0x18]
push ecx
mov ebp, eax
call fcn.0049ed36
add esp, 8
cmp ebp, eax
je 0x4070d1
inc esi
cmp esi, 0x80
jl 0x407070
push 0
lea eax, [esp + 0x18]
mov ecx, eax
push eax
push ecx
mov ecx, edi
call fcn.00406610
cmp dword [0x4dbc5c], 0
mov ecx, edi
je 0x4070e0
call fcn.00406930
jmp 0x4070e5
mov edx, dword [edi]
push 0
push esi
push 0x14e
push edx
call ebx
jmp 0x4070bf
call fcn.004068c0
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x408
ret
Function at 0x407210
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x174
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
mov edi, dword [esp + 0x188]
jne 0x40724b
push str.comctl32.dll
call fcn.0047e080
mov dword [esi + 8], eax
mov eax, dword [esi]
test eax, eax
je 0x407258
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov bl, byte [esp + 0x18c]
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 4], bl
mov eax, str.ComboBoxEx32
test bl, bl
jne 0x407277
mov eax, str.combobox
mov ecx, dword [0x4c935c]
push 0
push ecx
push ebp
push edi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi], eax
test bl, bl
je 0x4073da
lea edx, [esp + 0x10]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x10]
push 0x4209
push 0x160
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x402
push edx
call edi
mov eax, dword [0x4f8534]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push 0
mov eax, ecx
push 1
push eax
mov ecx, esi
call fcn.00406430
mov ecx, dword [esi]
push 0
push 4
push 0x408
push ecx
call edi
mov edx, dword [esi]
push 0
push 0
push 0x407
push edx
call edi
test eax, eax
je 0x40733d
push eax
call fcn.0047e460
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x407366
mov ecx, dword [esp + 0x10]
push eax
push eax
push ecx
mov ecx, esi
call fcn.00406c70
test al, al
jne 0x4073b8
call fcn.0047e390
mov ebp, eax
xor edi, edi
mov ebx, 1
test ebp, ebx
je 0x4073b0
lea edx, [edi + 0x41]
push edx
lea eax, [esp + 0x178]
push str._c:_
push eax
call fcn.0049deb5
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x194]
push ecx
mov ecx, esi
call fcn.00406430
inc edi
rol ebx, 1
cmp edi, 0x20
jl 0x407374
mov ecx, esi
call fcn.00406fb0
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x174
ret 0xc
push 3
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x407366
Function at 0x407400
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
push 0x400
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00445570
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x4074a8
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00407100
cmp dword [0x4dbc5c], 0
mov ecx, esi
je 0x40748c
call fcn.00406930
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret
call fcn.004068c0
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret
cmp dword [0x4dbc5c], 0
je 0x4074e7
lea eax, [esp + 8]
push eax
call fcn.0044e870
test al, al
jne 0x4074e7
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x4dfee0
call fcn.004427d0
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407523
test al, 0x10
jne 0x407523
push 0
lea eax, [esp + 0xc]
push eax
mov ecx, 0x4dfee0
call fcn.00442ce0
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret
lea ecx, [esp + 8]
push ecx
call fcn.00484a10
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret
Function at 0x407550
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x168
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x164], eax
mov ecx, dword [esp + 0x170]
mov eax, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x17c]
cmp ecx, 0x4e
jne 0x40766c
mov eax, dword [edi + 8]
cmp eax, 0xfffffcdb
je 0x40763f
cmp eax, 0xfffffce0
jne 0x407652
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
push ebx
push ebp
push esi
mov dword [esp + 0x10], edx
cmp eax, 4
jne 0x4075b5
mov ebp, dword [ecx + 4]
jmp 0x4075b8
lea ebp, [ecx + 8]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 8
mov esi, ecx
test dl, 1
je 0x4075f4
mov edx, esi
or edx, 0x200
push edx
push 0x160
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ebx
test eax, eax
je 0x4075f4
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x40761b
or esi, 0x4001
push esi
push 0x160
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
or dword [edi + 0xc], 0x10000000
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0049dea6
add esp, 0x168
ret 0x10
cmp dword [edi + 0x118], 2
jne 0x407652
mov ecx, 0x4dfed0
call fcn.00407400
xor eax, eax
pop edi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0049dea6
add esp, 0x168
ret 0x10
mov edx, dword [esp + 0x178]
push edi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [esp + 0x168]
pop edi
xor ecx, esp
call fcn.0049dea6
add esp, 0x168
ret 0x10
Function at 0x409330
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
mov edi, edi
mov edx, eax
and dl, 0x80
movzx edx, dl
mov byte [esp + ecx + 0x10c], al
mov byte [esp + ecx + 0x20b], al
mov byte [esp + eax + 0xc], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x409350
xor ecx, ecx
mov dword [ecx + 0x4c2430], eax
test eax, eax
je 0x40939c
movzx eax, byte [esp + eax + 0xc]
movzx eax, byte [esp + eax + 0x125]
jmp 0x40939e
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x409383
xor edx, edx
test dl, dl
je 0x4093c2
movzx ecx, dl
movzx eax, byte [esp + ecx + 0xc]
lea ecx, [esp + 0x20b]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x4093c4
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ebx, eax
shr ebx, 8
xor bl, al
xor bl, 0x63
je 0x4093fb
movzx eax, bl
movzx eax, byte [esp + eax + 0xc]
movzx ecx, byte [esp + eax + 0x10d]
movzx esi, byte [esp + eax + 0x125]
jmp 0x4093ff
xor ecx, ecx
xor esi, esi
shl ecx, 8
movzx eax, bl
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, esi
mov esi, ecx
rol esi, 8
mov dword [edx*4 + 0x4c3458], ecx
mov dword [edx*4 + 0x4c3858], esi
mov esi, ecx
rol esi, 0x10
ror ecx, 8
mov dword [edx*4 + 0x4c4058], ecx
mov ecx, eax
rol ecx, 8
mov dword [edx*4 + 0x4c2858], ecx
mov ecx, eax
mov dword [edx*4 + 0x4c2458], eax
rol ecx, 0x10
ror eax, 8
mov dword [edx*4 + 0x4c3058], eax
mov dword [edx*4 + 0x4c3c58], esi
movzx esi, dl
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
mov dword [edx*4 + 0x4c2c58], ecx
add eax, eax
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 5
je 0x4094e2
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
add eax, eax
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor ecx, eax
xor ecx, 5
movzx ecx, byte [esp + ecx + 0xc]
lea eax, [esp + 0x20b]
sub eax, ecx
mov bl, byte [eax]
test bl, bl
je 0x4094e4
movzx ecx, bl
movzx ecx, byte [esp + ecx + 0xc]
movzx eax, byte [esp + ecx + 0x174]
movzx edi, byte [esp + ecx + 0x1fa]
movzx esi, byte [esp + ecx + 0x1d3]
movzx ecx, byte [esp + ecx + 0x1eb]
jmp 0x4094ec
xor bl, bl
xor eax, eax
xor edi, edi
xor esi, esi
xor ecx, ecx
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
movzx ecx, bl
add ecx, ecx
add ecx, ecx
mov esi, eax
rol esi, 8
mov dword [ecx + 0x4c1830], esi
mov esi, eax
rol esi, 0x10
mov dword [ecx + 0x4c1430], eax
ror eax, 8
inc edx
mov dword [ecx + 0x4c1c30], esi
mov dword [ecx + 0x4c2030], eax
cmp edx, 0x100
jb 0x4093a8
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x4c4458], 1
call fcn.0049dea6
add esp, 0x304
ret
Function at 0x4112f0
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, dword [esp + 0x814]
push 0x400
push 0x4b1914
lea eax, [esp + 0x10]
push eax
push str.TempFolder
push 0x4b192c
mov byte [edi], 0
call fcn.00456900
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
jne 0x411354
cmp byte [0x4e6954], 0
je 0x411410
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 0x400
lea edx, [esp + 0x40c]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x411391
cmp eax, 0x400
jae 0x411391
push 0x400
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0049f290
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4113ad
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 1
push str.TempRemovableOnly
push 0x4b192c
call fcn.00456960
test eax, eax
je 0x4113f3
cmp byte [0x4e6954], 0
jne 0x4113f3
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4113dd
cmp eax, 5
jne 0x41140a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4113e7
jmp 0x41140a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411400
push edi
call fcn.0044dfb0
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x804
ret 8
Function at 0x414ed0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xf4
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x404], eax
test eax, eax
jne 0x414f20
push eax
push ebx
call fcn.0047ebe0
test eax, eax
je 0x414f15
cmp eax, 0x20
je 0x414f15
push ebx
push eax
push 0x20
push 0x5c8
call fcn.0045bde0
push eax
call fcn.0048e100
add esp, 0x10
pop esi
xor al, al
pop ebx
add esp, 0xf4
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Prepare
push eax
call edi
mov dword [esi + 0x490], eax
mov eax, dword [esi + 0x404]
push str.Open
push eax
call edi
mov ecx, dword [esi + 0x404]
push str.OpenW
push ecx
mov dword [esi + 0x494], eax
call edi
mov edx, dword [esi + 0x404]
push 0x4b1b7c
push edx
mov dword [esi + 0x498], eax
call edi
mov dword [esi + 0x49c], eax
mov eax, dword [esi + 0x404]
push str.GetNextName
push eax
call edi
mov ecx, dword [esi + 0x404]
push str.GetListItem
push ecx
mov dword [esi + 0x4a0], eax
call edi
mov edx, dword [esi + 0x404]
push str.Extract
push edx
mov dword [esi + 0x4a4], eax
call edi
mov dword [esi + 0x4a8], eax
mov eax, dword [esi + 0x404]
push str.GetComment
push eax
call edi
cmp dword [esi + 0x490], 0
mov dword [esi + 0x4ac], eax
je 0x41515e
cmp dword [esi + 0x494], 0
jne 0x414fe4
cmp dword [esi + 0x498], 0
je 0x41515e
push 0xf4
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0049e460
push 0x88
lea edi, [esi + 0x408]
push 0
push edi
mov dword [esp + 0x24], 0xf4
mov dword [esp + 0x28], 0x4103a0
mov dword [esp + 0x2c], 0x4104f0
mov dword [esp + 0x30], 0x410510
mov dword [esp + 0x34], 0x410520
mov dword [esp + 0x38], 0x413e90
mov dword [esp + 0x3c], 0x410780
mov dword [esp + 0x40], 0x4107a0
mov dword [esp + 0x44], 0x4107b0
mov dword [esp + 0x48], 0x413ed0
mov dword [esp + 0x4c], 0x413ef0
mov dword [esp + 0x50], 0x4109d0
mov dword [esp + 0x54], 0x410c10
mov dword [esp + 0x58], 0x410c20
mov dword [esp + 0x5c], 0x410c80
mov dword [esp + 0x60], 0x413eb0
mov dword [esp + 0x64], 0x410d00
mov dword [esp + 0x68], 0x410d40
mov dword [esp + 0x6c], 0x410d70
mov dword [esp + 0x70], 0x410d80
mov dword [esp + 0x74], 0x410d90
mov dword [esp + 0x78], 0x410da0
mov dword [esp + 0x7c], 0x410db0
mov dword [esp + 0x80], 0x410e40
mov dword [esp + 0x84], 0x410ed0
mov dword [esp + 0x88], 0x411040
mov dword [esp + 0x8c], fcn.00410960
mov dword [esp + 0x90], fcn.004105c0
mov dword [esp + 0x94], fcn.00410860
mov dword [esp + 0x98], 0x410d20
call fcn.0049e460
mov eax, dword [esi + 0x490]
add esp, 0x18
push edi
lea edx, [esp + 0x10]
push edx
mov dword [edi], 0x88
call eax
cmp dword [esi + 0x488], 0
je 0x41516a
mov ecx, dword [esi + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
mov dword [esi + 0x404], 0
call fcn.0044db30
push eax
push 0x42e
call fcn.0045bde0
push eax
call fcn.0048e100
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xf4
ret
Function at 0x4158c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad5b1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c0390]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
lea ecx, [esi + 0x1e70]
call fcn.00401920
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x30]
call fcn.0042c530
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.00402660
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret