joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x41000c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x3f8], 0
push ecx
lea eax, [ebp - 0x3f0]
movq qword [ebp - 0x400], xmm0
push eax
movups xmmword [ebp - 0x410], xmm0
mov word [ebp - 0x3f4], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
cmp eax, 0x3ea
jae 0x404a62
xor ecx, ecx
mov dword [ebp - 0x40c], 3
mov word [ebp + eax - 0x3f0], cx
mov eax, 0x14
mov word [ebp - 0x400], ax
lea eax, [ebp - 0x3f0]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x3fa], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x3f6], ecx
mov dword [ebp - 0x404], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00408c6a
mov esp, ebp
pop ebp
ret
call fcn.00409020
int3

Function at 0x404a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x41000c]
xor eax, esp
mov dword [esp + 0x24], eax
cmp byte [0x411118], 0
mov dword [esp + 4], ecx
jne 0x404b91
lea eax, [esp + 8]
mov byte [0x411118], 1
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404b93
lea eax, [esp + 0xc]
push eax
push str.SeBackupPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404b12
mov eax, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0xc]
push eax
push str.SeRestorePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404b69
mov eax, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00408c6a
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00408c6a
mov esp, ebp
pop ebp
ret
Function at 0x4023c1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402400
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402400
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402400
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402400
cmp dword [ecx + 0x74], 0xe
jbe 0x402400
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408048
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 0x4080e5
push ebx
push esi
call fcn.00408011
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.00407fa5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408092
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080e4
push edi
push eax
call fcn.004069ab
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080b2
call fcn.00406b06
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fa5
add esp, 0x20
test eax, eax
jne 0x4080d1
push edi
call fcn.00406b06
jmp 0x4080d9
push ebx
call fcn.00406b06
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 0x4092f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411030
push 0x411028
push str.FlsAlloc
push 0x1f
call fcn.004091b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409328
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f130]
call esi
jmp 0x40932e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409372
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411040
push 0x411038
push str.FlsGetValue
push 0x21
call fcn.004091b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4093b1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411048
push 0x411040
push str.FlsSetValue
push 0x22
call fcn.004091b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093eb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10001190
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0x100085c0
push 0
push eax
push 0x10001020
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x100085bc], eax
ret

Function at 0x100043f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
xor eax, eax
cmp byte [ecx + 1], 3
mov ebp, dword [esp + 0x14]
sete al
xor edx, edx
cmp byte [ecx], 1
mov ecx, 0
sete dl
and eax, edx
sete cl
lea ecx, [ecx + ecx + 4]
movzx edx, cx
movzx si, byte [edx + edi - 2]
add edx, edi
movzx dx, byte [edx - 1]
shl si, 8
or si, dx
sub si, 2
movzx edx, si
mov esi, dword [esp + 0x18]
mov word [esi], dx
add ecx, edx
movzx esi, cx
movzx ebx, byte [esi + edi + 1]
add esi, edi
movzx esi, byte [esi]
shl esi, 8
sub ecx, edx
movzx edx, dx
or ebx, esi
xor esi, esi
test edx, edx
jbe 0x1000446d
movzx ecx, cx
add edi, ecx
mov cl, byte [edi + esi]
mov byte [esi + ebp], cl
inc esi
cmp esi, edx
jb 0x10004462
test eax, eax
jne 0x100044b0
mov eax, 0xffff
mov ecx, ebp
test edx, edx
jbe 0x100044a1
lea esp, [esp]
movzx esi, ax
shl eax, 8
shr esi, 8
xor ax, word [esi*2 + 0x10006208]
movzx si, byte [ecx]
xor ax, si
inc ecx
sub edx, 1
movzx eax, ax
jne 0x10004480
movzx edx, ax
pop edi
pop esi
xor eax, eax
cmp edx, ebx
pop ebp
sete al
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x100044c0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
xor esi, esi
cmp dl, 3
sete al
xor ebx, ebx
cmp cl, 1
sete bl
and eax, ebx
mov dword [esp + 0x10], eax
jne 0x100044f2
mov byte [edi], 1
mov byte [edi + 1], 2
mov esi, 2
movzx eax, si
add eax, edi
mov byte [eax], dl
mov byte [eax + 1], cl
add esi, 4
movzx eax, si
movzx edx, bp
add eax, edi
mov ecx, 0xffff
test edx, edx
jbe 0x10004531
movzx ebx, cx
shl ecx, 8
shr ebx, 8
xor cx, word [ebx*2 + 0x10006208]
movzx bx, byte [eax]
xor cx, bx
inc eax
sub edx, 1
movzx ecx, cx
jne 0x10004510
movzx eax, cx
add esi, ebp
movzx ecx, si
add ecx, edi
mov edx, eax
shr edx, 8
add esi, 2
cmp dword [esp + 0x10], 0
mov byte [ecx], dl
mov byte [ecx + 1], al
jne 0x10004585
movzx eax, si
add eax, edi
add esi, 2
lea ecx, [esi - 8]
mov byte [eax], 3
mov byte [eax + 1], 4
movzx eax, cx
mov edx, 0xfffe
sub edx, eax
add esi, edx
movzx ecx, si
add ecx, edi
mov edx, eax
mov byte [ecx - 1], al
lea eax, [eax + esi + 2]
pop esi
shr edx, 8
pop ebp
mov byte [ecx - 2], dl
pop ebx
ret
add esi, 0xfffffffc
movzx eax, si
mov ecx, eax
pop esi
shr ecx, 8
pop ebp
mov byte [edi + 3], al
mov byte [edi + 2], cl
add eax, 4
pop ebx
ret

Function at 0x10004680
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
movzx eax, ax
mov edx, 0x7f
push edi
lea ebx, [ebx]
movzx di, byte [ecx + 1]
movzx esi, ax
shl eax, 8
shr esi, 8
xor ax, word [esi*2 + 0x10006208]
movzx si, byte [ecx]
xor ax, si
movzx eax, ax
movzx esi, ax
shr esi, 8
xor di, word [esi*2 + 0x10006208]
shl eax, 8
xor di, ax
add ecx, 2
sub edx, 1
movzx eax, di
jne 0x10004690
pop edi
pop esi
ret
Function at 0x1000490e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10004918
repz ret
jmp fcn.10004ccb

Function at 0x42b920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
jmp 0x42b93a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b930
mov eax, 1
add ebx, ebx
jne 0x42b953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b948
jne 0x42b964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b948
xor ecx, ecx
sub eax, 3
jb 0x42b978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b9ea
mov ebp, eax
add ebx, ebx
jne 0x42b983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b9b4
inc ecx
add ebx, ebx
jne 0x42b9a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b995
jne 0x42b9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b9d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b9c5
jmp 0x42b936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b9d4
add edi, ecx
jmp 0x42b936
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b9f2
cmp byte [edi], 0x12
jne 0x42b9f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42b9f7
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42ba6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31c18]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31cf8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ba24
mov ecx, edi
jns 0x42ba53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31d00]
or eax, eax
je 0x42ba69
mov dword [ebx], eax
add ebx, 4
jmp 0x42ba41
call dword [esi + 0x31cfc]
mov ebp, dword [esi + 0x31d04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42baa3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x447b5f
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
shr edi, 2
mov ecx, edi
dec edi
test ecx, ecx
je 0x447b90
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [esi]
add eax, ebx
mov edx, ebx
xor edx, ecx
mov ecx, edi
dec edi
mov dword [esi], edx
add esi, 4
test ecx, ecx
jne 0x447b7a
pop edi
pop esi
pop ebx
ret

Function at 0x447c29
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
imul ecx, ecx, 0x28
mov ecx, dword [ecx + eax + 0x24]
test ecx, 0x20000000
je 0x447c62
test ecx, 0x40000000
je 0x447c5b
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xe0
add eax, 0x40
jmp 0x447c73
mov eax, 0x10
jmp 0x447c73
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xfe
add eax, 4
test ecx, 0x4000000
je 0x447c80
add eax, 0x200
ret
Function at 0x449751
Capabilities:
Get common file path

Disassembly:
push ebp
mov edx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x104
test edx, edx
push esi
push edi
je 0x4497ad
mov edi, dword [ebp + 8]
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
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + edx - 0x105], 0x5c
je 0x4497b4
mov esi, 0x4444f0
lea edi, [ebp - 0x104]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
movsw word es:[edi], word [esi]
jmp 0x4497b4
mov byte [ebp - 0x104], 0
push dword [ebp + 8]
push 0
push 0x4444f4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
mov eax, 0
je 0x4497e6
push 0x10
push 0x4444f8
push dword [ebp + 8]
call fcn.00447aab
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4497ec
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov eax, 0x4220
mov ebp, esp
call fcn.00449e70
push esi
push edi
mov esi, str.SHRINK35.LDR
push esi
call fcn.004496f3
add esp, 4
mov dword [0x4444d0], eax
cmp eax, 0xffffffff
jne 0x44994c
mov byte [0x4444e0], 0
push esi
call fcn.004496f3
add esp, 4
mov dword [0x4444d0], eax
cmp eax, 0xffffffff
jne 0x44994c
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00449751
add esp, 8
mov esi, eax
test esi, esi
jne 0x4498d4
push edi
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x220]
push str.PATH
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov al, byte [edi]
test al, al
je 0x4498c1
xor ecx, ecx
inc edi
mov byte [ebp - 0x11c], al
cmp al, cl
je 0x4498a3
cmp byte [ebp + ecx - 0x11c], 0x3b
je 0x4498a3
inc ecx
mov al, byte [edi]
inc edi
mov byte [ebp + ecx - 0x11c], al
test al, al
jne 0x44988a
push ecx
lea eax, [ebp - 0x11c]
mov byte [ebp + ecx - 0x11c], 0
push eax
call fcn.00449751
add esp, 8
mov esi, eax
test esi, esi
je 0x449877
test esi, esi
jne 0x4498d4
push 0xc
push 0x444504
call fcn.004483af
add esp, 8
push 0x10d2
lea eax, [ebp - 0x4220]
push eax
push 0x4433fc
call fcn.00447a8b
add esp, 0xc
test eax, eax
jne 0x4498fd
push 2
push 0
call fcn.004483af
add esp, 8
lea edi, [ebp - 0x41e0]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
push esi
mov eax, dword [0x4433f8]
push eax
lea ecx, [ebp - 0x4220]
push ecx
call fcn.00447afe
add esp, 0xc
push esi
call fcn.00447a9e
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004496f3
add esp, 4
mov dword [0x4444d0], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [0x4444d0], 0xffffffff
jne 0x449961
push 0xc
push 0x444508
jmp 0x449a0e
xor esi, esi
lea eax, [ebp - 8]
push esi
lea ecx, [ebp - 0x18]
push eax
push 0x10
push ecx
push esi
push esi
push 1
push dword [0x4444d0]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x449a07
cmp dword [ebp - 0x18], 0x332
jne 0x4499fe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x10], edx
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 2
push dword [0x4444d0]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4499d4
mov eax, dword [ebp - 4]
mov dword [0x4444d4], eax
jmp 0x449a16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x76
je 0x4499ed
cmp eax, 0x77
je 0x4499ed
push 0xc
push 0x444534
jmp 0x449a0e
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 1
push str.___please_restart_your_system_and_retry
jmp 0x449a0e
push 0xc
push 0x444538
jmp 0x449a0e
push 0xc
push 0x44453c
call fcn.004483af
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4015b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015e4
test dl, 7
je 0x4015e4
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x431ed0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015c4
cmp esi, 8
jb 0x401674
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x431ed0]
xor ecx, dword [eax*4 + 0x4322d0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4326d0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x432ed0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4332d0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4336d0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x432ad0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x433ad0]
mov ebx, ecx
sub edi, 1
jne 0x4015f3
pop edi
test esi, esi
je 0x401690
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x431ed0]
inc edx
sub esi, 1
jne 0x401678
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401cb3
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d26
mov ecx, esi
call fcn.00401d7b
test al, al
je 0x401cee
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401cee
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c9a
jmp 0x401d29
cmp dword [esi + 0xc], 1
jne 0x401d03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401d03
xor eax, eax
jmp 0x401d29
cmp dword [esi + 0xc], 0
jne 0x401d21
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401d21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401d21
push ebx
jmp 0x401ce2
or eax, 0xffffffff
jmp 0x401d29
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401da6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1054
call fcn.00412bd0
push ebx
mov ebx, dword [esp + 0x1060]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1020], 0
cmp byte [edi + 0x1d], 0
jne 0x401dd2
test bl, 4
jne 0x401dd2
xor cl, cl
jmp 0x401dd4
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401df9
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401e08
or ebx, 2
xor eax, eax
lea ecx, [esp + 0x1c]
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov dword [esp + 0x10], eax
call fcn.00401a95
cmp byte [edi + 0x1c], 0
je 0x401e2f
or esi, 0x100
push 0
push dword [esp + 0x14]
push 3
push 0
push ebx
push esi
push dword [esp + 0x1080]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x1070]
call fcn.004032c8
test al, al
je 0x401ea0
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e9b
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x401eb1
cmp dword [esp + 0x14], 2
jne 0x401eb1
mov dword [edi + 0x1020], 1
cmp byte [edi + 0x1c], 0
pop esi
je 0x401ed7
cmp ebp, 0xffffffff
je 0x401ed7
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
cmp ebp, 0xffffffff
je 0x401f05
push 0x800
push dword [esp + 0x1068]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.004065db
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1054
ret 8
Function at 0x4021f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402209
mov al, 1
jmp 0x4022f7
cmp dword [edi + 0xc], 1
jne 0x40221a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x40226f
xor esi, esi
test ebp, ebp
je 0x402291
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40223f
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x402291
add esi, 0x4000
cmp esi, ebp
jb 0x40222f
jmp 0x40228d
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x4022ef
cmp byte [edi + 0x14], 0
je 0x4022ef
cmp dword [edi + 0xc], 0
jne 0x4022ef
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x450cd4
push esi
call fcn.004017ae
test al, al
je 0x4022e2
cmp dword [esp + 0x18], ebp
jae 0x40221c
cmp dword [esp + 0x18], 0
jbe 0x40221c
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x40221c
push esi
push 0
mov ecx, 0x450cd4
call fcn.004019f4
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412bd0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402486
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004032c8
test al, al
je 0x402486
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4024c3
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412bd0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004035d7
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4024f4
cmp eax, 0x20
je 0x4024f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402527
push esi
call fcn.0040242d
test al, al
jne 0x40253a
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004032c8
test al, al
je 0x40253a
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40253a
cmp byte [ebp + 0xc], 0
je 0x402536
push dword [ebp + 0x10]
push esi
call fcn.00402700
xor eax, eax
jmp 0x402552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40254f
cmp eax, 3
je 0x40254f
xor eax, eax
inc eax
jmp 0x402552
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc