joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
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.004032f4
and dword [ebp - 4], 0
cmp dword [0x4290dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4290dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4290e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4290e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290e8], eax
mov eax, dword [0x4290e8]
cmp eax, ebx
je 0x406664
cmp dword [0x4290ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x4290ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x4290e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x4290e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4290dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420d55
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x437044]
push dword [0x436d60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x420de4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x420e0e
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00420dd9
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x420df1
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x420e26
or dword [0x437054], 0xffffffff
mov dword [0x437050], 0xa62e7790
leave
ret
Function at 0x410600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040fd39
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040fcee
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040fd39
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040fcee
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040fd29
pop eax
invalid
Function at 0x40f610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ecx + 0x24]
push esi
mov esi, dword [ecx + 0x20]
cmp esi, ebx
je 0x40f66f
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x68], eax
jne 0x40f667
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x40f636
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f664
test al, 0x10
jne 0x40f664
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
je 0x40f65c
mov ecx, eax
call fcn.0040ed40
add dword [edi + 4], 0x68
jmp 0x40f664
push eax
mov ecx, edi
call fcn.00414bc0
mov eax, dword [ebp + 8]
add esi, 0x70
cmp esi, ebx
jne 0x40f626
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0x24]
push esi
movups xmm0, xmmword [eax]
push edi
mov edi, dword [ecx + 0x20]
movups xmmword [ebp - 0x14], xmm0
cmp edi, ebx
je 0x40f70f
nop dword [eax]
mov edx, edi
lea eax, [ebp - 0x14]
mov esi, 0xc
nop word [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40f708
add edx, 4
add eax, 4
sub esi, 4
jae 0x40f6c0
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x40f6dc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f70f
shr eax, 3
and eax, 2
jne 0x40f714
mov ecx, dword [ebp - 0x18]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 8
add edi, 0x70
cmp edi, ebx
jne 0x40f6b0
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 8
Function at 0x40f730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
cmp edi, ebx
je 0x40f7ae
mov edx, edi
lea eax, [ebp - 0x18]
mov esi, 0xc
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40f7a7
add edx, 4
add eax, 4
sub esi, 4
jae 0x40f770
mov ecx, dword [edi + 0x68]
cmp ecx, dword [ebp + 0xc]
jne 0x40f7ce
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x40f794
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f7c6
mov eax, 1
jmp 0x40f7dd
add edi, 0x70
cmp edi, ebx
jne 0x40f762
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 0xc
shr eax, 3
and eax, 2
jmp 0x40f7dd
mov eax, 1
mov edx, 4
cmp ecx, eax
cmove eax, edx
test eax, eax
jne 0x40f7b3
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x1c], 1
mov ecx, dword [ebp - 0x20]
mov dword [ecx], edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4106b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd25
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4106f0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4107f3
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x41070f
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00419fa0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0xf4]
mov esi, eax
call fcn.004064e0
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x5c], str..._.._client_crash_report_database_win.cc
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x249
mov dword [ebp - 0x50], 2
call fcn.0041b720
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xf4]
mov edx, str.GetFileAttributes
mov dword [ebp - 0x44], 3
call fcn.00405b50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4107a0
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004082b0
add esp, 4
lea ecx, [ebp - 0xf4]
call fcn.0041bc20
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4107ec
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4107e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108e8
push edx
push ecx
call fcn.00457f09
add esp, 8
xor al, al
jmp 0x4108cd
test al, 0x10
jne 0x4108cb
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x41080a
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00419fa0
mov esi, eax
add esp, 4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x44], 4
call fcn.004064e0
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x104], str..._.._client_crash_report_database_win.cc
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0x24d
mov dword [ebp - 0xf8], 2
call fcn.0041b720
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x19c]
mov edx, str.GetFileAttributes
mov dword [ebp - 0x44], 0xc
call fcn.00405b50
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x41089b
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004082b0
add esp, 4
mov edx, str.:_not_a_directory
mov ecx, eax
call fcn.00405b50
lea ecx, [ebp - 0x19c]
call fcn.0041b540
lea ecx, [ebp - 0x40]
call fcn.004015f0
xor al, al
jmp 0x4108cd
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret
call fcn.00461509
int3
Function at 0x4108f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd95
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x410930
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x410944
mov al, 1
jmp 0x410a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410a19
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x410964
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00419fa0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.004064e0
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x44], str..._.._client_crash_report_database_win.cc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x25e
mov dword [ebp - 0x38], 2
call fcn.0041b720
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xdc]
mov edx, str.CreateDirectory
mov dword [ebp - 0x2c], 3
call fcn.00405b50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4109f5
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004082b0
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.0041bc20
lea ecx, [ebp - 0x28]
call fcn.004015f0
xor al, al
jmp 0x410a20
mov ecx, esi
call fcn.004106b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret
Function at 0x416060
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e95f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.004181a0
push dword [ebp + 0xc]
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 1
mov dword [ebp + 8], ecx
call fcn.004181a0
push dword [ebp + 0x10]
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
mov dword [ebp + 8], ecx
call fcn.004181a0
push dword [ebp + 0x14]
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 3
call fcn.00405320
mov byte [ebp - 4], 4
lea esi, [edi + 0x60]
mov dword [ebp + 8], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00457ed9
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 5
mov ecx, esi
push dword [ebp + 8]
push dword [ebp + 0x18]
call fcn.0040bf90
push dword [ebp + 0x1c]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 6
call fcn.00404830
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 7
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp esi, ebx
je 0x4161a1
mov eax, ebx
sub eax, esi
sar eax, 3
imul edi, eax, 0xaaaaaaab
push edi
call fcn.00401800
mov edx, dword [ebp - 0x10]
lea ecx, [edi + edi*2]
add edx, 0x74
mov dword [ebp + 8], edx
mov dword [edx], eax
mov dword [edx + 4], eax
lea eax, [eax + ecx*8]
mov dword [edx + 8], eax
mov edi, dword [edx]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 9
push esi
mov ecx, edi
call fcn.004181a0
add edi, 0x18
add esi, 0x18
mov dword [ebp - 0x18], edi
cmp esi, ebx
jne 0x416184
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], edi
mov edi, ecx
push dword [ebp + 0x24]
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 0xa
call fcn.004181a0
mov eax, dword [ebp + 0x28]
mov dword [edi + 0x98], 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 0x24
Function at 0x417d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ecf8
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
mov eax, dword [0x4a7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov cx, ax
shr cx, 8
movzx ecx, cx
cmp al, 6
jb 0x417e7e
jne 0x417dd3
cmp ecx, 1
jbe 0x417e7e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4aa618]
cmp eax, dword [ecx + 4]
jg 0x417eb2
push 0x10000000
push 0
push 0x4aa55c
call dword [0x4aa61c]
test eax, eax
jne 0x417e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0xc0]
mov esi, eax
call fcn.004064e0
mov dword [ebp - 4], 6
push ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x28], str..._.._util_win_critical_section_with_debug_info.cc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x21
mov dword [ebp - 0x1c], 2
call fcn.0041b720
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xc0]
mov edx, 0x497b00
mov dword [ebp - 0x10], 1
call fcn.00405b50
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041bc20
jmp 0x417e89
push 0x4aa55c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
call fcn.00457ed9
add esp, 4
mov dword [ebp - 0x10], eax
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x4aa618
call fcn.004582c1
add esp, 4
cmp dword [0x4aa618], 0xffffffff
jne 0x417dec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x417ee9
push 0x497ae2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x417ee9
push 0x4aa618
mov dword [0x4aa61c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00458277
add esp, 4
jmp 0x417dec
Function at 0x4195c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47efdc
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
mov eax, dword [0x4a7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x10], 0
call fcn.004250a0
add esp, 8
or eax, edx
jne 0x41969b
push eax
push eax
xor edx, edx
mov ecx, esi
call fcn.004250a0
add esp, 8
or eax, edx
jne 0x41969b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4196af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0xc0]
mov esi, eax
call fcn.004064e0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x28], str..._.._util_file_file_io_win.cc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf4
mov dword [ebp - 0x1c], 2
call fcn.0041b720
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc0]
mov edx, 0x496a28
mov dword [ebp - 0x10], 1
call fcn.00405b50
lea ecx, [ebp - 0xc0]
call fcn.0041bc20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov ecx, esi
push 0x28
call fcn.004262a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41b540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a7018]
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, ecx
push esi
call fcn.0041c040
add esp, 4
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00406400
mov eax, dword [0x4aa53c]
test eax, eax
je 0x41b5bc
lea ecx, [ebp - 0x40]
push ecx
push dword [esi + 0x9c]
push dword [esi + 0xa0]
push dword [esi + 0x98]
push dword [esi + 0xa4]
call eax
add esp, 0x14
test al, al
je 0x41b5bc
lea ecx, [ebp - 0x40]
call fcn.004015f0
jmp 0x41b6ed
mov eax, dword [0x4a7aa8]
test al, 4
je 0x41b601
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x495efc
push 2
call fcn.0045c560
add esp, 4
push eax
call fcn.004010b0
add esp, 0xc
push 2
call fcn.0045c560
add esp, 4
push eax
call fcn.00462d14
mov eax, dword [0x4a7aa8]
add esp, 4
test al, 2
je 0x41b6b1
cmp dword [ebp - 0x2c], 0x10
lea ebx, [ebp - 0x40]
mov edi, dword [ebp - 0x30]
cmovae ebx, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
test edi, edi
je 0x41b645
cmp byte [ebx], 0x80
lea ecx, [ebp - 0x28]
jae 0x41b63b
push edi
jmp 0x41b640
mov eax, edi
shr eax, 1
push eax
call fcn.0041c730
lea eax, [ebp - 0x28]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0041a0c0
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41b69d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b693
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b710
push edx
push ecx
call fcn.00457f09
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [esi + 0xa4], 4
jne 0x41b6bd
int3
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x41b6ed
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b6e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b715
push edx
push ecx
call fcn.00457f09
add esp, 8
mov ecx, esi
call fcn.00405550
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.00457ec6
mov esp, ebp
pop ebp
ret
call fcn.00461509
call fcn.00461509
int3
Function at 0x424ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480ac0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push esi
mov eax, dword [0x4a7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov esi, 0x7fffffff
push eax
mov eax, dword [ebp + 8]
cmp eax, esi
cmova eax, esi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x424bfc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 0xffffffff
mov dword [ebp + 8], 0xffffffff
jne 0x424c3f
push str.bytes_written___static_cast_DWORD___1_
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00408560
add esp, 4
test eax, eax
je 0x424c3f
push eax
push 0x65
push str..._.._util_file_file_io_win.cc
push ecx
lea ecx, [ebp - 0xb8]
call fcn.0041b440
lea ecx, [ebp - 0xb8]
call fcn.0041b540
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7fffffff
mov eax, edx
cmp edi, ecx
mov dword [ebp - 8], eax
push 0
cmova edi, ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424d03
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x424caa
xor eax, eax
jmp 0x424cbd
push str.bytes_read___static_cast_DWORD___1_
lea edx, [ebp - 4]
lea ecx, [ebp + 8]
call fcn.00408560
add esp, 4
test eax, eax
je 0x424ce0
push eax
push 0x7e
push str..._.._util_file_file_io_win.cc
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0041b440
lea ecx, [ebp - 0xb0]
call fcn.0041b540
cmp dword [ebp + 8], 0
jne 0x424d17
push esi
call ebx
cmp eax, 3
jne 0x424d17
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret