joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4bf370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4296ea
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4296ea
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0x90
movups xmmword [esi + 0x10], xmm0
push 0
movq qword [esi + 0x20], xmm0
mov dword [esi], 0x10028
movzx eax, byte [ecx + 0x108b4]
mov byte [esi + 0x18], al
movzx eax, byte [ecx + 0x108ac]
mov byte [esi + 9], al
movzx eax, byte [ecx + 0x108b0]
mov byte [esi + 0x17], al
lea eax, [ebp - 0x94]
push eax
mov dword [esi + 4], 0x25
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4296ea
cmp dword [ebp - 0x94], 6
jb 0x4296ea
or dword [esi + 4], 0x8000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043ef0f
mov esp, ebp
pop ebp
ret

Function at 0x43fbc6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43fc05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43fc05
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43fc05
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43fc05
cmp dword [ecx + 0x74], 0xe
jbe 0x43fc05
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4548f5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496878
push 0x496870
push str.FlsAlloc
push 0x1e
call fcn.004547bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x454929
push dword [ebp + 8]
mov ecx, esi
call dword [0x46333c]
call esi
jmp 0x45492f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x454973
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496888
push 0x496880
push str.FlsGetValue
push 0x20
call fcn.004547bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4549aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x46333c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x455a91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00455902

Function at 0x455e8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043f640
mov eax, dword [0x4bf370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00453057
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x455ecd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x456029
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043f670
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c5500]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00456e68
mov ecx, dword [esi*4 + 0x4c5500]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x456022
cmp eax, dword [edi + ecx + 0x24]
jne 0x456022
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456022
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00456e68
add esp, 0x14
test edx, edx
jl 0x456022
jg 0x455f98
test eax, eax
jb 0x456022
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x456022
jl 0x455fb2
cmp dword [ebp - 0x1008], eax
ja 0x456022
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x455fd0
test ebx, ebx
je 0x456009
cmp ecx, edi
jae 0x456009
mov al, byte [ecx]
cmp al, 0xd
jne 0x455fea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x455ff6
cmp byte [ecx + 1], 0xa
jne 0x455ff6
inc ecx
jmp 0x455ff6
movzx eax, al
movsx eax, byte [eax + 0x4bf5f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x455fd0
cmp edx, ebx
jne 0x455fd0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x456027
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043ef0f
leave
ret
Function at 0x456320
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c5500]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x456360
cmp byte [ebx], 0xa
jne 0x456360
or byte [eax + edi + 0x28], 4
jmp 0x456365
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x456463
mov al, byte [edx]
cmp al, 0x1a
je 0x456445
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x456394
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4563b9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4563c3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x456376
jmp 0x456463
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456440
cmp dword [ebp - 0xc], 0
je 0x456440
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c5500]
test byte [eax + edi + 0x28], 0x48
je 0x45641a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x456405
mov byte [esi], dl
jmp 0x456416
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c5500]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x456463
cmp byte [ebp - 1], 0xa
jne 0x456429
cmp esi, ebx
jne 0x456429
mov byte [esi], 0xa
jmp 0x456462
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456e86
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x456463
mov byte [esi], 0xd
jmp 0x456462
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c5500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45645f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x456463
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45646c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c5500]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4564af
cmp word [esi], dx
jne 0x4564af
or byte [edi + eax + 0x28], 4
jmp 0x4564b4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4565ed
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4565cd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4564f6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45652c
cmp eax, edx
jae 0x456538
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4564ce
jmp 0x4565ed
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4565c9
cmp dword [ebp - 0x14], 0
je 0x4565c9
mov eax, dword [ebx*4 + 0x4c5500]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4565a1
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4565e7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c5500]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4c5500]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c5500]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4565ea
pop ebx
cmp word [ebp - 4], bx
jne 0x4565b2
cmp esi, dword [ebp + 0xc]
jne 0x4565b2
mov word [esi], bx
jmp 0x4565ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00456e86
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4565ed
push 0xd
jmp 0x4565e6
mov ecx, dword [ebx*4 + 0x4c5500]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4565e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4565ed
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x459941
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4bf370]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45998c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00459ae0
test al, al
jne 0x459986
sub edx, 2
cmp edx, edi
jne 0x45996c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4599ae
lea eax, [edi + 2]
cmp edx, eax
je 0x4599ae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045988d
add esp, 0x10
jmp 0x459aa8
push esi
lea ecx, [ebp - 0x255]
call fcn.00459ae0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4599f1
push dword [ebp - 0x25c]
jmp 0x45999e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x459a2e
cmp word [ebp - 0x226], 0
je 0x459a4f
cmp word [ebp - 0x226], ax
jne 0x459a2e
cmp word [ebp - 0x224], 0
je 0x459a4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045988d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x459a9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x459a08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x459a83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x459aa8
push 0x4596bd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004600c0
add esp, 0x10
jmp 0x459a78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ef0f
leave
ret
Function at 0x460ce5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00460c61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x460e5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x460e5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x460e0c
jg 0x460d3e
test eax, eax
je 0x460e02
push 1
push 0x1000
call fcn.00453b07
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x460d64
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x460df9
push 0x8000
push ebx
call fcn.00450051
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x460d90
jg 0x460d8b
cmp ecx, 0x1000
jb 0x460d90
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00455702
add esp, 0x10
cmp eax, 0xffffffff
je 0x460dd5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x460d8b
jl 0x460dbc
test ecx, ecx
jne 0x460d7d
push dword [ebp - 0xc]
push ebx
call fcn.00450051
push esi
call fcn.004520f4
add esp, 0xc
xor edi, edi
jmp 0x460e6e
cmp byte [edi + 0x24], 0
je 0x460dec
cmp dword [edi + 0x20], 5
jne 0x460dec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x460df7
mov edi, dword [edi + 0x18]
jmp 0x460df9
xor edi, edi
push esi
call fcn.004520f4
pop ecx
jmp 0x460e6e
test ecx, ecx
jg 0x460dce
jl 0x460e0c
test eax, eax
jae 0x460dce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00456e86
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x460e2f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x460dce
jmp 0x460e66
push ebx
call fcn.0045aa62
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x460dce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x460e6e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x460e6b
mov edi, dword [edi + 0x18]
jmp 0x460e6e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00456e86
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x461440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46146d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46146d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406ac2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406ad1
pop dword [ebp - 0x14]
mov eax, 0x406ad1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x61fe760f
sub dword [ebp - 0x24], 0x13ac30c4
mov dword [ebp - 0x20], 0x2fb8bf9f
add dword [ebp - 0x20], 0x27a8ca6
mov dword [ebp - 0x1c], 0x975c64b7
add dword [ebp - 0x1c], 0xb4efdf77
mov dword [ebp - 0x18], 0x688c4c98
add dword [ebp - 0x18], 0x9773b368
lea eax, [ebp - 0x24]
push eax
mov eax, 0xce12757e
add eax, 0x322e5ad6
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xd4ed3f4a
sub dword [ebp - 0x24], 0x607ad5f4
mov dword [ebp - 0x20], 0x62309209
sub dword [ebp - 0x20], 0x20c43094
mov dword [ebp - 0x1c], 0xca456ee5
add dword [ebp - 0x1c], 0x9929fd87
mov dword [ebp - 0x18], 0x3dd93de9
add dword [ebp - 0x18], 0xc226c217
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x7ef1e639
add eax, 0x814eea13
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a152
push 0
call eax
mov ecx, 0x492d
mov edi, eax
mov edx, 0x27b8b1a8
add edx, 0xd888fe58
add edx, dword [ebp - 0x14]
mov esi, 0xdc092905
sub esi, 0xf1e0c07a
mov dword [ebp - 0xc], 0x41e430ad
mov ebx, dword [edx]
add dword [ebp - 0x10], ecx
add ebx, esi
xor dword [ebp - 0xc], ebx
mov dword [edi], ebx
xor dword [ebp - 8], 0x4e53783a
add edi, 0x92c69c0d
add edi, 0x6d3963f7
add edx, 0xfa0e0a35
sub edx, 0xfa0e0a31
loop 0x406be8
add eax, 0x69a3d67b
add eax, 0x965d410c
mov ebx, eax
add eax, 0xdf58216d
add eax, 0x20a7de98
mov ecx, 0x810e1a4a
sub ecx, 0x80ce1a4a
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x1358b64
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1358b6e
pushal
call 0x1358b74
pop ebp
sub ebp, 0x10
sub ebp, 0xf58b64
jmp 0x1358b8a
mov eax, 0xf58b64
add eax, ebp
add eax, 0x4c
mov ecx, 0x58a
mov edx, 0x80101df4
xor byte [eax], dl
inc eax
dec ecx
jne 0x1358ba1
jmp 0x1358bb4
jg 0x1358bef
jg 0x1358c35
enter 0xfffffffffffff4f4, 0xfffffffffffffff4
jne 0x1358bf3
or al, 0xf4
hlt
int1
hlt
sbb eax, 0xf4f4f4de
mov eax, dword [0xf4d09879]
jg 0x1358c70
cld
hlt
pushfd
push 0xfffffffffffffff6
and esi, esp
cmc
fcom st(0)
movsd dword es:[edi], dword [esi]
sbb al, 0xf1
hlt
shl byte [ebp - 0xb0b0ee4], 1
hlt
jl 0x1358c2e
hlt
Function at 0x408850
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0
push ebx
je 0x408870
dec eax
je 0x408868
dec eax
jne 0x4088be
mov ebx, dword [0x498a14]
jmp 0x408876
mov ebx, dword [0x498a10]
jmp 0x408876
mov ebx, dword [0x498a0c]
test ebx, ebx
je 0x4088be
cmp ebx, 1
jne 0x40888e
call fcn.004024c0
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
mov al, bl
pop ebx
ret
cmp ebx, 0x41
jb 0x4088be
cmp ebx, 0x5a
ja 0x4088be
lea edx, [esp + 8]
mov dword [esp + 8], 0x5c3a41
push edx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4088be
mov eax, dword [esp + 0xc]
mov byte [eax], bl
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x409750
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4989f4
call esi
push 0x4989dc
call esi
push 0
push 0
push 0
push 0x4096e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40aab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46a4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0x470450
mov dword [esp + 0x28], 0x7eb9cba7
mov dword [esp + 0x14], 0x470874
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
mov word [esp + 8], ax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x470844
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
mov byte [esp + 0x40], 2
call fcn.0040a8b0
mov edx, dword [esp + 0x24]
add esp, 8
push 0xd1e28639
push 0x6ee41966
push 0xcdafd027
lea ecx, [esp + 0x28]
call dword [edx]
mov edx, dword [esi]
xor eax, 0xcb495fd8
mov ecx, eax
not ecx
xor ecx, eax
and ecx, 0x32884fd2
not eax
xor ecx, eax
xor ecx, 0xbb810d92
mov ecx, dword [edx + ecx*8 + 4]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
push edx
lea edx, [esp + 8]
push edx
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x40bd80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40bdb6
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
push 1
lea ecx, [esi + 0x10]
push 0x5e
push 0x1f
call dword [eax]
xor al, 0x51
mov byte [edi], al
mov esi, dword [esi]
inc edi
cmp esi, ebx
jne 0x40bd93
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
pop esi
mov dword [eax], ecx
pop ebx
ret
Function at 0x455485
Capabilities:
Parse pe header

Disassembly:
push 0x18
push 0x487f68
call fcn.00458104
mov edi, 0x94
mov eax, edi
call fcn.004548d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x498df0], ecx
mov eax, dword [esi + 4]
mov dword [0x498dfc], eax
mov edx, dword [esi + 8]
mov dword [0x498e00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x498df4], esi
cmp ecx, 2
je 0x4554e5
or esi, 0x8000
mov dword [0x498df4], esi
shl eax, 8
add eax, edx
mov dword [0x498df8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x45551e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45551e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x455536
cmp eax, 0x20b
je 0x455523
mov dword [ebp - 0x1c], edi
jmp 0x45554a
cmp dword [ecx + 0x84], 0xe
jbe 0x45551e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x455544
cmp dword [ecx + 0x74], 0xe
jbe 0x45551e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00531000
pop ecx
test eax, eax
jne 0x45555e
push 0x1c
call fcn.00455461
pop ecx
call fcn.00458dba
test eax, eax
jne 0x45556f
push 0x10
call fcn.00455461
pop ecx
call fcn.0045c991
mov dword [ebp - 4], edi
call fcn.0045c793
test eax, eax
jge 0x455588
push 0x1b
call fcn.0045543c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x49a5a4], eax
call fcn.0045c671
mov dword [0x498c54], eax
call fcn.0045c5cf
test eax, eax
jge 0x4555ae
push 8
call fcn.0045543c
pop ecx
call fcn.0045c39c
test eax, eax
jge 0x4555bf
push 9
call fcn.0045543c
pop ecx
push 1
call fcn.00459163
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4555d5
push eax
call fcn.0045543c
pop ecx
mov eax, dword [0x498e10]
mov dword [0x498e14], eax
push eax
push dword [0x498e08]
push dword [0x498e04]
call fcn.00408760
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x455604
push esi
call fcn.00459290
call fcn.004592b2
jmp 0x455636
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0045813f
ret