joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e5943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005d815c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xe28948
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xe28890
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x5e70f4]
push eax
mov ecx, edi
call fcn.005dd7fb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005ded17
test eax, eax
je 0x58745c
mov ecx, dword [esp + 0x3c]
call fcn.005dd828
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x5e764c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x587420
push edi
mov ecx, esi
call fcn.005dae8a
mov ecx, esi
call fcn.00587600
cmp dword [esp + 0x38], 1
jne 0x587455
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.005dafc5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x589640
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x589673
push esi
call fcn.00597950
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x58966c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5896f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5896e2
mov eax, dword [esi + 8]
test eax, eax
je 0x589697
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5896de
cmp eax, 2
je 0x5896e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x58968a
cmp eax, 3
je 0x5896bd
cmp eax, 1
jne 0x58968a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x58968a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x58968a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00589720
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x589708
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00589720
add esp, 4
pop esi
ret
Function at 0x5a5d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e5e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005a5940
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005a59c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005a59c0
lea ecx, [esi + 0xc]
call fcn.005d6b0f
lea ecx, [esi + 0x10]
call fcn.005d6b0f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005a6f50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005a6f50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005a6f50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005d6b84
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005d6b84
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5b09e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xe81ef4]
xor edx, edx
cmp eax, edx
jne 0x5b0a06
xor eax, eax
mov byte [eax + 0xe81df4], al
inc eax
cmp eax, 0x100
jl 0x5b09ee
mov dword [0xe81ef4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe81df4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5b0a97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5b0a6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5b0a38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5b0b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5b0b63
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5b0b4a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b7500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e62ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005b7e20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xe2b7bc
call fcn.005d68c5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5b7593
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005d68c5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5b758c
push 0
mov ecx, eax
call fcn.005ae620
mov dword [esi + 0xc], eax
jmp 0x5b7595
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5b7595
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4305b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e20
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4305b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4305b0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x4033aa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x437c00
push esi
add eax, 0x3e8
push ebx
mov dword [0x430520], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.004059fb
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a010], edi
jne 0x403404
mov eax, 0x408974
jmp 0x4035d9
push esi
mov esi, 0x436c00
push esi
call fcn.00405b8b
push esi
call fcn.00405eb7
push eax
push 0x438000
call fcn.00405b8b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x4298f0], eax
mov esi, eax
jle 0x40351f
mov ebx, 0x417d30
mov eax, dword [0x43052c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403458
mov edi, eax
push edi
push ebx
call fcn.00403130
test eax, eax
je 0x4035e0
cmp dword [0x43052c], 0
jne 0x4034ea
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.004059b7
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4034f8
cmp dword [ebp - 0x24], 0x2e777757
jne 0x4034f8
cmp dword [ebp - 0x18], 0x6d6f432e
jne 0x4034f8
cmp dword [ebp - 0x1c], 0x61426961
jne 0x4034f8
cmp dword [ebp - 0x20], 0x5a616958
jne 0x4034f8
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x417d2c]
and eax, 2
or dword [0x4305a0], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x43052c], ecx
jg 0x4035e8
test byte [ebp + 8], 8
jne 0x4034dc
test byte [ebp + 8], 4
jne 0x40351d
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4034f8
mov edi, esi
jmp 0x4034f8
test byte [ebp + 8], 2
jne 0x4034f8
push 0
call fcn.004030cc
pop ecx
cmp esi, dword [0x4298f0]
jge 0x40350d
push edi
push ebx
push dword [ebp - 8]
call fcn.004065c9
mov dword [ebp - 8], eax
add dword [0x417d2c], edi
sub esi, edi
test esi, esi
jg 0x40343d
xor ebx, ebx
push 1
call fcn.004030cc
cmp dword [0x43052c], ebx
pop ecx
je 0x4035e8
cmp dword [ebp - 4], ebx
je 0x403562
push dword [0x417d2c]
call fcn.00403162
push 4
lea eax, [ebp + 8]
push eax
call fcn.00403130
test eax, eax
je 0x4035e8
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x4035e8
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x43052c]
add eax, 0x1c
push eax
call fcn.00403162
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403179
cmp eax, dword [ebp - 0x14]
jne 0x4035e8
test byte [ebp - 0x28], 1
mov dword [0x4304cc], esi
mov eax, dword [esi]
mov dword [0x430528], eax
je 0x4035a7
inc dword [0x430524]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x4035ad
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x4304e0
call fcn.004059b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.004030cc
pop ecx
mov eax, 0x408918
jmp 0x4035d9
Function at 0x405864
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42bd38
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42bd38], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40589f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059db
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f8
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059fb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a6e
test edi, edi
jne 0x405a35
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a68

Function at 0x405a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ae3
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ad2
cmp dword [ebp + 0x14], 1
je 0x405ad4
cmp dword [ebp + 0x14], 2
je 0x405ad4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405c6c
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405c63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405ce1
cmp dword [0x42e84c], ebx
je 0x405ce1
cmp byte [0x42f860], bl
je 0x405cab
cmp dword [0x40a058], 0xffffffff
jne 0x405cb4
push 4
push 0x40000000
push 0x42f860
call fcn.004059fb
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405ce1
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405ce1
push esi
push 0x408c38
mov esi, 0x42e860
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bd80
push esi
call fcn.00405b8b
push esi
call fcn.0040596a
mov edi, eax
test edi, edi
jne 0x405eff
xor eax, eax
jmp 0x405f57
push edi
call fcn.00405bad
test byte [0x430528], 0x80
je 0x405f18
mov al, byte [edi]
test al, al
je 0x405efb
cmp al, 0x5c
je 0x405efb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f38
push esi
call fcn.00405df9
test eax, eax
je 0x405f32
test byte [eax], 0x10
je 0x405f5c
push esi
call fcn.00405eb7
push esi
call ebx
cmp eax, edi
jg 0x405f23
push esi
call fcn.00405e8a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405f56
Function at 0x40620c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e20
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406230
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406369
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c180], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c180
je 0x406274
push 1
push 0
push esi
call fcn.004059fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40636f
cmp eax, edi
jg 0x40636f
push edi
mov esi, 0x42cac0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40636f
cmp eax, edi
jg 0x40636f
push esi
push ebp
push str._s_s_r_n
push 0x42c580
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4304cc]
push dword [eax + 0x128]
push esi
call fcn.00405fb6
push 4
push 0xc0000000
push esi
call fcn.004059fb
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x406369
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406362
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406362
cmp edi, dword [esp + 0x18]
jne 0x406362
push str._Rename__r_n
push esi
call fcn.00405f60
test eax, eax
jne 0x406376
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405b8b
add edi, 0xa
mov eax, edi
push ebx
push 0x42c580
add eax, esi
push eax
call fcn.004059b7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x430590]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408ce4
add eax, 0xa
push eax
call fcn.00405f60
test eax, eax
je 0x40632d
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40639d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406392
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40632f
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc
Function at 0xfd9d92
Capabilities:
Encode data using xor

Disassembly:
push 0x55c90ba3
call fcn.00bc04ba
pop edi
pop esi
pop ds
ror byte [ebx], 1
movsd dword es:[edi], dword [esi]
sti
push esp
add al, 0xce
into
and dword [eax + 0x69ef38ce], ebp
jne 0xfd7a6b
push eax
inc esp
xor eax, 0xefb53bd1
pop esp
adc al, 0xce
adc bh, byte [edi + 0x7dd33ee]
loopne 0xfd7a6f
mov bl, 4
imul edx, dword [0x69fa4ce4], 0x6b3f914
adc dword [edx + 0x52], 0xffffffb3
push es
rcr esp, 0xf0
dec esp
stc
pop eax
xchg edx, eax
popfd
dec esp
std
aad 0x2c
mov edx, 0x86a002b3
jmp 0xfd7a61
jmp 0xfd9d9c
jmp 0xfd7a5c
Function at 0x1002ae4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10012a0
call fcn.01002ce4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002b1f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b1f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002b37
cmp eax, 0x20b
je 0x1002b24
mov dword [ebp - 0x1c], edi
jmp 0x1002b4b
cmp dword [ecx + 0x84], 0xe
jbe 0x1002b1f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002b45
cmp dword [ecx + 0x74], 0xe
jbe 0x1002b1f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005090], 0xffffffff
or dword [0x1005094], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005060]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100505c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005098], eax
call fcn.01002d52
cmp dword [0x1005040], edi
jne 0x1002ba6
push fcn.01002d52
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002d40
push 0x100114c
push 0x1001148
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005058]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1005054]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001144
push 0x1001138
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010038bf
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002c1d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002c52
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002d1d
ret
Function at 0x1002e65
Capabilities:
Persist via com hijack
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x80
lea eax, [ebp - 0x204]
push eax
push dword [edi]
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
call esi
push 0x1001df8
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea eax, [eax + eax + 0xc8]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [edi + 8]
mov ebx, eax
push 0x1001dd4
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
call esi
lea eax, [eax + eax + 2]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push 0
push dword [ebp + 8]
call ebx
cmp dword [ebp + 0xc], 0
mov eax, 0x1001db8
jne 0x1002f2c
mov eax, 0x1001d98
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0x104
lea eax, [ebp - 0x50c]
push eax
push dword [0x1005064]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x50c]
push eax
call esi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x50c]
push eax
push 1
push 0
push 0
push dword [ebp - 4]
call ebx
cmp dword [edi + 0xc], 0
je 0x1002f8c
cmp dword [edi + 0x10], 0
jne 0x1002f85
mov edi, 0x1001d8c
jmp 0x1002f91
mov edi, 0x1001d80
jmp 0x1002f91
mov edi, 0x1001d6c
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x1001d4c
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8