joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f86
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.004013f8
push 2
mov ecx, esi
call fcn.00402520
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 0x403fd9
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402520
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
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.00402520
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.004010fe
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 0x40402e
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403fe9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404035
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41738c], esi
jle 0x404089
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012de
lea eax, [ebp - 0xc]
push eax
call fcn.00403b5b
mov eax, dword [0x417390]
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 [0x41738c]
pop ecx
jl 0x404046
pop esi
leave
ret
Function at 0x404406
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f3d
push 3
call fcn.00401f93
push 0x28
mov dword [0x417764], eax
call fcn.00401f93
push 2
mov dword [0x417760], eax
call fcn.00401f93
push 5
mov dword [0x41775c], eax
call fcn.00401f93
push 0x15
mov dword [0x417758], eax
call fcn.00401f93
push 0x16
mov dword [0x417754], eax
call fcn.00401f93
push 0x17
mov dword [0x417750], eax
call fcn.00401f93
add esp, 0x1c
xor ebx, ebx
mov dword [0x41774c], eax
mov dword [0x417744], ebx
mov dword [0x417748], ebx
mov edi, 0x417384
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 0x40452a
push ebx
lea eax, [ebp - 0x98]
push 0x4144f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013f8
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f1a
cmp dword [esi + 0x41735c], ebx
jne 0x40451a
push dword [esi + 0x417360]
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f1a
add esi, 8
cmp esi, 0x28
jb 0x4044ea
lea ecx, [ebp - 0x18]
call fcn.00402410
inc ebx
cmp ebx, 0x40
jl 0x404481
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b00
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 0x404cb2
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x404b2a
cmp ax, 0x2f
jne 0x404cb2
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 0x404cb2
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403f86
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 0x404c7c
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013f8
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401310
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402538
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
mov esi, 0x414580
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402538
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402538
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402538
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402538
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402538
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402761
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 0x404c8d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404c8d
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 0x404cb8
push dword [ebp - 0x28]
call fcn.00402c34
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 0x404cb9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406552
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.00406505
add esp, 0x1c
leave
ret
Function at 0x40b2cb
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 0x40b2f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b2f1
xor al, al
jmp 0x40b311
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412130
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 0x411d10
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 + 0x417920], ecx
add edx, 1
cmp edx, 0x100
jb 0x411d12
cmp edx, 0x800
jae 0x411dfb
mov edi, edi
mov eax, dword [edx*4 + 0x417520]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x417920]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41791c], eax
jb 0x411dd0
mov dword [0x41790c], 0x412450
call fcn.00411f40
test eax, eax
jne 0x411e18
mov dword [0x41790c], 0x412370
ret
Function at 0x402a47
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a27b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a98
cmp dword [ebp + 0x10], ebx
jne 0x402acf
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a47
test eax, eax
jne 0x402aaa
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ea7
cmp eax, ebx
je 0x402ae2
push ebx
push dword [0x7a27b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402adb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a27b0], ebx
jne 0x402ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad8
jmp 0x402adb
Function at 0x40534c
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405805
mov edi, eax
cmp edi, 0xffffffff
je 0x405452
test byte [esp + 0x10], 1
push esi
je 0x405434
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40543a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405443
xor eax, eax
inc eax
jmp 0x405454
test byte [esp + 0x10], 4
jne 0x405452
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405459
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.00405717
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405498
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2788], eax
jmp 0x405622
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054b2
test eax, eax
je 0x4055d0
test bl, 2
je 0x4055d0
mov esi, 0x79fd00
push edi
push esi
call fcn.00405b7c
cmp dword [ebp + 8], 0
je 0x4054d1
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054d7
push edi
call fcn.00405670
cmp byte [edi], 0
jne 0x4054e5
cmp byte [0x79fd00], 0x5c
jne 0x4054f0
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 0x4055c6
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405654
cmp byte [eax], 0
je 0x405536
cmp byte [ebp - 0x1c], 0
je 0x405536
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40554c
mov al, byte [esi + 1]
test al, al
je 0x4055a5
cmp al, 0x2e
jne 0x40554c
cmp byte [esi + 2], 0
je 0x4055a5
push esi
push ebx
call fcn.00405b7c
test byte [ebp - 0x14c], 0x10
je 0x405571
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055a5
push dword [ebp + 0xc]
push edi
call fcn.00405459
jmp 0x4055a5
push dword [ebp - 4]
push edi
call fcn.00405411
test eax, eax
jne 0x40559d
cmp dword [ebp - 4], eax
je 0x405595
push edi
push 0xfffffffffffffff1
call fcn.00404e89
push 0
push edi
call fcn.00405a30
jmp 0x4055a5
inc dword [0x7a2788]
jmp 0x4055a5
push edi
push 0xfffffffffffffff2
call fcn.00404e89
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405514
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055d0
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405622
cmp dword [ebp - 0xc], esi
jne 0x4055e4
inc dword [0x7a2788]
jmp 0x405622
push edi
call fcn.00405e80
test eax, eax
je 0x405622
push edi
call fcn.00405629
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405411
test eax, eax
jne 0x40561a
cmp dword [ebp - 4], esi
je 0x4055dc
push edi
push 0xfffffffffffffff1
call fcn.00404e89
push esi
push edi
call fcn.00405a30
jmp 0x405622
push edi
push 0xffffffffffffffe5
call fcn.00404e89
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405717
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0100
push esi
call fcn.00405b7c
push esi
call fcn.004056c2
mov edi, eax
test edi, edi
jne 0x405738
xor eax, eax
jmp 0x40578a
push edi
call fcn.00405de7
test byte [0x7a2718], 0x80
je 0x405751
mov al, byte [edi]
test al, al
je 0x405734
cmp al, 0x5c
je 0x405734
sub edi, esi
jmp 0x405769
call fcn.00405e80
test eax, eax
je 0x405763
test byte [eax], 0x10
je 0x405734
push esi
call fcn.00405670
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405755
call fcn.00405629
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 0x405805
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 0x405824
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 0x40582a
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 0x405859
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 [0x409368]
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 0x40589e
test edi, edi
jne 0x405864
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405898
Function at 0x4058a2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x7a0a88
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058f1
push 1
push 0
push esi
call fcn.0040582a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a2a
cmp eax, ebx
jg 0x405a2a
mov esi, 0x7a0e88
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a2a
cmp eax, ebx
jg 0x405a2a
push esi
push edi
push str._s_s_r_n
push 0x7a0688
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2710]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b9e
push 4
push 0xc0000000
push esi
call fcn.0040582a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a2a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a23
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a23
cmp edi, dword [esp + 0x10]
jne 0x405a23
push str._Rename__r_n
push esi
call fcn.0040578f
test eax, eax
jne 0x4059b9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059ee
add eax, 0xa
push 0x40936c
push eax
call fcn.0040578f
mov ebp, eax
test ebp, ebp
je 0x4059ea
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059db
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059d5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059f0
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x7a0688
push eax
call fcn.004057e5
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405a63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ad4
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ac3
cmp dword [ebp + 0x14], 1
je 0x405ac5
cmp dword [ebp + 0x14], 2
je 0x405ac5
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f19
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a128c], 0
push esi
jne 0x405f50
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f2a
mov dword [ecx*4 + 0x7a1288], eax
inc ecx
cmp ecx, 0x100
jl 0x405f25
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f81
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1288]
xor eax, esi
inc ecx
dec edx
jne 0x405f63
pop edi
not eax
pop esi
ret 0xc
Function at 0x41f4d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042d955
pop ecx
push eax
call fcn.0042d776
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f274
lea ecx, [ebp - 0x18]
call fcn.00409ad3
mov ecx, esi
call fcn.00407510
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f6c9
push dword [ebp - 0x18]
push 0x49d158
push edi
call fcn.0041f574
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f294
lea ecx, [ebp - 0x18]
call fcn.0040988f
mov esi, dword [ebp - 8]
push edi
call fcn.0042dd99
push edi
call fcn.0042d955
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f564
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d776
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471f06
push eax
push 1
call fcn.00471e96
push eax
call fcn.0042dbb3
add esp, 0x10
mov esi, eax
jmp 0x41f54c
mov ecx, esi
call fcn.00407510
mov eax, dword [esi + 8]
push dword [eax]
call dword [0x49c240]
jmp 0x41f541

Function at 0x43927b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004390fa
Function at 0x46967e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe0b
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e20
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4696d9
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4696d0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46e1d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4d139d], 0
mov ebx, edx
test edi, edi
je 0x46e228
mov byte [0x4d139e], 1
call dword [0x49c180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46e6b0
push ecx
push ecx
call fcn.0042d258
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x49c704]
mov edi, eax
test esi, esi
je 0x46e253
push 0xffffffffffffffff
push esi
mov byte [0x4d139e], 0
call dword [0x49c16c]
push esi
call dword [0x49c364]
cmp byte [0x4d139d], 1
jne 0x46e261
or eax, 0xffffffff
jmp 0x46e263
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x471f5c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f6a
call fcn.00472046
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fa2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fb5
call fcn.00472046
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x471ff8
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472006
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472012
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret