joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008d08e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1008d0b8
mov eax, 0x100e185c
push eax
push eax
push 0
push 0
call fcn.1008b562
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1008ddfa
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x1008e15a
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x1008e5a6
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x100bd51b
call fcn.10071e56
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.1008e3ea
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1008e5f2
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.10071e30
ret 4
push 0x100f3748
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.10098214
int3

Function at 0x1008e7be
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.1008e961
mov edi, eax
test edi, edi
je 0x1008e849
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x1008e7f9
mov esi, edi
jmp 0x1008e835
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x1008e82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008e821
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.1008e8fc
jmp 0x1008e835
push 0x100d38b0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1008e835
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.1008e961
mov edi, eax
test edi, edi
jne 0x1008e7ee
test esi, esi
jne 0x1008e85e
mov ecx, dword [ebx]
add ecx, 8
call fcn.1008eaf5
mov esi, eax
test esi, esi
je 0x1008e85e
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10093410
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10093420
Function at 0x4bcd25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4398
cmp edx, dword [eax]
je 0x4bcd47
add eax, 8
inc ecx
cmp eax, 0x4c4428
jl 0x4bcd38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4398]
jne 0x4bce75
mov eax, dword [0x4c9d20]
cmp eax, 1
je 0x4bce4f
test eax, eax
jne 0x4bcd78
cmp dword [0x4c42c4], 1
je 0x4bce4f
cmp edx, 0xfc
je 0x4bce75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bcdaf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bd710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bdba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bcdf2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bdba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c2594
push edi
call fcn.004bfa70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bd710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd720
lea eax, [ebp - 0xa0]
push 0x4c2574
push eax
call fcn.004bd720
push dword [esi + 0x4c439c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bf9e4
add esp, 0x2c
pop edi
jmp 0x4bce75
lea eax, [ebp + 8]
lea esi, [esi + 0x4c439c]
push 0
push eax
push dword [esi]
call fcn.004bdba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6a53cb
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xe53b2743
cmp esp, ebp
dec esi
cdq
pushfd
jbe 0x6a53c9
rcl dword [edi - 0x43a8b023], cl
inc esi
xor dword [eax], edx
push es
mov esi, dword [0xc073e454]
jae 0x6a53d0
xor byte [0xfd9fcfbf], ah
cmpsd dword [esi], dword es:[edi]
mov edx, 0xc2900282
mov dh, 0x84
mov cl, 0x18
movsb byte es:[edi], byte [esi]
sbb eax, 0x26defe43
xor dword [esi + 0x4e], 0x8eea91be
fmul st(0), st(0)
xor al, 0xc5
sub dword [esi + ecx*4], ebp
daa
xchg ecx, eax
popfd
popfd
fisttp word [edi + 0x1fcfe8b7]
inc ebx
mov esp, 0x9bebdcf9
sbb ebx, dword [ecx - 0x58]
dec esp
push 0xffffffffffffffe5
stosd dword es:[edi], eax
mov dl, byte [ebx + 0x23]
mov esp, dword [ecx]
jge 0x6a53c6
insd dword es:[edi], dx
adc byte [esi + 0x60], al
mov esi, 0x8f8f39c
mov dword [edx - 0x3ba8dbdd], ecx
mov bl, 0xf0
and eax, dword [edi]
and eax, dword [edx - 0x4d]
or esi, dword [eax]
pop ss
bound esi, qword [ebx + 0x586b6733]
adc eax, 0x2b1a6d0b
sbb dword [ebp - 0x709b668a], esp
add dword [ecx + 0x53854625], ebp
dec eax
xchg edx, eax
cmp dword [0xf4f833a6], 0x4bd8cde5
insd dword es:[edi], dx
push esi
jbe 0x6a54cc
pop ss
aaa
add eax, 0x5a4be90d
and eax, 0x87c68176
dec esp
mov ah, 0x41
retf
je 0x6a5536
cmp eax, 0xe74d9e16
invalid
add dword [esi - 0x5b], ebp
sahf
fcom qword [ebx]
mov dword [0xfe974f16], eax
in eax, dx
xor al, 0x8e
aam 0xf6
xor eax, 0x4818c9d1
inc ebp
sti
xor byte [edx], bh
xor edx, ebp
pop esi
in eax, 0xe5
mov byte [eax], cl
shr byte [eax - 0x66], cl
fdivr dword [ebx]
nop
test dl, dl
mov edi, 0x247d50bb
xchg edx, eax
hlt
Function at 0x4015ae
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 0x4015e0
test dl, 7
je 0x4015e0
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015c0
cmp esi, 8
jb 0x401670
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 + 0x42fa30]
xor ecx, dword [eax*4 + 0x42fe30]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x430230]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430a30]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x430e30]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431230]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x430630]
movzx eax, bl
xor ecx, dword [eax*4 + 0x431630]
mov ebx, ecx
sub edi, 1
jne 0x4015ef
pop edi
test esi, esi
je 0x40168c
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
sub esi, 1
jne 0x401674
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c3d
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 0x401c56
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 0x401cc9
mov ecx, esi
call fcn.00401d2a
test al, al
je 0x401c91
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c91
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c3d
jmp 0x401ccc
cmp dword [esi + 0xc], 1
jne 0x401ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401ca6
xor eax, eax
jmp 0x401ccc
cmp dword [esi + 0xc], 0
jne 0x401cc4
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401cc4
push ebx
jmp 0x401c85
or eax, 0xffffffff
jmp 0x401ccc
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d55
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411a80
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d7f
mov cl, dl
test bl, 4
je 0x401d81
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 0x401da6
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401db5
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.0040327a
test al, al
je 0x401e33
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
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 0x401e2e
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e44
cmp dword [esp + 0x10], 2
jne 0x401e44
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e73
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405c07
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a80
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40241d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040327a
test al, al
je 0x40241d
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 0x40245a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a80
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403585
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40248b
cmp eax, 0x20
je 0x40248b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024be
push esi
call fcn.004023c4
test al, al
jne 0x4024d1
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040327a
test al, al
je 0x4024d1
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024d1
cmp byte [ebp + 0xc], 0
je 0x4024cd
push dword [ebp + 0x10]
push esi
call fcn.00402697
xor eax, eax
jmp 0x4024e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024e6
cmp eax, 3
je 0x4024e6
xor eax, eax
inc eax
jmp 0x4024e9
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402697
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a80
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x4026e7
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040327a
test al, al
je 0x4026e7
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402844
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411a80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x4028de
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402905
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.0040327a
test al, al
je 0x4028b7
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x402905
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028d1
cmp eax, 3
je 0x4028d1
cmp eax, 0x12
je 0x4028d1
xor eax, eax
inc eax
jmp 0x4028d3
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x4029b3
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028fd
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x4029b3
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405c07
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040365c
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00406627
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00406627
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00406627
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x40327a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a80
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x403298
xor al, al
jmp 0x40341a
push esi
push edi
call fcn.00403421
push edi
call fcn.00416d35
pop ecx
push edi
mov esi, eax
call fcn.0040344d
test al, al
je 0x403338
push edi
call fcn.00403421
test al, al
je 0x4032e7
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403331
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.004180f6
lea eax, [esi + 8]
push edi
push eax
call fcn.00416d13
add esp, 0x14
jmp 0x40332a
push 0x5c
pop eax
cmp word [edi], ax
jne 0x403331
add edi, 2
cmp word [edi], ax
jne 0x403331
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x403331
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.004180f6
lea eax, [esi + 8]
push 0x42530c
push eax
call fcn.00416d13
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00416d13
add esp, 0x1c
mov al, 1
jmp 0x403419
xor al, al
jmp 0x403419
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403416
cmp eax, ebx
ja 0x403416
movzx eax, word [edi]
push eax
call fcn.00403483
test al, al
je 0x4033a6
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x403416
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.004180f6
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.004180f6
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00416d13
add esp, 0x20
jmp 0x403412
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e8c
lea eax, [ebp - 0x1000]
push eax
call fcn.00416d35
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x403416
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.004180f6
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00416d13
add esp, 0x14
cmp word [edi], 0x2e
jne 0x403408
movzx eax, word [edi + 2]
push eax
call fcn.00403483
test al, al
je 0x403408
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.00405bdb
mov al, 1
jmp 0x403418
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404889
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x404903
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4048b3
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4048e5
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4048cf
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x4048a1
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x40490c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4049ba
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x404944
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x404939
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00413330
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x404930
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x4049c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00413330
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x404a39
cmp ebx, dword [ebp + 4]
jg 0x404b96
cmp edx, esi
jge 0x404a2d
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x404a29
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x404a09
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x404a35
inc ebx
xor edi, edi
cmp edx, esi
jl 0x4049f4
cmp ebx, dword [ebp + 4]
jg 0x404b96
mov edx, 0x433c80
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x433a80]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404ac6
cmp esi, 1
jle 0x404b44
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404aad
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404aab
jmp 0x404b44
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404ad5
sub dword [esp + 0x3c], 1
jne 0x404ad2
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404b32
sub dword [esp + 0x3c], 1
jne 0x404b2f
xor edx, edx
test esi, esi
jle 0x404b89
cmp ebx, dword [ebp + 4]
jg 0x404b8c
cmp edx, esi
jge 0x404b7d
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b80
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404b5e
cmp edi, 4
jne 0x404b85
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404b4a
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x404a47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436ca8]
test eax, eax
jne 0x404cbf
mov ecx, 0x436ca0
call fcn.00404c25
mov eax, dword [0x436ca8]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x404d09
test eax, eax
je 0x404d24
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d49
push str.CryptProtectMemory_failed
mov esi, 0x44a83c
push esi
call fcn.004017c7
pop ecx
pop ecx
mov ecx, esi
call fcn.00401905
push 2
mov ecx, esi
call fcn.004017c2
jmp 0x404d49
mov eax, dword [0x436cac]
test eax, eax
je 0x404d24
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d49
push str.CryptUnprotectMemory_failed
jmp 0x404cea
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404d48
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x404d3a
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4056e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4