joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40561b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fb6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405776
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405776
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405727
cmp dword [0x40b7e8], ecx
je 0x405727
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405727
test ebx, ebx
je 0x405727
call edi
test eax, eax
je 0x40571e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40571e
test byte [ebp - 8], 1
jne 0x405727
or dword [ebp + 0x10], 0x200000
jmp 0x40575a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40575a
push eax
call esi
test eax, eax
je 0x40575a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40575a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40575a
push eax
call esi
test eax, eax
je 0x40575a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405776
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405778
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040237a
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x2526249
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x21b54478
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401440
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp dword [ebp + 8], ebx
jge 0x40151e
jmp 0x401471
cmp byte [esi], 0x22
jne 0x401470
inc esi
mov eax, esi
cmp byte [eax], 0
je 0x401470
cmp byte [esi], 0x22
jne 0x401463
inc esi
movsx eax, byte [esi]
test eax, eax
je 0x40147d
cmp eax, 0x20
jne 0x40145e
jmp 0x401480
inc esi
movzx eax, byte [esi]
mov edx, dword [0x414d90]
test word [edx + eax*2], 0x60
jne 0x40147f
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x401496
inc eax
push eax
call fcn.00401200
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov ecx, eax
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4014b2
pop eax
mov edx, dword [ebp - 8]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4014c3
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x14
jne 0x4014da
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
jmp 0x40155f
inc esi
movzx eax, byte [esi]
mov edx, dword [0x414d90]
test word [edx + eax*2], 0x60
jne 0x4014e2
mov edi, esi
cmp byte [esi], 0x22
jne 0x401511
inc esi
mov eax, esi
cmp byte [eax], 0
je 0x401508
cmp byte [esi], 0x22
jne 0x4014fb
cmp byte [esi], 0
je 0x40151d
inc esi
jmp 0x40151d
inc esi
movsx eax, byte [esi]
test eax, eax
je 0x40151d
cmp eax, 0x20
jne 0x401510
inc ebx
cmp ebx, dword [ebp + 8]
jle 0x4014e3
cmp byte [edi], 0x22
jne 0x401530
inc edi
cmp byte [esi - 1], 0x22
jne 0x401530
dec esi
mov eax, esi
sub eax, edi
inc eax
push eax
call fcn.00401200
pop ecx
mov dword [ebp - 4], eax
mov eax, esi
sub eax, edi
push eax
push edi
mov eax, dword [ebp - 4]
push eax
call fcn.00409de0
add esp, 0xc
mov eax, esi
sub eax, edi
mov edx, dword [ebp - 4]
mov byte [edx + eax], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401abc
mov eax, 1
jmp 0x401abe
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4027d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push 0x800
call fcn.00401200
pop ecx
mov ebx, eax
mov dword [ebp - 4], 0x800
lea eax, [ebp + 8]
push eax
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40281c
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov dword [0x41c1e8], 0
mov dword [0x41c1ec], 0
mov dword [0x41c1f0], 0
mov dword [0x41c1f4], 0
mov dword [0x41c1f8], 0
mov dword [0x41c1fc], 0
push ebx
call fcn.00403840
pop ecx
mov ebx, eax
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4043f1
mov dword [0x41c1f0], eax
mov dword [0x41c1f4], 0
jmp 0x404420
mov eax, dword [0x41c1f4]
cmp byte [ebx + eax], 0x5c
jne 0x40441a
inc dword [0x41c1ec]
inc dword [0x41c1f4]
mov eax, dword [0x41c1f0]
cmp dword [0x41c1f4], eax
jle 0x404409
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5c
call fcn.00401790
add esp, 0x28
push 0
mov edx, dword [0x41c1fc]
push edx
push eax
push ebx
call fcn.004018b0
add esp, 0x10
mov dword [0x41c1f8], eax
lea edx, [eax + 1]
mov dword [0x41c1fc], edx
push eax
push ebx
call fcn.004012b0
add esp, 8
mov dword [0x41c1e8], eax
mov dword [0x41c1f4], 1
jmp 0x4044e5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5c
call fcn.00401790
add esp, 0x28
push 0
mov edx, dword [0x41c1fc]
push edx
push eax
push ebx
call fcn.004018b0
add esp, 0x10
mov dword [0x41c1f8], eax
lea edx, [eax + 1]
mov dword [0x41c1fc], edx
push eax
push ebx
call fcn.004012b0
add esp, 8
mov dword [0x41c1e8], eax
push 0
mov eax, dword [0x41c1e8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
inc dword [0x41c1f4]
mov eax, dword [0x41c1ec]
cmp dword [0x41c1f4], eax
jle 0x404485
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
pop ebx
pop ebp
ret
Function at 0x40b450
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x40b482
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.0040b2a0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.0040a670
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x40b4b5
push 1
call fcn.0040afb0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.0040b2a0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x414e04], eax
mov dword [0x414e08], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b4f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40b50e
mov eax, dword [case.0x40d79c.0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x40b533
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40b51f
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x40b531
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40b51a
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0040a670
pop ecx
mov edi, eax
mov dword [0x414e10], eax
cmp dword [0x414e10], 0
jne 0x40b55b
push 1
call fcn.0040afb0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x40b58a
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40b565
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x40b588
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x40b57b
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40b560
mov byte [edi], 0
mov eax, dword [case.0x40d79c.0]
cmp eax, dword [ebp - 8]
je 0x40b5a6
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp eax, dword [0x41e930]
jae 0x40d19d
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
test byte [eax + edx*8 + 4], 1
jne 0x40d1af
mov dword [0x414df0], 9
or eax, 0xffffffff
jmp 0x40d37b
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x40d1ca
xor eax, eax
jmp 0x40d37b
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
test byte [eax + edx*8 + 4], 0x20
je 0x40d1f3
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040d390
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
test byte [eax + edx*8 + 4], 0x80
je 0x40d2ce
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40d2ba
lea edi, [ebp - 0x411]
jmp 0x40d23f
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40d23a
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x40d25f
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x40d227
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40d2af
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
cmp eax, ecx
jge 0x40d2ba
jmp 0x40d314
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x40d314
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x40d21f
jmp 0x40d314
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40d30b
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x40d314
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x40d375
cmp dword [ebp - 0x10], 0
je 0x40d341
cmp dword [ebp - 0x10], 5
jne 0x40d332
mov dword [0x414df0], 9
jmp 0x40d33c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040d780
pop ecx
or eax, 0xffffffff
jmp 0x40d37b
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x41e830]
test byte [eax + edx*8 + 4], 0x40
je 0x40d366
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40d366
xor eax, eax
jmp 0x40d37b
mov dword [0x414df0], 0x1c
or eax, 0xffffffff
jmp 0x40d37b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f1b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00409f20
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp ebx, dword [0x41e930]
jae 0x40f1ea
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x41e830]
test byte [edx + eax*8 + 4], 1
jne 0x40f1fc
mov dword [0x414df0], 9
or eax, 0xffffffff
jmp 0x40f320
push 1
push 0
push ebx
call fcn.0040d390
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40f226
push 2
push 0
push ebx
call fcn.0040d390
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40f22e
or eax, 0xffffffff
jmp 0x40f320
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40f2d2
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040f720
add esp, 8
mov dword [ebp - 0x10], eax
cmp esi, 0x1000
jb 0x40f278
mov dword [ebp - 0x1014], 0x1000
jmp 0x40f280
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.0040d170
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40f2b9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40f2b3
mov dword [0x414df0], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40f2c3
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40f264
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040f720
add esp, 8
jmp 0x40f30e
test esi, esi
jge 0x40f30e
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.0040d390
add esp, 0xc
push ebx
call fcn.0040d670
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40f30e
mov dword [0x414df0], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.0040d390
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x35a27753
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xad7634
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x5164b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4f2015
lea edi, [esi - 0xf1015]
push edi
or ebp, 0xffffffff
jmp 0x5164d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5164d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5164c8
mov eax, 1
add ebx, ebx
jne 0x5164eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5164fc
jne 0x51651b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51651b
dec eax
add ebx, ebx
jne 0x516508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5164e0
add ebx, ebx
jne 0x516517
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51656d
xor ecx, ecx
sub eax, 3
jb 0x516533
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5165a2
sar eax, 1
mov ebp, eax
jmp 0x51653e
add ebx, ebx
jne 0x51653e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51650c
inc ecx
add ebx, ebx
jne 0x51654c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51650c
add ebx, ebx
jne 0x516559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51654e
jne 0x51656a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51654e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51658c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51657e
jmp 0x5164ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51658c
add edi, ecx
jmp 0x5164ce
pop esi
mov edi, esi
mov ecx, 0x507e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5165aa
cmp byte [edi], 0x12
jne 0x5165aa
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 0x5165af
lea edi, [esi + 0x114000]
mov eax, dword [edi]
or eax, eax
je 0x516627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x116500]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11653c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5165dc
mov ecx, edi
jns 0x51660b
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 + 0x116544]
or eax, eax
je 0x516621
mov dword [ebx], eax
add ebx, 4
jmp 0x5165f9
call dword [esi + 0x116540]
mov ebp, dword [esi + 0x116548]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x51665b
sub esp, 0xffffff80
jmp 0x402708
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x71a765f7
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x448e4b1f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4033f5
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40341b
cmp al, 0x22
je 0x40342b
inc esi
mov al, byte [esi]
test al, al
jne 0x40340a
cmp al, 0x22
jne 0x40342c
jmp 0x40342b
cmp al, 0x20
jle 0x40342c
inc esi
cmp byte [esi], 0x20
jg 0x40341f
jmp 0x40342c
cmp al, 0x20
jg 0x403432
inc esi
mov al, byte [esi]
test al, al
jne 0x403427
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004034a0
push 0x406004
push section..data
call fcn.00403486
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403462
movzx eax, word [ebp - 0x14]
jmp 0x403465
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004034b8
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40368a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406010]
jne 0x403694
repz ret
jmp fcn.00403868

Function at 0x7fa6ef
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.007fa76e
jae 0x7fa6fb
xor ecx, ecx
call fcn.007fa76e
jae 0x7fa725
xor eax, eax
call fcn.007fa76e
jae 0x7fa736
mov al, 0x10
call fcn.007fa76e
adc al, al
jae 0x7fa717
jne 0x7fa763
stosb byte es:[edi], al
jmp 0x7fa6fc
call fcn.007fa77a
dec ecx
loop 0x7fa742
mov eax, ebp
call fcn.007fa778
jmp 0x7fa764
lodsb al, byte [esi]
shr eax, 1
je 0x7fa78a
adc ecx, 2
mov ebp, eax
jmp 0x7fa764
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.007fa778
cmp eax, 0x7d00
jae 0x7fa762
cmp eax, 0x500
jae 0x7fa763
cmp eax, 0x7f
ja 0x7fa764
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fa6fc
pop ebp
ret 8