joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40948e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409495
cmp ebx, dword [eax + 4]
jae 0x409495
xor eax, eax
jmp 0x409685
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4094a6
xor eax, eax
inc eax
jmp 0x409684
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4094bc
cmp ecx, edx
jae 0x409601
cmp dword [eax + 4], 0
je 0x4094c5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4094ad
cmp dword [ebp + 8], 0
je 0x4094e7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409601
cmp eax, esi
jae 0x409601
mov eax, dword [0x412fe8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40950c
cmp dword [esi*4 + 0x412ff0], edi
je 0x409605
inc esi
cmp esi, eax
jl 0x4094fa
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409681
cmp dword [ebp - 8], 0x1000000
jne 0x409681
test byte [ebp - 0xc], 0xcc
je 0x40958a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409681
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409681
cmp word [eax + 0x18], 0x10b
jne 0x409681
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409681
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40958a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40958a
test byte [ecx + 0x27], 0x80
jne 0x409601
push 1
push 0x413030
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40949e
mov ecx, dword [0x412fe8]
test ecx, ecx
mov edx, ecx
jle 0x4095be
lea eax, [ecx*4 + 0x412fec]
cmp dword [eax], edi
je 0x4095be
dec edx
sub eax, 4
test edx, edx
jg 0x4095b2
test edx, edx
jne 0x4095ef
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4095cb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4095e3
lea eax, [edx*4 + 0x412ff0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4095d1
cmp ecx, 0x10
jge 0x4095ef
inc ecx
mov dword [0x412fe8], ecx
push 0
push 0x413030
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40949e
xor eax, eax
jmp 0x409684
test esi, esi
jle 0x40949e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x413030
call ebx
test eax, eax
jne 0x40949e
cmp dword [esi*4 + 0x412ff0], edi
je 0x40965b
mov eax, dword [0x412fe8]
lea esi, [eax - 1]
test esi, esi
jl 0x409649
cmp dword [esi*4 + 0x412ff0], edi
je 0x409645
dec esi
jns 0x409639
test esi, esi
jge 0x409659
cmp eax, 0x10
jge 0x409654
inc eax
mov dword [0x412fe8], eax
lea esi, [eax - 1]
jmp 0x40965b
je 0x409673
xor ecx, ecx
test esi, esi
jl 0x409673
lea eax, [ecx*4 + 0x412ff0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x409661
push 0
push 0x413030
call ebx
jmp 0x40949e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b293
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4120e0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x412360]
je 0x40b2c8
inc eax
cmp eax, 0x13
jb 0x40b2b9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412360]
jne 0x40b3ee
mov eax, dword [0x412e38]
cmp eax, 1
je 0x40b3c6
cmp eax, edx
jne 0x40b2f8
cmp dword [0x412104], 1
je 0x40b3c6
cmp ecx, 0xfc
je 0x40b3ee
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b32e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040c320
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040c420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b362
mov eax, edi
push eax
call fcn.0040c420
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fb04
push edi
call fcn.00408390
add esp, 0x10
push edi
call fcn.0040c420
push dword [esi + 0x412364]
mov ebx, eax
call fcn.0040c420
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407320
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040c320
push edi
push ebx
call fcn.0040c330
push 0x40fb00
push ebx
call fcn.0040c330
push dword [esi + 0x412364]
push ebx
call fcn.0040c330
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c21b
add esp, 0x2c
jmp 0x40b3ee
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x412364]
push dword [esi]
call fcn.0040c420
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040738e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40c21b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413168], ebx
push esi
push edi
jne 0x40c29b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c2d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x413168], eax
je 0x40c2d6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41316c], eax
call esi
cmp dword [0x412fa4], 2
mov dword [0x413170], eax
jne 0x40c29b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x413178], eax
je 0x40c29b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x413174], eax
mov eax, dword [0x413174]
test eax, eax
je 0x40c2e0
call eax
test eax, eax
je 0x40c2c7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413178]
test eax, eax
je 0x40c2c7
test byte [ebp - 8], 1
jne 0x40c2e0
cmp dword [0x412fb0], 4
jb 0x40c2da
or byte [ebp + 0x12], 0x20
jmp 0x40c2ff
xor eax, eax
jmp 0x40c30f
or byte [ebp + 0x12], 4
jmp 0x40c2ff
mov eax, dword [0x41316c]
test eax, eax
je 0x40c2ff
call eax
mov ebx, eax
test ebx, ebx
je 0x40c2ff
mov eax, dword [0x413170]
test eax, eax
je 0x40c2ff
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413168]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b7a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4b7a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7a90
mov eax, 1
add ebx, ebx
jne 0x4b7ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7ac4
jne 0x4b7ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ae3
dec eax
add ebx, ebx
jne 0x4b7ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7aa8
add ebx, ebx
jne 0x4b7adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b7b35
xor ecx, ecx
sub eax, 3
jb 0x4b7afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b7b6a
sar eax, 1
mov ebp, eax
jmp 0x4b7b06
add ebx, ebx
jne 0x4b7b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
inc ecx
add ebx, ebx
jne 0x4b7b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
add ebx, ebx
jne 0x4b7b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7b16
jne 0x4b7b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b7b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b7b46
jmp 0x4b7a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b7b54
add edi, ecx
jmp 0x4b7a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b7b72
cmp byte [edi], 0x11
jne 0x4b7b72
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 0x4b7b77
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b7bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbe0d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbe22c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b7ba4
mov ecx, edi
jns 0x4b7bd3
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 + 0xbe230]
or eax, eax
je 0x4b7be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b7bc1
call dword [esi + 0xbe240]
mov ebp, dword [esi + 0xbe234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b7c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x493ef2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51b0d4]
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 0x493f3d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004943b4
test al, al
jne 0x493f37
sub edx, 2
cmp edx, edi
jne 0x493f1d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x493f5f
lea eax, [edi + 2]
cmp edx, eax
je 0x493f5f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00493aeb
add esp, 0x10
jmp 0x494059
push esi
lea ecx, [ebp - 0x255]
call fcn.004943b4
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 0x493fa2
push dword [ebp - 0x25c]
jmp 0x493f4f
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 0x493fdf
cmp word [ebp - 0x226], 0
je 0x494000
cmp word [ebp - 0x226], ax
jne 0x493fdf
cmp word [ebp - 0x224], 0
je 0x494000
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00493aeb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49404c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x493fb9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x494034
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x494059
push 0x4934d3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056e6
add esp, 0x10
jmp 0x494029
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.004030ee
leave
ret
Function at 0x49fb08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dcf
mov eax, dword [0x51b0d4]
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.00406078
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49fb4a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49fca6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061d6
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 + 0x51ed40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403314
mov ecx, dword [esi*4 + 0x51ed40]
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 0x49fc9f
cmp eax, dword [edi + ecx + 0x24]
jne 0x49fc9f
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 0x49fc9f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403314
add esp, 0x14
test edx, edx
jl 0x49fc9f
jg 0x49fc15
test eax, eax
jb 0x49fc9f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49fc9f
jl 0x49fc2f
cmp dword [ebp - 0x1008], eax
ja 0x49fc9f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49fc4d
test ebx, ebx
je 0x49fc86
cmp ecx, edi
jae 0x49fc86
mov al, byte [ecx]
cmp al, 0xd
jne 0x49fc67
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49fc73
cmp byte [ecx + 1], 0xa
jne 0x49fc73
inc ecx
jmp 0x49fc73
movzx eax, al
movsx eax, byte [eax + 0x51ba10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49fc4d
cmp edx, ebx
jne 0x49fc4d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49fca4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030ee
leave
ret
Function at 0x4a03e5
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 + 0x51ed40]
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 0x4a0425
cmp byte [ebx], 0xa
jne 0x4a0425
or byte [eax + edi + 0x28], 4
jmp 0x4a042a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a0528
mov al, byte [edx]
cmp al, 0x1a
je 0x4a050a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a0459
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a047e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a0488
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 0x4a043b
jmp 0x4a0528
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 0x4a0505
cmp dword [ebp - 0xc], 0
je 0x4a0505
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51ed40]
test byte [eax + edi + 0x28], 0x48
je 0x4a04df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a04ca
mov byte [esi], dl
jmp 0x4a04db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51ed40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a0528
cmp byte [ebp - 1], 0xa
jne 0x4a04ee
cmp esi, ebx
jne 0x4a04ee
mov byte [esi], 0xa
jmp 0x4a0527
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a0528
mov byte [esi], 0xd
jmp 0x4a0527
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51ed40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0524
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0528
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a0584
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 + 0x51ed40]
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 0x4a05c7
cmp word [esi], dx
jne 0x4a05c7
or byte [edi + eax + 0x28], 4
jmp 0x4a05cc
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 0x4a071f
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 0x4a06ff
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a060e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a0644
cmp eax, edx
jae 0x4a0650
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 0x4a05e6
jmp 0x4a071f
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 0x4a06fb
cmp dword [ebp - 0x14], 0
je 0x4a06fb
mov eax, dword [ebx*4 + 0x51ed40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a06d3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a069c
mov word [esi], cx
jmp 0x4a06cf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51ed40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51ed40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51ed40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a071f
pop ebx
cmp word [ebp - 4], bx
jne 0x4a06e4
cmp esi, dword [ebp + 0xc]
jne 0x4a06e4
mov word [esi], bx
jmp 0x4a071c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a071f
push 0xd
jmp 0x4a0718
mov ecx, dword [ebx*4 + 0x51ed40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0716
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a071f
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 0x408260
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46360b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004582c8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4082e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456217
mov eax, dword [eax]
push 0x5041c0
push eax
call fcn.00449114
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00458553
test bl, bl
je 0x4082e2
push 0x5041c0
lea ecx, [esp + 0xc]
call fcn.004588e3
push 0x507d24
lea ecx, [esp + 0xc]
call fcn.004588e3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40831e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00458553
jmp 0x4083e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4083a2
lea edx, [esp + 0x7c]
push 0x507d20
push edx
call fcn.00449114
add esp, 8
test eax, eax
je 0x4083a2
lea eax, [esp + 0x7c]
push 0x507d1c
push eax
call fcn.00449114
add esp, 8
test eax, eax
je 0x4083a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408332
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00458553
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408be0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408c42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408c50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46368b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x50e1c0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408d88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408cb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458553
xor eax, eax
jmp 0x408dff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458690
push esi
lea ecx, [esp + 0xc]
call fcn.0045891f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x408ddd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408be0
test eax, eax
jne 0x408ddd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00408be0
test eax, eax
jne 0x408ddd
lea eax, [esp + 0x14]
push 0x507d38
push eax
call fcn.0044a150
mov esi, eax
add esp, 8
test esi, esi
jne 0x408dbc
lea ecx, [esp + 0x14]
push 0x507d34
push ecx
call fcn.0044a0d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408dbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408dbf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458640
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408cce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458553
xor eax, eax
jmp 0x408dff
mov byte [esi], 0
push 0x507d30
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00458553
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4