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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46be4e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.004087b0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040b158
mov eax, dword [ebx]
call fcn.0046be5c
test al, al
jne 0x46be30
lea edx, [ebp - 0x114]
mov eax, dword [0x47dab8]
mov eax, dword [eax]
call fcn.00448a58
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004083f4
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040b158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46be55
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403a9c
ret

Function at 0x46be5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ebc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46be75
test al, 0x10
jne 0x46be79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x46cfa4
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00403ebc
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x46d05e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x46d068]
fnstsw ax
sahf
je 0x46d008
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.0046cf50
fld qword [ebp + 8]
fcomp dword [0x46d068]
fnstsw ax
sahf
je 0x46d024
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.0046cf50
fld qword [ebp + 0x10]
fcomp dword [0x46d068]
fnstsw ax
sahf
je 0x46d040
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.0046cf50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
neg eax
sbb ebx, ebx
neg ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x46d0a8
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00403ebc
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46d103
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.0046d06c
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret
Function at 0x46d110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x46d193
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x46d193
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x46d193
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x46d193
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x46d193
xor edx, edx
push ebp
push 0x46d189
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.004112a8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46d193
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x46e000
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403eac
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x46e187
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x46e1a4
call fcn.00403fe4
test eax, eax
jne 0x46e04b
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x46e1b0
call fcn.00403d44
mov eax, esi
mov edx, 0x3c
call fcn.0046d1c8
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.004026f4
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.004026f4
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.004026f4
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.004026f4
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.004026f4
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.004026f4
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403cf8
push eax
mov eax, dword [ebp - 4]
call fcn.00403ebc
push eax
call sub.wininet.dll_InternetCrackUrlA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x46e141
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00403c30
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00403c30
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00403c30
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00403c30
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00403c30
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00403c30
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.0040270c
mov eax, dword [esi + 0x2c]
call fcn.0040270c
mov eax, dword [esi + 0x24]
call fcn.0040270c
mov eax, dword [esi + 0x1c]
call fcn.0040270c
mov eax, dword [esi + 0x10]
call fcn.0040270c
mov eax, dword [esi + 4]
call fcn.0040270c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e18e
lea eax, [ebp - 4]
call fcn.00403a78
ret
Function at 0x46e2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x46e2d9
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x46e2e6
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x46e304
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e328
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 4]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x46e36f
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00403c9c
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00403c9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ee7c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x46ef99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.0046ed44
pop ecx
test al, al
je 0x46ef74
mov eax, dword [ebp + 8]
push eax
call fcn.0046eb88
pop ecx
test al, al
jne 0x46ef74
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x138]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x46ef74
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.0046ebc8
pop ecx
test al, al
je 0x46ef74
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00403ca8
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408120
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0xfc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0xfc]
cmp esi, 0xc8
je 0x46ef3f
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x46ef74
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.0046ebc8
pop ecx
test al, al
je 0x46ef74
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00403ca8
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00408120
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.0046eb88
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46efa0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a9c
ret
Function at 0x473db0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473f05
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x47eaa8]
call fcn.00403ebc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x473e78
mov dl, 1
mov eax, dword [0x40df74]
call fcn.00402d3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x473e68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x473f14
mov edx, 0x473f14
mov eax, dword [0x47e4d8]
call fcn.0046d110
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00411238
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473e6f
mov eax, dword [ebp - 0x10]
call fcn.00402d6c
ret
push 1
push dword [0x47eaa8]
push 0x473f24
lea edx, [ebp - 0x1c]
mov eax, dword [0x47dab8]
mov eax, dword [eax]
call fcn.00448a58
push dword [ebp - 0x1c]
push 0x473f30
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403db8
mov eax, dword [ebp - 0x18]
call fcn.00403ebc
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x244], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1da], 0
je 0x473ee5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1dc]
call dword [ebx + 0x1d8]
jmp 0x473eea
call fcn.0046d1a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473f0c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403a9c
ret

Function at 0x473fd8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x4740c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x47dab8]
mov eax, dword [eax]
call fcn.00448a58
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.004083f4
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040b158
lea eax, [ebp - 0x144]
mov edx, 0x4740d8
call fcn.00403d00
mov eax, dword [ebp - 0x144]
call fcn.00403ebc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4740a5
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403ca8
mov eax, dword [ebp - 0x150]
call fcn.0040835c
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x47406d
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4740ca
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00403a9c
ret
Function at 0x47a730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x14
call fcn.00402a84
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_ReadFileEx
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47a774
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
add esp, 0xffffffd4
mov dword [esp], edx
mov esi, 0x47a868
lea edi, [esp + 0x18]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov edx, 0x47a87c
lea eax, [esp + 0x18]
call fcn.004086b4
lea eax, [esp + 0x18]
call fcn.0047a894
mov esi, eax
push esi
mov esi, 0x47a884
lea edi, [esp + 0xc]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
xor ecx, ecx
mov edx, 0x10
lea eax, [esp + 8]
mov byte [eax], 0
inc eax
dec edx
jne 0x47a7c2
mov eax, dword [esp]
cmp eax, 0xa
ja case.0x47a7d1.0
jmp dword [eax*4 + 0x47a7d8]
or cl, 1
jmp case.0x47a7d1.0
or cl, 2
jmp case.0x47a7d1.0
or cl, 3
jmp case.0x47a7d1.0
or cl, 4
jmp case.0x47a7d1.0
or cl, 5
jmp case.0x47a7d1.0
or cl, 6
jmp case.0x47a7d1.0
or cl, 7
jmp case.0x47a7d1.0
or cl, 8
jmp case.0x47a7d1.0
or cl, 9
jmp case.0x47a7d1.0
or cl, 0x10
mov byte [esp + 0xb], cl
xor eax, eax
mov dword [esp + 4], eax
mov eax, 0x10
cmp esi, 0xffffffff
je 0x47a861
push 0
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
add esp, 0x2c
pop edi
pop esi
ret
Function at 0x402680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402699
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4026d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4026d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4026d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4026c0
cmp esi, eax
jb 0x4026da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40a070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x498550]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x44], ebx
call fcn.0040a1e0
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x40a0da
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043f84a
add esp, 4
mov edx, dword [esi + 0x14]
push edx
mov ecx, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esi], vtable.regex::basic_rpattern_base_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char____class_regex::perl_syntax_char__.0
call fcn.00417470
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x40dca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push eax
push 1
push ecx
push edi
call fcn.0045e6fd
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0xe], bl
mov dword [esi + 0x1c], eax
je 0x40ddf4
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x28], eax
call fcn.0040bdf0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0xf]
test ebx, ebx
je 0x40ddaa
xor edx, edx
sub ebx, 1
cmp byte [esp + 0xf], dl
je 0x40dd2c
cmp byte [edi], dl
jmp 0x40dd30
cmp word [edi], 0
sete dl
test edx, edx
je 0x40dd5c
test eax, eax
je 0x40dd53
cmp edi, eax
je 0x40dd53
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.0045d740
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
add ebp, 1
add edi, ecx
test ebx, ebx
jne 0x40dd1d
test eax, eax
je 0x40dd7f
cmp edi, eax
je 0x40dd7f
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.0045d740
add esp, 0xc
test ebp, ebp
je 0x40ddaa
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0040bdf0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x40dde7
test byte [esi + 4], 0x80
je 0x40dde7
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.0040cb00
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x24]
push eax
call fcn.0040bdf0
add esp, 0x18
mov al, byte [esp + 0xe]
pop edi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0040d7d0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x40e5e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
test ebp, ebp
push edi
mov dword [esi + 8], ecx
jne 0x40e5fc
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40e678
test edx, edx
jne 0x40e635
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043f845
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.004630c0
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40e654
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
sub eax, 1
rol cx, 8
test eax, eax
mov word [edx + eax*2], cx
jne 0x40e640
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0040bdf0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.0045e832
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40e69d
push edi
call fcn.0043f84a
add esp, 4
test bl, bl
je 0x40e6d5
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0040bdf0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0040d7d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x419580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477ad3
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x498550]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 8], edi
mov dword [edi], vtable.regex::detail::independent_group_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [esp + 0x14], 1
call fcn.00426c70
lea ecx, [edi + 0x30]
mov byte [esp + 0x14], 0
mov dword [ecx], method.regex::detail::sub_expr_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.virtual_0
call fcn.00419070
mov dword [esp + 0x14], 0xffffffff
mov dword [edi], vtable.regex::detail::match_group_base_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.0
cmp dword [edi + 0xc], 0
je 0x4195ef
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [edi + 0xc], ecx
jne 0x4195e2
mov ecx, edi
call fcn.00419070
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x4197b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477aa3
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x498550]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 8], edi
mov dword [edi], vtable.regex::detail::lookbehind_assertion_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [esp + 0x14], 1
call fcn.00426c70
lea ecx, [edi + 0x30]
mov byte [esp + 0x14], 0
mov dword [ecx], method.regex::detail::sub_expr_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.virtual_0
call fcn.00419070
mov dword [esp + 0x14], 0xffffffff
mov dword [edi], vtable.regex::detail::match_group_base_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char___.0
cmp dword [edi + 0xc], 0
je 0x41981f
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [edi + 0xc], ecx
jne 0x419812
mov ecx, edi
call fcn.00419070
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret