joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473c70
Capabilities:
Terminate process

Disassembly:
mov al, byte [ecx]
cmp al, 0x41
jb 0x473cbb
cmp al, 0x7a
ja 0x473cbb
cmp al, 0x5a
jbe 0x473c82
cmp al, 0x61
jb 0x473cbb
mov al, byte [ecx + 1]
cmp al, 0x41
jb 0x473cbb
cmp al, 0x7a
ja 0x473cbb
cmp al, 0x5a
jbe 0x473c95
cmp al, 0x61
jb 0x473cbb
mov al, byte [ecx + 2]
cmp al, 0x41
jb 0x473cbb
cmp al, 0x7a
ja 0x473cbb
cmp al, 0x5a
jbe 0x473ca8
cmp al, 0x61
jb 0x473cbb
mov al, byte [ecx + 3]
cmp al, 0x41
jb 0x473cbb
cmp al, 0x7a
ja 0x473cbb
cmp al, 0x5a
jbe 0x473cc5
cmp al, 0x61
jae 0x473cc5
mov edx, str.invalid_chunk_type
jmp fcn.004666f0
ret

Function at 0x474440
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
cmp eax, 4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
ja case.default.0x474454
jmp dword [eax*4 + 0x4745d0]
movzx eax, byte [edx + 0xb]
mov esi, dword [edx + 4]
add eax, 7
sar eax, 3
add ecx, eax
cmp eax, esi
jae case.0x474454.0
mov edx, ecx
sub edx, eax
sub esi, eax
mov al, byte [edx]
add byte [ecx], al
add ecx, 1
add edx, 1
sub esi, 1
jne 0x474474
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, dword [edx + 4]
xor eax, eax
test edi, edi
jbe case.0x474454.0
mov dl, byte [eax + esi]
add byte [ecx], dl
add eax, 1
add ecx, 1
cmp eax, edi
jb 0x474494
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
movzx eax, byte [edx + 0xb]
mov edx, dword [edx + 4]
add eax, 7
sar eax, 3
sub edx, eax
test eax, eax
mov edi, ecx
jbe 0x4744d3
mov ebp, eax
mov al, byte [esi]
shr al, 1
add byte [ecx], al
add esi, 1
add ecx, 1
sub ebp, 1
jne 0x4744c2
test edx, edx
jbe case.0x474454.0
mov ebx, edx
lea esp, [esp]
movzx edx, byte [esi]
movzx eax, byte [edi]
add eax, edx
cdq
sub eax, edx
sar eax, 1
add byte [ecx], al
add edi, 1
add esi, 1
add ecx, 1
sub ebx, 1
jne 0x4744e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
movzx eax, byte [edx + 0xb]
mov edx, dword [edx + 4]
add eax, 7
sar eax, 3
sub edx, eax
test eax, eax
mov ebx, ecx
mov dword [esp + 0x10], ecx
mov edi, esi
mov ebp, esi
jbe 0x474537
mov esi, eax
mov al, byte [edi]
add byte [ebx], al
add edi, 1
add ebx, 1
sub esi, 1
jne 0x474524
mov dword [esp + 0x10], ebx
test edx, edx
jbe case.0x474454.0
mov dword [esp + 0x18], edx
jmp 0x47454d
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
movzx ebx, byte [ecx]
movzx esi, byte [edi]
movzx edx, byte [ebp]
add ecx, 1
mov dword [esp + 0x1c], ecx
mov eax, esi
mov ecx, ebx
add ebp, 1
sub eax, edx
add edi, 1
sub ecx, edx
test eax, eax
mov dword [esp + 0x20], ebp
jge 0x47457e
mov ebp, eax
neg ebp
mov dword [esp + 0x14], ebp
jmp 0x474582
mov dword [esp + 0x14], eax
test ecx, ecx
mov ebp, ecx
jge 0x47458a
neg ebp
add eax, ecx
jns 0x474590
neg eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jg 0x4745a0
cmp ecx, eax
jg 0x4745a0
mov edx, ebx
jmp 0x4745a6
cmp ebp, eax
jg 0x4745a6
mov edx, esi
mov eax, dword [esp + 0x10]
add byte [eax], dl
add eax, 1
sub dword [esp + 0x18], 1
mov dword [esp + 0x10], eax
jne 0x474545
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
mov edi, str.Ignoring_bad_adaptive_filter_type
jmp fcn.004665a0
Function at 0x47a150
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x47a157
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0047a160
Function at 0x47a160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x47a192
lea esp, [esp]
test cl, 3
je 0x47a192
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b3778]
add ecx, 1
sub esi, 1
jne 0x47a170
cmp esi, 0x20
push ebx
push edi
jb 0x47a37c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4b3b78]
xor edx, dword [ebx*4 + 0x4b3f78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4b3778]
add ecx, 4
xor edx, dword [eax*4 + 0x4b4378]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4b3b78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4b3f78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4b3778]
add ecx, 4
xor eax, dword [edx*4 + 0x4b4378]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4b3b78]
xor edx, dword [ebx*4 + 0x4b3f78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4b3778]
xor edx, dword [eax*4 + 0x4b4378]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4b3b78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4b3f78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4b3778]
xor eax, dword [edx*4 + 0x4b4378]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4b3b78]
xor edx, dword [ebx*4 + 0x4b3f78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4b3778]
xor edx, dword [eax*4 + 0x4b4378]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4b3b78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4b3f78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4b3778]
and edx, 0xff
xor eax, dword [edx*4 + 0x4b4378]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4b3b78]
xor edx, dword [ebx*4 + 0x4b3f78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4b3778]
add ecx, 4
xor edx, dword [eax*4 + 0x4b4378]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4b3b78]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4b3f78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4b3778]
and edx, 0xff
xor eax, dword [edx*4 + 0x4b4378]
sub edi, 1
jne 0x47a1a2
cmp esi, 4
jb 0x47a3c9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4b3b78]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4b3f78]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4b3778]
and eax, 0xff
xor edi, dword [eax*4 + 0x4b4378]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x47a386
test esi, esi
pop edi
pop ebx
je 0x47a3ed
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b3778]
add ecx, 1
sub esi, 1
jne 0x47a3d0
not eax
pop esi
ret
Function at 0x47e232
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d16b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047e171
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004854b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47e281
cmp dword [ebp - 0x1c], 5
jb 0x47e299
jmp 0x47e295
cmp dword [ebp - 0x10], 1
jne 0x47e299
cmp dword [ebp - 0x1c], 4
ja 0x47e295
jne 0x47e299
cmp dword [ebp - 0x18], 0
jbe 0x47e299
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a9728
call fcn.0047e03b
test eax, eax
jge 0x47e2ba
mov byte [0x4d8314], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047f460
add ebp, 0x78
leave
ret

Function at 0x47e539
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d5cf0], 0
push esi
jne 0x47e4ac
call fcn.0047e3d7
test eax, eax
je 0x47e4ef
mov eax, dword [0x4d5cf0]
cmp eax, 1
jne 0x47e4cd
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47e4ef
pop esi
ret
push eax
call dword [0x4d5cf8]
test eax, eax
jne 0x47e537
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x47e4f3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4d5cf0]
call dword [0x4d5cf8]
mov edi, eax
test edi, edi
je 0x47e51a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x47e536
lea edi, [esi + 0xff0]
push esi
push dword [0x4d5cf0]
call dword [0x4d5cf4]
add esi, 0x10
cmp esi, edi
jb 0x47e520
mov eax, esi
pop edi
pop esi
ret
jmp 0x47e499

Function at 0x47f460
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d16b0]
jne 0x47f46a
repz ret
jmp fcn.00488fe6
Function at 0x484a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x484a9d
cmp dword [ebp + 0x14], edi
je 0x484a9d
cmp ecx, edi
jne 0x484aa4
call fcn.004840d1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047f912
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x484ab8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x484ad9
cmp ebx, 0xffffffff
je 0x484ac8
push ebx
push edi
push ecx
call fcn.004854b0
add esp, 0xc
cmp esi, edi
je 0x484a85
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x484a85
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x484af5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x484afc
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x484bed
test word [esi + 0xc], 0x10c
je 0x484b50
mov eax, dword [esi + 4]
test eax, eax
je 0x484b50
jl 0x484c4e
cmp ebx, eax
mov edi, ebx
jb 0x484b21
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x484bf5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047f6ec
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x484be5
cmp ebx, dword [ebp - 0xc]
jb 0x484bbd
cmp dword [ebp - 0xc], 0
je 0x484b7a
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x484b6f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x484b76
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x484b85
mov eax, closesocket
cmp ebx, eax
ja 0x484b85
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x484c21
push eax
push dword [ebp - 8]
push esi
call fcn.004917b4
pop ecx
push eax
call fcn.00493bd0
add esp, 0xc
test eax, eax
je 0x484c60
cmp eax, 0xffffffff
je 0x484c4e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x484be5
push esi
call fcn.0049473d
cmp eax, 0xffffffff
pop ecx
je 0x484c52
cmp dword [ebp - 4], 0
je 0x484c21
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x484b04
mov eax, dword [ebp + 0x14]
jmp 0x484a9f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x484c0c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004854b0
add esp, 0xc
call fcn.004840d1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x484a95
cmp dword [ebp + 0xc], 0xffffffff
je 0x484c37
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004854b0
add esp, 0xc
call fcn.004840d1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x484a95
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x484a9f
or dword [esi + 0xc], 0x10
jmp 0x484c52
Function at 0x490792
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d1fe0]
je 0x4907ad
inc edi
cmp edi, 0x17
jb 0x49079e
cmp edi, 0x17
jae 0x49092d
push ebp
push 3
call fcn.0049a705
cmp eax, 1
pop ecx
je 0x4908f9
push 3
call fcn.0049a705
test eax, eax
pop ecx
jne 0x4907e1
cmp dword [0x4d16a8], 1
je 0x4908f9
cmp ebx, 0xfc
je 0x49092c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d6550
push ebp
call fcn.004890ea
add esp, 0xc
test eax, eax
je 0x490817
push esi
push esi
push esi
push esi
push esi
call fcn.0047f816
add esp, 0x14
push 0x104
mov esi, 0x4d6569
push esi
push 0
mov byte [0x4d666d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49085b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004890ea
add esp, 0xc
test eax, eax
je 0x49085b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047f816
add esp, 0x14
push esi
call fcn.00485730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4908a0
push esi
call fcn.00485730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d6864
push 0x4aac64
sub ecx, eax
push ecx
push eax
call fcn.00493e31
add esp, 0x14
test eax, eax
je 0x4908a0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047f816
add esp, 0x14
jmp 0x4908a2
xor esi, esi
push 0x4aac60
push ebx
push ebp
call fcn.00497941
add esp, 0xc
test eax, eax
je 0x4908c2
push esi
push esi
push esi
push esi
push esi
call fcn.0047f816
add esp, 0x14
push dword [edi*8 + 0x4d1fe4]
push ebx
push ebp
call fcn.00497941
add esp, 0xc
test eax, eax
je 0x4908e4
push esi
push esi
push esi
push esi
push esi
call fcn.0047f816
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049a548
add esp, 0xc
jmp 0x49092c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49092c
cmp ebp, 0xffffffff
je 0x49092c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d1fe4]
push dword [esi]
call fcn.00485730
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49a548
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048935a
xor ebx, ebx
cmp dword [0x4d6aec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49a61e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49a6fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49a6fe
push eax
call fcn.004892ec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d6aec], eax
call esi
push eax
call fcn.004892ec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d6af0], eax
call esi
push eax
call fcn.004892ec
mov dword [0x4d6af4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00483a07
test eax, eax
pop ecx
pop ecx
je 0x49a5ec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f816
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49a61e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004892ec
cmp eax, ebx
pop ecx
mov dword [0x4d6afc], eax
je 0x49a61e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004892ec
pop ecx
mov dword [0x4d6af8], eax
mov eax, dword [0x4d6af8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49a6a3
cmp dword [0x4d6afc], ecx
je 0x49a6a3
push eax
call fcn.00489363
push dword [0x4d6afc]
mov esi, eax
call fcn.00489363
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49a6a3
cmp edi, ebx
je 0x49a6a3
call esi
cmp eax, ebx
je 0x49a670
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49a670
test byte [ebp - 0x18], 1
jne 0x49a6a3
lea eax, [ebp - 0x10]
push eax
call fcn.00483a3e
test eax, eax
pop ecx
je 0x49a68b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047f816
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49a69a
or dword [ebp + 0x10], 0x200000
jmp 0x49a6de
or dword [ebp + 0x10], 0x40000
jmp 0x49a6de
mov eax, dword [0x4d6af0]
cmp eax, dword [ebp - 8]
je 0x49a6de
push eax
call fcn.00489363
cmp eax, ebx
pop ecx
je 0x49a6de
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49a6de
mov eax, dword [0x4d6af4]
cmp eax, dword [ebp - 8]
je 0x49a6de
push eax
call fcn.00489363
cmp eax, ebx
pop ecx
je 0x49a6de
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d6aec]
call fcn.00489363
cmp eax, ebx
pop ecx
je 0x49a6fe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49a700
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402090
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax], 0
mov edx, eax
je 0x4020ab
mov ecx, eax
lea esp, [esp]
xor byte [edx], 0xf
inc ecx
cmp byte [ecx], 0
mov edx, ecx
jne 0x4020a0
ret

Function at 0x4020b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x415b58
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4020d7
xor eax, eax
add esp, 0x1c
ret
lea ecx, [esp]
push ecx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4020d1
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret
Function at 0x402140
Capabilities:
Reference http user-agent string
Write file on windows

Disassembly:
mov eax, 0x857c
call fcn.00410870
mov eax, dword [esp + 0x8580]
push ebx
push ebp
push esi
add eax, 7
lea edx, [esp + 0x1c]
push edi
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402160
lea eax, [esp + 0x20]
push 0x2f
push eax
call fcn.00406820
add esp, 8
test eax, eax
je 0x402194
lea esi, [esp + 0x88]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x402188
mov byte [eax], dl
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x194]
push 0x415b70
push eax
call fcn.004061fd
lea eax, [esp + 0x19c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021c2
sub eax, edx
push eax
lea ecx, [esp + 0x18c]
push ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.004040b0
add esp, 8
test eax, eax
je 0x402203
mov edx, dword [esp + 0x14]
push edx
call dword [0x41a18c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x857c
ret
mov esi, dword [esp + 0x14]
push 0
push 0x400
lea eax, [esp + 0x590]
push eax
push esi
call dword [0x419f58]
mov ebp, eax
test ebp, ebp
jne 0x402238
push esi
call dword [0x41a18c]
lea eax, [ebp + 2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x857c
ret
lea ecx, [esp + 0x591]
push 0x415c3c
push ecx
call fcn.00406780
lea edx, [esp + 0x599]
add esp, 8
cmp eax, edx
je 0x40226f
push esi
call dword [0x41a18c]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x857c
ret
lea eax, [esp + 0x588]
push 0x415c48
push eax
call fcn.00406780
lea ecx, [esp + 0x590]
push 0x415c5c
push ecx
mov edi, eax
call fcn.00406780
lea edx, [esp + 0x598]
push 0x415c7c
push edx
mov ebx, eax
call fcn.00406780
mov esi, eax
add esp, 0x18
add esi, 4
test edi, edi
je 0x4022c5
add edi, 0x12
push edi
call fcn.004068f4
add esp, 4
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4022ec
lea eax, [esp + 0x18]
push eax
push 0x415c84
push esi
call fcn.004065ab
push 0x415c88
push esi
call fcn.00406780
add esp, 0x14
add eax, 2
mov esi, eax
mov ecx, dword [esp + 0x8594]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40232e
mov edx, dword [esp + 0x14]
push edx
call dword [0x41a18c]
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x857c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x58c]
sub eax, esi
lea ecx, [esp + 0x20]
push ecx
add ebp, eax
push ebp
push esi
push edi
call ebx
sub dword [esp + 0x18], ebp
je 0x402386
mov eax, dword [esp + 0x14]
push 0
push 0x8000
lea edx, [esp + 0x590]
push edx
push eax
call dword [0x419f58]
push 0
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
push esi
lea edx, [esp + 0x594]
push edx
push edi
call ebx
sub dword [esp + 0x18], esi
jne 0x402351
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [0x41a18c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x857c
ret
Function at 0x403fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00402ca0
call fcn.004023b0
push 0x416178
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x41a168], eax
mov dword [0x41a17c], ebx
call fcn.004020b0
call fcn.00403710
test eax, eax
je 0x40400c
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00403630
mov eax, 0x419050
mov dword [0x419f38], eax
cmp byte [eax], bl
je 0x40403f
call fcn.00402090
mov dword [0x419f38], eax
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404030
sub ecx, esi
lea eax, [eax + ecx + 1]
jmp 0x404016
call fcn.00403a20
cmp eax, 2
jne 0x404083
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040698a
add esp, 4
call fcn.0040699c
cdq
mov ecx, 0x12c
idiv ecx
add edx, 0x258
imul edx, edx, 0x3e8
mov dword [0x419450], edx
mov dword [0x41a138], ebx
mov dword [0x41a13c], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret