joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x406657
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40665e
mov al, 1
jmp 0x406750
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x50]
jne 0x406691
mov dword [ebp - 0x3c], 1
jmp 0x406698
mov dword [ebp - 0x3c], 0
mov dl, byte [ebp - 0x3c]
mov byte [ebp - 0x2d], dl
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x4066ad
xor al, al
jmp 0x406750
mov dword [ebp - 0x58], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4066f4
cmp dword [ebp - 0x34], 1
je 0x4066fb
cmp dword [ebp - 0x34], 3
je 0x40674a
jmp 0x40674e
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40672a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.0044aad6
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40672a
xor al, al
jmp 0x406750
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x40673e
mov dword [ebp - 0x44], 1
jmp 0x406745
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
jmp 0x406750
mov al, 1
jmp 0x406750
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440b15
mov esp, ebp
pop ebp
ret
Function at 0x40a610
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x476094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40a659
push str.SetDefaultDllDirectories
push 0x4614d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a659
push 0xc00
call eax
test eax, eax
jne 0x40a6f8
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40a6f8
cmp eax, 0x104
ja 0x40a6f8
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x40a693
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x40a6f7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
inc esi
mov eax, edi
test cl, cl
je 0x40a6d0
nop dword [eax + eax]
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x40a6c0
xor ecx, ecx
mov dword [eax], 0x64002e
push 8
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
lea eax, [ebp - 0x2d4]
push ecx
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x40a6b4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440b15
mov esp, ebp
pop ebp
ret
Function at 0x40e4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x40e5d1
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x40e5a9
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x40e591
mov eax, dword [ebp + 8]
add ebx, 0x28
sub eax, 1
mov dword [ebp + 8], eax
jne 0x40e585
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x40e5cc
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea edi, [esi + eax*8]
lea eax, [ecx + 1]
mov dword [ebp - 4], edi
mov dword [esi + 0x58], eax
lea eax, [edi + 0x20]
push eax
mov dword [ebp + 8], eax
call fcn.0040fd00
mov ebx, eax
add edi, 0x1c
test ebx, ebx
jne 0x40e6cf
push edi
call fcn.0040fd00
mov ebx, eax
test ebx, ebx
jne 0x40e6cf
push dword [ebp + 8]
call fcn.0040fe20
mov ebx, eax
test ebx, ebx
jne 0x40e6cf
push edi
call fcn.0040fe20
mov ebx, eax
test ebx, ebx
jne 0x40e6cf
push dword [ebp - 4]
call fcn.0040f5d0
mov ebx, eax
test ebx, ebx
je 0x40e6e1
mov dword [esi + 0x44], 0
lea edi, [esi + 0xe4]
mov dword [ebp - 4], 0x20
cmp dword [edi - 4], 0
lea eax, [edi + 4]
mov dword [ebp + 8], eax
je 0x40e6b3
push eax
call fcn.0040fe20
push edi
call fcn.0040fe20
lea eax, [edi - 4]
push eax
call fcn.00410040
jmp 0x40e6b6
mov dword [ebp + 8], eax
push edi
call fcn.0040fe50
push dword [ebp + 8]
call fcn.0040fe50
add edi, 0x28
sub dword [ebp - 4], 1
jne 0x40e690
test ebx, ebx
jle 0x40e6da
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
je 0x40e6e1
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], 0
jne 0x40e6fa
cmp dword [esi + 0x40], 0
jne 0x40e6fa
cmp dword [esi + 0x3c], 0
jne 0x40e6fa
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
pop edi
cmovne ebx, eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fab0
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 0x40faff
cmp edx, 0x40
je 0x40faeb
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
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 0x40fb05
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.00443720
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 0x40fb48
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
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 0x40fbb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x476020]
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 0x40fff0
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.00448adb
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41001d
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 0x4130c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x479474], 0
jne 0x4130f8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
add esp, 4
test esi, esi
pop esi
jmp 0x413105
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41310f
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x413390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004146a0
cmp eax, 0xffffffff
je 0x4133bd
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4133bd
and eax, 0xfffffffe
push eax
push esi
call fcn.00413ae0
test al, al
je 0x4133fc
cmp byte [0x479474], 0
push esi
jne 0x4133e9
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
add esp, 4
test esi, esi
jmp 0x4133f1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4133fc
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 0x413410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ecc6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x476094]
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 [0x479474], cl
jne 0x4134bc
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x413598
cmp eax, 0x114
jae 0x413598
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00411760
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00410760
push dword [ebp - 0x36c]
call fcn.00440d45
add esp, 4
mov al, 1
jmp 0x41359a
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 0x413598
cmp esi, 0x114
jae 0x413507
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004108d0
mov al, 1
jmp 0x41359a
lea ecx, [ebp - 0x360]
call fcn.004106d0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x41352d
push esi
lea ecx, [ebp - 0x360]
call fcn.00411000
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41358a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x413559
inc eax
cmp word [ecx + eax*2], 0
jne 0x413551
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41358a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41358a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00410760
push dword [ebp - 0x360]
call fcn.00440d45
add esp, 4
mov al, 1
jmp 0x41359a
push dword [ebp - 0x360]
call fcn.00440d45
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.00440b15
mov esp, ebp
pop ebp
ret 4
Function at 0x413620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ecfb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x476094]
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 [0x479474], 0
mov esi, dword [ebp + 8]
jne 0x4136ad
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.00411760
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00410760
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.00440d45
add esp, 4
jmp 0x4136d8
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.004108d0
push esi
call fcn.004154f0
test edi, edi
je 0x4136ee
cmp edi, 0x114
jae 0x4136ee
mov al, 1
jmp 0x4136f0
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.00440b15
mov esp, ebp
pop ebp
ret 4

Function at 0x413740
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x479474], 0
jne 0x413776
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
add esp, 4
test esi, esi
pop esi
jmp 0x413781
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41378b
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x413a10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x479474], 0
jne 0x413a4d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
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 0x413ae0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x479474], 0
jne 0x413b19
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
add esp, 4
test esi, esi
pop esi
jmp 0x413b27
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x413b31
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x479474], 0
jne 0x4146da
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00411790
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00440d45
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 0x414960
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 0x414992
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414992
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 0x414a90
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 0x414af8
test ecx, ecx
je 0x414aed
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x414ab0
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 0x414d30
Capabilities:
Write 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
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x414d98
test ecx, ecx
je 0x414d8d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x414d50
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 0x415cb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x415d3f
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x415d3f
push ebx
push edi
xor edi, edi
xor ebx, ebx
xor eax, eax
mov edx, 2
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
nop word [eax + eax]
lea ecx, [edx - 2]
mov eax, esi
shr eax, cl
lea ecx, [edx - 1]
and eax, 1
add edi, eax
mov eax, esi
shr eax, cl
mov ecx, edx
and eax, 1
add dword [ebp - 8], eax
mov eax, esi
shr eax, cl
lea ecx, [edx + 1]
and eax, 1
add edx, 4
add dword [ebp - 4], eax
mov eax, esi
shr eax, cl
and eax, 1
lea ecx, [edx - 2]
add ebx, eax
cmp ecx, 0x20
jb 0x415cf0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add ecx, ebx
add eax, ecx
add eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a110
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.00415910
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x41a283
cmp dword [edi + 0xe8], 0
je 0x41a283
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 0x41a283
lea eax, [esi - 1]
push eax
push ebx
call fcn.004158d0
test eax, eax
jne 0x41a285
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 0x41a283
cmp esi, 0x10
jb 0x41a251
lea eax, [ecx - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x41a1a3
cmp ebx, ecx
jae 0x41a251
movaps xmm5, xmmword [str._________]
mov eax, esi
movaps xmm6, xmmword [0x4617d0]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x4617b0]
movaps xmm7, xmmword [0x4617c0]
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 0x41a1c4
cmp edi, esi
jae 0x41a283
sub esi, edi
mov edi, 0xf05c
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x41a272
mov eax, 0x5c
jmp 0x41a278
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x41a260
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4212e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f66b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x476094]
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 0x415f70
push 0x4212d0
push 4
push 4
lea eax, [esi + 0x2f8]
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0x4619bc
mov dword [esi + 4], 0x4619cc
mov dword [esi + 8], 0x4619dc
mov dword [esi + 0xc], 0x4619ec
mov dword [esi + 0x10], 0x461a00
mov dword [esi + 0x14], 0x461a14
mov dword [esi + 0x18], 0x461a24
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.00440b8c
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 0x4266f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fb2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x476094]
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.004106d0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.004106d0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.004106d0
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.004106d0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.004106d0
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.004106d0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.004106d0
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