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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422044]
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.0040c88f
and dword [ebp - 0x14], 0
cmp dword [0x4245d8], 0
mov dword [ebp - 0x18], eax
jne 0x4145e1
push 0x41b318
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414689
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b30c
push ebx
call edi
test eax, eax
je 0x414689
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b2fc
push ebx
mov dword [0x4245d8], eax
call edi
push eax
call esi
push 0x41b2e8
push ebx
mov dword [0x4245dc], eax
call edi
push eax
call esi
push 0x41b2cc
push ebx
mov dword [0x4245e0], eax
call edi
push eax
call esi
mov dword [0x4245e8], eax
test eax, eax
je 0x4145e1
push 0x41b2b4
push ebx
call edi
push eax
call esi
mov dword [0x4245e4], eax
mov eax, dword [0x4245e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41463a
cmp dword [0x4245e8], ecx
je 0x41463a
push eax
call esi
push dword [0x4245e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41463a
test ebx, ebx
je 0x41463a
call edi
test eax, eax
je 0x414631
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414631
test byte [ebp - 8], 1
jne 0x41463a
or dword [ebp + 0x10], 0x200000
jmp 0x41466d
mov eax, dword [0x4245dc]
cmp eax, dword [ebp - 0x18]
je 0x41466d
push eax
call esi
test eax, eax
je 0x41466d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41466d
mov eax, dword [0x4245e0]
cmp eax, dword [ebp - 0x18]
je 0x41466d
push eax
call esi
test eax, eax
je 0x41466d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4245d8]
call esi
test eax, eax
je 0x414689
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41468b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a82f
leave
ret

Function at 0x43b658
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub esp, 4
mov dword [esp], 0xf17279b7
pop esi
mov esi, 0x72be5e89
call fcn.0043b6aa
sub ecx, 1
sub ecx, 0xfc2aa948
xor dword [eax], ebx
add ecx, 0x7e04974e
dec esi
sub esp, 4
mov dword [esp], ecx
mov ecx, dword [esp]
add esp, 4
inc eax
and ecx, esi
inc esi
cmp eax, edx
jne fcn.0043b658
or esi, esi
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x4e
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3e
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x7c
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf8
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x91
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x21
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6a
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x26
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbb
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa9
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x45
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x78
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 6
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x411ce0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x439384]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x411d43
push 0x439384
call fcn.00413e6a
add esp, 4
cmp dword [0x439384], 0xffffffff
jne 0x411d43
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x439380], eax
push 0x439384
call fcn.00413e20
add esp, 4
mov esi, dword [0x439380]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x402270
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edx, 0x9c
neg ebx
neg ebx
not edi
mov edx, 0xaa
sbb edi, 0xb
not edx
dec ebx
neg edx
dec edx
dec edx
bswap edx
inc esi
ror edx, 0xf7
rcl esi, 0xd7
dec edi
imul eax
neg edi
or edx, 0xa3
sub edx, 0x47
dec esi
bswap edi
bswap eax
or eax, 0x80
imul esi
imul ebx
imul edi
rcr edx, 0xec
neg ebx
not esi
imul eax
imul ebx
or edx, 0x62
bswap edi
sbb esi, 0x6b
dec ebx
ror esi, 0xdc
not eax
inc ebx
neg eax
add esi, 0x9f
imul edx
and eax, 0xd6
neg edx
mov eax, 0x78
dec eax
mov eax, 0x7f
ror eax, 3
imul esi
imul edi
xor ecx, ecx
xor edi, edi
sbb edi, 0x86
rol edi, 0
neg eax
rcr ebx, 0x9e
inc edx
inc edx
inc eax
neg esi
ror eax, 0x9c
bswap ebx
rcr edi, 0xab
imul edx
rcr edx, 0x94
inc ebx
bswap edi
bswap edi
bswap edx
imul esi
or edi, 0x2f
inc ebx
not edx
not eax
ror edi, 0xf0
rcr edi, 0xf
neg edi
imul edx
dec eax
inc eax
rol edx, 0x85
inc eax
not edi
imul edi
ror edi, 0x8a
bswap edi
or eax, 0x6e
rcr edx, 0xe8
rcl esi, 0x70
ror eax, 0x48
rol edi, 0xf
and edi, 0x66
imul esi
or ebx, 0x72
and esi, 0x62
bswap esi
sbb ebx, 0x3d
not esi
mov esi, 1
bswap eax
and edi, 0xe
mov edx, 0x73
mov ecx, dword [ebp + 0xc]
dec eax
sub ebx, 0x29
not edx
rcr esi, 0xff
ror esi, 0x8f
not ebx
ror esi, 0xe8
inc edx
neg esi
bswap edi
rol edx, 0xe6
not eax
sbb esi, 0xd
sbb ebx, 0x8b
rcl eax, 0x3e
sub ebx, 0x12
ror ebx, 0x55
neg esi
inc eax
bswap esi
inc eax
neg ebx
and edi, 0xa7
bswap eax
add eax, 0x6a
imul eax
sub edi, 4
sub eax, 0xca
neg ebx
rcl ebx, 0x11
rcr edx, 0xa1
or eax, 0x47
rcr edx, 0xd
dec esi
neg edx
inc esi
ror ebx, 0x74
or esi, 0x5c
inc edx
bswap eax
ror edx, 0x30
dec eax
bswap esi
rcr edx, 0x70
rcl edi, 0x71
sbb edi, 0x6a
rcl ebx, 0x39
imul edi
sub eax, 0x37
neg eax
mov edi, dword [ebp + 8]
mov eax, eax
xor esi, esi
xor eax, eax
not byte [edi]
mov eax, ebx
mov ebx, esi
mov eax, esi
mov ebx, ebx
xor eax, esi
xor eax, eax
mov esi, ebx
mov ebx, eax
xor ebx, esi
add byte [edi], 0x54
xor eax, esi
mov esi, eax
xor eax, esi
xor esi, esi
xor eax, ebx
mov esi, esi
mov ebx, ebx
xor eax, ebx
mov eax, ebx
sub byte [edi], 0x29
mov eax, esi
xor ebx, eax
xor esi, esi
xor ebx, ebx
mov eax, eax
xor esi, ebx
xor ebx, ebx
xor eax, eax
mov ebx, esi
imul byte [edi]
inc edi
loop 0x4023fc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a7ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ce90]
jne 0x40a7c4
repz ret
jmp fcn.00411d4d
Function at 0x4166cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410656
and dword [ebp - 4], 0
cmp dword [0x45e9d0], 0
mov ebx, eax
jne 0x41677d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41682e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41682e
push eax
call fcn.004105e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e9d0], eax
call esi
push eax
call fcn.004105e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e9d4], eax
call esi
push eax
call fcn.004105e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e9d8], eax
call esi
push eax
call fcn.004105e4
pop ecx
mov dword [0x45e9e0], eax
test eax, eax
je 0x41677d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004105e4
pop ecx
mov dword [0x45e9dc], eax
mov eax, dword [0x45e9dc]
cmp eax, ebx
je 0x4167d5
cmp dword [0x45e9e0], ebx
je 0x4167d5
push eax
call fcn.0041065f
push dword [0x45e9e0]
mov esi, eax
call fcn.0041065f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4167d5
test edi, edi
je 0x4167d5
call esi
test eax, eax
je 0x4167cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4167cc
test byte [ebp - 0xc], 1
jne 0x4167d5
or dword [ebp + 0x10], 0x200000
jmp 0x41680e
mov eax, dword [0x45e9d4]
cmp eax, ebx
je 0x41680e
push eax
call fcn.0041065f
pop ecx
test eax, eax
je 0x41680e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41680e
mov eax, dword [0x45e9d8]
cmp eax, ebx
je 0x41680e
push eax
call fcn.0041065f
pop ecx
test eax, eax
je 0x41680e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e9d0]
call fcn.0041065f
pop ecx
test eax, eax
je 0x41682e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cdf6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40ce00
repz ret
jmp fcn.0040d09b

Function at 0x406895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426a68
cmp edx, dword [eax]
je 0x4068b7
add eax, 8
inc ecx
cmp eax, 0x426af8
jl 0x4068a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426a68]
jne 0x4069e5
mov eax, dword [0x426e1c]
cmp eax, 1
je 0x4069bf
test eax, eax
jne 0x4068e8
cmp dword [0x4269b8], 1
je 0x4069bf
cmp edx, 0xfc
je 0x4069e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40691f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406e40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406fb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406962
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406fb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4093e0
push edi
call fcn.00407c40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406e40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406e50
lea eax, [ebp - 0xa0]
push 0x4093c0
push eax
call fcn.00406e50
push dword [esi + 0x426a6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406e50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407bae
add esp, 0x2c
pop edi
jmp 0x4069e5
lea eax, [ebp + 8]
lea esi, [esi + 0x426a6c]
push 0
push eax
push dword [esi]
call fcn.00406fb0
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 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x405a80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49d568]
jne 0x405a8a
repz ret
jmp fcn.00407a6b

Function at 0x4064db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49d568]
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.00404844
and dword [ebp - 0x14], 0
cmp dword [0x49f570], 0
mov dword [ebp - 0x18], eax
jne 0x40658e
push 0x401e08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406636
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dfc
push ebx
call edi
test eax, eax
je 0x406636
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dec
push ebx
mov dword [0x49f570], eax
call edi
push eax
call esi
push 0x401dd8
push ebx
mov dword [0x49f574], eax
call edi
push eax
call esi
push 0x401dbc
push ebx
mov dword [0x49f578], eax
call edi
push eax
call esi
mov dword [0x49f580], eax
test eax, eax
je 0x40658e
push 0x401da4
push ebx
call edi
push eax
call esi
mov dword [0x49f57c], eax
mov eax, dword [0x49f57c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4065e7
cmp dword [0x49f580], ecx
je 0x4065e7
push eax
call esi
push dword [0x49f580]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4065e7
test ebx, ebx
je 0x4065e7
call edi
test eax, eax
je 0x4065de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4065de
test byte [ebp - 8], 1
jne 0x4065e7
or dword [ebp + 0x10], 0x200000
jmp 0x40661a
mov eax, dword [0x49f574]
cmp eax, dword [ebp - 0x18]
je 0x40661a
push eax
call esi
test eax, eax
je 0x40661a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40661a
mov eax, dword [0x49f578]
cmp eax, dword [ebp - 0x18]
je 0x40661a
push eax
call esi
test eax, eax
je 0x40661a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49f570]
call esi
test eax, eax
je 0x406636
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406638
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a80
leave
ret
Function at 0x4998f0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x823614], 0x37
jne 0x4999a9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x4029bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 4]
push ecx
push 0x4029d0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402a04
push 0x402a10
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea edx, [esp + 0x810]
push edx
push 0
push 0x402a68
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x824608]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4a4664]
mov byte [eax + esi], dl
add esp, 0xc0c
ret
Function at 0x499b30
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x823614]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x4a4664]
shr eax, 3
push edi
test eax, eax
je 0x499cce
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x499b64
mov esi, dword [esp + 0x18]
cmp dword [0x823614], 0x1c
jne 0x499b81
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x49dda0]
mov eax, dword [0x49dda4]
mov ecx, dword [0x49dda8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x49ddac]
mov ebp, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x34]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x823584], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x823614], 0x1be
jne 0x499c0d
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x823614], 0x979
mov dword [0x823588], 0xff6b3619
mov dword [0x82358c], 0xffffffff
jne 0x499c4d
mov edx, dword [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x499bba
cmp dword [0x823614], 0x8d4
jne 0x499c85
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x823614], 0x17
jne 0x499cbd
push 0
push 0
push 0
push 0x402990
push 0x4029b4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x499b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x414580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x4145a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4145a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414598
mov eax, 1
add ebx, ebx
jne 0x4145bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4145b0
jne 0x4145cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4145b0
xor ecx, ecx
sub eax, 3
jb 0x4145e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414652
mov ebp, eax
add ebx, ebx
jne 0x4145eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4145f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41461c
inc ecx
add ebx, ebx
jne 0x414608
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4145fd
jne 0x414619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4145fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41463c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41462d
jmp 0x41459e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41463c
add edi, ecx
jmp 0x41459e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41465a
cmp byte [edi], 5
jne 0x41465a
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 0x41465f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x4146ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a19c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a250]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41468c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a254]
or eax, eax
je 0x4146c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4146a9
call dword [esi + 0x1a264]
mov ebp, dword [esi + 0x1a258]
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 0x414702
sub esp, 0xffffff80
jmp section.UPX0