joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70297c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x702991
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x702f0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x702f24
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x70346c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x703481
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x70472c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x704755
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x704c34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x704d66
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x704d66
cmp dword [esp + 0x28], 0
je 0x704d66
mov dword [esp], 0x7231e0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x704d66
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], 0x7231e9
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], 0x723202
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], 0x72321d
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], 0x72323c
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], 0x723257
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0x723285
call sub.kernel32.dll_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x740af4], eax
cmp dword [ebp], 0
jne 0x704d1a
mov dword [ebp], 0x704c04
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x704d29
mov dword [eax], 0x704bf4
mov ecx, dword [esi]
test ecx, ecx
je 0x704d56
cmp dword [edi], 0
je 0x704d66
cmp dword [ebx], 0
je 0x704d66
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x704d66
cmp dword [ebp], 0
je 0x704d66
cmp dword [eax], 0
je 0x704d66
xor eax, eax
test ecx, ecx
setne al
jmp 0x704d68
mov dword [esi], 0x704bf4
mov ecx, 0x704bf4
cmp dword [edi], 0
jne 0x704d34
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x706980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x7238cc], eax
jbe 0x7069bd
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x740bf8]
call sub.kernel32.dll_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x7069c4
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x7069da
call sub.kernel32.dll_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x7069d6
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00707674
add esp, 0x10
add esp, 0xc
ret

Function at 0x7069f8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x7238cc], eax
jbe 0x706a35
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x740bf8]
call sub.kernel32.dll_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x706a46
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00707674
add esp, 0x10
add esp, 0xc
ret
call fcn.00707714
add esp, 0xc
ret

Function at 0x7083bc
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.kernel32.dll_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x7083d9
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.00707714
Function at 0x70ad74
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.kernel32.dll_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00705c10
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.00705c10
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.kernel32.dll_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00705c10
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.00705c10
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.0070e174
mov edi, dword [esi + 0x24]
test edi, edi
je 0x70ae68
mov dword [esp], edi
call fcn.00705c10
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00705c10
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.00705c10
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00705010
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x70aebd
jmp 0x70af05
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00705c10
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.00705c10
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.00704ff8
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x70af05
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00705c10
lea eax, [eax + ebp + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00705aab
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00705ac4
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.00705c10
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00705ac4
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.00705c10
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x70af07
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x70c990
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00704ff8
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.kernel32.dll_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00704ff8
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x70ca03
push esi
push eax
push 0xf
push ebp
call sub.kernel32.dll_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x70ca12
sub esp, 0xc
push 0xe
call sub.kernel32.dll_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00704ff8
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.kernel32.dll_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00704ff8
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.kernel32.dll_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00704ff8
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.kernel32.dll_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.00704ff8
add esp, 0x10
mov esi, eax
test esi, esi
je 0x70cafc
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.kernel32.dll_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x70cb0b
push esi
call fcn.0070db4c
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.00705008
add esp, 0x10
mov eax, 1
jmp 0x70cb16
sub esp, 0xc
push 0xe
call sub.kernel32.dll_SetLastError
add esp, 0xc
jmp 0x70cb14
push esi
call fcn.00705008
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x7107bc
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.kernel32.dll_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x710882
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.kernel32.dll_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push 0x724ab0
push 0x740f00
call sub.user32.dll_wsprintfA
add esp, 0x24
push 0x740f00
call fcn.00705c10
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x740f00
push edi
call sub.kernel32.dll_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.00705c10
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.kernel32.dll_WriteFile
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x7108b4
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x740f20]
test eax, eax
mov ecx, dword [0x740f1c]
jne 0x710978
test ecx, ecx
jne 0x710978
cmp dword [0x724d74], 0
je 0x7109ae
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.kernel32.dll_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00710030
add esp, 0x10
test eax, eax
jne 0x710924
sub esp, 8
push 0x3a
push esi
call fcn.00710030
add esp, 0x10
test eax, eax
je 0x710927
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.kernel32.dll_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x710969
call sub.kernel32.dll_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x710a44
push eax
call sub.user32.dll_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov ecx, 0x11010
je 0x710969
mov ecx, 0x12010
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x7109fb
cmp ecx, 0xffffffff
je 0x7109fb
test ecx, ecx
je 0x71098f
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x740f20]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x7109fb
cmp byte [eax], 0
je 0x7109fb
sub esp, 8
push edi
push eax
call fcn.007107bc
add esp, 0xa0
jmp 0x710a01
sub esp, 0xc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x724ad4
push esi
call sub.kernel32.dll_WriteFile
push edi
call fcn.00705c10
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile
push 0
push ebx
push 2
push 0x724ad4
push esi
call sub.kernel32.dll_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x712ad8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x744ff0
call sub.kernel32.dll_EnterCriticalSection
sub esp, 4
mov eax, dword [0x7484a0]
cmp eax, 0x232
jl 0x712b42
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.00705ac4
mov dword [esp], edi
call fcn.00710a24
mov eax, dword [0x7484a0]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x744ff0]
mov dword [esp], eax
call sub.kernel32.dll_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x7484a0]
lea ecx, [eax + 1]
mov dword [0x7484a0], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x744ff0]
mov dword [esi], eax
mov dword [esp], 0x744ff0
call sub.kernel32.dll_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x712b88
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.00705ac4
mov dword [esp], esi
call fcn.00710a24
add esp, 0x58
pop esi
ret
Function at 0x406600
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c4db
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.0045f401
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406682
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ceb7
mov eax, dword [eax]
push 0x4851d0
push eax
call fcn.0044fc14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f68c
test bl, bl
je 0x406682
push 0x4851d0
lea ecx, [esp + 0xc]
call fcn.0045fa68
push 0x488d18
lea ecx, [esp + 0xc]
call fcn.0045fa68
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 0x4066be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f68c
jmp 0x406789
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 0x406742
lea edx, [esp + 0x7c]
push 0x488d14
push edx
call fcn.0044fc14
add esp, 8
test eax, eax
je 0x406742
lea eax, [esp + 0x7c]
push 0x488d10
push eax
call fcn.0044fc14
add esp, 8
test eax, eax
je 0x406742
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 0x4066d2
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.0045f68c
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 0x406f80
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 0x406fe2
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 0x406ff0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c55b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48fc58]
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 0x407128
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407056
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f68c
xor eax, eax
jmp 0x40719f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f815
push esi
lea ecx, [esp + 0xc]
call fcn.0045faa4
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 0x40717d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00406f80
test eax, eax
jne 0x40717d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00406f80
test eax, eax
jne 0x40717d
lea eax, [esp + 0x14]
push 0x488d2c
push eax
call fcn.00450cf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40715c
lea ecx, [esp + 0x14]
push 0x488d28
push ecx
call fcn.00450c70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40715c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40715f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f7c5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40706e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f68c
xor eax, eax
jmp 0x40719f
mov byte [esi], 0
push 0x488d24
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.0045f68c
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 0x4176c0
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 0x41772e
cmp si, 0x69
ja 0x41772e
add esi, 0xffd0
cmp si, 0x11
je 0x4176fe
push 0x11
call edi
test ax, ax
jge 0x4176fe
or esi, 0x2000
cmp si, 0x10
je 0x417713
push 0x10
call edi
test ax, ax
jge 0x417713
or esi, 0x4000
cmp si, 0x12
je 0x417728
push 0x12
call edi
test ax, ax
jge 0x417728
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41773b
mov esi, 0xbd
jmp 0x4176ef
cmp si, 0x6e
jne 0x417748
mov esi, 0xbe
jmp 0x4176ef
cmp si, 0x6f
jne 0x4176e9
mov esi, 0xbf
jmp 0x4176ef

Function at 0x418e30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a0a38]
xor edx, edx
cmp eax, edx
jne 0x418e56
xor eax, eax
mov byte [eax + 0x4a0938], al
inc eax
cmp eax, 0x100
jl 0x418e3e
mov dword [0x4a0a38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a0938
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x418ee7
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 0x418eba
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 0x418e88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418f60
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 0x418fb3
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 0x418f9a
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