joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f254
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test byte [edx + 0x10], 0x10
push ebx
push esi
mov ebx, ecx
jne 0x43f264
mov edx, dword [edx + 0x80]
mov esi, dword [edx + 0x80]
test esi, esi
jne 0x43f272
xor eax, eax
jmp 0x43f2bc
push edi
call fcn.00438062
mov edi, eax
test edi, edi
jne 0x43f282
push 2
jmp 0x43f2a4
mov edx, esi
mov ecx, ebx
call fcn.0043f254
test eax, eax
js 0x43f2bb
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43f2ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
jmp 0x43f2bb
test eax, 0x400
je 0x43f2b9
push 0x2e5
jmp 0x43f2a4
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x43f9fc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edi
mov esi, edi
mov ebx, edi
test ecx, 0x20000
jne 0x43fb1a
push 0x475bc4
push edi
mov edx, 0x43f9b0
mov ecx, 0x43f950
call fcn.0043f794
mov esi, eax
test esi, esi
jns 0x43fa4c
push esi
push 0x60
mov ecx, 0x4081bc
call fcn.0043f87d
jmp 0x43fb1a
push dword [0x475bc8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43fa86
push 2
call dword [sym.imp.ntdll.dll_RtlImpersonateSelf]
mov ebx, eax
test ebx, ebx
jns 0x43fa7f
mov esi, ebx
or esi, 0x10000000
jge 0x43fb1a
push esi
push 0x72
jmp 0x43fafc
mov dword [ebp - 8], 1
lea eax, [esi + 1]
push eax
push dword [0x475bc8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43faa6
call fcn.0043f9bf
mov esi, eax
mov dword [ebp - 4], esi
jmp 0x43faab
mov esi, edi
mov dword [ebp - 4], edi
test esi, esi
jns 0x43fabe
push esi
push 0x7b
mov ecx, 0x4081bc
call fcn.0043f87d
jmp 0x43fb0a
test ebx, ebx
js 0x43faec
mov esi, dword [ebp - 0xc]
cmp edi, dword [ebp + 8]
jae 0x43fae5
lea eax, [esi + 4]
lea eax, [eax + edi*8]
push eax
push 1
push 1
push dword [esi + edi*8]
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
inc edi
test ebx, ebx
jns 0x43fac5
mov esi, dword [ebp - 4]
test ebx, ebx
jns 0x43fb06
mov esi, ebx
or esi, 0x10000000
jge 0x43fb1a
push esi
push 0x8b
mov ecx, 0x4081bc
call fcn.0043f87d
test esi, esi
jns 0x43fb1a
cmp dword [ebp - 8], 0
je 0x43fb1a
mov ecx, dword [ebp - 0xc]
mov edx, edi
call fcn.0043fb23
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x43fb23
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push dword [0x475bc8]
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test ebx, ebx
je 0x43fb5c
add edi, 4
cmp byte [edi], 0
jne 0x43fb54
push edi
push 0
push 0
push dword [edi - 4]
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
add edi, 8
sub ebx, 1
jne 0x43fb41
dec esi
push esi
push dword [0x475bc8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43fb73
call fcn.0043f9bf
pop edi
test esi, esi
pop esi
pop ebx
jne 0x43fb80
jmp dword [sym.imp.ADVAPI32.dll_RevertToSelf]
ret
Function at 0x4404fe
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 8], 0xffffffff
mov eax, ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push edi
test eax, eax
je 0x4405d5
test edx, edx
jne 0x440532
cmp dword [ebp + 0xc], esi
je 0x4405d5
cmp dword [ebp + 0x14], esi
je 0x4405d5
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
je 0x440551
call fcn.0042a8ae
mov edi, eax
mov eax, dword [ebp - 0xc]
jmp 0x44055b
test ebx, ebx
je 0x44056c
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
test ecx, ecx
jne 0x440569
test ebx, ebx
je 0x44056c
lea esi, [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push esi
push ecx
push 0x4a200000
push dword [ebp + 0x18]
mov ecx, eax
call fcn.00432870
mov esi, dword [ebp - 8]
mov edi, eax
test edi, edi
je 0x4405b8
push dword [ebp + 0x20]
mov edx, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044047e
mov edi, eax
test edi, edi
je 0x4405b8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4405b8
mov dword [eax], esi
jmp 0x4405d1
cmp esi, 0xffffffff
je 0x4405d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4405d1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x4405df
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x440f64
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x3c
push 0x4745b8
call fcn.00472398
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], ecx
mov esi, 0x80004005
mov dword [ebp - 0x28], esi
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
test ecx, ecx
je 0x4411aa
cmp edx, 0xffffffff
je 0x4411aa
lea eax, [ebp - 0x4c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x441040
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x440fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
jns 0x440fe4
push esi
push 0xe2
mov ecx, 0x408428
call fcn.0043f87d
mov eax, edi
test eax, eax
je 0x440ff1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x440fff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x4411d2
test ebx, ebx
je 0x441014
mov ecx, ebx
call fcn.00438558
mov ebx, edi
test esi, 0x10000000
je 0x4411ba
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x4411cb
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x4411cb
cmp dword [ebp - 0x48], ebx
je 0x44105a
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
jns 0x440fe4
push esi
push 0xea
jmp 0x440fda
push edi
push dword [ebp - 0x4c]
push edi
push 2
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4410a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x441093
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
jns 0x440fe4
push esi
push 0xf6
jmp 0x440fda
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4410f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x4410d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
jns 0x4410eb
push esi
push 0x101
mov ecx, 0x408428
call fcn.0043f87d
mov eax, dword [ebp - 0x20]
jmp 0x440fe6
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
push ecx
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
mov edx, eax
mov ecx, dword [ebp - 0x34]
call fcn.00440e3c
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jns 0x441124
push esi
push 0x10a
mov ecx, 0x408428
call fcn.0043f87d
mov dword [ebp - 4], 0xfffffffe
mov ebx, dword [ebp - 0x2c]
jmp 0x4410eb
mov esi, 0x80070057
push esi
push 0xda
jmp 0x440fda
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x4411cb
movzx esi, si
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x442a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x638], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x634], edx
push 0x618
push eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x62c], esi
call sub.msvcrt.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x61c]
mov edx, ebx
push eax
mov ecx, esi
call fcn.0043d9c7
test eax, eax
je 0x442a8e
lea ebx, [ebp - 0x61c]
mov dword [ebp - 0x630], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x442aa1
mov ecx, ebx
call fcn.0043e3cc
push 0
push 0
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x442c1b
movzx eax, word [ebp - 0x624]
add eax, 0x10
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x628], edi
test edi, edi
je 0x442bac
movzx ecx, word [ebp - 0x624]
push ecx
push dword [ebp - 0x620]
lea ecx, [edi + 0xc]
push ecx
call sub.msvcrt.dll_memmove
and dword [edi + 4], 0
add esp, 8
mov edx, dword [ebp - 0x638]
mov ecx, esi
mov byte [edi], 0
movzx eax, word [ebp - 0x624]
mov dword [edi + 8], eax
movzx eax, word [ebp - 0x624]
add eax, 0x10
push eax
push edi
call fcn.0043f1e2
mov esi, eax
test esi, esi
jns 0x442b9a
mov ebx, dword [ebp - 0x62c]
mov edi, 0x4087a4
push 0x22c
push edi
push esi
push 0x4087c4
push dword [ebp - 0x634]
push ebx
push 1
call fcn.00434d80
cmp dword [ebp - 0x630], 0
je 0x442b94
push 0x11
call fcn.00411710
cmp esi, eax
je 0x442b78
cmp esi, 0xc00000d4
je 0x442b78
cmp esi, 0xd00000d4
jne 0x442b94
push 0x232
push edi
xor esi, esi
push esi
push 0x4087f8
push dword [ebp - 0x634]
push ebx
push 2
call fcn.00434d80
mov edi, dword [ebp - 0x628]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x442c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x442bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
jmp 0x442bd1
mov esi, 0x80004005
mov edi, 0x4087a4
test esi, esi
jns 0x442be7
push esi
push 0x23c
mov ecx, edi
call fcn.0043f87d
push 0x23d
push edi
push esi
push 0x406a88
push ebx
mov ebx, dword [ebp - 0x62c]
push ebx
push 1
call fcn.00434d80
push dword [ebp - 0x620]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x442c55
push 3
call fcn.00411710
mov esi, eax
mov edi, 0x4087a4
test esi, esi
jns 0x442c3a
push esi
push 0x246
mov ecx, edi
call fcn.0043f87d
push 0x247
push edi
push esi
push 0x407e90
push ebx
mov ebx, dword [ebp - 0x62c]
push ebx
push 1
call fcn.00434d80
test esi, esi
js 0x442c5d
xor eax, eax
jmp 0x442c5f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 8
Function at 0x44353c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebx + 0x4c]
mov edi, edx
mov dword [ebp - 0xc], edi
mov esi, ecx
test ebx, ebx
je 0x443714
mov dword [ebp - 8], ecx
xor edx, edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.0042fd2c
test dword [ebp - 8], 0x40000
je 0x443714
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x443701
mov eax, dword [ebx]
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
cmp word [eax], cx
je 0x44361a
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push 0x408b30
push eax
call fcn.00423f05
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x4435d0
push esi
push 0x503
mov ecx, 0x408b3c
call fcn.0043f87d
xor eax, eax
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
test esi, esi
js 0x4436cb
test edi, edi
je 0x443670
push 0
xor edx, edx
mov ecx, edi
call fcn.0042f3fd
mov dword [ebp - 8], eax
test eax, eax
jne 0x443673
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x443657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
jmp 0x44365c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4435d8
cmp dword [eax], 0xffffffff
je 0x4435d8
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push 0x408b5c
push eax
call fcn.00423f05
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x443652
push esi
push 0x50c
mov ecx, 0x408b3c
call fcn.0043f87d
jmp 0x4435d5
mov edi, dword [ebp - 4]
jmp 0x4435e0
mov esi, 0x80004005
test esi, esi
jns 0x4436cb
push esi
push 0x519
mov ecx, 0x408b3c
call fcn.0043f87d
mov eax, dword [ebp - 8]
test esi, esi
js 0x4436cb
test eax, eax
je 0x4436cb
mov ecx, dword [ebp - 0x10]
lea edx, [ebx + 0x10]
push 0
push dword [ebp + 0xc]
push 0
push eax
call fcn.004406a1
test eax, eax
jne 0x4436cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x4436b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
jmp 0x4436b7
mov esi, 0x80004005
test esi, esi
jns 0x4436cb
push esi
push 0x52a
mov ecx, 0x408b3c
call fcn.0043f87d
test edi, edi
je 0x4436df
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4436f6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebx + 0x24]
test esi, esi
jns 0x44358c
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
jmp 0x443716
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x444a5f
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x18], 0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], edx
push esi
mov esi, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
je 0x444a87
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
mov eax, edi
mov ecx, dword [ebp + 0x18]
or eax, ecx
mov dword [ebp - 0xc], ecx
je 0x444bc3
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
test esi, esi
je 0x444ac4
lea ecx, [ebp - 0x14]
call fcn.0043cfdb
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov edx, dword [ebp + 0x1c]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
mov eax, edi
or eax, ecx
je 0x444ba7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x444adf
cmp eax, edi
jbe 0x444adf
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 8]
mov eax, edx
or eax, ecx
je 0x444b26
push 0
push 0xa00000
push ecx
push edx
call fcn.00473100
test eax, eax
jne 0x444b20
test edx, edx
jne 0x444b20
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push edx
mov edx, 0x948e
call fcn.00429ea7
cmp eax, 0xffffffff
jne 0x444b20
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
test ebx, ebx
je 0x444b8e
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
and dword [ebp - 0x30], 0
and dword [ebp - 0x24], 0
push 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0042a5c1
test eax, eax
je 0x444b8e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add edx, eax
mov ecx, dword [ebp - 0xc]
adc dword [ebp - 8], 0
sub edi, eax
mov dword [ebp - 4], edx
sbb ecx, 0
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x444b9f
push 0
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x444b99
push 7
pop ecx
int 0x29
jmp 0x444b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
test ebx, ebx
jne 0x444ac4
test esi, esi
je 0x444bb5
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.0043cf40
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x444bc3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x444dcc
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4753b8], esi
jne 0x444de7
inc esi
jmp 0x444e71
test ecx, ecx
je 0x444e68
cmp ecx, 0xffffffff
je 0x444e68
cmp edx, 3
jae 0x444e68
xor ebx, ebx
mov dword [ebp - 8], esi
inc ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push 2
pop edi
cmp edx, ebx
jne 0x444e10
mov dword [ebp - 8], ebx
jmp 0x444e17
cmp edx, edi
jne 0x444e71
mov dword [ebp - 8], edi
push 0x43
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x444e71
cmp eax, 0xc000000d
je 0x444e71
cmp eax, 0xc0000003
jne 0x444e5e
push 0xa1
push 0x408e9c
push esi
push 0x408e60
push esi
push esi
push edi
mov dword [0x4753b8], esi
call fcn.00434d80
mov esi, ebx
jmp 0x444e71
mov esi, eax
or esi, 0x10000000
jmp 0x444e71
push 0x57
call fcn.00411710
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x445752
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, esi
push 0
pop eax
adc eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 0xc]
mov eax, edx
sbb eax, 0
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0xc], edx
ja 0x445888
jb 0x4457bc
cmp esi, ecx
ja 0x445888
cmp dword [ebp - 0x10], edx
ja 0x445888
jb 0x4457d0
cmp dword [ebp - 0x18], ecx
ja 0x445888
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.00445602
test eax, eax
je 0x44580b
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov esi, dword [ebp - 0x1c]
sub eax, dword [ebp + 8]
sub esi, ecx
add eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
push esi
push eax
lea eax, [ecx + 0x10]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
sub ebx, esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x445883
xor eax, eax
push 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x475b9c]
push dword [0x475b98]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x445890
push 0
push 0
push dword [ebp + 0xc]
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x445890
xor esi, esi
lea eax, [ebp - 8]
push esi
push eax
push ebx
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x445890
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x445890
cmp dword [ebp - 8], ebx
je 0x445883
push 0xea
jmp 0x44588a
xor eax, eax
inc eax
jmp 0x445892
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x445899
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4753bc]
push ebx
push esi
xor esi, esi
mov ebx, ecx
inc esi
cmp eax, 0xffffffff
jne 0x44591a
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x408ed0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x28], eax
pop edi
test eax, eax
je 0x445909
cmp eax, 0x10
ja 0x445909
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push 0x405d54
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0xc
test eax, eax
jle 0x445909
mov eax, dword [ebp - 0x28]
mov dword [0x4753bc], eax
jmp 0x44590e
mov eax, dword [0x4753bc]
cmp eax, 0xffffffff
jne 0x44591a
mov eax, esi
mov dword [0x4753bc], eax
test eax, eax
je 0x44592e
test ebx, 0x10000000
jne 0x445930
cmp ebx, 0x80000018
je 0x445930
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret
Function at 0x44f67c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x475bd0], 0
jne 0x44f71c
push ebx
push esi
mov esi, 0x4764f0
mov edx, 0x13579bdf
push edi
mov edi, 0x87654321
mov dword [ebp - 0xc], esi
mov esi, edi
mov dword [ebp - 4], 0x20
mov eax, edx
xor ebx, ebx
sub ebx, 0x61c88647
mov ecx, edi
add eax, ebx
sar ecx, 5
add ecx, eax
mov dword [ebp - 8], eax
add esi, ebx
lea eax, [esi + edi*8]
xor ecx, eax
lea eax, [ebx + edi]
xor ecx, eax
mov eax, dword [ebp - 8]
add edx, ecx
lea ecx, [eax + edx*8]
mov eax, edx
sar eax, 5
add eax, esi
xor ecx, eax
lea eax, [ebx + edx]
xor ecx, eax
mov eax, dword [ebp - 8]
add edi, ecx
sub dword [ebp - 4], 1
jne 0x44f6b3
mov esi, dword [ebp - 0xc]
add edx, edi
mov eax, edx
and eax, 0x7fff
mov word [esi], ax
add esi, 2
mov dword [ebp - 0xc], esi
cmp esi, 0x476af0
jb 0x44f6a6
pop edi
pop esi
mov dword [0x475bd0], 1
pop ebx
leave
ret

Function at 0x44f71e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov ebx, dword [edi - 0x10]
mov esi, dword [edi - 0x14]
mov dword [ebp - 8], ebx
lea ecx, [ebx - 2]
mov dword [ebp - 4], ecx
cmp esi, ecx
jae 0x44f78c
xor ebx, ebx
movzx eax, byte [esi + 2]
movzx ecx, word [eax*2 + 0x4768f0]
movzx eax, byte [esi + 1]
movzx eax, word [eax*2 + 0x4766f0]
xor ecx, eax
movzx eax, byte [esi]
inc esi
movzx eax, word [eax*2 + 0x4764f0]
xor ecx, eax
mov ax, word [edi + ecx*2 - 0x15a5c]
mov word [edi + ebx*2], ax
mov word [edi + ecx*2 - 0x15a5c], bx
inc ebx
cmp esi, dword [ebp - 4]
jb 0x44f741
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp esi, ebx
jae 0x44f7a2
sub ebx, esi
lea edi, [edi + eax*2]
xor eax, eax
mov ecx, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
pop esi
pop ebx
leave
ret