joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bee94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4dbb14], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4bef6e
cmp dword [0x4dbb10], 0
jne 0x4bef6e
cmp dword [0x4dbd1c], 0
je 0x4bef28
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004bec44
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4bef0e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004bec44
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4bef0e
lea ebx, [ebp - 0x84]
jmp 0x4bef0f
inc ebx
call fcn.004bee50
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA_1
jmp 0x4befa9
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4dbb18
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004b9a4c
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4dbb1b
push ebx
call sub.kernel32.dll_WriteFile_1
jmp 0x4befa9
cmp dword [0x4dbb10], 0
je 0x4bef88
cmp dword [0x4dbb10], 0xffffffff
je 0x4befa9
push esi
call dword [0x4dbb10]
pop ecx
mov eax, dword [0x4dbb14]
test eax, eax
je 0x4befa9
cmp dword [0x4dbb14], 0xffffffff
je 0x4befa9
cmp byte [eax], 0
je 0x4befa9
push esi
push eax
call fcn.004bedb4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bd90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40bdaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bdb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bda0
mov eax, 1
add ebx, ebx
jne 0x40bdc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bdb8
jne 0x40bdd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bdb8
xor ecx, ecx
sub eax, 3
jb 0x40bde8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40be5a
mov ebp, eax
add ebx, ebx
jne 0x40bdf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40be00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40be24
inc ecx
add ebx, ebx
jne 0x40be10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40be05
jne 0x40be21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40be05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40be44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40be35
jmp 0x40bda6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40be44
add edi, ecx
jmp 0x40bda6
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bea3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb550]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40be61
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb558]
or eax, eax
je 0x40be9d
mov dword [ebx], eax
add ebx, 4
jmp 0x40be7e
call dword [esi + 0xb554]
mov ebp, dword [esi + 0xb55c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x40bed7
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x40300d
Capabilities:
Terminate process

Disassembly:
mov dword [0x402020], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
call dword [sym.imp.kernel32.dll_GetVersion]
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x4035d8]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 6
test eax, 0xb
jne 0x403046
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1bc07771
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x3cf075b2
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403734
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4037ac
xor eax, eax
push ebp
push 0x4037a5
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 0x403804
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 0x4037ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x417024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x404679
cmp word [0x418328], 0xd7b2
jne 0x404641
cmp dword [0xc18330], 0
jbe 0x404641
mov eax, 0x10418324
call dword [0x418740]
push 0
lea eax, [eax + 4]
push eax
push 0x1d
push 0x417790
outsb dx, byte [esi]
cmc
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
outsb dx, byte [esi]
add byte [ebp - 0x2ffbdbbc], cl
push 2
push 0x104046a4
push 0xfffffffffffffff5
enter 0xffffffffffffca4f, 0xffffffffffffffff
call dword [edx - 0x18]
imul ecx, edx, 0xc35affff
cmp byte [0x417030], 0
jne 0x404695
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x40e6f8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e73e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e68c
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e745
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40e95c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e9f3
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40e9a7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405008
jmp 0x40e9dd
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40e9c0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f20
jmp 0x40e9d3
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e81c
mov ebx, eax
test esi, esi
je 0x40e9d3
dec esi
jmp 0x40e9ae
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9fa
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x40ea04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408bd8
add esp, 0x208
pop ebx
ret

Function at 0x40f6e4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd98
mov eax, esi
mov edx, 8
test al, 1
je 0x40f700
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f702
shr eax, 1
dec edx
jne 0x40f6f3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f6ec
pop esi
ret
Function at 0x40f72f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd94], 0
jne 0x40f73b
call fcn.0040f6e4
push 1
push 0x41cd94
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40f766
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f741
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x411608
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x411662
inc esi
xor edi, edi
cmp edi, 1
jne 0x41162e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x41163c
cmp edi, 1
jle 0x41163c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00411194
test eax, eax
jne 0x411662
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x411662
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x411662
inc edi
dec esi
jne 0x41161e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x41166c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411690
mov eax, dword [ebp - 4]
jmp 0x411693
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x411698
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4116e5
xor ebx, ebx
jmp 0x4116da
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407f9c
test eax, eax
jne 0x4116d9
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4116bb
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4116f1
je 0x4116fa
jmp 0x411703
call fcn.0040ece8
mov esi, eax
jmp 0x411705
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x411705
xor esi, esi
test si, si
je 0x41178f
xor ebx, ebx
jmp 0x41172b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x41172a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411712
xor ebx, ebx
jmp 0x411784
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x411783
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x411778
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0041166c
push eax
mov eax, esi
call fcn.0041166c
pop edx
cmp edx, eax
jne 0x411783
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41173a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x403afb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x406070]
mov ebx, eax
add edx, eax
mov eax, 0x406074
call fcn.00403a51
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x405ba4
push eax
sub edi, fcn.00405332
push edi
push fcn.00405332
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x403b6a
mov eax, fcn.00405332
mov ebx, esi
mov edx, edi
call fcn.00403a51
mov edx, 0x1c000
mov eax, 0x406074
mov ebx, esi
call fcn.00402219
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.0040474d
mov eax, 0x406074
lea edi, [esi + 0x1c000]
xor edx, edx
or edi, esi
inc esi
div esi
lea ebx, [ebp - 2]
mov edx, edi
call fcn.00405332
lea esp, [ebp + 0x82]
jmp 0x403bc3
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x404af2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [ebp + 8]
mov word [ebp + 8], ax
mov eax, dword [ebp + 0x10]
mov word [ebp + 0x10], ax
mov ecx, dword [ebp + 0x14]
mov word [ebp + 0x14], cx
xor edi, edi
push dword [ebp + 0xc]
movsx eax, word [ebp + 0x10]
push eax
movsx eax, word [ebp + 0x14]
push eax
movsx eax, word [ebp + 8]
push eax
push 0
push 0
call fcn.00404974
add esp, 0x18
or eax, eax
je 0x404b9f
push 0
call sub.USER32.DLL_ShowCursor
push 0x11
push dword [0x446ba8]
mov eax, dword [0x44a044]
push eax
mov esi, dword [eax]
call dword [esi + 0x50]
or eax, eax
jne 0x404b9f
push 0
push dword [0x44647c]
movsx eax, word [ebp + 0x10]
push eax
movsx eax, word [ebp + 0x14]
push eax
movsx eax, word [ebp + 8]
push eax
mov eax, dword [0x44a044]
push eax
mov esi, dword [eax]
call dword [esi + 0x54]
or eax, eax
jne 0x404b9f
call fcn.004048ea
or eax, eax
je 0x404b9f
push 3
push dword [0x446ba8]
call sub.USER32.DLL_ShowWindow
push 0
push dword [0x446ba8]
call sub.USER32.DLL_EnableWindow
call fcn.00404a0a
xor edi, edi
inc edi
or edi, edi
jne 0x404ba8
call fcn.0040477f
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x404d46
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
call fcn.00404f67
cmp dword [0x44645c], 0
je 0x404e22
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x34]
push eax
push dword [0x446ba8]
call sub.USER32.DLL_GetWindowRect
push dword [0x446454]
push dword [0x446458]
lea eax, [ebp - 0x34]
push eax
call sub.USER32.DLL_OffsetRect
cmp dword [0x446448], 0
je 0x404dba
mov eax, dword [0x446450]
add eax, dword [0x446458]
sub dword [ebp - 0x2c], eax
mov eax, dword [0x44644c]
add eax, dword [0x446454]
sub dword [ebp - 0x28], eax
jmp 0x404dd2
mov eax, dword [ebp - 0x34]
add eax, dword [0x446bc8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, dword [0x446bc0]
mov dword [ebp - 0x28], eax
push dword [0x446bc0]
push dword [0x446bc8]
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call sub.USER32.DLL_SetRect
push 0
push 0x1000000
lea eax, [ebp - 0x44]
push eax
push dword [0x446468]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [0x446bb0]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
jmp 0x404f00
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x404e10
cmp dword [0x446bc4], eax
je 0x404f00
push 1
push 0
mov eax, dword [0x446bb0]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [0x44646c], eax
cmp eax, 0x887601c2
jne 0x404f00
push 0
push dword [0x44647c]
push dword [0x446b98]
push dword [0x446bc0]
push dword [0x446bc8]
mov eax, dword [0x44a044]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
mov eax, dword [0x44a044]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
push 3
push dword [0x446ba8]
call sub.USER32.DLL_ShowWindow
mov dword [ebp - 0x50], 0
jmp 0x404ef6
mov eax, dword [0x446588]
mov dword [ebp - 0x54], eax
mov eax, 0x18
mul dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov edi, eax
add edi, edx
cmp dword [edi], 0
je 0x404ef3
mov al, byte [edi + 8]
cmp al, 0xfe
je 0x404ef3
cmp byte [edi + 9], 0
jne 0x404ef3
push dword [edi + 0xc]
push 0x446240
call fcn.00405734
push 0x446240
push 0
push dword [ebp - 0x50]
call fcn.00401b53
inc dword [ebp - 0x50]
mov eax, dword [0x446bbc]
cmp dword [ebp - 0x50], eax
jl 0x404ea8
mov eax, dword [0x446468]
mov dword [0x446c58], eax
cmp dword [0x446480], 0
je 0x404f62
xor esi, esi
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
or eax, eax
je 0x404f58
mov edi, dword [ebp - 0x24]
or edi, edi
jge 0x404f32
cmp dword [0x446470], 0
jge 0x404f3f
or edi, edi
jle 0x404f45
cmp dword [0x446470], 0
jg 0x404f45
mov dword [0x446470], edi
mov ebx, edi
sub edi, dword [0x446470]
cmp edi, dword [0x446474]
jle 0x404f58
xor esi, esi
inc esi
or esi, esi
je 0x404f15
mov dword [0x446470], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x405704
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x40571f
mov edi, eax
inc edi
jmp 0x4056fc
inc edi
cmp byte [edi], 0x20
je 0x4056fb
jmp 0x40571f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x405710
cmp eax, 0x20
jne 0x405703
jmp 0x405713
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40571f
cmp eax, 0x20
je 0x405712
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040123c
pop edi
leave
ret
Function at 0x40c530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c548
mov eax, 1
add ebx, ebx
jne 0x40c56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c560
jne 0x40c57c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c560
xor ecx, ecx
sub eax, 3
jb 0x40c590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c602
mov ebp, eax
add ebx, ebx
jne 0x40c59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c5cc
inc ecx
add ebx, ebx
jne 0x40c5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c5ad
jne 0x40c5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c5ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c5dd
jmp 0x40c54e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c5ec
add edi, ecx
jmp 0x40c54e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c654
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c609
mov ecx, edi
jns 0x40c638
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 + 0xc054]
or eax, eax
je 0x40c64e
mov dword [ebx], eax
add ebx, 4
jmp 0x40c626
call dword [esi + 0xc064]
mov ebp, dword [esi + 0xc058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40c688
sub esp, 0xffffff80
jmp 0x40a3cc