joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c844
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x491700]
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.0045cd9e
and dword [ebp - 0x14], 0
cmp dword [0x4939d0], 0
mov dword [ebp - 0x18], eax
jne 0x46c8f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46c99f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46c99f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4939d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4939d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4939d8], eax
call edi
push eax
call esi
mov dword [0x4939e0], eax
test eax, eax
je 0x46c8f7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4939dc], eax
mov eax, dword [0x4939dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46c950
cmp dword [0x4939e0], ecx
je 0x46c950
push eax
call esi
push dword [0x4939e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46c950
test ebx, ebx
je 0x46c950
call edi
test eax, eax
je 0x46c947
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46c947
test byte [ebp - 8], 1
jne 0x46c950
or dword [ebp + 0x10], 0x200000
jmp 0x46c983
mov eax, dword [0x4939d4]
cmp eax, dword [ebp - 0x18]
je 0x46c983
push eax
call esi
test eax, eax
je 0x46c983
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46c983
mov eax, dword [0x4939d8]
cmp eax, dword [ebp - 0x18]
je 0x46c983
push eax
call esi
test eax, eax
je 0x46c983
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4939d0]
call esi
test eax, eax
je 0x46c99f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46c9a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004533ca
leave
ret

Function at 0x4721c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4721f0
call fcn.0045321f
mov dword [eax], esi
call fcn.0045320c
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045d447
mov eax, esi
jmp 0x472245
test dword [ebp + 0xc], 0xfffffff9
jne 0x4721d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47221d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00453232
pop ecx
call fcn.0045320c
mov eax, dword [eax]
jmp 0x472245
test al, 0x10
jne 0x472243
test al, 1
je 0x472243
test byte [ebp + 0xc], 2
je 0x472243
call fcn.0045321f
mov dword [eax], 5
call fcn.0045320c
mov dword [eax], 0xd
jmp 0x472214
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40fa6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40fa7d
pop dword [ebp - 0x4c]
mov eax, 0x84d10f6a
sub eax, 0x849014ed
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x4ff11
push 0
mov eax, 0xf67fac1e
sub eax, 0xf63af96e
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x45a8ab07
sub ecx, 0x45a864d7
xor edi, edi
add edi, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x4c]
mov esi, 0x79e9aead
add esi, 0x22f33f71
add dword [ebp - 8], 0xfd25e387
mov edx, dword [ebx]
sub dword [ebp - 0x44], 0x384d6387
sub edx, esi
xor dword [ebp - 0x44], esi
mov dword [edi], edx
xor dword [ebp - 0x24], 0x1900dfc0
add edi, 4
add ebx, 0x1a26a47e
add ebx, 0xe5d95b86
loop 0x40fad8
add eax, 0x10b93
xor ebx, ebx
add ebx, eax
add eax, 0xd9d3e733
sub eax, 0xd9d3e72e
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1005da8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb0
and dword [ebp + 0x74], 0
cmp dword [0x100a2cc], 0xfffffffe
mov dword [ebp + 0x6c], 0xc
jne 0x1005e8f
and dword [0x100a2cc], 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x1005e8f
cmp dword [ebp - 0x28], 1
jne 0x1005e8f
cmp dword [ebp - 0x34], 4
jne 0x1005e8f
cmp dword [ebp - 0x30], 0xa
jae 0x1005e8f
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1005e8f
lea eax, [ebp + 0x70]
push eax
push 0x20019
push 0
push 0x1001498
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005e8f
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x1001251
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp + 0x70]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1005e8f
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.01005ca2
test eax, eax
je 0x1005e8f
and dword [ebp + 0x74], 0x3ff
cmp dword [ebp + 0x74], 1
je 0x1005e85
cmp dword [ebp + 0x74], 0xd
jne 0x1005e8f
mov dword [0x100a2cc], 1
mov eax, dword [0x100a2cc]
add ebp, 0x78
leave
ret

Function at 0x1006f1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1006f29
pop dword [ebp - 0x48]
mov eax, 0x6a2d76de
sub eax, 0x692d07b5
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xe5a4a9b8
sub dword [ebp - 0x58], 0x9752646d
mov dword [ebp - 0x54], 0x54af9b27
add dword [ebp - 0x54], 0xdd83b11e
mov dword [ebp - 0x50], 0xeed2113a
add dword [ebp - 0x50], 0x5d7a32f4
mov dword [ebp - 0x4c], 0xd06dd698
sub dword [ebp - 0x4c], 0xd06dd698
lea eax, [ebp - 0x58]
push eax
mov eax, 0x7ff5d4e0
sub eax, 0x7ef5c38c
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xfed623ee
sub dword [ebp - 0x58], 0x8a63ba98
mov dword [ebp - 0x54], 0x233f619b
add dword [ebp - 0x54], 0x1e2cffda
mov dword [ebp - 0x50], 0x4dedc66e
add dword [ebp - 0x50], 0x1581a5fe
mov dword [ebp - 0x4c], 0xcd273384
sub dword [ebp - 0x4c], 0xcd273384
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x8fb02f74
sub eax, 0x8eb01eb4
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x35f7f
push 0
call eax
mov ecx, 0x6ea78c2
sub ecx, 0x6ea35e4
xor edx, edx
add edx, eax
mov ebx, 0x10e6000
add ebx, dword [ebp - 0x48]
mov edi, 0x93a622d0
add edi, 0x4695d347
sub dword [ebp - 0x20], eax
mov esi, dword [ebx]
add dword [ebp - 0x14], edx
add esi, edi
xor dword [ebp - 0xc], edi
mov dword [edx], esi
add edx, 0x1cc1b2d9
add edx, 0xe33e4d2b
add ebx, 0x18c3d08
add ebx, 0xfe73c2fc
loop 0x1007047
add eax, 0xbd8caa76
add eax, 0x427453d5
xor ebx, ebx
add ebx, eax
add eax, 0xb3f567d2
sub eax, 0xb3f567cd
mov ecx, 0x32a769ea
add ecx, 0xce589616
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x45f210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43e015
lea edi, [esi - 0x3d015]
push edi
or ebp, 0xffffffff
jmp 0x45f232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45f228
mov eax, 1
add ebx, ebx
jne 0x45f24b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45f25c
jne 0x45f27b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45f27b
dec eax
add ebx, ebx
jne 0x45f268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45f240
add ebx, ebx
jne 0x45f277
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45f2cd
xor ecx, ecx
sub eax, 3
jb 0x45f293
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45f302
sar eax, 1
mov ebp, eax
jmp 0x45f29e
add ebx, ebx
jne 0x45f29e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45f26c
inc ecx
add ebx, ebx
jne 0x45f2ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45f26c
add ebx, ebx
jne 0x45f2b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45f2ae
jne 0x45f2ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45f2ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45f2ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45f2de
jmp 0x45f22e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45f2ec
add edi, ecx
jmp 0x45f22e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45f30a
cmp byte [edi], 7
jne 0x45f30a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45f30f
lea edi, [esi + 0x5d000]
mov eax, dword [edi]
or eax, eax
je 0x45f387
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89c1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x89cbc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45f33c
mov ecx, edi
jns 0x45f36b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x89cc0]
or eax, eax
je 0x45f381
mov dword [ebx], eax
add ebx, 4
jmp 0x45f359
call dword [esi + 0x89cd0]
mov ebp, dword [esi + 0x89cc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45f3bb
sub esp, 0xffffff80
jmp 0x412a92

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xb77b7d27
mov esi, 0x405000
mov ebx, 0x5cfc47f3
sub esp, 0x11e4
mov edi, esp
cld
mov ecx, 0x479
ror edx, 7
sub edx, ebx
sub ebx, ecx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
dec ecx
jne 0x40188d
push esp
ret
Function at 0x40272c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00411a28
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00411a28
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00411a28
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x413d80
call fcn.00411a2e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x4027ec
mov eax, 0
jmp 0x402958
cmp dword [ebp + 0xc], 0
jne 0x402818
mov dword [ebp - 0x1c], esp
mov eax, 0xb
call fcn.00411a3a
cmp dword [ebp - 0x1c], esp
je 0x402815
push 6
call fcn.00411a34
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x402840
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40283a
push ebx
call fcn.00411a22
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0xc
call fcn.00411a3a
cmp dword [ebp - 0x1c], esp
je 0x40286b
push 6
call fcn.00411a34
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x496ca0
mov eax, 0xd
call fcn.00411a3a
cmp dword [ebp - 0x1c], esp
je 0x402897
push 6
call fcn.00411a34
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xe
call fcn.00411a3a
cmp dword [ebp - 0x1c], esp
je 0x40292b
push 6
call fcn.00411a34
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 3
call fcn.00411a3a
cmp dword [ebp - 0x1c], esp
je 0x402950
push 6
call fcn.00411a34
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x402958
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00411a22
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00411a22
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00411a22
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419a80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48fa2b
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.00484690
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419b02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048240a
mov eax, dword [eax]
push 0x4dfccc
push eax
call fcn.00474ec4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048491b
test bl, bl
je 0x419b02
push 0x4dfccc
lea ecx, [esp + 0xc]
call fcn.00484cab
push 0x4dfcd8
lea ecx, [esp + 0xc]
call fcn.00484cab
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 0x419b3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048491b
jmp 0x419c09
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 0x419bc2
lea edx, [esp + 0x7c]
push 0x4dfcd4
push edx
call fcn.00474ec4
add esp, 8
test eax, eax
je 0x419bc2
lea eax, [esp + 0x7c]
push 0x4dfcd0
push eax
call fcn.00474ec4
add esp, 8
test eax, eax
je 0x419bc2
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 0x419b52
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.0048491b
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 0x41a410
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 0x41a472
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 0x41a480
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48faab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e9694]
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 0x41a5b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41a4e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048491b
xor eax, eax
jmp 0x41a62f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484a58
push esi
lea ecx, [esp + 0xc]
call fcn.00484ce7
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 0x41a60d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041a410
test eax, eax
jne 0x41a60d
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.0041a410
test eax, eax
jne 0x41a60d
lea eax, [esp + 0x14]
push 0x4dfce8
push eax
call fcn.00475f40
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a5ec
lea ecx, [esp + 0x14]
push 0x4dfce4
push ecx
call fcn.00475ec0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a5ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41a5ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484a08
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41a4fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048491b
xor eax, eax
jmp 0x41a62f
mov byte [esi], 0
push 0x4dfce0
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.0048491b
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 0x42b0e0
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 0x42b14e
cmp si, 0x69
ja 0x42b14e
add esi, 0xffd0
cmp si, 0x11
je 0x42b11e
push 0x11
call edi
test ax, ax
jge 0x42b11e
or esi, 0x2000
cmp si, 0x10
je 0x42b133
push 0x10
call edi
test ax, ax
jge 0x42b133
or esi, 0x4000
cmp si, 0x12
je 0x42b148
push 0x12
call edi
test ax, ax
jge 0x42b148
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42b15b
mov esi, 0xbd
jmp 0x42b10f
cmp si, 0x6e
jne 0x42b168
mov esi, 0xbe
jmp 0x42b10f
cmp si, 0x6f
jne 0x42b109
mov esi, 0xbf
jmp 0x42b10f

Function at 0x42ca60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f9e90]
xor edx, edx
cmp eax, edx
jne 0x42ca86
xor eax, eax
mov byte [eax + 0x4f9d90], al
inc eax
cmp eax, 0x100
jl 0x42ca6e
mov dword [0x4f9e90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f9d90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42cb17
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 0x42caea
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 0x42cab8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42cb90
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 0x42cbe3
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 0x42cbca
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