joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435af0
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.004ae4c0
cmp dword [0x6baa2c], 0
jne 0x435b99
push esi
push str.OPENSSL_ia32cap
mov dword [0x6baa2c], 1
call sub.MSVCR90.dll_getenv
add esp, 4
test eax, eax
je 0x435b83
xor ecx, ecx
cmp byte [eax], 0x7e
push edi
sete cl
lea edx, [esp + 8]
push edx
push str._I64i
mov edi, ecx
lea esi, [edi + eax]
push esi
call sub.MSVCR90.dll_sscanf
add esp, 0xc
test eax, eax
jne 0x435b5f
push eax
push eax
push esi
call sub.MSVCR90.dll_strtoul
add esp, 0xc
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x435b67
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edi, edi
pop edi
je 0x435b88
call fcn.00443400
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
not ecx
not esi
and eax, ecx
and edx, esi
jmp 0x435b88
call fcn.00443400
or eax, 0x400
mov dword [0x6bef98], eax
mov dword [0x6bef9c], edx
pop esi
add esp, 8
ret

Function at 0x435ce0
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.004ae4c0
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x435d45
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x435d45
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR90.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR90.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adf6a
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x435dd4
call fcn.00435ba0
test eax, eax
jle 0x435dd4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adf6a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adf6a
add esp, 0x108
ret

Function at 0x435e30
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x435e54
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x435e46
pop esi
movzx eax, cl
pop edi
ret
Function at 0x446b80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004ae4c0
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x446bcf
mov eax, 1
mov dword [esi], ebp
jmp 0x446bd1
mov ebp, dword [esi]
test ecx, ecx
je 0x446cb4
push ebp
call fcn.004429b0
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x446c00
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.00435e00
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x446c57
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.0043b6d0
add esp, 0xc
test eax, eax
je 0x446d56
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.0043b880
add esp, 0xc
test eax, eax
je 0x446d56
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0043b890
add esp, 0xc
test eax, eax
je 0x446d56
jmp 0x446c91
cmp edi, 0x80
jbe 0x446c73
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.00435e00
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x446cbc
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x446cbc
test eax, eax
je 0x446d42
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x446cc0
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.0043b6d0
add esp, 0xc
test eax, eax
je 0x446d56
push ebp
call fcn.004429b0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0043b880
add esp, 0x10
test eax, eax
je 0x446d56
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x446d04
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.0043b6d0
add esp, 0xc
test eax, eax
je 0x446d56
push ebp
call fcn.004429b0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0043b880
add esp, 0x10
test eax, eax
je 0x446d56
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.0043ba20
add esp, 8
test eax, eax
jne 0x446d5a
xor eax, eax
jmp 0x446d5f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004adf6a
add esp, 0x8c
ret
Function at 0x4921e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4921f9
mov esi, edi
mov edi, eax
jmp 0x4921fb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x49220b
mov eax, ebx
jmp 0x492215
push eax
push ebx
call fcn.0043c8d0
add esp, 8
test eax, eax
jne 0x49221d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x492239
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x492224
cmp eax, dword [esi + 4]
jge 0x492250
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x492240
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x492271
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x49226e
dec eax
test eax, eax
jg 0x492260
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x49a987
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.004ae4c0
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x49aaf4
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.00470f00
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00470f80
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0046f600
push ebp
call fcn.00470f00
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00470f80
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0046f600
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x49a9a3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004adf6a
add esp, 0xa0
ret

Function at 0x4adf6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6a7c78]
jne 0x4adf74
repz ret
jmp fcn.004ae732
Function at 0x4d63d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce1ac
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x12c]
call fcn.004cc6d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004cf9c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004d0900
lea ecx, [ebp - 0x1c4]
call fcn.0050da40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.0050dac0
movzx ecx, al
test ecx, ecx
je 0x4d6495
lea ecx, [ebp - 0x12c]
call fcn.004ce030
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne dl
mov byte [ebp - 0x405], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050daa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov al, byte [ebp - 0x405]
jmp 0x4d6668
lea ecx, [ebp - 0x12c]
call fcn.004cc880
cmp eax, 0x104
jle 0x4d659b
lea ecx, [ebp - 0x2dc]
call fcn.004cc6d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004d60d0
add esp, 8
lea ecx, [ebp - 0x3fc]
call fcn.004cc6d0
mov byte [ebp - 4], 3
push 0x64eeb4
lea ecx, [ebp - 0x3fc]
call fcn.004cf2e0
lea ecx, [ebp - 0x2dc]
call fcn.004cf520
push eax
lea ecx, [ebp - 0x3fc]
call fcn.004cf2e0
lea ecx, [ebp - 0x3fc]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x4d653c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4d653c
mov dword [ebp - 0x2e0], 1
cmp dword [ebp - 0x2e0], 0
setne dl
mov byte [ebp - 0x406], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3fc]
call fcn.004cc790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2dc]
call fcn.004cc790
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050daa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov al, byte [ebp - 0x406]
jmp 0x4d6668
lea ecx, [ebp - 0x12c]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x4d660e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x404], eax
cmp dword [ebp + 0xc], 0
je 0x4d65fb
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.005056e0
lea ecx, [ebp - 0x12c]
call fcn.004cf520
push eax
push str.failedToDeleteFilepath
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x404], 2
jne 0x4d660e
mov dword [ebp - 0x400], 1
cmp dword [ebp - 0x400], 0
setne cl
mov byte [ebp - 0x407], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050daa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov al, byte [ebp - 0x407]
jmp 0x4d6668
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret
Function at 0x4d7690
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce311
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004d0140
movzx edx, al
test edx, edx
je 0x4d76fb
cmp dword [ebp + 0x14], 0
je 0x4d76f4
push str.GetAttributes:_filename_is_empty
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x4d7864
lea ecx, [ebp - 0x12c]
call fcn.004cc6d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004cf9c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004d0900
lea ecx, [ebp - 0x12c]
call fcn.004cc880
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x1c4]
call fcn.0050da40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c8], 0x104
jge 0x4d77ac
lea ecx, [ebp - 0x12c]
call fcn.004ce000
movzx edx, al
test edx, edx
jne 0x4d777b
lea ecx, [ebp - 0x1c4]
call fcn.0050dac0
movzx eax, al
test eax, eax
je 0x4d77ac
lea ecx, [ebp - 0x12c]
call fcn.004ce030
push eax
call fcn.004d8140
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x4d77a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4d782c
cmp dword [ebp - 0x1c8], 0
jle 0x4d7802
lea ecx, [ebp - 0x2e4]
call fcn.004cc6d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.004d6290
add esp, 8
lea ecx, [ebp - 0x2e4]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e4]
call fcn.004cc790
jmp 0x4d7819
lea ecx, [ebp - 0x12c]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x4d782c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [edx], 0xffffffff
setne al
mov byte [ebp - 0x2e5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050daa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret
Function at 0x4d7a30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce311
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x12c]
call fcn.004cc6d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004cf9c0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x12c]
call fcn.004d0900
push 0
push 1
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004d6690
add esp, 0xc
lea ecx, [ebp - 0x1c4]
call fcn.0050da40
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c8], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050dac0
movzx edx, al
test edx, edx
je 0x4d7aec
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004ce030
push eax
call fcn.004d8120
add esp, 8
movzx ecx, al
mov dword [ebp - 0x1c8], ecx
jmp 0x4d7b69
lea ecx, [ebp - 0x12c]
call fcn.004cc880
test eax, eax
jle 0x4d7b4d
lea ecx, [ebp - 0x2e4]
call fcn.004cc6d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.004d6290
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e4]
call fcn.004cc790
jmp 0x4d7b69
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x12c]
call fcn.004cd200
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
setne al
mov byte [ebp - 0x2e5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.0050daa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret

Function at 0x4d8120
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret
Function at 0x504710
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d013b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004d17f0
movzx eax, byte [0x6bc7f9]
test eax, eax
jne 0x5047a8
push 0x200
push 0
push 0x6bc440
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x100
lea ecx, [ebp - 0x134]
push ecx
push 0x6bc440
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x5047a1
push 0xa
push 0x6575d8
push 0x6bc440
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [0x6bc7f9], 1
lea ecx, [ebp - 0x12c]
call fcn.004cc6d0
mov dword [ebp - 4], 0
push 0x6bc440
lea ecx, [ebp - 0x12c]
call fcn.004ceb50
lea ecx, [ebp - 0x12c]
call fcn.004cf520
push eax
mov ecx, dword [ebp + 8]
call fcn.004d3090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004cc790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret
Function at 0x505ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0xc], 0
je 0x505ee4
cmp dword [ebp + 8], 0
jne 0x505f03
cmp dword [ebp + 0x18], 0
je 0x505efc
push str.NULL_buf_or_bufSize
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x505ffd
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x505f79
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x505f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x505f49
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x505ffd
cmp dword [ebp + 0x18], 0
je 0x505f5b
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.005056e0
xor al, al
jmp 0x505ffd
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x505f72
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x505ffd
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x505fe3
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR90.dll_fread
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x505fb0
mov al, 1
jmp 0x505ffd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call sub.MSVCR90.dll_ferror
add esp, 4
test eax, eax
je 0x505fd7
cmp dword [ebp + 0x18], 0
je 0x505fd1
mov ecx, dword [ebp + 0x18]
call fcn.00505610
xor al, al
jmp 0x505ffd
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x505ffd
cmp dword [ebp + 0x18], 0
je 0x505ffb
push str.No_file_is_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x506010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00505920
movzx eax, al
test eax, eax
jne 0x506047
cmp dword [ebp + 0x18], 0
je 0x506040
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5061a0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x506063
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 8], 0x989680
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x50619e
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x50609b
jg 0x506093
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jbe 0x50609b
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x5060a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x506115
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5060dd
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
je 0x506113
cmp dword [ebp + 0x18], 0
je 0x50610c
push 1
push str.WriteFileError
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [ebp + 0x18]
call fcn.00505610
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x5061a0
jmp 0x50615e
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x50615e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCR90.dll_fwrite
add esp, 0x10
cmp eax, 1
je 0x506158
cmp dword [ebp + 0x18], 0
je 0x506154
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5061a0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x506199
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x50606a
mov al, 1
mov esp, ebp
pop ebp
ret 0x14