joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404dc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404dc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e4c
xor eax, eax
push ebp
push 0x404e45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404b88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404fac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404f66
cmp byte [ebp - 0xd], 0
jne 0x404e93
cmp byte [ebp - 0x12], 0
je 0x404f66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404eac
dec ebx
cmp byte [ebx], 0x2e
je 0x404ebb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404eab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ef8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f66
cmp byte [ebp - 0xd], 0
je 0x404f66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404dc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404dc3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e4c
xor eax, eax
push ebp
push 0x404e45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404b88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404fac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404f66
cmp byte [ebp - 0xd], 0
jne 0x404e93
cmp byte [ebp - 0x12], 0
je 0x404f66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404eac
dec ebx
cmp byte [ebx], 0x2e
je 0x404ebb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404eab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ef8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f66
cmp byte [ebp - 0xd], 0
je 0x404f66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405662
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403eec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40564c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405669
lea eax, [ebp - 0x10]
call fcn.00403c7c
ret

Function at 0x409af0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409b29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d6c
jmp 0x409b32
mov eax, ebx
mov edx, esi
call fcn.00403cd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409b3c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409b5d
mov al, byte [esp]
jmp 0x409b5f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a1e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a05c
mov eax, dword [0x4165a4]
cmp byte [eax], 0
je 0x40a260
mov eax, dword [0x4164bc]
call fcn.004029cc
call fcn.00402730
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407368
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a2a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a296
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416490]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.00404b4c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40af88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40afec
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403eec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406e5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aff3
lea eax, [ebp - 0xc]
call fcn.00403c7c
ret

Function at 0x4147b8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41489e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41485b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41479c]
call fcn.00404a6c
add esp, 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403e74
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00406b0c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00403cd0
push 0
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41479c]
call fcn.00404a6c
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414865
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x41487a
mov eax, dword [ebp - 4]
mov edx, 0x4148b4
call fcn.00403cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148a5
lea eax, [ebp - 0x10]
call fcn.00403c7c
lea eax, [ebp - 8]
mov edx, dword [0x41479c]
call fcn.00404a78
ret
Function at 0x41525c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x415264
push ecx
push ebx
push esi
push edi
mov eax, 0x4151bc
call fcn.0040585c
xor eax, eax
push ebp
push 0x41548d
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_SetPriorityClass
call sub.kernel32.dll_GetCurrentThread
mov dword [0x417a88], eax
push 0xf
mov eax, dword [0x417a88]
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
push ebp
push 0x415468
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.004028f0
mov eax, dword [ebp - 0x14]
mov edx, 0x4154a4
call fcn.00404064
jne 0x4152ed
push 2
push 0x4154b4
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
jmp 0x41545e
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.004028f0
mov eax, dword [ebp - 0x18]
mov edx, 0x4154c0
call fcn.00404064
jne 0x41534a
push 0
push 0x417988
push 0xc8
push 0x73
call sub.user32.dll_SystemParametersInfoA
lea eax, [ebp - 0x1c]
mov edx, 0x417988
mov ecx, pe_nt_image_headers32
call fcn.00403eec
cmp dword [ebp - 0x1c], 0
jne 0x41545e
push 2
push 0
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
jmp 0x41545e
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.004028f0
mov edx, dword [ebp - 0x20]
mov eax, 0x4154d8
call fcn.004041b0
test eax, eax
jle 0x415386
call fcn.00412dd8
test al, al
je 0x41545e
xor eax, eax
call fcn.0041494c
call fcn.00412c18
jmp 0x41545e
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.004028f0
mov edx, dword [ebp - 0x24]
mov eax, 0x4154ec
call fcn.004041b0
test eax, eax
jle 0x4153c2
call fcn.00412dd8
test al, al
je 0x41545e
mov al, 1
call fcn.0041494c
call fcn.00412c18
jmp 0x41545e
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.004028f0
mov edx, dword [ebp - 0x28]
mov eax, 0x415500
call fcn.004041b0
test eax, eax
jle 0x4153e9
xor eax, eax
call fcn.00414e4c
jmp 0x41545e
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.004028f0
mov edx, dword [ebp - 0x2c]
mov eax, 0x415514
call fcn.004041b0
test eax, eax
jle 0x415410
mov al, 1
call fcn.00414e4c
jmp 0x41545e
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.004028f0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040722c
push dword [ebp - 0x30]
push 0x415528
push 0x415534
mov eax, 0x417954
mov edx, 3
call fcn.00403fd8
push 1
push 0
push 0
mov eax, 0x417954
call fcn.00404168
push eax
push 0x415548
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415472
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415494
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00403ca0
ret
Function at 0x418130
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4015d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4014b8
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040f850
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push 0xf00ff
push edi
call fcn.0040fc88
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x68]
push 0x410c94
push eax
call edi
push eax
lea ecx, [ebp - 0x64]
push 0x40fb80
push ecx
call edi
push eax
call fcn.0040fcd8
call esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push ecx
push edx
push 8
call dword [0x401058]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x40], 2
call fcn.0040fd28
call esi
push 0x418233
jmp 0x418232
ret
Function at 0x40f530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x473c0b
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.0046845c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f5b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046634d
mov eax, dword [eax]
push 0x5541e0
push eax
call fcn.004591c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004686e7
test bl, bl
je 0x40f5b2
push 0x5541e0
lea ecx, [esp + 0xc]
call fcn.00468a77
push 0x557d54
lea ecx, [esp + 0xc]
call fcn.00468a77
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 0x40f5ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004686e7
jmp 0x40f6b9
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 0x40f672
lea edx, [esp + 0x7c]
push 0x557d50
push edx
call fcn.004591c4
add esp, 8
test eax, eax
je 0x40f672
lea eax, [esp + 0x7c]
push 0x557d4c
push eax
call fcn.004591c4
add esp, 8
test eax, eax
je 0x40f672
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 0x40f602
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.004686e7
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 0x40feb0
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 0x40ff12
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 0x40ff20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473c8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x563ac8]
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 0x410058
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ff86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004686e7
xor eax, eax
jmp 0x4100cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00468824
push esi
lea ecx, [esp + 0xc]
call fcn.00468ab3
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 0x4100ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040feb0
test eax, eax
jne 0x4100ad
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.0040feb0
test eax, eax
jne 0x4100ad
lea eax, [esp + 0x14]
push 0x557d68
push eax
call fcn.0045a200
mov esi, eax
add esp, 8
test esi, esi
jne 0x41008c
lea ecx, [esp + 0x14]
push 0x557d64
push ecx
call fcn.0045a180
mov esi, eax
add esp, 8
test esi, esi
jne 0x41008c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41008f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004687d4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ff9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004686e7
xor eax, eax
jmp 0x4100cf
mov byte [esi], 0
push 0x557d60
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.004686e7
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 0x420760
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 0x4207ce
cmp si, 0x69
ja 0x4207ce
add esi, 0xffd0
cmp si, 0x11
je 0x42079e
push 0x11
call edi
test ax, ax
jge 0x42079e
or esi, 0x2000
cmp si, 0x10
je 0x4207b3
push 0x10
call edi
test ax, ax
jge 0x4207b3
or esi, 0x4000
cmp si, 0x12
je 0x4207c8
push 0x12
call edi
test ax, ax
jge 0x4207c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4207db
mov esi, 0xbd
jmp 0x42078f
cmp si, 0x6e
jne 0x4207e8
mov esi, 0xbe
jmp 0x42078f
cmp si, 0x6f
jne 0x420789
mov esi, 0xbf
jmp 0x42078f

Function at 0x421e80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x574148]
xor edx, edx
cmp eax, edx
jne 0x421ea6
xor eax, eax
mov byte [eax + 0x574048], al
inc eax
cmp eax, 0x100
jl 0x421e8e
mov dword [0x574148], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x574048
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421f37
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 0x421f0a
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 0x421ed8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421fb0
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 0x422003
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 0x421fea
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