joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bc00
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x43bc48
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x43bc55
xor ecx, ecx
jmp 0x43bc70
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43bc60
sub ecx, esi
sar ecx, 1
pop esi
push ecx
push edx
mov ecx, edi
call fcn.00405c20
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret

Function at 0x43bd20
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov edi, ecx
push 0x400
push edi
call fcn.0050cbb4
push 0x44
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0049e2a0
or dword [ebp - 0x1c], 0x101
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x48], 0x44
push 0
push 1
push dword [edi + 0x814]
call esi
mov eax, dword [edi + 0x810]
push 0
push 1
push dword [edi + 0x804]
mov dword [ebp - 0xc], eax
call esi
mov eax, dword [edi + 0x800]
push 0
push 1
push dword [edi + 0x820]
mov dword [ebp - 8], eax
call esi
mov eax, dword [edi + 0x824]
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [edi + 0x830]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43be1e
push dword [edi + 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [edi + 0x810], 0
push dword [edi + 0x800]
call esi
mov dword [edi + 0x800], 0
push dword [edi + 0x824]
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x824], 0
xor ecx, ebp
pop edi
pop esi
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [ebp - 0x54]
call fcn.0043b970
push 0x57209c
lea eax, [ebp - 0x54]
push eax
call fcn.0049e7d0
int3
Function at 0x43c5c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527b78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x43c677
push 0x11
xor eax, eax
mov dword [ebp - 0x10], 7
push str.D1A547DB89C0BC61_
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.00405c20
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00405520
cmp dword [eax + 0x14], 8
jb 0x43c631
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x43c654
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00405d80
cmp dword [esi + 0x18], 0
je 0x43c677
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43c677
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43c690
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 1
push 0
lea eax, [ebp - 0x10]
mov dword [esi + 4], 0
push eax
lea edi, [esi + 4]
mov dword [esi], 0
push esi
push edi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x43c700
mov eax, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43c6f8
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x43c717
jmp 0x43c714
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 8
push eax
call esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043b970
push 0x57209c
lea eax, [ebp - 0x1c]
push eax
call fcn.0049e7d0
int3

Function at 0x43f2f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43f335
cmp byte [ebp + 8], 0
je 0x43f329
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x441630
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x441655
or esi, 2
push 1
call edi
test ax, ax
jns 0x441661
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x44166d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x441679
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x45b360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x694], 0
je 0x45b3cf
cmp dword [ebp + 8], 0x100
jne 0x45b3bf
cmp word [ebp + 0xc], 0xd
jne 0x45b3bf
cmp byte [esi + 0x69a], 0
je 0x45b39e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45b3bf
cmp byte [esi + 0x69b], 0
jne 0x45b3bf
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x45b3b8
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.00444dc0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x694]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x45b860
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x45b95a
movzx eax, word [ebx]
test ax, ax
je 0x45b95a
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x45b8a0
cmp ax, 0x5c
jne 0x45b8a2
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x45b894
cmp edi, ebx
je 0x45b8ef
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.005056cb
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x45b96a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0045b860
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x45b900
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45b912
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45b930
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret
call fcn.004e1c9a
int3

Function at 0x45c050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45c0e9
cmp dword [esi + 4], 0xffffffff
jne 0x45c0e9
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45c080
cmp dword [ebp + 0x10], 1
mov eax, dword [0x55ed00]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x45c0b3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x45c0b3
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0045e9d0
add esp, 0x10
test eax, eax
jne 0x45c0d3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0045f210
add esp, 4
mov dword [esi], eax
mov eax, dword [0x57930c]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4d4490
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4d44bb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4d44aa
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4d44f0
cmp dword [esi + 8], 0
jne 0x4d44de
push 0x5616cc
push dword [eax + 8]
call fcn.0050acd4
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4d44de
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.0050b4d6
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d4512
mov eax, dword [esi + 8]
test eax, eax
je 0x4d450c
push eax
call fcn.00509d3c
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4d8820
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4d8830
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x575360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d8857
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4d8870
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4d8860
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4d88ea
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d88de
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x575364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x439040
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dd90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00406d00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00406d00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00406d00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406d00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0x285c
push eax
call dword [fcn.0045025c]
push 0x18
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
push ecx
call fcn.00409e40
add esp, 0xc
push 0x2800
push 0
mov edx, dword [ebp - 0x10]
add edx, 0x5c
push edx
call fcn.00409e40
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x439c70
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00406d00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00406d00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x20
call fcn.00406d00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00406d00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 0x285c
push eax
call dword [fcn.0045025c]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
call fcn.00438fd0
push 0x18
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
call fcn.00409e40
add esp, 0xc
mov dword [ebp - 0x1c], 0
jmp 0x439d11
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x18
jge 0x439d2e
push 0x7f
push 0x21
mov ecx, dword [ebp - 0x2c]
call fcn.00438d60
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x40], al
jmp 0x439d08
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x45e290]
call fcn.00431d40
movzx edx, al
test edx, edx
je 0x439dd4
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x14]
add edx, 8
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2874
push ecx
call fcn.00437580
add esp, 0x10
mov edx, dword [ebp - 0x18]
sub edx, 0x18
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x2874
push edx
call fcn.00437490
add esp, 0x10
cmp dword [ebp + 0xc], 0x63
jge 0x439dc8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, 0x18
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.004398d0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00432240
add esp, 4
jmp 0x439de3
mov dword [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c0c0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455a28
push 0x44d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov eax, 1
invalid
Function at 0x43c150
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455a38
push 0x44d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
jmp 0x43c1cc
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ca00
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455d38
push 0x44d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push ebx
mov ebx, 0
mov eax, 1
invalid
Function at 0x408910
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4677db
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.0045bf6b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408992
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459d5d
mov eax, dword [eax]
push 0x4991d0
push eax
call fcn.0044c214
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c1f6
test bl, bl
je 0x408992
push 0x4991d0
lea ecx, [esp + 0xc]
call fcn.0045c586
push 0x49cd3c
lea ecx, [esp + 0xc]
call fcn.0045c586
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 0x4089ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c1f6
jmp 0x408a99
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 0x408a52
lea edx, [esp + 0x7c]
push 0x49cd38
push edx
call fcn.0044c214
add esp, 8
test eax, eax
je 0x408a52
lea eax, [esp + 0x7c]
push 0x49cd34
push eax
call fcn.0044c214
add esp, 8
test eax, eax
je 0x408a52
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 0x4089e2
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.0045c1f6
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 0x409290
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 0x4092f2
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 0x409300
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46785b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a3484]
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 0x409438
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409366
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c1f6
xor eax, eax
jmp 0x4094af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c333
push esi
lea ecx, [esp + 0xc]
call fcn.0045c5c2
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 0x40948d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00409290
test eax, eax
jne 0x40948d
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 0x80000000
mov ecx, edi
call fcn.00409290
test eax, eax
jne 0x40948d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044d250
mov esi, eax
add esp, 8
test esi, esi
jne 0x40946c
lea ecx, [esp + 0x14]
push 0x49cd4c
push ecx
call fcn.0044d1d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40946c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40946f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c2e3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40937e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c1f6
xor eax, eax
jmp 0x4094af
mov byte [esi], 0
push 0x49cd48
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.0045c1f6
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 0x419e00
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 0x419e6e
cmp si, 0x69
ja 0x419e6e
add esi, 0xffd0
cmp si, 0x11
je 0x419e3e
push 0x11
call edi
test ax, ax
jge 0x419e3e
or esi, 0x2000
cmp si, 0x10
je 0x419e53
push 0x10
call edi
test ax, ax
jge 0x419e53
or esi, 0x4000
cmp si, 0x12
je 0x419e68
push 0x12
call edi
test ax, ax
jge 0x419e68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419e7b
mov esi, 0xbd
jmp 0x419e2f
cmp si, 0x6e
jne 0x419e88
mov esi, 0xbe
jmp 0x419e2f
cmp si, 0x6f
jne 0x419e29
mov esi, 0xbf
jmp 0x419e2f

Function at 0x41b520
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b3b88]
xor edx, edx
cmp eax, edx
jne 0x41b546
xor eax, eax
mov byte [eax + 0x4b3a88], al
inc eax
cmp eax, 0x100
jl 0x41b52e
mov dword [0x4b3b88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b3a88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b5d7
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 0x41b5aa
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 0x41b578
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b650
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 0x41b6a3
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 0x41b68a
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