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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x40f308], 0
je 0x408e1b
mov eax, dword [0x40f30c]
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x401d38
push SysReAllocString
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408e92
lea eax, [ebp - 8]
push eax
push 0x40f30c
push esi
push esi
push dword [0x40f118]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408e92
cmp dword [ebp - 8], 4
jne 0x408e92
mov esi, dword [0x40f30c]
mov byte [0x40f308], 1
cmp dword [ebp - 4], eax
je 0x408e8b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408f1d
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x408ea5
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401d84
push SysReAllocString
call ebx
test eax, eax
jne 0x408f02
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x40f30c
push 0
push 0
push dword [0x40f118]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408f02
cmp dword [ebp - 8], ebx
jne 0x408f02
mov edi, dword [0x40f30c]
mov byte [0x40f308], 1
cmp dword [ebp - 4], eax
je 0x408efe
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x408f1d
and dword [0x40f30c], 0
cmp dword [ebp - 4], 0
mov byte [0x40f308], 1
je 0x408f1b
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409220
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40d450
call fcn.0040981f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x40f758], ebx
jne 0x408fc3
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40f74c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x408ffd
cmp eax, esi
jne 0x408ff0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x409000
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408fd7
xor esi, esi
inc esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409013
push 0x1f
call fcn.00541000
pop ecx
jmp 0x40904e
mov eax, dword [0x40f748]
test eax, eax
jne 0x409048
mov dword [0x40f748], esi
push 0x40125c
push 0x401250
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40904e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x409160
mov dword [0x40f32c], esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409072
push 0x40124c
push 0x401220
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x40f748], 2
cmp dword [ebp - 0x20], ebx
jne 0x40907f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40f75c], ebx
je 0x4090a0
push 0x40f75c
call fcn.00409757
pop ecx
test eax, eax
je 0x4090a0
push ebx
push 2
push ebx
call dword [0x40f75c]
mov eax, dword [sym.imp.MSVCR100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x409101
cmp cx, bx
je 0x4090bc
cmp dword [ebp - 0x1c], ebx
jne 0x409101
movzx ecx, word [eax]
cmp cx, bx
je 0x4090d1
cmp ecx, 0x20
ja 0x4090d1
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x4090bc
test byte [ebp - 0x40], 1
je 0x4090dd
movzx ecx, word [ebp - 0x3c]
jmp 0x4090e0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40f328], eax
cmp dword [0x40f31c], ebx
jne 0x409146
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp ecx, 0x22
jne 0x409111
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x4090a7
cmp dword [0x40f32c], ebx
jne 0x409154
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40f328]
call fcn.00409864
ret
call fcn.004086e1
jmp 0x408f95
Function at 0x4093a3
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x40f438], eax
mov dword [0x40f434], ecx
mov dword [0x40f430], edx
mov dword [0x40f42c], ebx
mov dword [0x40f428], esi
mov dword [0x40f424], edi
mov word [0x40f450], ss
mov word [0x40f444], cs
mov word [0x40f420], ds
mov word [0x40f41c], es
mov word [0x40f418], fs
mov word [0x40f414], gs
pushfd
pop dword [0x40f448]
mov eax, dword [ebp]
mov dword [0x40f43c], eax
mov eax, dword [ebp + 4]
mov dword [0x40f440], eax
lea eax, [ebp + 8]
mov dword [0x40f44c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40f388], 0x10001
mov eax, dword [0x40f440]
mov dword [0x40f33c], eax
mov dword [0x40f330], 0xc0000409
mov dword [0x40f334], 1
mov eax, dword [0x401c38]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40f114]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x40f380], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401e28
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x40f380], 0
jne 0x40948f
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x409a48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x401c38]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x401ef4
push 0x401ea0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409ada
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409ada
shr ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x5c
push 0xffffffffffffffff
sete al
lea eax, [eax*2 + 0x401f88]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00409b5f
jmp 0x409adc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040879f
leave
ret 4

Function at 0x409aeb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x401c38]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x401f14
push 0x401e38
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409b4e
cmp dword [ebp - 0x210], 4
jb 0x409b4e
lea eax, [ebp - 0x20c]
push eax
call fcn.00409b5f
jmp 0x409b50
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040879f
leave
ret 4
Function at 0x4014e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x401585
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.004014e7
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x401541
mov byte [ebp - 0x114], 0
jmp 0x401583
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x401565
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401583
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x401583
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x40158e
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x401e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004019a2
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x401e63
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0xe6
push 0xb4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], 0
je 0x401e76
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x401e96
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x401f77
mov dword [ebp - 0x618], 0
mov edx, dword [str.shell32.dll]
mov dword [ebp - 0x610], edx
mov eax, dword [0x435118]
mov dword [ebp - 0x60c], eax
mov ecx, dword [0x43511c]
mov dword [ebp - 0x608], ecx
mov edx, dword [str.prini.txt]
mov dword [ebp - 0x604], edx
mov eax, dword [0x435124]
mov dword [ebp - 0x600], eax
mov cx, word [0x435128]
mov word [ebp - 0x5fc], cx
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401ef5
xor eax, eax
jmp 0x401f77
push 0
lea edx, [ebp - 0x620]
push edx
push 0x5d8
lea eax, [ebp - 0x5f8]
push eax
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f52
push 2
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x61c], eax
push 0
lea eax, [ebp - 0x614]
push eax
mov ecx, dword [ebp - 0x620]
push ecx
lea edx, [ebp - 0x5f8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x620], 0x5d8
je 0x401ef5
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405c18
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x435fd0], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x435f6c
push 0x435f08
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405c60
xor eax, eax
jmp 0x405c89
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40954d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4356e0
cmp edx, dword [eax]
je 0x40956f
add eax, 8
inc ecx
cmp eax, 0x435770
jl 0x409560
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4356e0]
jne 0x40969d
mov eax, dword [0x435fdc]
cmp eax, 1
je 0x409677
test eax, eax
jne 0x4095a0
cmp dword [0x435634], 1
je 0x409677
cmp edx, 0xfc
je 0x40969d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4095d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40961a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b4c8
push edi
call fcn.0040a500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a320
lea eax, [ebp - 0xa0]
push 0x40b4a8
push eax
call fcn.0040a320
push dword [esi + 0x4356e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a320
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a474
add esp, 0x2c
pop edi
jmp 0x40969d
lea eax, [ebp + 8]
lea esi, [esi + 0x4356e4]
push 0
push eax
push dword [esi]
call fcn.00408850
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401ce8
Capabilities:
Create thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x401d16
lea eax, [esp + 0x10]
push eax
push edi
push esi
push 0x401bcb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x401d20
push 0xfffffffffffffffc
pop eax
jmp 0x401d63
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401d2c
push edi
call ebx
cmp dword [esi + 0x48], edi
je 0x401d29
lea ebp, [esi + 0x28]
mov dword [esi + 0x44], edi
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x44], 1
jmp 0x401d4a
push edi
call ebx
cmp dword [esi + 0x48], edi
jne 0x401d47
cmp dword [esi + 0x4c], edi
pop ebx
je 0x401d61
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x50]
jmp 0x401d63
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
cmp dword [0x4093f4], 0
push esi
jne 0x401f31
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 0x401f0b
mov dword [ecx*4 + 0x4093f0], eax
inc ecx
cmp ecx, 0x100
jl 0x401f06
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401f62
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 + 0x4093f0]
xor eax, esi
inc ecx
dec edx
jne 0x401f44
pop edi
not eax
pop esi
ret 0xc
Function at 0x403808
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
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40387a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x403853
cmp dword [ebp + 0x10], ebx
jne 0x403881
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403808
test eax, eax
jne 0x403865
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40383a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x40387a
Function at 0x403cb3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403ce0
mov ecx, dword [0x423f70]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4174dc], eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403dde
cmp eax, edi
jl 0x403dd7
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409094]
call ebx
test eax, eax
je 0x403dd4
cmp dword [ebp - 4], esi
jne 0x403dd4
push dword [ebp + 8]
add dword [0x4174dc], esi
call fcn.00403dde
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403dd7
cmp dword [ebp + 0x10], edi
jne 0x403da3
cmp dword [ebp + 8], edi
jle 0x403dcf
mov esi, 0x413498
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403d53
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409094]
call ebx
test eax, eax
je 0x403dd4
cmp edi, dword [ebp - 4]
jne 0x403dd4
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403d9f
cmp dword [ebp + 0x14], edi
jne 0x403d9f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4174dc], eax
cmp dword [ebp + 8], 0
jg 0x403d46
jmp 0x403dcf
push 0xfffffffffffffffe
jmp 0x403dd6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403dae
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409094]
call ebx
test eax, eax
je 0x403dd4
mov eax, dword [ebp - 4]
add dword [0x4174dc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403dd7
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403dde
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4174dc]
mov ebx, eax
sub esi, dword [0x40b43c]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x403fbf
push dword [0x41f4ec]
call fcn.00403ffd
push edi
push edi
push dword [0x40b43c]
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f4e8], esi
mov dword [0x4174d8], edi
mov eax, dword [0x4174e0]
mov ebp, 0x4000
sub eax, dword [0x41f4ec]
cmp eax, ebp
jg 0x403e52
mov ebp, eax
mov esi, 0x413498
push ebp
push esi
call fcn.00403fcb
test eax, eax
je 0x403fa1
add dword [0x41f4ec], ebp
mov dword [0x40b458], esi
mov dword [0x40b45c], ebp
cmp dword [0x423f28], edi
je 0x403f04
cmp dword [0x423f9c], edi
jne 0x403f04
cmp dword [esp + 0x10], edi
je 0x403ed1
mov eax, dword [0x41f4e8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x4174dc]
sub eax, dword [esp + 0x38]
add eax, dword [0x40b43c]
mov dword [0x4174d8], eax
jmp 0x403ebf
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403eb4
jmp 0x403f04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403f04
mov eax, dword [0x423f24]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x4038ec
push edi
push 0x6f
push dword [0x423f20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b440
mov dword [0x40b460], 0x40b498
mov dword [0x40b464], 0x8000
call fcn.00401ce8
test eax, eax
jl 0x403faa
mov esi, dword [0x40b460]
mov eax, 0x40b498
sub esi, eax
je 0x403f6b
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403fa6
cmp esi, dword [esp + 0x14]
jne 0x403fa6
add dword [0x40b43c], esi
cmp dword [0x40b45c], edi
jne 0x403e78
jmp 0x403f77
cmp dword [0x40b45c], edi
jne 0x403faa
cmp ebp, edi
je 0x403faa
mov eax, dword [0x4174dc]
mov ecx, eax
sub ecx, dword [0x40b43c]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403e3c
push edi
push edi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403faf
or eax, 0xffffffff
jmp 0x403fc1
push 0xfffffffffffffffe
jmp 0x403fac
push 0xfffffffffffffffd
pop eax
jmp 0x403fc1
cmp dword [esp + 0x10], edi
je 0x403fbf
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4045d0
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42a000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42a000
je 0x4045ef
push ebx
call fcn.004068f4
jmp 0x4045f5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x423f64]
test esi, esi
je 0x404648
mov ecx, dword [0x423f28]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x423f60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40462d
test esi, esi
jne 0x404617
jmp 0x404648
mov edx, dword [ecx + 2]
mov dword [0x423700], edx
mov edx, dword [ecx + 6]
mov dword [0x423fa4], edx
lea edx, [ecx + 0xa]
mov dword [0x4236fc], edx
cmp dword [0x4236fc], 0
jne 0x404663
cmp di, 0xffff
jne 0x40465f
mov edi, 0x3ff
jmp 0x4045f7
xor edi, edi
jmp 0x4045f7
movzx eax, word [ecx]
push eax
push ebx
call fcn.004068db
push 0xfffffffffffffffe
push 0x423720
call fcn.00406989
push eax
push dword [0x420900]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40634b
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422128], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40636f
test al, 0x10
jne 0x406372
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422128
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40639d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406414
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406566
test eax, eax
je 0x406478
test byte [ebp + 0xc], 1
push esi
je 0x406461
mov eax, dword [0x423f24]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x406478
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406478
test byte [ebp + 0xc], 2
je 0x406478
push eax
push esi
call fcn.004066ba
pop esi
leave
ret 8
Function at 0x406566
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d28
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00406517
test eax, eax
jne 0x406585
xor eax, eax
jmp 0x4065ce
test byte [0x423f30], 0x80
je 0x406599
mov cl, byte [eax]
test cl, cl
je 0x406581
cmp cl, 0x5c
je 0x406581
mov edi, eax
sub edi, esi
jmp 0x4065b3
call fcn.00406c6b
test eax, eax
je 0x4065ad
test byte [eax], 0x10
je 0x406581
push esi
call fcn.004064c5
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40659f
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 0x406643
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 0x406672
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x4066b6
test edi, edi
jne 0x40667d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4066b0