joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43297f
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x45d9ad
call fcn.0044806b
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x432adf
cmp eax, 4
jb 0x432adf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004020a4
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040a4ee
cmp eax, 0xffffffff
je 0x4329f9
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
jne 0x4329f9
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a57d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00409162
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
push 0x47f4dc
lea ecx, [ebp - 0x14]
call fcn.00409023
lea ecx, [ebp - 0x34]
call fcn.00440d2f
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
push 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00440dc7
test eax, eax
je 0x432a8b
lea ecx, [ebp - 0x34]
call fcn.00440ac4
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00440cf0
test eax, eax
jne 0x432a87
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00440ff4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
call dword [eax + 0x38]
test eax, eax
je 0x432a70
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.004020a4
call fcn.0043297f
pop ecx
jmp 0x432a78
lea esi, [ebp - 0x18]
call fcn.00432aed
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
test ebx, ebx
jne 0x432a24
lea ecx, [ebp - 0x34]
call fcn.004409de
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x432ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x432ac8
push eax
lea eax, [ebp + 8]
push eax
push 2
call fcn.00411fb7
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00440d58
lea ecx, [edi - 0x10]
call fcn.0040253e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040253e
call fcn.00448143
ret

Function at 0x432aed
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ecx
mov eax, esi
call fcn.00401000
test eax, eax
je 0x432b29
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x432b29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x432b29
push eax
push esi
push 2
call fcn.00411fb7
add esp, 0xc
pop ecx
ret
Function at 0x432cfd
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x45d91f
call fcn.0044806b
call fcn.00434892
push eax
lea ecx, [ebp - 0x18]
call fcn.0040210b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x10]
push 0x46a234
mov byte [ebp - 4], 2
call fcn.004090d2
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property_s
push eax
call fcn.0040202c
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x432d56
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
cmp edi, esi
je 0x432dc4
push str.MsiDatabaseOpenView__
lea ecx, [ebp + 0xc]
call fcn.00402060
mov byte [ebp - 4], 3
push edi
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.00411fb7
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x14], esi
je 0x432da7
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x432db4
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov eax, edi
call fcn.00448143
ret
push esi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
mov edi, eax
cmp edi, esi
je 0x432de6
push str.MsiViewExecute__
lea ecx, [ebp + 0xc]
call fcn.00402060
mov byte [ebp - 4], 4
jmp 0x432d80
cmp dword [ebp - 0x14], esi
je 0x432df3
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov edi, eax
cmp edi, esi
jne 0x432d9a
push dword [ebp + 0x10]
push 1
push dword [ebp - 0x14]
call fcn.00432e90
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x432e74
push str.MsiGetRecordString__
lea ecx, [ebp + 0xc]
call fcn.00402060
push edi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fb7
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x14], esi
je 0x432e56
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x432e63
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov eax, esi
jmp 0x432dbe
cmp dword [ebp - 0x14], esi
je 0x432e81
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], esi
je 0x432e65
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x432e65
Function at 0x433172
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x498d50]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.004462a0
xor eax, eax
push esi
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push ebx
push eax
call fcn.004462a0
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x486950
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x433222
mov eax, dword [ebp - 0x78]
xor ecx, ecx
cmp ecx, 0x103
je 0x43321c
xor edx, edx
push 0xa
pop esi
div esi
mov dx, word [edx*2 + str.0123456789]
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ebx
ja 0x4331fc
xor eax, eax
mov word [edi + ecx*2], ax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
pop esi
pop ebx
jge 0x433241
push str.thsnYaVieBoda
mov eax, 0x104
mov ecx, edi
call fcn.004126db
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
call fcn.0044546a
add ebp, 0x3a8
leave
ret
Function at 0x433256
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x3c
mov eax, 0x45d86b
call fcn.004480d4
mov esi, edx
mov dword [ebp - 0x38], ecx
xor ebx, ebx
call fcn.004022b1
push 8
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.004462a0
add esp, 0xc
push 8
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004462a0
add esp, 0xc
push 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.004462a0
add esp, 0xc
push esi
lea ecx, [ebp - 0x28]
call fcn.004020a4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004103f7
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
mov ecx, 0x49d450
mov dword [ebp - 0x48], eax
call fcn.004103f7
mov dword [ebp - 0x3c], eax
mov eax, dword [0x49d450]
mov eax, dword [eax - 0xc]
shr eax, 1
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push str.Encrypted_by_Adobe.
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x433350
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
cmp dword [ebp - 0x30], ebx
jbe 0x433342
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
shr eax, 4
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.004342fc
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp - 0x38]
and eax, 0xf
movzx eax, byte [ebp + eax - 0x24]
push eax
call fcn.004342fc
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x43330c
push dword [ebp - 0x2c]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x43337e
push str.Encryption_failed.
lea ecx, [ebp - 0x34]
call fcn.00402060
push ebx
lea eax, [ebp - 0x34]
push eax
push 1
mov byte [ebp - 4], 1
call fcn.00411fb7
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call fcn.0040c514
push 0xffffffffffffffff
mov ecx, 0x49d450
call fcn.0040c514
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, ebx
call fcn.00448157
ret
Function at 0x435ec5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x498d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x435f5d
push 0x463e8c
push 4
push eax
call fcn.00446fa8
push eax
call fcn.004021ba
add esp, 0x10
push ebx
push edi
call fcn.00448203
mov edi, dword [eax]
call fcn.00448203
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004476ee
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00448203
cmp dword [eax], ebx
je 0x435f74
call fcn.00448203
push dword [eax]
call fcn.004345dc
pop ecx
jmp 0x435f7b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435f08
jmp 0x436002
call fcn.00448203
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x435ffe
cmp dword [ebp - 0x234], esi
jae 0x435ffe
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004462a0
add esp, 0xc
push 0x463bec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x435fed
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x435fed
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x435fed
push ebx
push ebx
push esi
jmp 0x435ff6
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x436000
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044546a
leave
ret

Function at 0x43f6b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43f6ff
call fcn.004391b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43f6ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43f71b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043f230
mov esi, eax
test edi, edi
je 0x43f719
test ebx, ebx
je 0x43f719
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x440370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440394
cmp dword [edi + 0x54], 0
jne 0x440394
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004391b8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00440331
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44546a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x498d50]
jne 0x445474
repz ret
jmp fcn.0044cf8d

Function at 0x455618
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c8f1
and dword [ebp - 4], 0
cmp dword [0x49d2f0], 0
mov ebx, eax
jne 0x4556c9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45577a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45577a
push eax
call fcn.0044c87f
mov dword [esp], 0x466b80
push edi
mov dword [0x49d2f0], eax
call esi
push eax
call fcn.0044c87f
mov dword [esp], 0x466b6c
push edi
mov dword [0x49d2f4], eax
call esi
push eax
call fcn.0044c87f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49d2f8], eax
call esi
push eax
call fcn.0044c87f
pop ecx
mov dword [0x49d300], eax
test eax, eax
je 0x4556c9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c87f
pop ecx
mov dword [0x49d2fc], eax
mov eax, dword [0x49d2fc]
cmp eax, ebx
je 0x455721
cmp dword [0x49d300], ebx
je 0x455721
push eax
call fcn.0044c8fa
push dword [0x49d300]
mov esi, eax
call fcn.0044c8fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x455721
test edi, edi
je 0x455721
call esi
test eax, eax
je 0x455718
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455718
test byte [ebp - 0xc], 1
jne 0x455721
or dword [ebp + 0x10], 0x200000
jmp 0x45575a
mov eax, dword [0x49d2f4]
cmp eax, ebx
je 0x45575a
push eax
call fcn.0044c8fa
pop ecx
test eax, eax
je 0x45575a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45575a
mov eax, dword [0x49d2f8]
cmp eax, ebx
je 0x45575a
push eax
call fcn.0044c8fa
pop ecx
test eax, eax
je 0x45575a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d2f0]
call fcn.0044c8fa
pop ecx
test eax, eax
je 0x45577a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45577c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push 0
push 0x14
mov dword [ebp - 8], eax
mov dword [eax], 0
call fcn.00405bc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408e56
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp byte [0x608a34], 0
je 0x408ea8
mov edi, dword [0x608b30]
test edi, edi
je 0x408e7f
push 0xc8
mov ecx, edi
call dword [0x5a143c]
call edi
add esp, 4
test eax, eax
jne 0x408ea8
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x408dc0
push 0
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.0056d1fc
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x408eb8
jmp 0x408eab
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x408ed8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov ecx, ebx
mov dword [esi + 4], eax
call dword [0x5a143c]
call ebx
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x4b4db0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5929c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0x5d7720
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004b4a20
lea eax, [ebp - 0x3c]
push eax
call fcn.00540558
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.004b4ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5921e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0053b416
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00540046
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c45b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594168
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6071d4]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4c470b
cmp byte [ebx + 0x3e], 0
je 0x4c470b
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a143c]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x4c4620
xor al, al
jmp 0x4c470d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004bb740
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x5a143c]
mov ecx, edi
call esi
sub eax, 0
je 0x4c469a
sub eax, 1
je 0x4c469e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4c46f1
xor bl, bl
jmp 0x4c46f3
mov byte [ebx + 0x3e], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x4c46d3
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00577039
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4c4696
cmp byte [ebx + 0x3e], 0
je 0x4c46f1
test esi, esi
jne 0x4c4650
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b7d20
jmp 0x4c4645
mov bl, 1
cmp edi, 0x10
jb 0x4c4707
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b7bd0
mov al, bl
jmp 0x4c470d
mov al, 1
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.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x4c7d50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594671
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6071d4]
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
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, 2
mov dword [ebp - 4], 1
xor eax, eax
mov esi, ebx
sub ecx, ebx
mov edi, ecx
nop
cmp word [esi], 0
jne 0x4c7e24
lea ecx, [eax + ebx]
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, esi
je 0x4c7df1
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004a96a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.004ca000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c7e1a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
lea eax, [edi + esi]
cmp word [eax + ebx], 0
je 0x4c7e29
add esi, 2
jmp 0x4c7dc0
mov edi, dword [ebp - 0x3c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4c7e52
mov eax, dword [edi]
jmp 0x4c7e54
mov eax, edi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, edi
push 0x5df834
call fcn.004a96a0
mov ecx, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x38]
sub ecx, esi
imul ecx
mov dword [ebp - 0x40], 1
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x4c7ed6
nop dword [eax + eax]
push 0x5dfa80
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004c4ff0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004af740
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c7ecb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
add esi, 0x18
sub ebx, 1
jne 0x4c7e90
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4c7f08
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.004b1ee0
mov ecx, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
call fcn.004afe80
mov eax, edi
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.0053b206
mov esp, ebp
pop ebp
ret