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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011e108
push 0x1011e100
push str.FlsAlloc
push 0x1f
call fcn.100fdfb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fe17d
push dword [ebp + 8]
mov ecx, esi
call dword [0x101142e8]
call esi
jmp 0x100fe183
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100fe1c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011e118
push 0x1011e110
push str.FlsGetValue
push 0x21
call fcn.100fdfb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fe1fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x101142e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100fe206
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011e120
push 0x1011e118
push str.FlsSetValue
push 0x22
call fcn.100fdfb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fe240
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101142e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x100fe2de
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1011dff4
push str.GetTempPath2W
push 5
call fcn.100fdfb4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fe318
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101142e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10100d1e
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 0x10100dbb
push ebx
push esi
call fcn.10100ce7
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.100ff0e9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10100d68
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10100dba
push edi
push eax
call fcn.100f87df
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10100d88
call fcn.100f882d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10100db9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ff0e9
add esp, 0x20
test eax, eax
jne 0x10100da7
push edi
call fcn.100f882d
jmp 0x10100daf
push ebx
call fcn.100f882d
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 0x10100dbe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10100dcf
pop esi
ret
push ebx
push edi
push esi
call fcn.10100ce7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100f87df
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10100df7
push ebx
push esi
push edi
call fcn.100cd5f0
add esp, 0xc
push 0
call fcn.100f882d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10101551
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010106c
Function at 0x10107f40
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100f8e6c
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 0x10107faf
cmp esi, dword [ebp - 4]
je 0x10107faa
cmp dword [ebp + 0xc], 0
je 0x10107faa
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10107f87
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10107a92
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10107fb1
xor eax, eax
inc eax
jmp 0x10107fb1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10108016
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1012f040]
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.100f8e6c
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.100f8e6c
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 0x1010808d
cmp word [ecx], dx
je 0x1010808d
mov eax, dword [0x1011eb54]
push edi
dec eax
push eax
push 0x1011ea40
call fcn.10107fb5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10108100
cmp word [eax], dx
je 0x10108100
mov eax, dword [edi]
test eax, eax
je 0x101080b1
cmp word [eax], dx
je 0x101080b1
lea eax, [ebp - 0x10]
push eax
call fcn.10107998
jmp 0x101080ba
lea eax, [ebp - 0x10]
push eax
call fcn.10107a33
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1010812a
mov eax, dword [0x1011ea3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1011e730
call fcn.10107fb5
add esp, 0xc
test al, al
je 0x1010812a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101080f5
cmp word [eax], di
je 0x101080f5
lea eax, [ebp - 0x10]
push eax
call fcn.10107998
pop ecx
jmp 0x1010812c
lea eax, [ebp - 0x10]
push eax
call fcn.10107a33
jmp 0x101080f2
mov eax, dword [edi]
test eax, eax
je 0x10108117
cmp word [eax], dx
je 0x10108117
lea eax, [ebp - 0x10]
push eax
call fcn.1010794d
pop ecx
jmp 0x1010812a
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 0x101081f5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10107e3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101081f5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101081f5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101081f5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10108182
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100fe424
test ebx, ebx
je 0x101081f0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100fe424
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101081f5
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 0x101081f5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10103cf1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101081f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fba4
leave
ret
Function at 0x1010acef
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.1010ac6b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1010ae5e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1010ae5e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1010ae13
jg 0x1010ad4b
test eax, eax
je 0x1010ae09
push 1
push 0x1000
call fcn.100fd3e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1010ad6e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1010ae00
push 0x8000
push ebx
call fcn.1010ab9c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010ad97
jg 0x1010ad92
cmp ecx, 0x1000
jb 0x1010ad97
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010254a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1010addc
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 0x1010ad92
jl 0x1010adc3
test ecx, ecx
jne 0x1010ad84
push dword [ebp - 0xc]
push ebx
call fcn.1010ab9c
push esi
call fcn.100f882d
add esp, 0xc
xor ebx, ebx
jmp 0x1010ae6c
cmp byte [edi + 0x24], 0
je 0x1010adf3
cmp dword [edi + 0x20], 5
jne 0x1010adf3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1010adfe
mov ebx, dword [edi + 0x18]
jmp 0x1010ae00
xor ebx, ebx
push esi
call fcn.100f882d
pop ecx
jmp 0x1010ae6c
test ecx, ecx
jg 0x1010add5
jl 0x1010ae13
test eax, eax
jae 0x1010add5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101031f4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010ae33
cmp byte [edi + 0x1c], 0
je 0x1010add5
jmp 0x1010ae64
push ebx
call fcn.10105e4e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1010add5
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 0x1010ae6c
cmp byte [edi + 0x1c], 0
je 0x1010ae69
mov ebx, dword [edi + 0x18]
jmp 0x1010ae6c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101031f4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010d560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010d58d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010d58d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e56a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40e591
xor eax, eax
jmp 0x40e5ac
test byte [ebp - 4], 0x10
je 0x40e5a5
mov eax, 1
jmp 0x40e5a7
xor eax, eax
jmp 0x40e5ac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424470
Capabilities:
Terminate process

Disassembly:
cmp dword [0x435748], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x42448e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x435744], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x435740], bl
jne 0x4244e8
cmp dword [0xe72da8], 0
je 0x4244d6
mov edi, dword [0xe72da4]
sub edi, 4
cmp edi, dword [0xe72da8]
jb 0x4244d6
mov eax, dword [edi]
test eax, eax
je 0x4244cb
call eax
sub edi, 4
cmp edi, dword [0xe72da8]
jae 0x4244c3
push 0x430030
push 0x430028
call fcn.00424520
add esp, 8
push 0x430038
push 0x430034
call fcn.00424520
add esp, 8
test ebx, ebx
jne 0x42450f
mov dword [0x435748], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x424570
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x42458f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4245a2
push eax
call fcn.0042b260
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4245b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4245ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4245dd
push eax
call fcn.0042b260
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x424a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x424af3
push ebx
call fcn.00424bb0
add esp, 4
test eax, eax
jne 0x424ac1
xor eax, eax
pop edi
mov dword [0x435704], 0xf
mov dword [0x435700], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x424b03
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x424ba2
inc eax
cmp eax, 0x104
ja 0x424ba2
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x424b54
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x424b2f
mov ecx, eax
push ecx
call fcn.00423d30
add esp, 4
mov edx, eax
test edx, edx
jne 0x424b73
xor eax, eax
pop edi
mov dword [0x435700], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x424b73
xor eax, eax
pop edi
mov dword [0x435700], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x424bb0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x424bc4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x424bf6
cmp eax, 1
je 0x424bf6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x424c00
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x424c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x424c2f
push eax
call fcn.0042b260
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x425820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x435bf8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x425847
add eax, 8
inc ecx
cmp eax, 0x435c88
jb 0x425838
cmp dword [ecx*8 + 0x435bf8], edx
lea ebx, [ecx*8]
jne 0x425a0b
cmp dword [0x4356ec], 1
je 0x4259c7
cmp dword [0x4356ec], 0
jne 0x42587e
cmp dword [0x4356f0], 1
je 0x4259c7
cmp edx, 0xfc
je 0x425a0b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4258bb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4258ff
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x42f3a0
push ebp
call fcn.00423810
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f380
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x435bfc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0042b780
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0xe71c90], 0
je 0x4259dd
mov eax, dword [0xe71c90]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4259e7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x435bfc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x425e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x425e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042b260
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x425e4a
test byte [esp + 8], 2
je 0x425e4a
mov dword [0x435700], 0xd
mov dword [0x435704], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x425f20
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0xe71d90], edx
push ebx
push esi
push edi
push ebp
jbe 0x426127
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0xe71c90
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x426127
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x425f89
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x425f9a
push 2
push 0
push edx
call fcn.00425a20
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x426036
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42606f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x425ffd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x425feb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x425fd2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426065
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x425fbd
jmp 0x42606f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426065
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x42606f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x426116
cmp dword [esp + 0x10], 0
je 0x4260c8
cmp dword [esp + 0x10], 5
jne 0x4260ab
mov dword [0x435700], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x435704], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0042b260
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4260f2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4260f2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x435700], 0x1c
mov dword [0x435704], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x435700], 9
mov dword [0x435704], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x426820
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00423ba0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0xe71d90], esi
jbe 0x42696d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0xe71c90]
test byte [edx + ecx*8 + 4], 1
je 0x42696d
push 1
push ebx
push esi
call fcn.00425a20
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x42695d
push 2
push ebx
push esi
call fcn.00425a20
add esp, 0xc
cmp eax, 0xffffffff
je 0x42695d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x426903
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00426340
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x4268c6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00425f20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4268e2
sub ebp, eax
test ebp, ebp
jg 0x4268bb
jmp 0x4268f7
cmp dword [0x435704], 5
jne 0x4268f5
mov dword [0x435700], 0xd
mov ebx, eax
push edi
push esi
call fcn.00426340
add esp, 8
jmp 0x426940
jge 0x426940
push 0
push ecx
push esi
call fcn.00425a20
add esp, 0xc
push esi
call fcn.00425db0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x426940
mov dword [0x435700], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x435704], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00425a20
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x435700], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret