joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7491b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00749140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00749140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00749140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00749140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x749bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x749c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x75b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x749c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x749c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x8768f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f0000]
push edi
or ebp, 0xffffffff
jmp 0x876912
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x876919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x876908
mov eax, 1
add ebx, ebx
jne 0x87692b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x87693c
jne 0x87695b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87695b
dec eax
add ebx, ebx
jne 0x876948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x876920
add ebx, ebx
jne 0x876957
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8769ad
xor ecx, ecx
sub eax, 3
jb 0x876973
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8769e2
sar eax, 1
mov ebp, eax
jmp 0x87697e
add ebx, ebx
jne 0x87697e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87694c
inc ecx
add ebx, ebx
jne 0x87698c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87694c
add ebx, ebx
jne 0x876999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x87698e
jne 0x8769aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x87698e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8769cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8769be
jmp 0x87690e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8769cc
add edi, ecx
jmp 0x87690e
pop esi
mov edi, esi
mov ecx, 0xfb19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8769ea
cmp byte [edi], 0x71
jne 0x8769ea
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 0x8769ef
lea edi, [esi + 0x45e000]
mov eax, dword [edi]
or eax, eax
je 0x876a67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x47aa04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x47aaec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x876a1c
mov ecx, edi
jns 0x876a4b
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 + 0x47aaf4]
or eax, eax
je 0x876a61
mov dword [ebx], eax
add ebx, 4
jmp 0x876a39
call dword [esi + 0x47aaf0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x876a98
cmp al, 0xef
ja 0x876a8b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x876a6d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x876a7a
mov ebp, dword [esi + 0x47aaf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x876acc
sub esp, 0xffffff80
jmp 0x5d0f46
Function at 0x403d60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
test ecx, ecx
jne 0x403d82
push edx
push str._s__none__s
push dword [0x4ece14]
call fcn.00401240
add esp, 0x10
pop esi
pop ebp
ret
test ecx, 0x80000
mov esi, 0x4e0504
mov eax, str._utf
cmove eax, esi
test ecx, 0x800000
push eax
mov eax, str._use_offset_limit
cmove eax, esi
test ecx, 0x40000
push eax
mov eax, str._ungreedy
cmove eax, esi
test ecx, 0x20000
push eax
mov eax, str._ucp
cmove eax, esi
test ecx, 0x10000
push eax
mov eax, str._no_start_optimize
cmove eax, esi
test ecx, 0x40000000
push eax
mov eax, str._no_utf_check
cmove eax, esi
test ecx, 0x8000
push eax
mov eax, str._no_dotstar_anchor
cmove eax, esi
test ecx, 0x4000
push eax
mov eax, str._no_auto_possess
cmove eax, esi
test ecx, 0x2000
push eax
mov eax, str._no_auto_capture
cmove eax, esi
test ecx, 0x1000
push eax
mov eax, str._never_utf
cmove eax, esi
test ecx, 0x800
push eax
mov eax, str._never_ucp
cmove eax, esi
test ecx, 0x100000
push eax
mov eax, str._never_backslash_c
cmove eax, esi
test ecx, 0x400
push eax
mov eax, str._multiline
cmove eax, esi
test ecx, 0x200
push eax
mov eax, str._match_unset_backref
cmove eax, esi
test ecx, 0x4000000
push eax
mov eax, str._match_invalid_utf
cmove eax, esi
test ecx, 0x2000000
push eax
mov eax, str._literal
cmove eax, esi
test ecx, 0x100
push eax
mov eax, str._firstline
cmove eax, esi
test ecx, 0x1000000
push eax
mov eax, str._extended_more
cmove eax, esi
test cl, 0x80
push eax
mov eax, str._extended
cmove eax, esi
test ecx, 0x20000000
push eax
mov eax, str._endanchored
cmove eax, esi
push eax
test cl, 0x40
mov eax, str._dupnames
cmove eax, esi
test cl, 0x20
push eax
mov eax, str._dotall
cmove eax, esi
test cl, 0x10
push eax
mov eax, str._dollar_endonly
cmove eax, esi
test cl, 8
push eax
mov eax, str._caseless
cmove eax, esi
test cl, 4
push eax
mov eax, str._auto_callout
cmove eax, esi
test ecx, ecx
push eax
mov eax, str._anchored
cmovns eax, esi
test cl, 1
push eax
mov eax, str._allow_empty_class
cmove eax, esi
test ecx, 0x400000
push eax
mov eax, str._alt_verbnames
cmove eax, esi
test ecx, 0x200000
push eax
mov eax, str._alt_circumflex
cmove eax, esi
test cl, 2
push eax
mov eax, str._alt_bsux
cmove eax, esi
push eax
push edx
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
push dword [0x4ece14]
call fcn.00401240
add esp, 0x88
pop esi
pop ebp
ret
Function at 0x40d500
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4e8544]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40d549
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d549
push 0xc00
call eax
test eax, eax
jne 0x40d5de
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40d5de
cmp ecx, 0x104
ja 0x40d5de
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x40d582
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40d5dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40d5a5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x40d5a2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret
Function at 0x412bb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412bfb
cmp edx, 0x40
je 0x412be7
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0047d540
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x412c01
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0047d540
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x412c44
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412cb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x4e8020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x4130f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004821b2
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41311d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416290
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ebd90], 0
jne 0x4162c8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
pop esi
jmp 0x4162d5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4162df
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x416560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00417850
cmp eax, 0xffffffff
je 0x41658d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x41658d
and eax, 0xfffffffe
push eax
push esi
call fcn.00416cb0
test al, al
je 0x4165cc
cmp byte [0x4ebd90], 0
push esi
jne 0x4165b9
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
jmp 0x4165c1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4165cc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4165e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4994db
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4e8544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x4ebd90], cl
jne 0x41668c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x416768
cmp eax, 0x114
jae 0x416768
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00414920
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004138f0
push dword [ebp - 0x36c]
call fcn.0047c0dc
add esp, 4
mov al, 1
jmp 0x41676a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x416768
cmp esi, 0x114
jae 0x4166d7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00413a70
mov al, 1
jmp 0x41676a
lea ecx, [ebp - 0x360]
call fcn.00413860
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x4166fd
push esi
lea ecx, [ebp - 0x360]
call fcn.004141c0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41675a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x416729
inc eax
cmp word [ecx + eax*2], 0
jne 0x416721
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41675a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41675a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.004138f0
push dword [ebp - 0x360]
call fcn.0047c0dc
add esp, 4
mov al, 1
jmp 0x41676a
push dword [ebp - 0x360]
call fcn.0047c0dc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
Function at 0x4167f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499520
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4e8544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4ebd90], 0
mov esi, dword [ebp + 8]
jne 0x41687d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00414920
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004138f0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0047c0dc
add esp, 4
jmp 0x4168a8
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.00413a70
push esi
call fcn.004186b0
test edi, edi
je 0x4168be
cmp edi, 0x114
jae 0x4168be
mov al, 1
jmp 0x4168c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4

Function at 0x416910
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ebd90], 0
jne 0x416946
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
pop esi
jmp 0x416951
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41695b
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x416be0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ebd90], 0
jne 0x416c1d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x416cb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ebd90], 0
jne 0x416ce9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
pop esi
jmp 0x416cf7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x416d01
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ebd90], 0
jne 0x41788a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x417b10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417b42
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x417c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x417ca8
test ecx, ecx
je 0x417c9d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x417c60
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov edi, ecx
call fcn.00418ad0
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x41d543
cmp dword [edi + 0xe8], 0
je 0x41d543
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax*4]
mov esi, dword [esi + eax*4 + 4]
sub esi, ecx
mov dword [ebp + 0xc], ecx
cmp esi, 0x4000
jae 0x41d543
lea eax, [esi - 1]
push eax
push ebx
call fcn.00418a90
test eax, eax
jne 0x41d545
mov eax, dword [edi + 0xe8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 8]
lea ecx, [eax + ecx*2]
test esi, esi
je 0x41d543
cmp esi, 0x10
jb 0x41d515
lea eax, [ecx - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x41d463
cmp ebx, ecx
jae 0x41d515
movaps xmm5, xmmword [str._________]
mov eax, esi
movaps xmm6, xmmword [0x4e3720]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x4b47d0]
movaps xmm7, xmmword [0x4b47e0]
movups xmm0, xmmword [ecx]
add edi, 0x10
movaps xmm3, xmm5
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm3, xmm5
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp edi, eax
jb 0x41d484
cmp edi, esi
jae 0x41d543
sub esi, edi
mov edi, 0xf05c
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x41d532
mov eax, 0x5c
jmp 0x41d538
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x41d520
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x424890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499f30
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e8544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x58], 0x40000
push 0x419130
push 0x424880
push 4
push 4
lea eax, [esi + 0x2f8]
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0x4b49cc
mov dword [esi + 4], 0x4b49dc
mov dword [esi + 8], 0x4b49ec
mov dword [esi + 0xc], 0x4b49fc
mov dword [esi + 0x10], 0x4b4a10
mov dword [esi + 0x14], 0x4b4a24
mov dword [esi + 0x18], 0x4b4a34
mov word [esi + 0x2e0], 0
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
call fcn.0047bf0c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a480
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e8544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.00413860
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.00413860
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.00413860
lea esi, [edi + 0x78]
mov dword [edi + 0x44], 0
xor eax, eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00413860
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.00413860
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00413860
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00413860
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret