joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417660
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 0x18
push 0
mov edi, ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4176ab
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x18]
push edx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4176bb
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x18]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edx*2]
sub ecx, edx
mov dword [ebp - 0x44], ecx
lea ebx, [edi + 0x10]
mov ecx, 0x436644
mov edx, ebx
call fcn.00401f90
test eax, eax
je 0x4176f0
cmp word [edi + 2], 6
jne 0x41771c
mov eax, 0x436620
jmp 0x417721
mov ecx, 0x436664
mov edx, ebx
call fcn.00401f90
test eax, eax
je 0x417707
mov eax, 0x436638
jmp 0x417721
mov ecx, 0x436654
mov edx, ebx
call fcn.00401f90
test eax, eax
mov eax, 0x43662c
jne 0x417721
mov eax, 0x436614
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
xor edx, edx
div esi
lea esi, [ecx + edx]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edi, word [edi + 2]
mov dword [ebp - 0x4c], eax
cmp edi, 6
je 0x41777e
cmp dword [ebp - 0x44], 2
je 0x41777e
mov ecx, 0x436664
mov edx, ebx
call fcn.00401f90
test eax, eax
je 0x417765
mov edi, 0x50881e90
jmp 0x417783
cmp edi, 5
je 0x417777
cmp dword [ebp - 0x44], 1
je 0x417777
mov edi, 0x4d5c0290
jmp 0x417783
mov edi, 0x50463390
jmp 0x417783
mov edi, 0x52601790
xor ebx, ebx
push ebx
call fcn.0041b498
mov ecx, dword [ebp - 0x10]
add esp, 4
sub eax, 0x15180
sbb edx, ebx
sub eax, edi
sbb edx, ebx
mov ebx, dword [ebp - 0xc]
push edx
push eax
and ebx, 0x7fffffff
push ebx
push ecx
call fcn.00427330
mov ecx, eax
add ecx, edi
mov eax, 0
adc edx, eax
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x54], ecx
call fcn.0041b210
mov ecx, dword [ebp - 0x28]
mov eax, 0x431bde83
imul esi
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x20]
inc edx
add ecx, 0x76c
push ecx
mov ecx, dword [ebp - 0x44]
push edx
movzx edx, word [ecx*4 + 0x43660a]
push edx
mov edx, dword [ebp - 0x4c]
push edx
mov ebx, dword [ebp - 0x48]
mov edx, eax
imul edx, edx, 0xf4240
push 3
sub esi, edx
push esi
push eax
mov eax, dword [ebp - 0x40]
movzx edx, word [eax]
movzx eax, word [ecx*4 + 0x436608]
push edx
push eax
push str._05u__05u__03u__06u__02u__u__04u.0000__03d_04d
mov ecx, 0x40
call fcn.00417600
mov ecx, dword [ebp - 8]
add esp, 0x30
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret

Function at 0x418fcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445664]
jne 0x418fd5
repz ret
jmp fcn.00420479
Function at 0x42a7af
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00420ef0
and dword [ebp - 0x14], 0
cmp dword [0x448108], 0
mov dword [ebp - 0x18], eax
jne 0x42a862
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42a90a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42a90a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448108], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44810c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448110], eax
call edi
push eax
call esi
mov dword [0x448118], eax
test eax, eax
je 0x42a862
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448114], eax
mov eax, dword [0x448114]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42a8bb
cmp dword [0x448118], ecx
je 0x42a8bb
push eax
call esi
push dword [0x448118]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42a8bb
test ebx, ebx
je 0x42a8bb
call edi
test eax, eax
je 0x42a8b2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42a8b2
test byte [ebp - 8], 1
jne 0x42a8bb
or dword [ebp + 0x10], 0x200000
jmp 0x42a8ee
mov eax, dword [0x44810c]
cmp eax, dword [ebp - 0x18]
je 0x42a8ee
push eax
call esi
test eax, eax
je 0x42a8ee
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42a8ee
mov eax, dword [0x448110]
cmp eax, dword [ebp - 0x18]
je 0x42a8ee
push eax
call esi
test eax, eax
je 0x42a8ee
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448108]
call esi
test eax, eax
je 0x42a90a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42a90c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
leave
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
push ebp
push edi
push str.CHECKSUM_REV_1.0_2015_04_07_By_ECS_BIOS_Team_n
call fcn.00401287
mov eax, dword [esp + 0x2c]
add esp, 4
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
jne 0x401042
pop edi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
push ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00401222
add esp, 4
push edi
lea edx, [esp + 0x1c]
push edx
mov ebx, eax
push esi
push ebx
push ebp
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp esi, 2
mov eax, ebx
mov dword [esp + 0x28], edi
jl 0x4010cf
lea ecx, [esi - 2]
shr ecx, 1
inc ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x1c], edx
mov dx, di
movsx ebx, byte [eax]
mov ebp, 0xff
and bx, bp
add dx, bx
movsx ebx, byte [eax + 1]
and bx, bp
add di, bx
add eax, 2
sub ecx, 1
jne 0x401095
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov word [esp + 0x14], di
mov edi, dword [esp + 0x28]
mov word [esp + 0x10], dx
cmp ecx, esi
jae 0x4010e2
movsx ax, byte [eax]
mov ecx, 0xff
and ax, cx
movzx edi, ax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add edx, eax
xor eax, eax
push ecx
push str._ss_checksum:_0x
add edi, edx
mov byte [esp + 0x18], 0
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
call fcn.00401287
add esp, 8
xor esi, esi
mov ecx, 3
sub ecx, esi
add cl, cl
add cl, cl
mov eax, edi
shr ax, cl
and al, 0xf
cmp al, 9
mov byte [esp + esi + 0x10], al
jg 0x401130
add al, 0x30
jmp 0x401132
add al, 0x37
movsx edx, al
push edx
push 0x40a15c
mov byte [esp + esi + 0x18], al
call fcn.00401287
inc esi
add esp, 8
cmp esi, 4
jl 0x401112
push 0x40a158
call fcn.00401287
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004011ad
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x1c
ret

Function at 0x4060a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d458]
jne 0x4060ad
repz ret
jmp fcn.00408990
Function at 0x406766
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403a95
and dword [ebp - 4], 0
cmp dword [0x40e5d0], 0
mov ebx, eax
jne 0x406817
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4068c8
push eax
call fcn.00403a23
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e5d0], eax
call esi
push eax
call fcn.00403a23
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e5d4], eax
call esi
push eax
call fcn.00403a23
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e5d8], eax
call esi
push eax
call fcn.00403a23
pop ecx
mov dword [0x40e5e0], eax
test eax, eax
je 0x406817
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a23
pop ecx
mov dword [0x40e5dc], eax
mov eax, dword [0x40e5dc]
cmp eax, ebx
je 0x40686f
cmp dword [0x40e5e0], ebx
je 0x40686f
push eax
call fcn.00403a9e
push dword [0x40e5e0]
mov esi, eax
call fcn.00403a9e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40686f
test edi, edi
je 0x40686f
call esi
test eax, eax
je 0x406866
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406866
test byte [ebp - 0xc], 1
jne 0x40686f
or dword [ebp + 0x10], 0x200000
jmp 0x4068a8
mov eax, dword [0x40e5d4]
cmp eax, ebx
je 0x4068a8
push eax
call fcn.00403a9e
pop ecx
test eax, eax
je 0x4068a8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068a8
mov eax, dword [0x40e5d8]
cmp eax, ebx
je 0x4068a8
push eax
call fcn.00403a9e
pop ecx
test eax, eax
je 0x4068a8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e5d0]
call fcn.00403a9e
pop ecx
test eax, eax
je 0x4068c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401011
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov edi, 0x404108
push 0x104
push edi
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov esi, 0x404108
call section..text
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
call section..text
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jbe 0x4010a6
mov dword [ebp - 0x10], 0
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 4]
mov edi, 0x404108
cld
lodsb al, byte [esi]
or al, al
je 0x4010a6
cmp al, 0x20
je 0x401060
cmp al, 9
je 0x401060
cmp al, 8
je 0x401060
dec esi
cmp al, 0x22
jne 0x40107f
mov dword [ebp - 0x10], 1
inc esi
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
je 0x40109c
or dword [ebp - 0x10], 0
je 0x401090
cmp al, 0x22
je 0x40109c
or dword [ebp - 0x10], 0
jne 0x40109a
cmp al, 0x20
je 0x40109c
jmp 0x40107f
or al, al
je 0x4010a4
dec edi
xor al, al
stosb byte es:[edi], al
jmp 0x4010aa
xor eax, eax
jmp 0x4010ad
xor eax, eax
inc eax
leave
ret

Function at 0x401368
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x1000
push 8
push dword [ebp - 0x10]
call sub.kernel32.dll_HeapAlloc
mov edi, eax
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
xor ebx, ebx
lodsb al, byte [esi]
or al, al
je 0x401400
cmp al, 0x22
je 0x4013e3
cmp ebx, 1
je 0x4013b8
cmp al, 0x20
je 0x4013c2
cmp al, 9
je 0x4013c2
stosb byte es:[edi], al
mov dword [ebp - 4], 1
jmp 0x4013a2
mov al, 0
stosb byte es:[edi], al
inc dword [ebp - 8]
mov dword [ebp - 4], 0
lodsb al, byte [esi]
or al, al
je 0x401400
cmp al, 0x22
je 0x4013e7
cmp al, 0x20
je 0x4013cf
cmp al, 9
je 0x4013cf
dec esi
jmp 0x4013a2
or ebx, ebx
jne 0x4013f5
cmp dword [ebp + 0xc], 1
jne 0x4013ee
stosb byte es:[edi], al
mov ebx, 1
jmp 0x4013a2
cmp dword [ebp + 0xc], 1
jne 0x4013fc
stosb byte es:[edi], al
xor ebx, ebx
jmp 0x4013c2
xor eax, eax
stosw word es:[edi], ax
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov ecx, edi
sub ecx, dword [ebp - 0xc]
push ecx
push ecx
push 8
push dword [ebp - 0x10]
call sub.kernel32.dll_HeapAlloc
pop ecx
mov edi, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
shl eax, 2
push eax
push 8
push dword [ebp - 0x10]
call sub.kernel32.dll_HeapAlloc
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov esi, dword [eax + 8]
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x40146e
mov dword [edi], esi
add edi, 4
add esi, eax
inc esi
jmp 0x40145a
popal
leave
ret 8
Function at 0x401e10
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4042d8
call fcn.00401f7c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x405478
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x401bd1
cmp eax, esi
jne 0x401bc4
xor esi, esi
inc esi
mov ebx, esi
jmp 0x401bd4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401bab
xor esi, esi
inc esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401be7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401c16
mov eax, dword [0x405474]
test eax, eax
jne 0x401c10
mov dword [0x405474], esi
push 0x4030e4
push 0x4030d8
call fcn.00401b1a
pop ecx
pop ecx
test eax, eax
je 0x401c16
jmp 0x401d3e
mov dword [0x40513c], esi
mov eax, dword [0x405474]
cmp eax, esi
jne 0x401c3a
push 0x4030d4
push 0x4030cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405474], 2
test ebx, ebx
jne 0x401c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40547c], 0
je 0x401c6a
push 0x40547c
call fcn.00401f04
pop ecx
test eax, eax
je 0x401c6a
push 0
push 2
push 0
call dword [0x40547c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401cc6
test al, al
je 0x401c84
cmp dword [ebp - 0x1c], 0
jne 0x401cc6
mov al, byte [esi]
test al, al
je 0x401c94
cmp al, 0x20
ja 0x401c94
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401c84
test byte [ebp - 0x3c], 1
je 0x401ca0
movzx eax, word [ebp - 0x38]
jmp 0x401ca3
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x405138], eax
cmp dword [0x40512c], 0
jne 0x401d1a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x401cd5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401ce8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401c71
cmp dword [0x40513c], 0
jne 0x401d29
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405138]
jmp 0x401d4a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401fc1
ret
call fcn.004020ab
jmp 0x401b71
Function at 0x4f0c80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5715cb
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.00566320
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4f0d02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0056409a
mov eax, dword [eax]
push 0x670d04
push eax
call fcn.00555ee4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005665ab
test bl, bl
je 0x4f0d02
push 0x670d04
lea ecx, [esp + 0xc]
call fcn.0056693b
push 0x670d10
lea ecx, [esp + 0xc]
call fcn.0056693b
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 0x4f0d3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005665ab
jmp 0x4f0e09
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 0x4f0dc2
lea edx, [esp + 0x7c]
push 0x670d0c
push edx
call fcn.00555ee4
add esp, 8
test eax, eax
je 0x4f0dc2
lea eax, [esp + 0x7c]
push 0x670d08
push eax
call fcn.00555ee4
add esp, 8
test eax, eax
je 0x4f0dc2
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 0x4f0d52
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.005665ab
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 0x4f1600
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 0x4f1662
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 0x4f1670
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x57164b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6b0904]
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 0x4f17a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4f16d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005665ab
xor eax, eax
jmp 0x4f181f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005666e8
push esi
lea ecx, [esp + 0xc]
call fcn.00566977
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 0x4f17fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004f1600
test eax, eax
jne 0x4f17fd
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 closesocket
mov ecx, edi
call fcn.004f1600
test eax, eax
jne 0x4f17fd
lea eax, [esp + 0x14]
push 0x670d20
push eax
call fcn.00556f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f17dc
lea ecx, [esp + 0x14]
push 0x670d1c
push ecx
call fcn.00556ee0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f17dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4f17df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00566698
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4f16ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005665ab
xor eax, eax
jmp 0x4f181f
mov byte [esi], 0
push 0x670d18
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.005665ab
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
Function at 0x5024f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x50255e
cmp si, 0x69
ja 0x50255e
add esi, 0xffd0
cmp si, 0x11
je 0x50252e
push 0x11
call edi
test ax, ax
jge 0x50252e
or esi, 0x2000
cmp si, 0x10
je 0x502543
push 0x10
call edi
test ax, ax
jge 0x502543
or esi, 0x4000
cmp si, 0x12
je 0x502558
push 0x12
call edi
test ax, ax
jge 0x502558
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x50256b
mov esi, 0xbd
jmp 0x50251f
cmp si, 0x6e
jne 0x502578
mov esi, 0xbe
jmp 0x50251f
cmp si, 0x6f
jne 0x502519
mov esi, 0xbf
jmp 0x50251f

Function at 0x503e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6c1198]
xor edx, edx
cmp eax, edx
jne 0x503e96
xor eax, eax
mov byte [eax + 0x6c1098], al
inc eax
cmp eax, 0x100
jl 0x503e7e
mov dword [0x6c1198], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6c1098
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x503f27
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 0x503efa
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 0x503ec8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x503fa0
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 0x503ff3
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 0x503fda
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