joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f0b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov edx, 0x4b14a4
movzx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x4abdc4]
mov ebx, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [edx], ebx
and ebx, 0xff
add dword [edx + 4], ebx
imul eax, dword [edx + 4], 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
mov ecx, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x4abdc4]
mov eax, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor eax, ecx
mov dword [edx + 8], eax
pop ebx
ret

Function at 0x47f13c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov ebx, edx
test ebx, ebx
jle 0x47f166
call fcn.0047f118
mov edx, dword [esi]
xor byte [edx], al
mov eax, dword [esi]
movzx eax, byte [eax]
call fcn.0047f0b4
inc dword [esi]
dec ebx
jne 0x47f14e
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x47f16c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
mov ebx, edx
test ebx, ebx
jle 0x47f19c
call fcn.0047f118
movzx esi, al
mov eax, dword [edi]
movzx eax, byte [eax]
call fcn.0047f0b4
mov eax, esi
mov edx, dword [edi]
xor byte [edx], al
inc dword [edi]
dec ebx
jne 0x47f17f
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47f334
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x47f34d
add esp, 0xfffffff0
call fcn.00404370
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp + 0x10]
call fcn.0040541c
mov eax, dword [ebp + 0xc]
call fcn.0040541c
xor eax, eax
push ebp
push 0x47f444
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x58], esi
mov eax, esi
mov dword [ebx + 0x34], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa0]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x3c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x44], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa8]
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x2c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xac]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x558]
mov dword [ebx + 0x5c], eax
movzx eax, word [ebp + 8]
and ax, 0xffff
cmp ax, 0xffff
jne 0x47f3ed
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x10]
call fcn.0047b330
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x64]
call fcn.00404fbc
lea eax, [ebx + 0x54]
mov edx, dword [ebp + 0xc]
call fcn.00404fbc
mov byte [ebx + 0x50], 1
jmp 0x47f404
lea eax, [ebx + 0x64]
mov edx, dword [ebp + 0xc]
call fcn.00404fbc
lea eax, [ebx + 0x54]
call fcn.00404f68
mov byte [ebx + 0x50], 0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebx + 0x64]
xor edx, edx
mov eax, ebx
call fcn.0047ee88
movzx eax, word [ebp + 8]
mov word [ebx + 0x62], ax
mov byte [ebx + 0x60], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f44b
lea eax, [ebp - 8]
call fcn.00404f68
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00404f8c
ret

Function at 0x49218c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4921fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00492168
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0048f7f0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0048f26c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492204
lea eax, [ebp - 0x14]
call fcn.00404f68
ret
Function at 0x49c664
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
test dl, dl
je 0x49c676
add esp, 0xfffffff0
call fcn.00404370
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040401c
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov dl, 1
mov eax, dword [0x417cb0]
call fcn.0040401c
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x49c840
call sub.kernel32.dll_LoadLibraryA
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x49c6ce
mov ecx, 0x49c854
mov dl, 1
mov eax, dword [0x408350]
call fcn.0040d468
call fcn.004048c0
push 0x49c864
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x49c704
mov ecx, 0x49c87c
mov dl, 1
mov eax, dword [0x408350]
call fcn.0040d468
call fcn.004048c0
push 0x49c8a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 0x49c8b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x49c751
mov ecx, 0x49c8d0
mov dl, 1
mov eax, dword [0x408350]
call fcn.0040d468
call fcn.004048c0
push 0x49c8fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x49c910
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
push 0x49c920
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
push 0x49c934
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
push 0x49c948
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
push 0x49c958
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
push 0x49c968
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
push 0x49c978
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
push 0x49c988
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x49c838
call fcn.004043c8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x49ca68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x115]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x115]
call fcn.0040a47c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49cab5
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
cmp byte [eax + edx - 1], 0x5c
je 0x49cad4
mov eax, dword [ebp - 8]
mov edx, 0x49cae0
call fcn.00405234
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x49cae4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040541c
xor eax, eax
push ebp
push 0x49cb4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x111]
push eax
push 0
push 0x49cb58
mov eax, dword [ebp - 8]
call fcn.0040542c
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x111]
call fcn.0040a47c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cb53
lea eax, [ebp - 8]
call fcn.00404f68
ret

Function at 0x4a18cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a199c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 8], 0
je 0x4a1980
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4a18a8]
call fcn.00406428
add esp, 4
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0041c954
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0041cb60
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
dec eax
test eax, eax
jl 0x4a1980
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
mov edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, edx
mov eax, dword [eax*4 + 0x4ab604]
mov edx, dword [ebp - 0xc]
shr edx, 8
xor eax, edx
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4a1951
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a19a3
lea eax, [ebp - 0x14]
mov edx, dword [0x4a18a8]
call fcn.00406434
ret
Function at 0x4a28e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a2987
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4254bc]
call fcn.0042558c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a295f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0042562c
xor ecx, ecx
mov edx, 0x4a299c
mov eax, dword [ebp - 8]
call fcn.00425690
test al, al
je 0x4a2949
lea ecx, [ebp - 0xc]
mov edx, 0x4a29e8
mov eax, dword [ebp - 8]
call fcn.004259e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2966
mov eax, dword [ebp - 8]
call fcn.0040404c
ret

Function at 0x4a29f8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a2a9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4254bc]
call fcn.0042558c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a2a77
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.0042562c
xor ecx, ecx
mov edx, 0x4a2ab4
mov eax, dword [ebp - 8]
call fcn.00425690
test al, al
je 0x4a2a61
lea ecx, [ebp - 0xc]
mov edx, 0x4a2b00
mov eax, dword [ebp - 8]
call fcn.004259e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2a7e
mov eax, dword [ebp - 8]
call fcn.0040404c
ret

Function at 0x4a3244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 4], eax
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x111]
call fcn.0040a47c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a328e
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x5c
je 0x4a32ad
mov eax, dword [ebp - 4]
mov edx, 0x4a32bc
call fcn.00405234
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4a32c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x109]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x109]
push eax
push 0
push 0x4a330c
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x109]
call fcn.0040a47c
mov esp, ebp
pop ebp
ret
Function at 0x4a49c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a4a9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0044f874
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
call fcn.00404f68
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004051d8
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040938c
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 8]
call fcn.00404fbc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a4a66
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
cmp byte [eax + edx - 1], 0x5c
je 0x4a4a85
mov eax, dword [ebp - 8]
mov edx, 0x4a4ab4
call fcn.00405234
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4aa5
lea eax, [ebp - 0x120]
call fcn.00404f68
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x277b18c5
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2f26539a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4012f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
mov dword [esp + 8], 0
xor edi, edi
mov esi, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x3c
idiv ecx
push esi
inc edx
push 0x4031a4
mov dword [esp + 0x1c], edx
call fcn.00401010
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 0xc
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov ecx, 0x3c
add esp, 4
mov eax, dword [eax]
cdq
idiv ecx
lea esi, [edx + 1]
push esi
push 0x4031d4
call fcn.00401010
add esp, 8
cmp esi, dword [esp + 0x14]
je 0x4013df
mov edi, dword [esp + 0x14]
nop dword [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov ecx, 0x3c
add esp, 4
mov eax, dword [eax]
cdq
idiv ecx
lea esi, [edx + 1]
push esi
push 0x4031d4
call fcn.00401010
add esp, 8
cmp esi, edi
jne 0x401390
mov edi, dword [esp + 0x10]
push 0x4031e4
call fcn.00401010
mov esi, dword [esp + 0x10]
add esp, 4
cmp esi, 1
jne 0x401411
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.00401090
mov edi, dword [esp + 0x18]
add esp, 8
mov dword [esp + 8], eax
inc esi
jmp 0x401323
cmp esi, 2
jne 0x4014d4
cmp dword [esp + 8], 0
je 0x4014d4
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
test edi, edi
jle 0x4014b9
cmp edi, 0x40
jb 0x4014a1
mov ecx, edi
and ecx, 0x8000003f
jns 0x40144e
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, edi
sub edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 8]
lea ecx, [edx + 0x20]
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmmword [0x403240]
xorps xmm0, xmm1
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm1
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm1
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, dword [esp + 0x14]
jl 0x401460
jmp 0x4014a5
mov edx, dword [esp + 8]
cmp eax, edi
jge 0x4014b9
nop dword [eax]
xor byte [eax + edx], 0xaa
inc eax
cmp eax, edi
jl 0x4014b0
call dword [esp + 8]
push 0x8000
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
inc esi
jmp 0x401323
inc esi
mov dword [esp + 0xc], esi
cmp esi, 5
jle 0x401327
push 0x403224
call fcn.00401010
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401bcc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c0b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c0b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c0b
cmp dword [ecx + 0x74], 0xe
jbe 0x401c0b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4032ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b18
test esi, esi
jne 0x4032e2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c08
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b0
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x494020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403aa8
push reloc.Shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a88
xor eax, eax
push ebp
push 0x403a81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ac4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x494020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x494020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4048c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49704c], 0
je 0x404925
cmp word [0x497220], 0xd7b2
jne 0x4048ed
cmp dword [0x497228], 0
jbe 0x4048ed
mov eax, 0x49721c
call dword [0x497238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40494c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49402c], 0
jne 0x404941
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a9c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x494030], 0
je 0x404ac2
mov edx, esi
mov eax, ebx
call dword [0x494030]
jmp 0x404ad1
mov eax, 8
call fcn.00402ec0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a64
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc