joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45945c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459473
add esp, 0xfffffff0
call fcn.00403a2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004231a8
mov eax, dword [0x469108]
cmp word [eax + 2], 0
jne 0x45949b
mov eax, dword [0x469108]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045aa90
mov eax, dword [0x4691a4]
cmp word [eax + 2], 0
jne 0x4594b5
mov eax, dword [0x4691a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ac88
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419134]
call fcn.00403698
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419134]
call fcn.00403698
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425668]
call fcn.0042d034
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45963c
mov eax, dword [0x469034]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d404
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b208
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x469034]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca68
test eax, eax
je 0x4595aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dc0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca90
test eax, eax
je 0x4595be
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040469c
mov eax, dword [0x468f10]
cmp byte [eax], 0
jne 0x4595f2
mov eax, ebx
call fcn.00459764
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045b3e4
mov eax, ebx
call fcn.0045bd94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459632
call fcn.00403a84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4599d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ac58]
cmp dword [eax + 0x30], 0
je 0x459a82
cmp dword [ebx + 0x94], 0
jne 0x459a7c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459968
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459a7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459a42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459a7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b7d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459a51
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a560
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a595
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404524
jmp 0x45a5a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404488
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b5c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b601
mov eax, esi
call fcn.004414a0
test al, al
je 0x45b601
mov eax, dword [ebx + 0x84]
call fcn.0044119c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b601
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044119c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45c2ac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4187b8]
call fcn.00404e10
xor eax, eax
push ebp
push 0x45c3f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x468d58], 0
jne 0x45c2ff
mov ecx, dword [0x468f24]
mov dl, 1
mov eax, dword [0x407820]
call fcn.0040be2c
call fcn.00403e94
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fd4
mov eax, ebx
call fcn.00404c80
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45c400
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406198
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c90
test eax, eax
jle 0x45c397
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45c390
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046b4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040469c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408620
test eax, eax
jne 0x45c390
mov ebx, 0x15
jmp 0x45c39c
mov ebx, 0x10
jmp 0x45c39c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x468d58]
call fcn.0045c204
mov eax, dword [ebp - 8]
call fcn.0045c204
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004061b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c3f7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, dword [0x4187b8]
call fcn.00404ee0
ret

Function at 0x463524
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048d4
mov eax, dword [ebp - 8]
call fcn.004048d4
xor eax, eax
push ebp
push 0x4635b2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46358b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004048e4
push eax
mov eax, dword [ebp - 4]
call fcn.004048e4
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x463597
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4635b9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404458
ret
Function at 0x4636e4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048d4
mov eax, dword [ebp - 8]
call fcn.004048d4
xor eax, eax
push ebp
push 0x463752
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.004048e4
push eax
mov eax, dword [ebp - 4]
call fcn.004048e4
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463759
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404458
ret
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004062fc
cmp eax, ebx
je 0x401539
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
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 [0x472eb0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x40337f
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40339f
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4033ae
mov ebx, 0x423150
mov eax, dword [ebp + 8]
test eax, eax
js 0x4033c3
mov ecx, dword [0x472e18]
add ecx, eax
push ecx
call fcn.00403368
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403336
test eax, eax
jne 0x4033da
push 0xfffffffffffffffd
pop eax
jmp 0x403539
test dword [ebp + 0x14], 0x80000000
je 0x403518
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x433158
mov dword [ebp - 0xc], eax
call fcn.004072f2
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403536
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40341a
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41f150
push edi
call fcn.00403336
test eax, eax
je 0x4033d2
sub dword [ebp + 0x14], esi
mov dword [0x433170], edi
mov dword [0x433174], esi
mov eax, dword [ebp - 8]
mov ecx, 0x433158
mov dword [0x433178], ebx
mov dword [0x43317c], eax
call fcn.00407312
mov dword [ebp - 0x10], eax
test eax, eax
js 0x40350a
mov esi, dword [0x433178]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x472eb4], 1
mov edi, eax
je 0x4034be
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403485
cmp dword [ebp + 0x14], 0
jne 0x4034be
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404f72
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4034ff
cmp dword [ebp + 0x10], eax
jne 0x4034e7
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403511
cmp dword [ebp - 0x14], esi
jne 0x403511
add dword [ebp - 4], esi
jmp 0x4034f3
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x433178]
cmp dword [ebp - 0x10], 1
jne 0x403439
jmp 0x403536
cmp dword [ebp + 0x14], eax
jg 0x40340d
jmp 0x403536
push 0xfffffffffffffffc
jmp 0x4033d4
push 0xfffffffffffffffe
jmp 0x4033d4
test edi, edi
je 0x40357f
cmp dword [ebp + 0x14], esi
jge 0x403524
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403336
test eax, eax
je 0x4033d2
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40354b
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41f150
push edi
call fcn.00403336
test eax, eax
je 0x4033d2
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403511
cmp esi, dword [ebp + 0x10]
jne 0x403511
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403540
jmp 0x403536
Function at 0x405c3f
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405e4d
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405e50
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
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_CreateFileW]
ret 0xc

Function at 0x405e7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40965c]
mov dword [ebp - 8], eax
mov eax, dword [0x409660]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ecf
test edi, edi
jne 0x405e8c
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ec9

Function at 0x405ed3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f4c
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f35
cmp dword [ebp + 0x14], 1
je 0x405f3a
cmp dword [ebp + 0x14], 2
je 0x405f3a
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4060e7
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406110
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406104
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x4061bb
cmp dword [0x461520], ebx
je 0x4061bb
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x406187
cmp dword [0x40b058], 0xffffffff
jne 0x406190
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405e50
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x4061b9
cmp dword [ebp + 8], 0xffffffff
jne 0x40617c
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x4061b9
push 0x409678
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40677e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572c0
push esi
call fcn.00406009
push esi
call fcn.00405d59
mov edi, eax
test edi, edi
jne 0x40679f
xor eax, eax
jmp 0x4067fc
push edi
call fcn.00406038
test byte [0x472e28], 0x80
je 0x4067bb
movzx eax, word [edi]
test ax, ax
je 0x40679b
cmp eax, 0x5c
je 0x40679b
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4067dd
push esi
call fcn.004062d5
test eax, eax
je 0x4067d7
test byte [eax], 0x10
je 0x406801
push esi
call fcn.00406751
push esi
call ebx
cmp eax, edi
jg 0x4067c8
push esi
call fcn.00406722
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4067fb
Function at 0x406a99
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x409888
mov ebx, 0x45b2c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406ae7
push 1
push ebp
push edi
call fcn.00405e50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c62
cmp eax, esi
jg 0x406c62
push esi
mov edi, 0x460920
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c62
cmp eax, esi
jg 0x406c62
push ebp
push ebp
push esi
push 0x45bac8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406c62
push ebp
push ebp
push esi
mov esi, 0x45c118
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406c62
push esi
push 0x45bac8
push str._s_s_r_n
push 0x45c518
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472ddc]
push dword [eax + 0x128]
push edi
call fcn.00406805
push 4
push 0xc0000000
push edi
call fcn.00405e50
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406c62
push ebp
push eax
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
cmp esi, ebp
je 0x406c58
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c58
cmp edi, dword [esp + 0x10]
jne 0x406c58
push str._Rename__r_n
push esi
call fcn.00405db6
cmp eax, ebp
jne 0x406beb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c20
push 0x40987c
add eax, 0xa
push eax
call fcn.00405db6
mov ebp, eax
test ebp, ebp
je 0x406c1e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406c15
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406c0b
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406c22
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c518
add eax, esi
push eax
call fcn.00405e0c
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc
Function at 0x47d1b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
jmp 0x47d1ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d1d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d1c0
mov eax, 1
add ebx, ebx
jne 0x47d1e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d1f4
jne 0x47d213
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d213
dec eax
add ebx, ebx
jne 0x47d200
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d1d8
add ebx, ebx
jne 0x47d20f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d265
xor ecx, ecx
sub eax, 3
jb 0x47d22b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d29a
sar eax, 1
mov ebp, eax
jmp 0x47d236
add ebx, ebx
jne 0x47d236
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d204
inc ecx
add ebx, ebx
jne 0x47d244
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d204
add ebx, ebx
jne 0x47d251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d246
jne 0x47d262
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d246
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d284
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d276
jmp 0x47d1c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d284
add edi, ecx
jmp 0x47d1c6
pop esi
mov edi, esi
mov ecx, 0x32cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d2a2
cmp byte [edi], 0xe
jne 0x47d2a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47d2a7
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47d31f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81aec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81bb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d2d4
mov ecx, edi
jns 0x47d303
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x81bb8]
or eax, eax
je 0x47d319
mov dword [ebx], eax
add ebx, 4
jmp 0x47d2f1
call dword [esi + 0x81bc8]
mov ebp, dword [esi + 0x81bbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47d353
sub esp, 0xffffff80
jmp 0x43f47b