joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40540e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40545f
xor eax, eax
jmp 0x405486
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405486
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40545b
call esi
pop esi
leave
ret 4

Function at 0x4054c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b070], 0x44
push eax
xor eax, eax
push 0x42b070
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054ff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405589
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040597d
mov edi, eax
cmp edi, 0xffffffff
je 0x4055ca
test byte [esp + 0x10], 1
push esi
je 0x4055ac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055b2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055bb
xor eax, eax
inc eax
jmp 0x4055cc
test byte [esp + 0x10], 4
jne 0x4055ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055d1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405610
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e488], eax
jmp 0x40579a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40562a
test eax, eax
je 0x405748
test bl, 2
je 0x405748
mov esi, 0x42a870
push edi
push esi
call fcn.00405d2f
cmp dword [ebp + 8], 0
je 0x405649
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40564f
push edi
call fcn.004057e8
cmp byte [edi], 0
jne 0x40565d
cmp byte [0x42a870], 0x5c
jne 0x405668
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40573e
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057cc
cmp byte [eax], 0
je 0x4056ae
cmp byte [ebp - 0x1c], 0
je 0x4056ae
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056c4
mov al, byte [esi + 1]
test al, al
je 0x40571d
cmp al, 0x2e
jne 0x4056c4
cmp byte [esi + 2], 0
je 0x40571d
push esi
push ebx
call fcn.00405d2f
test byte [ebp - 0x14c], 0x10
je 0x4056e9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40571d
push dword [ebp + 0xc]
push edi
call fcn.004055d1
jmp 0x40571d
push dword [ebp - 4]
push edi
call fcn.00405589
test eax, eax
jne 0x405715
cmp dword [ebp - 4], eax
je 0x40570d
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push 0
push edi
call fcn.00405bea
jmp 0x40571d
inc dword [0x42e488]
jmp 0x40571d
push edi
push 0xfffffffffffffff2
call fcn.00404f48
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40568c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405748
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40579a
cmp dword [ebp - 0xc], esi
jne 0x40575c
inc dword [0x42e488]
jmp 0x40579a
push edi
call fcn.00406033
test eax, eax
je 0x40579a
push edi
call fcn.004057a1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405589
test eax, eax
jne 0x405792
cmp dword [ebp - 4], esi
je 0x405754
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push esi
push edi
call fcn.00405bea
jmp 0x40579a
push edi
push 0xffffffffffffffe5
call fcn.00404f48
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40588f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac70
push esi
call fcn.00405d2f
push esi
call fcn.0040583a
mov edi, eax
test edi, edi
jne 0x4058b0
xor eax, eax
jmp 0x405902
push edi
call fcn.00405f9a
test byte [0x42e418], 0x80
je 0x4058c9
mov al, byte [edi]
test al, al
je 0x4058ac
cmp al, 0x5c
je 0x4058ac
sub edi, esi
jmp 0x4058e1
call fcn.00406033
test eax, eax
je 0x4058db
test byte [eax], 0x10
je 0x4058ac
push esi
call fcn.004057e8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058cd
call fcn.004057a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40597d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4059a2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093ac]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a16
test edi, edi
jne 0x4059dc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a10
Function at 0x1002acc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x1002264
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x5c3a3f
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
dec eax
dec eax
je 0x1002b0f
dec eax
je 0x1002b5d
sub eax, 3
je 0x1002b0a
xor edi, edi
jmp 0x1002b5d
push 3
pop edi
jmp 0x1002b5d
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002b06
push esi
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002b54
cmp dword [ebp - 0x1c], 0xb
je 0x1002b56
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1002cf7
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push esi
push edi
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a184]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002d1e
push eax
call esi
and dword [0x100a184], 0
mov eax, dword [0x100a020]
cmp eax, 0xffffffff
je 0x1002d32
push eax
call esi
or dword [0x100a020], 0xffffffff
mov esi, dword [0x100a004]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100a004
jmp 0x1002d76
mov eax, dword [esi + 4]
test eax, eax
je 0x1002d74
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002d70
cmp eax, 3
je 0x1002d70
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002d45
mov esi, dword [0x100a00c]
mov edi, 0x100a00c
jmp 0x1002db8
mov eax, dword [esi + 4]
test eax, eax
je 0x1002db6
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002db2
cmp eax, 3
je 0x1002db2
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002d87
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x10030b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x10030de
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a1a0]
inc ecx
dec edx
jne 0x10030c6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1007390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x10073cb
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10073a8
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10073e7
dec esi
je 0x10073e0
dec esi
jne 0x10073ec
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052b4
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44eeb0
mov dword [0x4324e8], esi
call fcn.004282e0
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42f07a]
mov dword [0x4324d4], ecx
movzx ecx, word [eax + 0x42f078]
mov dword [0x4324ec], ecx
movzx ecx, word [eax + 0x42f07c]
movzx eax, word [eax + 0x42f07e]
mov dword [0x4324e0], ecx
mov dword [0x4324e4], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45eeb0
mov dword [0x4324d0], ebx
mov dword [0x4324f4], ebx
call dword [0x4324c8]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x4324f8], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x4324dc], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x4324dc], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x4324f8], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45eeb0]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x4324d8], eax
jmp 0x4013ca
mov dword [0x4324dc], 1
mov dword [0x4324f8], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x4324e8], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x4324f8], 0
je 0x401840
mov ecx, dword [0x4324d0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x45eeb2]
mov edx, dword [0x4324d8]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x44eeb0]
mov dword [0x4324d8], eax
lea eax, [eax*2 + 0x44eeb0]
mov word [ebx*2 + 0x43eeb0], dx
mov ebx, dword [0x4324f0]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x4324cc], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x4324d4]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x4324f8]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x4324d0]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x4324f0]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x4324cc]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403af8
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x4324cc]
add dword [0x4324f8], ecx
sub dword [0x4324cc], 2
mov ecx, dword [0x4324d0]
movzx edx, byte [ecx + 0x45eeb3]
mov edi, dword [0x4324d8]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x4324d8], edx
and edi, esi
mov bx, word [edx*2 + 0x44eeb0]
dec dword [0x4324cc]
lea edx, [edx*2 + 0x44eeb0]
mov word [edi*2 + 0x43eeb0], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x4324d0], ecx
je 0x4017ef
mov eax, dword [0x4324f4]
test eax, eax
jl 0x401763
lea edx, [eax + 0x45eeb0]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x4324d0]
add esp, 0xc
mov dword [0x4324f4], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x45eeaf]
push eax
push 0
call fcn.00403af8
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x4324f4]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x45eeb0]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x4324d0]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032ff
mov ecx, dword [0x4324d0]
add esp, 0xc
mov dword [0x4324f4], ecx
jmp 0x4017e2
mov ecx, dword [0x4324d0]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x4324f8]
mov dword [0x4324d0], ecx
mov ebx, 0x106
cmp dword [0x4324f8], ebx
jae 0x401818
cmp dword [0x4324dc], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x4324f8], ebx
mov ecx, dword [0x4324d0]
jb 0x4017fc
cmp dword [0x4324f8], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x45eeaf]
push eax
push 0
call fcn.00403af8
pop ecx
pop ecx
mov ecx, dword [0x4324d0]
mov edx, dword [0x4324f4]
test edx, edx
jl 0x401858
lea eax, [edx + 0x45eeb0]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0xc
pop edi
pop ecx
ret
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x4324f8], edi
mov dword [0x4324cc], 2
je 0x401a32
mov ecx, dword [0x4324d0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45eeb2]
mov edx, dword [0x4324d8]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44eeb0]
mov dword [0x4324d8], eax
lea eax, [eax*2 + 0x44eeb0]
mov word [ebp*2 + 0x43eeb0], dx
test edx, edx
mov word [eax], cx
je 0x4018fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4018fa
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x4324f8]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x4324d0]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x4324f0]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403af8
sub dword [0x4324f8], edi
cmp edi, dword [0x4324d4]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x4324d0]
dec edi
movzx eax, byte [ecx + 0x45eeb3]
mov edx, dword [0x4324d8]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x4324d8], eax
mov bp, word [eax*2 + 0x44eeb0]
lea edx, [eax*2 + 0x44eeb0]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43eeb0], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x4324d0]
add ecx, edi
xor edi, edi
mov dword [0x4324d0], ecx
movzx eax, byte [ecx + 0x45eeb0]
movzx edx, byte [ecx + 0x45eeb1]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x4324d8], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x45eeb0]
push eax
push 0
call fcn.00403af8
dec dword [0x4324f8]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x4324d0]
inc ecx
mov dword [0x4324d0], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x4324f4]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x45eeb0]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x4324d0]
add esp, 0xc
mov dword [0x4324f4], ecx
mov ebp, 0x106
cmp dword [0x4324f8], ebp
jae 0x401a20
cmp dword [0x4324dc], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x4324f8], ebp
mov ecx, dword [0x4324d0]
jb 0x401a04
cmp dword [0x4324f8], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x4324d0]
mov edx, dword [0x4324f4]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x45eeb0]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0x10
ret

Function at 0x4050f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405100
or eax, 0xffffffff
jmp 0x40512e
cmp dword [esp + 8], 0
mov eax, dword [0x42f4a4]
je 0x40512e
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42f4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x40510d
pop esi
mov dword [0x42f4a4], eax
not eax
ret
Function at 0x40521c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40523d
call fcn.00405411
mov eax, dword [0x482bcc]
mov ecx, dword [0x4836e4]
add eax, dword [ebp + 0x10]
mov dword [0x482bcc], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x405276
cmp byte [0x48376e], 0
je 0x405276
sub eax, ecx
push eax
call fcn.0041742a
mov eax, dword [0x482bcc]
pop ecx
mov dword [0x4836e4], eax
pop ebp
ret

Function at 0x405acb
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, 0x482770
push edi
push 0x9c
mov ecx, esi
call fcn.0041fabb
push 0xa0
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0041fabb
push 0xa4
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041fabb
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and byte [ebp - 1], 0
mov edi, eax
mov ebx, 0x3ff
lea ecx, [ebp - 0x2c]
shr ax, 0xa
and edi, ebx
mov dword [ebp - 0x20], eax
call fcn.0041ef2d
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jbe 0x405c06
push 8
push esi
mov ecx, 0x482bc0
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041fd32
test eax, eax
jl 0x405c06
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041fabb
push 8
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
call fcn.0041fabb
lea eax, [eax + esi + 8]
mov ecx, 0x482bc0
push eax
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041fd32
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041fabb
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0041fabb
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
and dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
cmp di, word [ebp - 0xc]
lea esi, [esi + ecx + 4]
je 0x405bbf
cmp byte [ebp - 1], 0
jne 0x405bf7
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jne 0x405bf7
cmp dword [0x482a9c], 0
mov byte [ebp - 1], 1
je 0x405bde
push dword [ebp - 8]
mov ecx, 0x482408
call fcn.00417c4f
mov eax, dword [ebp - 0x18]
jmp 0x405be7
mov ecx, dword [ebp - 0x1c]
mov dword [0x482ac4], ecx
cmp di, word [ebp - 0xc]
jne 0x405bf7
shr ax, 0xa
cmp word [ebp - 0x20], ax
je 0x405c06
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x405b35
lea ecx, [ebp - 0x2c]
call fcn.0041f063
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406cd7
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
or esi, 0xffffffff
call fcn.004282e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406d8d
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x406d21
lea eax, [ebp - 0xc]
push eax
call edi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, esi
jae 0x406d3a
mov esi, eax
dec dword [ebp - 4]
jne 0x406d12
mov ecx, dword [ebp - 0x1c]
push 0xa
mov eax, ecx
xor edx, edx
pop edi
imul esi, esi, 0x186a0
div edi
xor edx, edx
pop ebx
mov edi, eax
mov eax, esi
div edi
xor edx, edx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x406d67
inc esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, edi
div esi
mov eax, esi
mov dword [ebp - 0x24], ecx
shr eax, 1
cmp edx, eax
jbe 0x406d84
inc ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x406d9d
Capabilities:
Check for time delay via gettickcount
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c620
push 0x428cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x24], eax
push 0xf
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
call esi
sub eax, dword [ebp - 0x20]
je 0x406dee
call esi
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
rdtsc
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
push ebx
call edi
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf
push ebx
call edi
call esi
mov dword [ebp - 0x2c], eax
call esi
sub eax, dword [ebp - 0x2c]
je 0x406e1f
call esi
mov esi, eax
rdtsc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
push ebx
call edi
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
xor edx, edx
div esi
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
mov eax, esi
xor edx, edx
push 0x64
pop esi
div esi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 5
jb 0x406e65
inc ecx
mov eax, ecx
jmp 0x406e82
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret