joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cb8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push esi
mov esi, dword [ebp + 0x3b4]
push edi
call fcn.0040118a
push dword [esi]
and dword [ebp - 0x78], 0
push dword [ebp + 0x3b0]
and dword [ebp - 0x74], 0
and dword [ebp - 0x70], 0
mov edi, str.atashost
push str.Command_line:__d__s
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0x402bb7
call fcn.00404898
add esp, 0xc
cmp dword [ebp + 0x3b0], 2
jne 0x402de7
push dword [esi + 4]
push dword [esi]
push str.Command_line:__s__s
call fcn.00404898
push 0x415434
push dword [esi + 4]
call section..text
add esp, 0x14
test eax, eax
je 0x402dbf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
pop ecx
mov word [ebp - 0x6c], cx
mov esi, 0x104
test eax, eax
je 0x402d7f
push esi
lea ecx, [ebp - 0x6a]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x414e64
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e81
lea eax, [ebp - 0x6c]
push eax
call fcn.00404898
pop ecx
jmp 0x402db3
lea eax, [ebp - 0x6a]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x414fd4
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e81
push edi
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e81
push str..exe_
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e81
lea eax, [ebp - 0x6c]
push eax
call fcn.00401496
pop ecx
jmp 0x402dd7
push 0x415420
push dword [esi + 4]
call section..text
pop ecx
pop ecx
test eax, eax
je 0x402de2
call fcn.00401480
test eax, eax
jne 0x402de2
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x70]
jmp 0x402dfe
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
push str.Service_exits
call fcn.00404898
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x3a4]
pop edi
xor ecx, ebp
pop esi
call fcn.004058f9
add ebp, 0x3a8
leave
ret

Function at 0x402e15
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.00405acf
xor eax, eax
mov word [ebp - 6], ax
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004058f9
leave
ret

Function at 0x402efd
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x10], 0x10000
push ebx
push esi
push edi
je 0x402f54
cmp dword [eax + 0x18], 0x20000
je 0x402f54
mov edi, dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebx
test eax, eax
jne 0x402f54
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x402f54
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call ebx
test eax, eax
jne 0x402f54
mov eax, dword [esi]
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, esi
jmp 0x402f56
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x403164
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403179
leave
ret
cmp dword [0x41b220], 2
je 0x403187
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x17
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4031b3
xor eax, eax
jmp 0x403293
push ebx
push dword [ebp - 4]
call fcn.004051bf
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x4031ca
xor eax, eax
jmp 0x403292
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push edi
push ebx
call fcn.00405b00
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 0x17
push dword [ebp + 8]
call esi
test eax, eax
je 0x403288
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x403288
lea eax, [ebp - 8]
push eax
push edi
push 0xa
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x403282
push 0x10
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 0x10], 6
call fcn.00405b00
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x24], 0x120116
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x14
push dword [ebp - 8]
mov dword [ebp - 0x14], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x403279
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call fcn.00405289
mov eax, dword [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403297
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
call fcn.00403164
pop ecx
test eax, eax
je 0x4032d9
xor eax, eax
inc eax
jmp 0x40339c
cmp dword [0x41b220], 2
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
mov edi, 0x415518
jne 0x40330f
cmp dword [0x41b214], 6
jb 0x40330f
push edi
push ebx
call esi
push ebx
call fcn.00403164
pop ecx
test eax, eax
je 0x40330f
xor eax, eax
inc eax
jmp 0x40339a
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x40339a
and dword [ebp - 0x7c], 0
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40338e
push 0
push 0x20
push ebx
push 0
call eax
test eax, eax
je 0x40338e
push ebx
call fcn.00403164
pop ecx
test eax, eax
jne 0x403387
cmp dword [0x41b220], 2
jne 0x40338e
cmp dword [0x41b214], 6
jb 0x40338e
push edi
push ebx
call esi
push ebx
call fcn.00403164
pop ecx
test eax, eax
je 0x40338e
mov dword [ebp - 0x7c], 1
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop ebx
call fcn.004058f9
add ebp, 0x194
leave
ret

Function at 0x403695
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 6
xor esi, esi
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], esi
je 0x403703
cmp dword [ebp + 0xc], esi
je 0x403703
cmp dword [ebp + 0x10], esi
je 0x403703
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x403700
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x403864
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
mov eax, dword [ebp + 0x3f8]
push ebx
push edi
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1e4]
push 0x104
push eax
call fcn.00402e62
add esp, 0xc
push str.wbxtra_.wbt
lea eax, [ebp + 0x1e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1e4]
xor ebx, ebx
xor edi, edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x403a09
push esi
jmp 0x4038e1
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x70], eax
jb 0x403926
test eax, eax
je 0x4038f4
add eax, eax
mov dword [ebp - 0x78], eax
jmp 0x4038fb
mov dword [ebp - 0x78], 8
mov eax, dword [ebp - 0x78]
imul eax, eax, 0xc
push eax
call fcn.004051bf
mov esi, eax
pop ecx
test esi, esi
je 0x403982
test edi, edi
je 0x403923
push ebx
push edi
push esi
call fcn.004061d0
push edi
call fcn.00405289
add esp, 0x10
mov dword [ebp - 0x74], esi
lea eax, [ebp - 0x40]
push eax
call fcn.004059e1
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
call fcn.004051bf
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40397f
lea eax, [ebp - 0x40]
push eax
push edi
push esi
call fcn.00402e62
mov eax, dword [ebp - 0x74]
add eax, ebx
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x54]
add esp, 0xc
inc dword [ebp - 0x70]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
add ebx, 0xc
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4038de
mov edi, dword [ebp - 0x74]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x403a08
mov esi, dword [ebp - 0x70]
lea eax, [esi + 1]
cmp eax, 5
jbe 0x4039ab
push 0x4033f3
push 0xc
push esi
push edi
call fcn.004068d0
add esp, 0x10
xor eax, eax
test esi, esi
jbe 0x403a01
lea esi, [edi + 8]
lea ebx, [eax + 1]
cmp ebx, 5
jb 0x4039ef
push dword [ebp - 0x80]
lea eax, [ebp + 0x1e4]
push 0x104
push eax
call fcn.00402e62
add esp, 0xc
push dword [esi]
lea eax, [ebp + 0x1e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.00405289
mov eax, ebx
add esi, 0xc
pop ecx
cmp eax, dword [ebp - 0x70]
jb 0x4039b4
push edi
call fcn.00405289
pop ecx
pop esi
mov ecx, dword [ebp + 0x3ec]
pop edi
xor ecx, ebp
pop ebx
call fcn.004058f9
add ebp, 0x3f0
leave
ret
Function at 0x4048c8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.00405acf
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.00404672
add esp, 0x20
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004058f9
leave
ret

Function at 0x404928
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
imul esi, esi, 0xc
add esi, 0x41b1b0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x404949
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x404989
cmp dword [esp + 0xc], 0
je 0x40497c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esi + 8]
push str.delete_dumpfile___s___ret___d__err___d_r_n
push 2
call fcn.004048c8
add esp, 0x14
pop edi
push dword [esi + 8]
call fcn.00405289
and dword [esi + 8], 0
pop ecx
and dword [esi], 0
pop esi
ret

Function at 0x4058f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a0d0]
jne 0x405903
repz ret
jmp fcn.0040b09c

Function at 0x405b7a
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 0x405bab
call fcn.00409915
mov dword [eax], esi
call fcn.00409902
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00405e52
add esp, 0x14
push 0x16
pop eax
jmp 0x405c00
test dword [ebp + 0xc], 0xfffffff9
jne 0x405b87
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409928
pop ecx
call fcn.00409902
mov eax, dword [eax]
jmp 0x405c00
test al, 0x10
jne 0x405bfe
test al, 1
je 0x405bfe
test byte [ebp + 0xc], 2
je 0x405bfe
call fcn.00409915
mov dword [eax], 5
call fcn.00409902
mov dword [eax], 0xd
jmp 0x405bcf
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40f43f
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.0040aa88
and dword [ebp - 4], 0
cmp dword [0x41c09c], 0
mov ebx, eax
jne 0x40f4f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f5a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f5a1
push eax
call fcn.0040aa16
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41c09c], eax
call esi
push eax
call fcn.0040aa16
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41c0a0], eax
call esi
push eax
call fcn.0040aa16
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41c0a4], eax
call esi
push eax
call fcn.0040aa16
pop ecx
mov dword [0x41c0ac], eax
test eax, eax
je 0x40f4f0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aa16
pop ecx
mov dword [0x41c0a8], eax
mov eax, dword [0x41c0a8]
cmp eax, ebx
je 0x40f548
cmp dword [0x41c0ac], ebx
je 0x40f548
push eax
call fcn.0040aa91
push dword [0x41c0ac]
mov esi, eax
call fcn.0040aa91
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f548
test edi, edi
je 0x40f548
call esi
test eax, eax
je 0x40f53f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f53f
test byte [ebp - 0xc], 1
jne 0x40f548
or dword [ebp + 0x10], 0x200000
jmp 0x40f581
mov eax, dword [0x41c0a0]
cmp eax, ebx
je 0x40f581
push eax
call fcn.0040aa91
pop ecx
test eax, eax
je 0x40f581
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f581
mov eax, dword [0x41c0a4]
cmp eax, ebx
je 0x40f581
push eax
call fcn.0040aa91
pop ecx
test eax, eax
je 0x40f581
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41c09c]
call fcn.0040aa91
pop ecx
test eax, eax
je 0x40f5a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f5a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x406190
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478d1b
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.0046dc6e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406212
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046bb80
mov eax, dword [eax]
push 0x494c28
push eax
call fcn.0045e894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046def9
test bl, bl
je 0x406212
push 0x494c28
lea ecx, [esp + 0xc]
call fcn.0046e289
push 0x494c34
lea ecx, [esp + 0xc]
call fcn.0046e289
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 0x40624e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046def9
jmp 0x406319
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 0x4062d2
lea edx, [esp + 0x7c]
push 0x494c30
push edx
call fcn.0045e894
add esp, 8
test eax, eax
je 0x4062d2
lea eax, [esp + 0x7c]
push 0x494c2c
push eax
call fcn.0045e894
add esp, 8
test eax, eax
je 0x4062d2
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 0x406262
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.0046def9
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 0x406b20
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 0x406b82
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 0x406b90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x478d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49e56c]
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 0x406cc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406bf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046def9
xor eax, eax
jmp 0x406d3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046e036
push esi
lea ecx, [esp + 0xc]
call fcn.0046e2c5
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 0x406d1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406b20
test eax, eax
jne 0x406d1d
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.00406b20
test eax, eax
jne 0x406d1d
lea eax, [esp + 0x14]
push 0x494c44
push eax
call fcn.0045f910
mov esi, eax
add esp, 8
test esi, esi
jne 0x406cfc
lea ecx, [esp + 0x14]
push 0x494c40
push ecx
call fcn.0045f890
mov esi, eax
add esp, 8
test esi, esi
jne 0x406cfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406cff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046dfe6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406c0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046def9
xor eax, eax
jmp 0x406d3f
mov byte [esi], 0
push 0x494c3c
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.0046def9
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 0x417930
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 0x41799e
cmp si, 0x69
ja 0x41799e
add esi, 0xffd0
cmp si, 0x11
je 0x41796e
push 0x11
call edi
test ax, ax
jge 0x41796e
or esi, 0x2000
cmp si, 0x10
je 0x417983
push 0x10
call edi
test ax, ax
jge 0x417983
or esi, 0x4000
cmp si, 0x12
je 0x417998
push 0x12
call edi
test ax, ax
jge 0x417998
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4179ab
mov esi, 0xbd
jmp 0x41795f
cmp si, 0x6e
jne 0x4179b8
mov esi, 0xbe
jmp 0x41795f
cmp si, 0x6f
jne 0x417959
mov esi, 0xbf
jmp 0x41795f

Function at 0x4191b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4aecc0]
xor edx, edx
cmp eax, edx
jne 0x4191d6
xor eax, eax
mov byte [eax + 0x4aebc0], al
inc eax
cmp eax, 0x100
jl 0x4191be
mov dword [0x4aecc0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4aebc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419267
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 0x41923a
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 0x419208
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4192e0
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 0x419333
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 0x41931a
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