joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f12
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040279d
push 0x4145d0
lea ecx, [ebp - 0xc]
call fcn.004027ee
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402fee
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040139c
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401552
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004027ee
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402fbd
push 0x4145cc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402fd1
push 0x4145c4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402fd1
push edi
call fcn.00402f12
pop ecx
jmp 0x402fcd
push 0
push edi
call esi
test eax, eax
je 0x403011
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403011
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402f58
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403011
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403011
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403019
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x418854], 0
je 0x40302c
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403042
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x403060
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40305c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402f12
pop ecx
pop esi
ret

Function at 0x403116
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401484
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403154
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004027d6
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4032a9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401484
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004027d6
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004027d6
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.0040118a
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4033d0
xor eax, eax
jmp 0x403429
test al, 0x10
je 0x4033e1
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403429
mov eax, dword [0x4187b4]
test eax, eax
jne 0x4033f3
push esi
call fcn.00403386
pop ecx
jmp 0x403429
cmp eax, 2
jne 0x403426
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033ea
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x4033ea
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40371d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.0040279d
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40374e
push esi
lea ecx, [ebp - 0x18]
call fcn.0040119e
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403762
cmp ax, 0x2f
jne 0x40376b
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403791
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403784
cmp ax, 0x5c
je 0x403784
dec esi
test esi, esi
jg 0x40376f
test esi, esi
je 0x403840
and word [edi + esi*2], 0
push edi
call fcn.00401ba1
test eax, eax
pop ecx
je 0x403780
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4037c8
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004033b3
test eax, eax
pop ecx
pop ecx
je 0x4037c8
xor esi, esi
jmp 0x403865
push edi
call fcn.00401ba1
test eax, eax
pop ecx
jne 0x4037e2
push edi
push 0xc
push 1
call fcn.00408dd2
add esp, 0xc
jmp 0x4037c1
cmp esi, ebx
jge 0x403834
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40381a
jmp 0x403819
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403820
cmp ax, 0x2f
je 0x403820
inc esi
cmp word [edi + esi*2], cx
jne 0x403809
push edi
mov word [edi + esi*2], cx
call fcn.00401ba1
test eax, eax
pop ecx
je 0x4037d3
cmp esi, dword [ebp - 4]
jl 0x4037e6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403885
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403870
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403870
cmp ax, 0x7a
ja 0x403870
cmp word [ecx + 2], 0x3a
jne 0x403870
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403885
push ecx
push 0xc
push 1
call fcn.00408dd2
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404571
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401484
push 2
mov ecx, esi
call fcn.004027d6
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x4045c4
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004027d6
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.0040118a
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.004027d6
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.0040118a
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404619
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4045d4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404620
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4183a4], esi
jle 0x404674
mov eax, dword [0x4183a8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040136a
lea eax, [ebp - 0xc]
push eax
call fcn.00404224
mov eax, dword [0x4183a8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x4183a4]
pop ecx
jl 0x404631
pop esi
leave
ret
Function at 0x404932
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00412910
call fcn.0040215d
push 3
call fcn.004021b3
push 0x28
mov dword [0x4187a8], eax
call fcn.004021b3
push 2
mov dword [0x4187a4], eax
call fcn.004021b3
push 5
mov dword [0x4187a0], eax
call fcn.004021b3
push 0x15
mov dword [0x41879c], eax
call fcn.004021b3
push 0x16
mov dword [0x418798], eax
call fcn.004021b3
push 0x17
mov dword [0x418794], eax
call fcn.004021b3
add esp, 0x1c
xor ebx, ebx
mov dword [0x418790], eax
mov dword [0x418788], ebx
mov dword [0x41878c], ebx
mov edi, 0x41839c
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a61
push ebx
lea eax, [ebp - 0x98]
push 0x415698
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401484
lea ecx, [ebp - 0xc]
call fcn.00401484
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403305
cmp dword [esi + 0x418374], ebx
jne 0x404a51
push dword [esi + 0x418378]
lea ecx, [ebp - 0x18]
call fcn.0040139c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040139c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403305
add esi, 8
cmp esi, 0x28
jb 0x404a21
lea ecx, [ebp - 0x18]
call fcn.004026c6
inc ebx
cmp ebx, 0x40
jl 0x4049b8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f96
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401484
lea ecx, [ebp - 0x18]
call fcn.00401484
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404fe7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404ff4
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404ac6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040139c
cmp dword [ebp - 8], edi
jne 0x405029
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405069
test dword [ebp + 0xc], 0x10000
jne 0x405057
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x40501b
xor ebx, ebx
jmp 0x405060
Function at 0x405333
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4054e5
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40535d
cmp ax, 0x2f
jne 0x4054e5
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4054e5
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404571
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4054af
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401484
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040139c
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ee
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401455
mov esi, 0x41579c
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ee
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027ee
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401455
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027ee
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ee
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401455
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ee
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b4c
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x4054c0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4054c0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054eb
push dword [ebp - 0x28]
call fcn.0040301f
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4054ec
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406e34
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406de7
add esp, 0x1c
leave
ret
Function at 0x408a2f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071ec
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407209
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407209
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407852
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086fe
mov ecx, esi
mov edi, eax
call fcn.00407bbf
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40be6b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40be91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40be91
xor al, al
jmp 0x40beb1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412d30
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x412910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x418980], ecx
add edx, 1
cmp edx, 0x100
jb 0x412912
cmp edx, 0x800
jae 0x4129fb
mov edi, edi
mov eax, dword [edx*4 + 0x418580]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x418980]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41897c], eax
jb 0x4129d0
mov dword [0x41896c], 0x413050
call fcn.00412b40
test eax, eax
jne 0x412a18
mov dword [0x41896c], 0x412f70
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5ea11cff
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
mov ecx, 0x2cdb61bb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x432004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x404390
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406354
test esi, esi
jne 0x4043c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406490
jmp 0x4043e4
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004042d4
mov edi, eax
test esi, esi
je 0x4043e4
cmp dword [ebx], 0
je 0x4043e4
dec esi
jmp 0x4043cd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404418
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41b008], 0x8088405
inc edx
mov dword [ebx + 0x41b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40555c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004057f8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4056e6
test edi, edi
je 0x4056e6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405626
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405601
cmp edi, 0xffffffff
je 0x4055c1
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055c1
mov byte [esp], 0
jmp 0x4056e6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405601
test ebx, ebx
jne 0x4055f3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4055f3
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4056e6
lea eax, [esp + 0xc]
call fcn.0040530c
dec ebp
test ebp, ebp
jg 0x4055a6
cmp edi, 0xffffffff
je 0x405626
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405624
mov byte [esp], 0
jmp 0x4056e6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40556a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405626
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405754
mov edx, eax
mov ebx, dword [0x41d8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40568a
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405688
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40568a
xor edi, edi
cmp byte [esp], 0
je 0x4056b0
mov ebx, dword [esi]
test bl, 1
jne 0x4056c6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405690
mov byte [esp + 1], 1
jmp 0x4056c6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056b0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40563d
cmp byte [esp], 0
je 0x4056e6
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret