joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061a0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov ebp, 0x1000
xor ebx, ebx
mov edi, 0x7a
test edi, edi
je 0x406235
cmp edi, 0x7a
je 0x4061ed
cmp edi, 0x103
je 0x4061db
mov dword [esp + 0x14], 1
jmp 0x406294
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jmp 0x406294
push esi
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test ebx, ebx
mov dword [esi], ebp
mov dword [esp + 0x10], ebp
jne 0x406220
lea eax, [esp + 0x10]
push eax
push esi
push ebx
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
jmp 0x40622d
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x40627c
xor edi, edi
jmp 0x406288
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x406250
test eax, eax
je 0x40624a
test dword [esi + 0xc], eax
je 0x406263
mov edx, dword [esi + 4]
push edx
jmp 0x40625d
test eax, eax
je 0x406259
test dword [esi + 0xc], eax
jne 0x406263
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push esi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x40627c
xor edi, edi
jmp 0x406288
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4061bd
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x4062a8
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4061bd
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x406920
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4087a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x13fc
call fcn.00407ab0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov edi, 1
mov dword [ebp - 4], edi
cmp dword [eax - 8], ebx
jle 0x406a83
mov ecx, 0x4f9
xor eax, eax
lea edi, [ebp - 0x140b]
mov byte [ebp - 0x140c], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x24], esi
jne 0x4069b7
mov esi, dword [ebp + 8]
push 0x40ce80
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x14], 1
jmp 0x406a95
mov edi, str.Accept:___r_n_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x84000100
push ecx
mov ecx, dword [ebp + 0xc]
push str.Accept:___r_n_r_n
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x406a0e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp + 8]
push 0x40ce80
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x14], 1
jmp 0x406a95
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x140c]
push edx
push 0x13e8
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x406a2f
cmp esi, ebx
mov dword [ebp - 4], 1
je 0x406a41
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x406a4c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x140c]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00407812
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
or al, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_CString::CString
jmp 0x406a95
mov esi, dword [ebp + 8]
push 0x40ce80
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x14], edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7928567d
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
mov ecx, 0x69584282
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4056d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439e7b
mov eax, dword fs:[0]
push eax
mov eax, 0x1268
call fcn.004164b0
mov eax, dword [0x4465d4]
xor eax, esp
mov dword [esp + 0x1264], eax
push ebp
push esi
push edi
mov eax, dword [0x4465d4]
xor eax, esp
push eax
lea eax, [esp + 0x1278]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1288]
push 4
push 0
push 0x43b8dc
mov ecx, esi
call fcn.00402ca0
mov edi, eax
cmp edi, 0xffffffff
je 0x4057f6
push edi
push 0
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00403e60
push 0x16
push 0
push 0x43b8c4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x128c], 0
call fcn.00402ca0
mov ebp, eax
mov eax, dword [esi + 0x14]
sub eax, edi
sub eax, 4
push eax
add edi, 4
push edi
push esi
mov ecx, esi
call fcn.00403e60
cmp ebp, 0xffffffff
je 0x4058e0
lea ecx, [esp + 0x150]
push ecx
push 0x124
call dword [0x43b05c]
lea edx, [esp + 0x2c]
push edx
push 0
push 0x43b8c0
lea eax, [esp + 0x15c]
push eax
call dword [0x43b060]
cmp dword [esi + 0x18], 0x10
jb 0x4057c7
mov ebp, dword [esi + 4]
jmp 0x4057ca
lea ebp, [esi + 4]
lea ecx, [esp + 0x2c]
push 0x43b8bc
push ecx
call fcn.00416876
mov edi, eax
add esp, 8
test edi, edi
jne 0x40581f
cmp dword [esp + 0x28], 0x10
jb 0x4057f6
mov edx, dword [esp + 0x14]
push edx
call fcn.00414c1e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1264]
xor ecx, esp
call fcn.0041582b
add esp, 0x1274
ret
mov eax, dword [esi + 0x14]
push edi
push 1
push eax
push ebp
call fcn.00416730
push edi
call fcn.00416552
add esp, 0x14
push 0x43b8b8
lea ecx, [esp + 0x30]
push ecx
call fcn.0040c190
mov edi, eax
test edi, edi
jne 0x405862
lea edx, [esp + 0x2c]
push edx
call 0x43981c
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403a50
jmp 0x4057f6
push 0x43b8b6
mov ecx, esi
call fcn.00404880
push 0x1000
lea eax, [esp + 0x278]
push eax
push edi
call fcn.0040c1f0
test eax, eax
jle 0x4058ac
push eax
lea ecx, [esp + 0x278]
push ecx
mov ecx, esi
call fcn.00404380
push 0x1000
lea edx, [esp + 0x278]
push edx
push edi
call fcn.0040c1f0
test eax, eax
jg 0x405885
push edi
jne 0x4058d1
call fcn.0040bdb0
lea eax, [esp + 0x2c]
push eax
call 0x43981c
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403a50
mov al, 1
jmp 0x4057f8
call fcn.0040bdb0
lea ecx, [esp + 0x2c]
push ecx
jmp 0x40584f
cmp dword [esp + 0x28], 0x10
jb 0x4058f4
mov edx, dword [esp + 0x14]
push edx
call fcn.00414c1e
add esp, 4
mov al, 1
jmp 0x4057f8
Function at 0x40b700
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40b70b
or eax, 0xffffffff
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x40b759
call fcn.00417e70
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00417e11
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x40b754
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
mov cl, byte [edx + 0xc]
or eax, 0xffffffff
test cl, 0x20
je 0x40b766
mov dword [esi + 0x38], eax
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
dec dword [esi + 4]
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x40b770
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x40b7e0
test edi, edi
je 0x40b789
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.00417e70
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call fcn.00417e11
add esp, 0x10
test eax, eax
jne 0x40b7c6
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x40b7c6
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 4]
add edx, eax
mov eax, edx
cmp eax, 2
mov dword [esi + 4], edx
mov edx, dword [esi + 0x44]
mov dword [esi], edx
jae 0x40b7e0
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x40b8bc
cmp byte [eax + 1], 0x8b
jne 0x40b8bc
mov ecx, dword [esi + 4]
add ecx, 0xfffffffe
add eax, 2
push ebx
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.0040b700
mov edi, eax
call fcn.0040b700
cmp edi, 8
mov ebx, eax
jne 0x40b8b1
test bl, 0xe0
jne 0x40b8b1
mov edi, 6
lea esp, [esp]
call fcn.0040b700
dec edi
jne 0x40b830
test bl, 4
je 0x40b861
call fcn.0040b700
mov edi, eax
call fcn.0040b700
shl eax, 8
add edi, eax
mov edi, edi
mov eax, edi
dec edi
test eax, eax
je 0x40b861
call fcn.0040b700
cmp eax, 0xffffffff
jne 0x40b850
test bl, 8
je 0x40b874
call fcn.0040b700
test eax, eax
je 0x40b874
cmp eax, 0xffffffff
jne 0x40b866
test bl, 0x10
je 0x40b88e
lea esp, [esp]
call fcn.0040b700
test eax, eax
je 0x40b88e
cmp eax, 0xffffffff
jne 0x40b880
test bl, 2
je 0x40b8a0
mov edi, 2
call fcn.0040b700
dec edi
jne 0x40b898
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret
Function at 0x40bb80
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x40bc41
cmp byte [esi + 0x5c], 0x77
jne 0x40bc41
mov dword [esi + 4], ebx
push edi
lea esp, [esp]
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x40bbd0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.00416730
add esp, 0x10
cmp eax, edi
jne 0x40bc37
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x40bc27
mov ebx, dword [esi + 0x68]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
push ecx
add ebx, eax
push esi
mov dword [esi + 0x68], ebx
call fcn.0040c8f0
mov ebx, dword [esi + 0x68]
mov ecx, dword [esi + 0x10]
sub ebx, ecx
test edi, edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], ebx
jne 0x40bc04
cmp eax, 0xfffffffb
jne 0x40bc04
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x40bc12
cmp dword [esi + 0x38], 1
je 0x40bc12
xor ebx, ebx
jmp 0x40bc17
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40bba0
cmp eax, 1
je 0x40bba0
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x40f760
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4762bb
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.0046aa33
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f7e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004680fd
mov eax, dword [eax]
push 0x5611d0
push eax
call fcn.0045a4f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046acbe
test bl, bl
je 0x40f7e2
push 0x5611d0
lea ecx, [esp + 0xc]
call fcn.0046b04e
push 0x564d88
lea ecx, [esp + 0xc]
call fcn.0046b04e
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 0x40f81e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046acbe
jmp 0x40f8e9
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 0x40f8a2
lea edx, [esp + 0x7c]
push 0x564d84
push edx
call fcn.0045a4f4
add esp, 8
test eax, eax
je 0x40f8a2
lea eax, [esp + 0x7c]
push 0x564d80
push eax
call fcn.0045a4f4
add esp, 8
test eax, eax
je 0x40f8a2
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 0x40f832
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.0046acbe
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 0x4100e0
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 0x410142
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 0x410150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47633b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x56b4cc]
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 0x410288
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4101b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046acbe
xor eax, eax
jmp 0x4102ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046adfb
push esi
lea ecx, [esp + 0xc]
call fcn.0046b08a
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 0x4102dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004100e0
test eax, eax
jne 0x4102dd
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.004100e0
test eax, eax
jne 0x4102dd
lea eax, [esp + 0x14]
push 0x564d9c
push eax
call fcn.0045b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4102bc
lea ecx, [esp + 0x14]
push 0x564d98
push ecx
call fcn.0045b570
mov esi, eax
add esp, 8
test esi, esi
jne 0x4102bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4102bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046adab
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4101ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046acbe
xor eax, eax
jmp 0x4102ff
mov byte [esi], 0
push 0x564d94
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.0046acbe
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 0x422db0
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 0x422e1e
cmp si, 0x69
ja 0x422e1e
add esi, 0xffd0
cmp si, 0x11
je 0x422dee
push 0x11
call edi
test ax, ax
jge 0x422dee
or esi, 0x2000
cmp si, 0x10
je 0x422e03
push 0x10
call edi
test ax, ax
jge 0x422e03
or esi, 0x4000
cmp si, 0x12
je 0x422e18
push 0x12
call edi
test ax, ax
jge 0x422e18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x422e2b
mov esi, 0xbd
jmp 0x422ddf
cmp si, 0x6e
jne 0x422e38
mov esi, 0xbe
jmp 0x422ddf
cmp si, 0x6f
jne 0x422dd9
mov esi, 0xbf
jmp 0x422ddf

Function at 0x424560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x57bc80]
xor edx, edx
cmp eax, edx
jne 0x424586
xor eax, eax
mov byte [eax + 0x57bb80], al
inc eax
cmp eax, 0x100
jl 0x42456e
mov dword [0x57bc80], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57bb80
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424617
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 0x4245ea
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 0x4245b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424690
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 0x4246e3
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 0x4246ca
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