joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1032614
Capabilities:
Write file on windows

Disassembly:
push 0xd8
mov eax, 0x1055cbc
call fcn.0100d37e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x74], eax
cmp dword [ebp + 0xc], ebx
jne 0x103263f
mov dword [eax], ebx
jmp 0x103278b
lea esi, [edi + 0x3c]
mov eax, dword [esi]
cmp eax, ebx
jne 0x1032662
mov eax, dword [edi + 0x40]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x1032662
push ebx
push 0x1001728
push eax
call fcn.01038ed2
mov esi, dword [esi]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x74]
push dword [ebp + 0xc]
push dword [ebp - 0x7c]
push esi
call dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10326ce
push ebx
push 0x1001728
lea ecx, [ebp - 0x70]
call fcn.01039385
mov dword [ebp - 4], ebx
call fcn.0103d1f1
push eax
lea ecx, [ebp - 0x70]
call fcn.01039483
lea eax, [ebp - 0x70]
push 0x10057d0
push eax
call fcn.0103940f
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0100dcd2
push 0x10590d8
lea eax, [ebp - 0xe4]
push eax
call sub.msvcrt.dll__CxxThrowException
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 0x7c]
call fcn.01039e0b
mov eax, dword [ebp + 0xc]
add dword [edi + 0x48], eax
lea esi, [edi + 0x54]
lea ecx, [ebp - 0x78]
adc dword [edi + 0x4c], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
mov dword [ebp - 4], 1
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x84], esi
call fcn.01014744
test al, al
jne 0x103274f
mov dword [ebp - 0x84], esi
lea ecx, [ebp - 0x78]
call fcn.01014879
mov eax, dword [eax]
push ebx
mov ecx, eax
call fcn.01032274
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
inc dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x78]
call fcn.01014744
test al, al
je 0x103271e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.01039e29
mov eax, dword [0x1064004]
cmp eax, 0x1064004
je 0x103278b
test byte [eax + 0x1c], 8
je 0x103278b
cmp byte [eax + 0x19], 3
jb 0x103278b
push dword [edi + 0x48]
push dword [ebp + 0xc]
push 0x1005580
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010311e0
call fcn.0100d410
ret 0xc
Function at 0x10329b8
Capabilities:
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x1055aa1
call fcn.0100d37e
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x74], ebx
call fcn.01032569
xor eax, eax
cmp dword [esi + 8], eax
je 0x1032a2c
mov dword [edi], eax
cmp dword [ebp + 0xc], eax
je 0x1032a24
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, eax
sub edx, dword [esi + 0x10]
sbb ecx, dword [esi + 0x14]
xor ebx, ebx
cmp ebx, ecx
ja 0x1032a04
jb 0x10329ff
cmp dword [ebp + 0xc], edx
ja 0x1032a04
mov eax, dword [ebp + 0xc]
jmp 0x1032a07
sub eax, dword [esi + 0x10]
push eax
mov dword [edi], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 8]
push eax
push dword [ebp - 0x74]
call sub.msvcrt.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
add dword [esi + 0x10], eax
adc dword [esi + 0x14], ebx
call fcn.0100d410
ret 0xc
mov esi, dword [esi]
push eax
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
push ebx
push esi
call dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1032a24
push eax
push 0x1001728
lea ecx, [ebp - 0x70]
call fcn.01039385
and dword [ebp - 4], 0
call fcn.0103d1f1
push eax
lea ecx, [ebp - 0x70]
call fcn.01039483
lea eax, [ebp - 0x70]
push 0x100566c
push eax
call fcn.0103940f
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0100dcd2
push 0x10590d8
lea eax, [ebp - 0xd4]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x103ab8e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x10652f0
lock bts dword [eax], 0x1e
jb 0x103ac12
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push 0x1006508
push 0x80000001
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103ac11
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10064e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103ac08
cmp dword [ebp - 8], 4
jne 0x103ac08
cmp dword [ebp - 0xc], 4
jne 0x103ac08
mov eax, dword [ebp - 0x10]
or eax, 0x40000000
mov dword [0x10652f0], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x10652f0]
leave
ret
Function at 0x104d19c
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x104d2db
cmp dword [ebp + 0xc], edi
je 0x104d2db
cmp dword [ebp + 0x10], edi
je 0x104d2db
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104d1cc
sub eax, edx
sar eax, 1
mov ebx, eax
and eax, 0x80000003
jns 0x104d1e8
dec eax
or eax, 0xfffffffc
inc eax
je 0x104d1f4
mov eax, 0x80004005
jmp 0x104d2e0
mov edi, ebx
sar edi, 2
imul edi, edi, 3
cmp word [esi + ebx*2 - 2], 0x3d
jne 0x104d205
dec edi
cmp word [esi + ebx*2 - 4], 0x3d
jne 0x104d20e
dec edi
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, eax
test edx, edx
jne 0x104d227
mov dword [ebp - 4], 0x8007000e
jmp 0x104d2bd
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test ebx, ebx
jle 0x104d2d6
or edi, 0xffffffff
movzx eax, word [esi]
push eax
call fcn.0104d140
and eax, 0x3f
shl eax, 2
cmp eax, edi
je 0x104d2b6
mov byte [edx], al
movzx eax, word [esi + 2]
push eax
call fcn.0104d140
cmp eax, edi
je 0x104d2b6
mov cl, al
shr cl, 4
add byte [edx], cl
cmp word [esi + 4], 0x3d
je 0x104d289
shl al, 4
mov byte [edx + 1], al
movzx eax, word [esi + 4]
push eax
call fcn.0104d140
cmp eax, edi
je 0x104d2b6
mov cl, al
shr cl, 2
add byte [edx + 1], cl
cmp word [esi + 6], 0x3d
je 0x104d2a7
shl al, 6
mov byte [edx + 2], al
movzx eax, word [esi + 6]
push eax
call fcn.0104d140
cmp eax, edi
je 0x104d2b6
add byte [edx + 2], al
sub ebx, 4
add esi, 8
add edx, 3
test ebx, ebx
jg 0x104d23c
jmp 0x104d2d6
mov dword [ebp - 4], 0x80004005
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x104d2cd
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 0x10]
and dword [esi], 0
and dword [eax], 0
mov eax, dword [ebp - 4]
jmp 0x104d2e0
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x104d2ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push 0x20019
push ebx
mov esi, ecx
push 0x1008298
push 0x80000002
mov byte [esi], bl
mov byte [esi + 1], bl
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d402
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10082e8
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 4
call edi
test eax, eax
jne 0x104d38e
cmp dword [ebp - 8], 4
jne 0x104d38e
cmp dword [ebp - 4], 1
jne 0x104d38e
mov byte [esi], 1
call fcn.0104db39
mov eax, dword [0x1064004]
cmp eax, 0x1064004
je 0x104d38e
test dword [eax + 0x1c], 0x100
je 0x104d38e
push 0x1008288
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100daef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x100830c
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
call edi
pop edi
test eax, eax
jne 0x104d3f9
cmp dword [ebp - 8], 4
jne 0x104d3f9
cmp dword [ebp - 4], ebx
je 0x104d3f9
push dword [ebp - 4]
mov byte [esi + 1], 1
call fcn.0104d706
mov byte [esi + 1], al
cmp al, bl
je 0x104d3f9
mov eax, dword [0x1064004]
cmp eax, 0x1064004
je 0x104d3f9
test dword [eax + 0x1c], 0x100
je 0x104d3f9
push 0x1008288
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100daef
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x104d41e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10641d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x214], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov esi, 0x103
push esi
mov edi, str.vfprint.dll
push edi
mov dword [ebp - 0x218], ebx
call fcn.01038167
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x104d4ec
lea ebx, [esi + 1]
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104d4a9
cmp eax, esi
jae 0x104d4a9
mov ecx, dword [ebp - 0x218]
add ecx, eax
cmp ecx, esi
jb 0x104d4b3
mov dword [ebp - 0x210], 0x80004005
cmp dword [ebp - 0x210], 0
jl 0x104d4ec
push 0x5c
pop ecx
push edi
mov word [ebp + eax*2 - 0x20c], cx
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100ff06
test eax, eax
jl 0x104d4ec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d2b8
leave
ret
Function at 0x104d506
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call fcn.0104d41e
mov ecx, eax
xor edi, edi
cmp ecx, edi
je 0x104d544
mov eax, dword [0x1065550]
cmp eax, edi
jne 0x104d65e
push str.CreateFilterTestHook
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1065550], eax
cmp eax, edi
jne 0x104d65e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlPrint
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 4
pop ebx
mov esi, 0x1065348
test eax, eax
jne 0x104d5ed
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push str.PipelineFilterHook
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104d59f
cmp dword [ebp - 4], ebx
jne 0x104d59f
cmp dword [ebp - 8], ebx
je 0x104d5a2
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], 1
jne 0x104d5e4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push edi
push str.FilterHookModuleName
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104d5d4
cmp dword [ebp - 4], 1
je 0x104d5e4
push str.FilterHook.dll
push 0x104
push esi
call fcn.0101174d
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 1
jne 0x104d669
cmp dword [0x1065550], edi
jne 0x104d655
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x104d619
push str.CreateFilterTestHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1065550], eax
jmp 0x104d655
mov dword [ebp - 0x1c], 0x68
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
call fcn.0100a344
push eax
push 0x1001600
call fcn.0104d94b
add esp, 0x14
mov eax, dword [0x1065550]
cmp eax, edi
je 0x104d669
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x104db39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1008430
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104dbff
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1008480
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x104dba0
mov eax, dword [ebp - 4]
mov dword [0x1065564], eax
cmp dword [0x1065564], ebx
je 0x104dbf4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10084b0
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x104dbce
mov eax, dword [ebp - 4]
mov dword [0x1064bb8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10084e4
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x104dbf4
mov eax, dword [ebp - 4]
mov dword [0x1065568], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
cmp dword [0x1065564], ebx
pop ebx
je 0x104dc15
push 0x104daba
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
leave
ret
Function at 0x42a170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d6a6b
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.004ca0e3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a1f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c6c54
mov eax, dword [eax]
push 0x5a122c
push eax
call fcn.004b8864
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ca36e
test bl, bl
je 0x42a1f2
push 0x5a122c
lea ecx, [esp + 0xc]
call fcn.004ca6fe
push 0x5a4e3c
lea ecx, [esp + 0xc]
call fcn.004ca6fe
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 0x42a22e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ca36e
jmp 0x42a2f9
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 0x42a2b2
lea edx, [esp + 0x7c]
push 0x5a4e38
push edx
call fcn.004b8864
add esp, 8
test eax, eax
je 0x42a2b2
lea eax, [esp + 0x7c]
push 0x5a4e34
push eax
call fcn.004b8864
add esp, 8
test eax, eax
je 0x42a2b2
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 0x42a242
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.004ca36e
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 0x42afa0
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 0x42b002
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 0x42b010
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d6b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5b3cec]
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 0x42b148
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b076
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ca36e
xor eax, eax
jmp 0x42b1bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ca4ab
push esi
lea ecx, [esp + 0xc]
call fcn.004ca73a
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 0x42b19d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SQLAllocConnect
call fcn.0042afa0
test eax, eax
jne 0x42b19d
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 SQLAllocConnect
mov ecx, edi
call fcn.0042afa0
test eax, eax
jne 0x42b19d
lea eax, [esp + 0x14]
push 0x5a4e50
push eax
call fcn.004b9a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b17c
lea ecx, [esp + 0x14]
push 0x5a4e4c
push ecx
call fcn.004b99e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b17c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b17f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004ca45b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b08e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ca36e
xor eax, eax
jmp 0x42b1bf
mov byte [esi], 0
push 0x5a4e48
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.004ca36e
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 0x446660
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 0x4466ce
cmp si, 0x69
ja 0x4466ce
add esi, 0xffd0
cmp si, 0x11
je 0x44669e
push 0x11
call edi
test ax, ax
jge 0x44669e
or esi, 0x2000
cmp si, 0x10
je 0x4466b3
push 0x10
call edi
test ax, ax
jge 0x4466b3
or esi, 0x4000
cmp si, 0x12
je 0x4466c8
push 0x12
call edi
test ax, ax
jge 0x4466c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4466db
mov esi, 0xbd
jmp 0x44668f
cmp si, 0x6e
jne 0x4466e8
mov esi, 0xbe
jmp 0x44668f
cmp si, 0x6f
jne 0x446689
mov esi, 0xbf
jmp 0x44668f

Function at 0x447ee0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c4748]
xor edx, edx
cmp eax, edx
jne 0x447f06
xor eax, eax
mov byte [eax + 0x5c4648], al
inc eax
cmp eax, 0x100
jl 0x447eee
mov dword [0x5c4748], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c4648
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x447f97
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 0x447f6a
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 0x447f38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x448010
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 0x448063
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 0x44804a
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
Function at 0x44ef20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x44f0b8
cmp ebp, ebx
jle 0x44f0b8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x44ef7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x44ef85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.ODBC32.dll_SQLAllocConnect
jns 0x44ef94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x44ef9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004ca0af
add esp, 4
cmp eax, ebx
je 0x44efbc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004ca0af
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x44f0ae
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x44f095
mov al, byte [edx]
cmp al, 0xc0
jbe 0x44f081
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x44f076
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x44f084
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x44f084
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x44f020
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x44f011
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret