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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push ebx
push edi
push eax
mov eax, dword [0x7c5d10]
xor edi, edi
or eax, 8
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ca4
mov ebx, 0x105
jmp 0x402c5d
cmp dword [ebp + 0x10], edi
jne 0x402c98
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00402c12
test eax, eax
jne 0x402c73
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402c44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00405ec1
test eax, eax
je 0x402cac
push edi
push dword [0x7c5d10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ca4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x7c5d10], edi
jne 0x402ca1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ca1
mov eax, edi
jmp 0x402ca4
Function at 0x402d63
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x79e9e0
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov ebp, 0x8000
test edi, edi
cmovne ebp, dword [esp + 0x6c]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0xc], eax
test ecx, ecx
js 0x402d9e
mov eax, dword [0x7c5c78]
add eax, ecx
push eax
call fcn.00402d4c
push 4
lea eax, [esp + 0x6c]
push eax
push dword [0x40a010]
call fcn.00405f24
test eax, eax
jne 0x402dbc
push 0xfffffffffffffffd
pop eax
jmp 0x402f04
mov eax, dword [esp + 0x68]
push ebx
test eax, eax
jns 0x402f1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x6c]
and dword [0x414140], esi
and ecx, 0x7fffffff
mov dword [esp + 0x70], eax
mov byte [0x414128], 0xb
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], ecx
jle 0x402f01
mov ebx, 0x4000
cmp ecx, ebx
cmovl ebx, ecx
push ebx
push 0x79a9e0
call fcn.00402d36
test eax, eax
je 0x402f81
sub dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x10]
mov dword [0x414118], 0x79a9e0
mov dword [0x41411c], ebx
push 0x414118
mov dword [0x414120], eax
mov dword [0x414124], ebp
call fcn.00406365
mov dword [esp + 0x1c], eax
test eax, eax
js 0x402f1b
mov ebx, dword [0x414120]
sub ebx, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7c5d14], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
je 0x402eba
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x402e7e
test ecx, ecx
jne 0x402eba
mov eax, dword [esp + 0x64]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004055e1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
test ebx, ebx
je 0x402f0d
test edi, edi
jne 0x402ee9
push edi
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f17
cmp dword [esp + 0x18], ebx
jne 0x402f17
mov eax, dword [esp + 0x10]
add esi, ebx
jmp 0x402ef6
mov eax, dword [0x414120]
add esi, ebx
sub ebp, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], 4
jne 0x402e2d
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x50
ret 0x10
test ecx, ecx
jg 0x402df8
jmp 0x402f01
push 0xfffffffffffffffe
jmp 0x402f83
push 0xfffffffffffffffc
jmp 0x402f83
test edi, edi
jne 0x402f6d
test eax, eax
jle 0x402f01
mov ebx, 0x79a9e0
cmp eax, ebp
mov edi, ebp
cmovl edi, eax
push edi
push ebx
call fcn.00402d36
test eax, eax
je 0x402f81
push 0
lea eax, [esp + 0x74]
push eax
push edi
push ebx
push dword [esp + 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f17
cmp edi, dword [esp + 0x70]
jne 0x402f17
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x402f2c
jmp 0x402f01
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402d36
test eax, eax
jne 0x402f01
push 0xfffffffffffffffd
pop eax
jmp 0x402f03
Function at 0x402f89
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x402fa8
mov eax, dword [0x414110]
test eax, eax
je 0x402fa0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x414110], 0
ret
cmp dword [0x414110], 0
je 0x402fb9
push 0
call fcn.00405939
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7c5c20]
jbe 0x402fec
push 0
push 0x403255
push 0
push 0x6f
push dword [0x7c1c14]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x414110], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x402fed
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x7fc000
add eax, 0x3e8
push esi
push ebx
mov dword [0x7c5c20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405ef7
mov ebp, eax
mov dword [0x40a010], ebp
cmp ebp, 0xffffffff
jne 0x403046
mov eax, str.Error_launching_installer
jmp 0x40323c
push esi
mov esi, 0x7f4000
push esi
call fcn.004060a4
push esi
call fcn.0040620a
push eax
push 0x7fe000
call fcn.004060a4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x414108], esi
test esi, esi
jle 0x40317a
mov ebx, dword [esp + 0x38]
cmp dword [0x7c5c28], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovl edi, esi
push edi
push 0x7929e0
call fcn.00402d36
test eax, eax
je 0x403246
cmp dword [0x7c5c28], 0
jne 0x40313a
push 0x1c
push 0x7929e0
lea eax, [esp + 0x20]
push eax
call fcn.00405c72
test dword [esp + 0x18], 0xfffffff0
jne 0x403147
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x403147
cmp dword [esp + 0x28], 0x46537349
jne 0x403147
cmp dword [esp + 0x24], 0x65724358
jne 0x403147
cmp dword [esp + 0x20], 0x726f7461
jne 0x403147
mov eax, dword [0x41410c]
or ebx, dword [esp + 0x18]
mov dword [0x7c5c28], eax
mov eax, ebx
and eax, 2
or dword [0x7c5d00], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
jg 0x40324e
test bl, 8
jne 0x40312b
test bl, 4
jne 0x403172
inc dword [esp + 0x10]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403147
mov edi, esi
jmp 0x403147
test bl, 2
jne 0x403147
push 0
call fcn.00402f89
pop ecx
cmp esi, dword [0x414108]
jge 0x403162
push edi
push 0x7929e0
push dword [esp + 0x1c]
call fcn.004062fb
mov dword [esp + 0x14], eax
add dword [0x41410c], edi
sub esi, edi
test esi, esi
jg 0x403080
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 1
call fcn.00402f89
cmp dword [0x7c5c28], 0
pop ecx
je 0x40324e
test ebx, ebx
je 0x4031c2
push dword [0x41410c]
call fcn.00402d4c
push 4
lea eax, [esp + 0x3c]
push eax
push dword [0x40a010]
call fcn.00405f24
test eax, eax
je 0x40324e
cmp edi, dword [esp + 0x38]
jne 0x40324e
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x7c5c28]
mov esi, eax
add ecx, 0x1c
push ecx
call fcn.00402d4c
push dword [esp + 0x2c]
xor ebx, ebx
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402d63
cmp eax, dword [esp + 0x2c]
jne 0x40324e
test byte [esp + 0x18], 1
mov dword [0x7c5c30], esi
mov eax, dword [esi]
mov dword [0x7c5c2c], eax
je 0x40320e
inc dword [0x7c5c24]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
dec ecx
jne 0x403214
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x7c5c40
call fcn.00405c72
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 1
call fcn.00402f89
pop ecx
mov eax, 0x4082e0
jmp 0x40323c
Function at 0x4059a2
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x4086f4
push 0x7bd268
call ebp
mov esi, dword [esp + 0x1c]
mov ebx, 0x400
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x4059f6
push 1
push 0
push esi
call fcn.00405ef7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x7bd268
push esi
call edi
test eax, eax
je 0x405ae6
cmp eax, ebx
jg 0x405ae6
push ebx
mov esi, 0x7bce68
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x405ae6
cmp eax, ebx
jg 0x405ae6
push esi
push 0x7bd268
push str._s_s_r_n
push 0x7bca68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7c5c30]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x1c], edi
push dword [ecx + 0x128]
push esi
call fcn.004056c6
push 4
push 0xc0000000
push esi
call fcn.00405ef7
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405ae6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [edi + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405adf
push esi
push edi
push ebx
call fcn.00405f24
test eax, eax
je 0x405adf
push str._Rename__r_n
push edi
call fcn.004060c0
test eax, eax
jne 0x405aec
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call ebp
add esi, 0xa
mov ecx, esi
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + edi]
push ebp
push 0x7bca68
push eax
call fcn.00405c72
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x408700
add eax, 0xa
push eax
call fcn.004060c0
mov ecx, eax
test ecx, ecx
je 0x405aa4
mov ebp, dword [esp + 0x1c]
lea edx, [edi + esi]
add ebp, edx
cmp edx, ecx
jbe 0x405b19
sub ebp, edx
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x405b0f
sub ecx, edi
inc ecx
jmp 0x405aa6

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

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406113
mov edi, eax
cmp edi, 0xffffffff
je 0x405b8e
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x405b76
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x405b7e
xor eax, eax
inc eax
jmp 0x405b90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405b6d
test byte [ebp + 0xc], 4
jne 0x405b8e
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8
Function at 0x405bf9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7baa68
push ebx
call fcn.004060a4
push ebx
call fcn.0040613b
mov esi, eax
test esi, esi
jne 0x405c1a
xor eax, eax
jmp 0x405c6d
push esi
call fcn.00406235
test byte [0x7c5c2c], 0x80
je 0x405c33
mov al, byte [esi]
test al, al
je 0x405c16
cmp al, 0x5c
je 0x405c16
sub esi, ebx
jmp 0x405c4b
call fcn.00405b95
test eax, eax
je 0x405c45
test byte [eax], 0x10
je 0x405c16
push ebx
call fcn.0040620a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x405c37
call fcn.00405b1e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x405c92
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7b8a20], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7b8a20
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405cd1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x405cd7
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00405bf9
mov dword [esp + 0x10], eax
test bl, 8
je 0x405d19
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7c5ce8], eax
jmp 0x405eb5
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x1c], ebp
je 0x405d36
test eax, eax
je 0x405e66
test bl, 2
je 0x405e66
push esi
push 0x7b8a68
call fcn.004060a4
test ebp, ebp
je 0x405d57
push str..
push 0x7b8a68
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x405d5d
push esi
call fcn.0040620a
cmp byte [esi], 0
jne 0x405d6b
cmp byte [0x7b8a68], 0x5c
jne 0x405d77
push 0x4082a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push 0x7b8a68
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x405e56
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00405bbc
cmp byte [eax], 0
je 0x405dc8
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x405ddf
mov al, byte [ebp + 1]
test al, al
je 0x405e33
cmp al, 0x2e
jne 0x405ddf
cmp byte [ebp + 2], 0
je 0x405e33
push ebp
push dword [esp + 0x14]
call fcn.004060a4
test byte [esp + 0x20], 0x10
je 0x405e02
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x405e33
push ebx
push esi
call fcn.00405cd7
jmp 0x405e33
push edi
push esi
call fcn.00405b4b
test eax, eax
jne 0x405e2b
test edi, edi
je 0x405e23
push esi
push 0xfffffffffffffff1
call fcn.004055e1
push 0
push esi
call fcn.00405969
jmp 0x405e33
inc dword [0x7c5ce8]
jmp 0x405e33
push esi
push 0xfffffffffffffff2
call fcn.004055e1
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405da1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x405e62
mov eax, dword [esp + 0x10]
mov byte [eax - 1], 0
mov eax, dword [esp + 0x14]
test ebp, ebp
pop ebp
je 0x405eb5
test eax, eax
je 0x405ea5
push esi
call fcn.00405b95
test eax, eax
je 0x405eb5
push esi
call fcn.00405b1e
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00405b4b
test eax, eax
jne 0x405ead
test edi, edi
je 0x405ea5
push esi
push 0xfffffffffffffff1
call fcn.004055e1
push 0
push esi
call fcn.00405969
jmp 0x405eb5
inc dword [0x7c5ce8]
jmp 0x405eb5
push esi
push 0xffffffffffffffe5
call fcn.004055e1
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x405f55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
mov byte [esi], bl
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fc7
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x2000
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fb6
cmp dword [ebp + 0x14], 1
je 0x405fb8
cmp dword [ebp + 0x14], 2
je 0x405fb8
mov byte [esi], bl
push dword [ebp - 4]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405feb
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
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40602a
test edi, edi
jne 0x405ff6
mov byte [esi], al
jmp 0x40602c
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x406113
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 0x406135
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x7bd7ac], 0
push esi
jne 0x406333
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
dec esi
jne 0x40630c
mov dword [ecx*4 + 0x7bd7a8], edx
inc ecx
cmp ecx, 0x100
jl 0x406307
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40635d
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x7bd7a8]
inc esi
dec edx
jne 0x406345
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x194062af
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x536c63a3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4043d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x39083a09
jmp 0x404410
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], 0x5404bc06
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0xe5140b15
jg 0x404430
cmp eax, 0x80358b79
jne 0x404410
jmp 0x404401
cmp eax, 0x6be3949c
jg 0x404460
cmp eax, 0x6300223d
jg 0x404470
cmp eax, 0x5404bc05
jg 0x404487
cmp eax, 0xe5140b16
je 0x404490
cmp eax, 0xe858ff34
jne 0x4044a3
mov dword [ebp - 0x14], 0x5404bc06
jmp 0x404410
cmp eax, 0x6be3949d
jne 0x404410
mov dword [ebp - 0x14], 0xe5140b16
jmp 0x404410
cmp eax, 0x6300223e
jne 0x404410
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0xe5140b16
jmp 0x404410
cmp eax, 0x5404bc06
jne 0x404410
jmp 0x4044c6
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0xe858ff34
jmp 0x404410
cmp eax, 0x39083a09
jne 0x404410
mov eax, 0x80358b79
cmp dword [ebp - 4], 0
je 0x4044be
mov eax, 0x6be3949d
mov dword [ebp - 0x14], eax
jmp 0x404410
mov eax, dword [ebp - 8]
add esp, 0x1c
pop ebp
ret

Function at 0x405ab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x134
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [esp], eax
call fcn.00404c40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0xc2b51a62
lea esi, [ebp - 0x125]
mov edi, 0x26465390
jmp 0x405bce
mov dword [esp], esi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.00403e40
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00403e40
mov dword [esp], esi
mov dword [esp + 4], 0x105
call fcn.00404ee0
mov dword [esp], esi
call fcn.00404c40
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00404650
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add edx, edi
sub edx, ecx
add edx, 0xd9b9ac70
add ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00404650
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0xc2b51a62
mov eax, dword [ebp - 0x130]
cmp eax, 0x8e861481
je 0x405b10
cmp eax, 0xed34211
je 0x405c08
cmp eax, 0xc2b51a62
jne 0x405bce
mov eax, 0x8e861481
cmp dword [ebp - 0x12c], 0
je 0x405c00
mov eax, 0xed34211
mov dword [ebp - 0x130], eax
jmp 0x405bce
add esp, 0x134
pop esi
pop edi
pop ebx
pop ebp
ret