joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f2c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c9fb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], vtable.GameMgr::GMFile.0
mov dword [esp + 0x14], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x48f320
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x48f314
push eax
call fcn.004a84ed
add esp, 4
mov eax, dword [esi + 0x20]
push eax
call fcn.004a85e6
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x10]
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
call eax
cmp dword [esi + 0x1c], 8
jb 0x48f33e
mov eax, dword [esi + 8]
jmp 0x48f341
lea eax, [esi + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x48f48b
call fcn.0048f4c0
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x48f462
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x48f462
push ebx
lea edx, [esp + 0x10]
push edx
push 2
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f462
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
seta al
cmp al, bl
je 0x48f462
cmp ecx, 2
jne 0x48f462
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x20]
add ecx, 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.00418df0
test al, al
je 0x48f462
cmp dword [esp + 0xc], 2
jne 0x48f462
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push edx
push 2
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00418df0
test al, al
je 0x48f462
cmp dword [esp + 0xc], 2
jne 0x48f462
mov ecx, dword [esi + 0x20]
movzx eax, word [ecx + 4]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7b40
mov ecx, dword [esi + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
movzx ecx, word [eax + 4]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov edx, dword [eax + 8]
shl ecx, 4
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00418df0
test al, al
je 0x48f45b
mov eax, dword [esi + 0x20]
movzx ecx, word [eax + 4]
shl ecx, 4
cmp dword [esp + 0xc], ecx
jne 0x48f45b
mov byte [esi + 0x24], 1
jmp 0x48f48b
call fcn.0048f510
jmp 0x48f48b
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x48f485
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x48f479
push eax
call fcn.004a84ed
add esp, 4
mov edx, dword [esi + 0x20]
push edx
call fcn.004a85e6
add esp, 4
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
mov dword [esp + 0x10], vtable.GameMgr::GMFile.0
je 0x48f4a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4a64c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4a6584
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad6ee
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a6512
xor eax, eax
jmp 0x4a6587
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x4a6548
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], 0x5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x4a655a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad6ee
add esp, 4
cmp dword [ebp - 4], eax
jae 0x4a6584
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x4a6551
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a85d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f87d8]
jne 0x4a85e1
repz ret
jmp fcn.004b15ca
Function at 0x4abdb6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4abdf3
cmp dword [ebp + 0x14], edi
je 0x4abdf3
cmp ecx, edi
jne 0x4abdfa
call fcn.004ab2f8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a8cf0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4abe0e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4abe2f
cmp ebx, 0xffffffff
je 0x4abe1e
push ebx
push edi
push ecx
call fcn.004b1550
add esp, 0xc
cmp esi, edi
je 0x4abddb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4abddb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4abe4b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4abe52
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4abf43
test word [esi + 0xc], 0x10c
je 0x4abea6
mov eax, dword [esi + 4]
test eax, eax
je 0x4abea6
jl 0x4abfa4
cmp ebx, eax
mov edi, ebx
jb 0x4abe77
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4abf4b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004a855c
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4abf3b
cmp ebx, dword [ebp - 0xc]
jb 0x4abf13
cmp dword [ebp - 0xc], 0
je 0x4abed0
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4abec5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4abecc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4abedb
mov eax, closesocket
cmp ebx, eax
ja 0x4abedb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4abf77
push eax
push dword [ebp - 8]
push esi
call fcn.004b36a9
pop ecx
push eax
call fcn.004baf24
add esp, 0xc
test eax, eax
je 0x4abfb6
cmp eax, 0xffffffff
je 0x4abfa4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4abf3b
push esi
call fcn.004b5865
cmp eax, 0xffffffff
pop ecx
je 0x4abfa8
cmp dword [ebp - 4], 0
je 0x4abf77
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4abe5a
mov eax, dword [ebp + 0x14]
jmp 0x4abdf5
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4abf62
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b1550
add esp, 0xc
call fcn.004ab2f8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4abdeb
cmp dword [ebp + 0xc], 0xffffffff
je 0x4abf8d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b1550
add esp, 0xc
call fcn.004ab2f8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4abdeb
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4abdf5
or dword [esi + 0xc], 0x10
jmp 0x4abfa8
Function at 0x4b568c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4f9208]
je 0x4b56a7
inc edi
cmp edi, 0x17
jb 0x4b5698
cmp edi, 0x17
jae 0x4b5827
push ebp
push 3
call fcn.004c19ec
cmp eax, 1
pop ecx
je 0x4b57f3
push 3
call fcn.004c19ec
test eax, eax
pop ecx
jne 0x4b56db
cmp dword [0x4f85d0], 1
je 0x4b57f3
cmp ebx, 0xfc
je 0x4b5826
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4fd7e0
push ebp
call fcn.004b1946
add esp, 0xc
test eax, eax
je 0x4b5711
push esi
push esi
push esi
push esi
push esi
call fcn.004a8bf4
add esp, 0x14
push 0x104
mov esi, 0x4fd7f9
push esi
push 0
mov byte [0x4fd8fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b5755
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b1946
add esp, 0xc
test eax, eax
je 0x4b5755
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a8bf4
add esp, 0x14
push esi
call fcn.004ada20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b579a
push esi
call fcn.004ada20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4fdaf4
push 0x4d2c64
sub ecx, eax
push ecx
push eax
call fcn.004bda31
add esp, 0x14
test eax, eax
je 0x4b579a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a8bf4
add esp, 0x14
jmp 0x4b579c
xor esi, esi
push 0x4d2c60
push ebx
push ebp
call fcn.004bd9c0
add esp, 0xc
test eax, eax
je 0x4b57bc
push esi
push esi
push esi
push esi
push esi
call fcn.004a8bf4
add esp, 0x14
push dword [edi*8 + 0x4f920c]
push ebx
push ebp
call fcn.004bd9c0
add esp, 0xc
test eax, eax
je 0x4b57de
push esi
push esi
push esi
push esi
push esi
call fcn.004a8bf4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004c182f
add esp, 0xc
jmp 0x4b5826
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b5826
cmp ebp, 0xffffffff
je 0x4b5826
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4f920c]
push dword [esi]
call fcn.004ada20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4c182f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b1a8d
xor ebx, ebx
cmp dword [0x4fde58], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4c1905
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c19e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4c19e5
push eax
call fcn.004b1a1f
mov dword [esp], 0x4d4038
push edi
mov dword [0x4fde58], eax
call esi
push eax
call fcn.004b1a1f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fde5c], eax
call esi
push eax
call fcn.004b1a1f
mov dword [0x4fde60], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b0b93
test eax, eax
pop ecx
pop ecx
je 0x4c18d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a8bf4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4c1905
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b1a1f
cmp eax, ebx
pop ecx
mov dword [0x4fde68], eax
je 0x4c1905
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b1a1f
pop ecx
mov dword [0x4fde64], eax
mov eax, dword [0x4fde64]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4c198a
cmp dword [0x4fde68], ecx
je 0x4c198a
push eax
call fcn.004b1a96
push dword [0x4fde68]
mov esi, eax
call fcn.004b1a96
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4c198a
cmp edi, ebx
je 0x4c198a
call esi
cmp eax, ebx
je 0x4c1957
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c1957
test byte [ebp - 0x18], 1
jne 0x4c198a
lea eax, [ebp - 0x10]
push eax
call fcn.004b0bca
test eax, eax
pop ecx
je 0x4c1972
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a8bf4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4c1981
or dword [ebp + 0x10], 0x200000
jmp 0x4c19c5
or dword [ebp + 0x10], 0x40000
jmp 0x4c19c5
mov eax, dword [0x4fde5c]
cmp eax, dword [ebp - 8]
je 0x4c19c5
push eax
call fcn.004b1a96
cmp eax, ebx
pop ecx
je 0x4c19c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4c19c5
mov eax, dword [0x4fde60]
cmp eax, dword [ebp - 8]
je 0x4c19c5
push eax
call fcn.004b1a96
cmp eax, ebx
pop ecx
je 0x4c19c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fde58]
call fcn.004b1a96
cmp eax, ebx
pop ecx
je 0x4c19e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c19e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x405bc7
cmp ebx, 0x20
je 0x405bc7
cmp ebx, 0xffffffe0
je 0x405bc7
jne 0x405bd0
add eax, 1
cmp esi, eax
je 0x405bdd
jne 0x405bac
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x405be1
jne 0x405ba8
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x405bf5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x405c3a
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x405c40
add eax, 4
pop esi
dec esi
push esi
jne 0x405c22
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x412f00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47665b
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.0046a9e9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412f82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004684cd
mov eax, dword [eax]
push 0x4b9230
push eax
call fcn.0045a664
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ac74
test bl, bl
je 0x412f82
push 0x4b9230
lea ecx, [esp + 0xc]
call fcn.0046b004
push 0x4bcdac
lea ecx, [esp + 0xc]
call fcn.0046b004
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 0x412fbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ac74
jmp 0x413089
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 0x413042
lea edx, [esp + 0x7c]
push 0x4bcda8
push edx
call fcn.0045a664
add esp, 8
test eax, eax
je 0x413042
lea eax, [esp + 0x7c]
push 0x4bcda4
push eax
call fcn.0045a664
add esp, 8
test eax, eax
je 0x413042
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 0x412fd2
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.0046ac74
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 0x413880
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 0x4138e2
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 0x4138f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4766db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c4334]
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 0x413a28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413956
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ac74
xor eax, eax
jmp 0x413a9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046adb1
push esi
lea ecx, [esp + 0xc]
call fcn.0046b040
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 0x413a7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00413880
test eax, eax
jne 0x413a7d
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.00413880
test eax, eax
jne 0x413a7d
lea eax, [esp + 0x14]
push 0x4bcdc0
push eax
call fcn.0045b770
mov esi, eax
add esp, 8
test esi, esi
jne 0x413a5c
lea ecx, [esp + 0x14]
push 0x4bcdbc
push ecx
call fcn.0045b6f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x413a5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x413a5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ad61
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41396e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ac74
xor eax, eax
jmp 0x413a9f
mov byte [esi], 0
push 0x4bcdb8
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.0046ac74
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 0x425170
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 0x4251de
cmp si, 0x69
ja 0x4251de
add esi, 0xffd0
cmp si, 0x11
je 0x4251ae
push 0x11
call edi
test ax, ax
jge 0x4251ae
or esi, 0x2000
cmp si, 0x10
je 0x4251c3
push 0x10
call edi
test ax, ax
jge 0x4251c3
or esi, 0x4000
cmp si, 0x12
je 0x4251d8
push 0x12
call edi
test ax, ax
jge 0x4251d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4251eb
mov esi, 0xbd
jmp 0x42519f
cmp si, 0x6e
jne 0x4251f8
mov esi, 0xbe
jmp 0x42519f
cmp si, 0x6f
jne 0x425199
mov esi, 0xbf
jmp 0x42519f

Function at 0x4269a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d4ac0]
xor edx, edx
cmp eax, edx
jne 0x4269c6
xor eax, eax
mov byte [eax + 0x4d49c0], al
inc eax
cmp eax, 0x100
jl 0x4269ae
mov dword [0x4d4ac0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d49c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x426a57
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 0x426a2a
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 0x4269f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426ad0
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 0x426b23
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 0x426b0a
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