joyce8/EMBER2024-capa huggingface dataset:
Function at 0x747f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x747ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x748035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00747e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x747fc5
mov edi, 0x7628b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x748035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00747e00
add edi, 4
add esp, 0xc
cmp edi, 0x7628c0
jb 0x748000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x748070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0074e082
mov esi, eax
add esp, 8
test esi, esi
je 0x748107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x748102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0074d946
add esp, 8
test eax, eax
je 0x7480e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7480e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0074d946
add esp, 8
test eax, eax
jne 0x7480c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x748102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x748f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x75d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x749002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0074cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x749002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007446e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0074d20b
push 0x10
call fcn.0074d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x748fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007391c0
jmp 0x748fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00748b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x748ff0
mov ecx, edi
call fcn.007392c0
push edi
call fcn.0074d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x749021
inc ebx
cmp ebx, 0x20
jb 0x748f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x74a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x75e808
push 0x74e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x74a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x74a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0074d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x74a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x74a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x74a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0074a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x74b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x74b131
push esi
call fcn.0074e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0073d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x74b131
push 0
push ebp
call fcn.0073d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0073d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x74b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0073d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x74b121
push 0x763918
push edi
call fcn.0074c3f0
push eax
push ebx
push esi
call fcn.0074af60
push 0x7638f8
push edi
call fcn.0074c3f0
push eax
push ebx
push esi
call fcn.0074af60
push 0x7638d8
push edi
call fcn.0074c3f0
push eax
push ebx
push esi
call fcn.0074af60
push 0x7638c0
push edi
call fcn.0074c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0074af60
push 0x7638a0
push edi
call fcn.0074c3f0
push eax
push ebx
push esi
call fcn.0074af60
push 0x763888
push edi
call fcn.0074c3f0
push eax
push ebx
push esi
call fcn.0074af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x74c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0074c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0074c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0074c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0074c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x74cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x74cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x75e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x74cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x74cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40173c
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, ecx
push esi
push edi
xor ecx, ecx
mov dx, word [eax]
xor edi, edi
test dx, dx
je 0x401784
mov esi, 0x40a020
cmp dx, 0x20
jne 0x40175b
test edi, edi
je 0x401784
cmp dx, 0x22
jne 0x40176c
xor edx, edx
test edi, edi
sete dl
mov edi, edx
jmp 0x40177a
cmp esi, 0x40a22e
jae 0x401790
mov word [esi], dx
inc ecx
inc esi
inc esi
inc eax
inc eax
mov dx, word [eax]
test dx, dx
jne 0x401751
and word [ecx*2 + 0x40a020], 0
pop edi
pop esi
ret
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x401f4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x40a8b0]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
jne 0x401fe0
lea eax, [ebp - 0x2e0]
push 0x106
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x402076
cmp eax, 0x104
ja 0x402076
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x2e2], 0x5c
je 0x401fb3
mov word [ebp + eax*2 - 0x2e0], 0x5c
inc eax
lea eax, [ebp + eax*2 - 0x2e0]
push str.version.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x40a8b0], eax
je 0x402076
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoSizeW
push eax
call esi
mov edi, eax
push str.GetFileVersionInfoW
push dword [0x40a8b0]
call esi
mov dword [ebp - 4], eax
push str.VerQueryValueW
push dword [0x40a8b0]
call esi
cmp edi, ebx
mov dword [ebp - 0xc], eax
je 0x402076
cmp dword [ebp - 4], ebx
je 0x402076
cmp eax, ebx
je 0x402076
push ebx
push dword [ebp - 8]
call edi
mov esi, eax
cmp esi, ebx
je 0x402076
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
cmp edi, ebx
je 0x402076
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [ebp - 4]
test eax, eax
je 0x402067
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push 0x408794
push edi
mov dword [ebp - 8], ebx
call dword [ebp - 0xc]
test eax, eax
je 0x402067
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
jmp 0x40206a
mov esi, dword [ebp - 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
jmp 0x402078
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402094
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, 0x40a44c
push edi
push esi
call ebx
cmp eax, 0x104
ja 0x40222a
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [ebp - 0x220]
cmp ax, 0x61
jb 0x4020da
cmp ax, 0x7a
jbe 0x4020e6
cmp ax, 0x41
jb 0x402103
cmp ax, 0x5a
ja 0x402103
cmp word [ebp - 0x21e], 0x3a
jne 0x402103
cmp word [ebp - 0x21c], 0x5c
jne 0x402103
mov dword [ebp - 4], 3
jmp 0x402121
cmp ax, 0x5c
jne 0x40222a
cmp word [ebp - 0x21e], ax
jne 0x40222a
mov dword [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402145
and al, 0x10
neg al
sbb eax, eax
and al, 0x49
add eax, 0xb7
jmp 0x40222d
lea ecx, [ebp - 0x220]
call fcn.0040207d
mov esi, eax
test esi, esi
je 0x402226
cmp esi, 0xb7
je 0x402226
lea eax, [ebp - 0x220]
push eax
call ebx
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00402232
test eax, eax
jge 0x402187
mov eax, esi
jmp 0x40222d
cmp eax, dword [ebp - 4]
jb 0x402180
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x4021a7
cmp edi, 1
je 0x402226
and word [ebp + eax*2 - 0x220], 0
mov edi, eax
lea ecx, [ebp - 0x220]
call fcn.0040207d
mov esi, eax
test esi, esi
je 0x4021fe
cmp esi, 0xb7
je 0x4021e1
lea ecx, [ebp - 0x220]
call fcn.00402232
test eax, eax
jl 0x402180
je 0x402180
cmp eax, dword [ebp - 4]
jb 0x402180
and word [ebp + eax*2 - 0x220], 0
jmp 0x4021a7
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021fe
test al, 0x10
jne 0x4021fe
mov eax, 0xb7
jmp 0x40222d
lea eax, [ebp - 0x220]
push eax
call ebx
cmp eax, edi
jae 0x402226
lea ecx, [ebp - 0x220]
mov word [ebp + eax*2 - 0x220], 0x5c
call fcn.0040207d
test eax, eax
jne 0x40222d
jmp 0x4021fe
xor eax, eax
jmp 0x40222d
push 0x7b
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4023f8
Capabilities:
Set registry value

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 4
Function at 0x40243d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 8], 1
push eax
mov eax, dword [ebp - 4]
dec eax
push ebx
neg eax
sbb eax, eax
push ebx
and al, 0xeb
mov word [ebp - 0x264], bx
add eax, 0x17
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x402550
lea ecx, [ebp - 0x264]
call fcn.00401458
mov edx, dword [0x408150]
lea ecx, [ebp - 0x264]
call fcn.004013bf
cmp dword [ebp - 4], ebx
je 0x4024b3
lea ecx, [ebp - 0x264]
call fcn.0040207d
lea ecx, [ebp - 0x264]
call fcn.00401458
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
lea esi, [ebp + eax*2 - 0x264]
cmp edi, ebx
mov edx, str.7_Zip_File_Manager.lnk
je 0x4024e2
mov edx, str.7_Zip_Help.lnk
mov ecx, esi
call fcn.00401322
lea eax, [ebp - 0x4bc]
push 0x40a44c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
mov edx, str.7zFM.exe
je 0x402509
mov edx, str.7_zip.chm
lea ecx, [ebp - 0x4bc]
call fcn.004013bf
cmp dword [ebp - 4], ebx
jne 0x402528
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402540
lea edx, [ebp - 0x4bc]
lea ecx, [ebp - 0x264]
call fcn.00402562
test eax, eax
je 0x402540
mov dword [ebp - 8], ebx
inc edi
cmp edi, 2
jb 0x4024d4
cmp dword [ebp - 4], ebx
je 0x402550
cmp dword [ebp - 8], ebx
jne 0x40255d
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x402451
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404df9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
test edi, edi
je 0x404e52
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x404e1c
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404e4a
test ecx, ecx
je 0x404e52
test edi, edi
jbe 0x404e52
jmp 0x404e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404e54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401554
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401e00
sub eax, fcn.004015cb
push eax
push fcn.004015cb
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107d
mov eax, ebx
lea edx, [ebp - 2]
jmp loc.00422000
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x4015cb
Capabilities:
Delete file

Disassembly:
hlt
push edi
mov edi, 0x72647246
jb 0x401617
ror byte [ecx + 0x6ed8c765], 0
inc edi
add al, 0xe8
push edi
jbe 0x4015a9
popal
mov dword [ebx + edx*2 + 0x6c], ebp
mov dword [ecx + 0x45], esp
jae 0x401612
and byte [ebp + eax*2], 0x8d
mov dword [edx - 0x39], edx
invalid
inc ebp
call 0x6e75775d
outsb dx, byte [esi]
inc ebp
inc ebp
add al, 0xa2
invalid
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1b590d63
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28130cb6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4033b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405d6c
test esi, esi
jne 0x4033ec
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.00405ea8
jmp 0x40340a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032f8
mov edi, eax
test esi, esi
je 0x40340a
cmp dword [ebx], 0
je 0x40340a
dec esi
jmp 0x4033f3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403aec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x556020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b64
xor eax, eax
push ebp
push 0x403b5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403bbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x556020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x556020], ax
mov esp, ebp
pop ebp
ret
Function at 0x40436c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404620
mov byte [esp], al
cmp byte [esp], 0
jne 0x4044f5
test edi, edi
je 0x4044f5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40442c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404407
cmp edi, 0xffffffff
je 0x4043cb
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4043cb
mov byte [esp], 0
jmp 0x4044f5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404407
test ebx, ebx
jne 0x404400
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013d4
test eax, eax
jne 0x404400
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4044f5
pause
dec ebp
test ebp, ebp
jg 0x4043b0
cmp edi, 0xffffffff
je 0x40442c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40442a
mov byte [esp], 0
jmp 0x4044f5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40437a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013d4
cmp ebx, eax
jne 0x40442c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404568
mov edx, eax
mov ebx, dword [0x55f8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404493
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404491
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404493
xor edi, edi
cmp byte [esp], 0
je 0x4044bc
mov ebx, dword [esi]
test bl, 1
jne 0x4044d5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013d4
cmp ebx, eax
jne 0x404499
mov byte [esp + 1], 1
jmp 0x4044d5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013d4
cmp ebx, eax
jne 0x4044bc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404446
cmp byte [esp], 0
je 0x4044f5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405078
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55f054], 0
je 0x4050d9
cmp word [0x55f330], 0xd7b2
jne 0x4050a1
cmp dword [0x55f338], 0
jbe 0x4050a1
mov eax, 0x55f32c
call dword [0x55f348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405104
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55602c], 0
jne 0x4050f5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret