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

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0xc
mov eax, 0x4368cb
call fcn.0041ed67
mov esi, ecx
lea ebx, [esi + 0x84]
xor edi, edi
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
mov dword [ebp - 0x10], esi
mov word [ebx + 4], di
mov dword [ebp - 4], edi
call fcn.00410cbc
call fcn.004118df
cmp byte [eax + 0x134], 0
je 0x410c36
call fcn.004118df
lea esi, [ebp + 0x1c]
call fcn.0040231d
mov byte [ebp - 4], 1
call fcn.004118df
cmp dword [ebp + 0x30], edi
mov dword [ebp - 0x18], eax
jne 0x410b4b
mov ecx, esi
call fcn.0040eb71
cmp dword [ebp + 0x30], edi
je 0x410b6d
mov edi, dword [ebp + 0x30]
dec edi
lea eax, [ebp + 0x1c]
call fcn.004017f6
cmp word [eax], 0x5c
je 0x410b6b
push 0x43ba78
lea eax, [ebp + 0x1c]
push eax
call fcn.004017d8
xor edi, edi
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], di
push 0x208
lea eax, [ebp + 0x3a]
push edi
mov byte [ebp - 4], 2
push eax
mov word [ebp + 0x38], di
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x38]
lea esi, [ebp]
mov word [ebp + 0x23e], di
call fcn.0040185a
mov eax, esi
push eax
call fcn.0040d648
pop ecx
push 0xffffffffffffffff
mov eax, esi
push edi
lea esi, [ebp + 0x1c]
call fcn.00401aba
push 0x43ba8c
mov eax, esi
push eax
call fcn.004017d8
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
add eax, 0x70
call fcn.00401aba
push 0x43cad4
mov eax, esi
push eax
call fcn.004017d8
cmp byte [ebp + 0x250], 0
je 0x410c10
push str..pending
mov eax, esi
push eax
call fcn.004017d8
push 0xffffffffffffffff
push ebx
xor ebx, ebx
lea eax, [ebp + 0x1c]
call fcn.00401a1b
push ebx
push 1
lea esi, [ebp]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040193c
mov esi, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.0041a6a2
add ebp, 0x248
leave
ret 4
Function at 0x41215a
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x24
mov eax, 0x4375c2
call fcn.0041ed67
mov eax, dword [ebp + 0x234]
push 7
mov dword [ebp - 0x10], ecx
xor ecx, ecx
pop esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x14], edi
mov word [edi + 4], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ecx
mov word [edi + 0x20], cx
mov dword [edi + 0x50], esi
mov dword [edi + 0x4c], ecx
mov word [edi + 0x3c], cx
mov dword [edi + 0x74], esi
mov dword [edi + 0x70], ecx
mov word [edi + 0x60], cx
lea edx, [edi + 0x78]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0x94]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xb0]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xcc]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xe8]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea ebx, [edi + 0x104]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
lea ebx, [edi + 0x120]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
push 0xffffffffffffffff
push edx
xor ebx, ebx
mov byte [ebp - 4], 0xa
call fcn.00401a1b
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401a1b
call fcn.004118df
push 0xffffffffffffffff
lea ecx, [edi + 0x120]
add eax, 0x70
push ecx
call fcn.00401a1b
push str..tmp
lea eax, [edi + 0x120]
push eax
call fcn.004017d8
push ebx
call fcn.0041a8f0
push eax
call fcn.0041a6b1
pop ecx
pop ecx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov byte [edi + 0x13c], bl
call fcn.004118df
cmp byte [eax + 0x134], bl
je 0x412349
lea ecx, [edi + 0xcc]
call fcn.0040eb71
cmp dword [edi + 0xe0], ebx
je 0x412349
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
push 0x208
lea eax, [ebp + 0x1e]
push ebx
mov byte [ebp - 4], 0xb
push eax
mov word [ebp + 0x1c], bx
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x1c]
lea esi, [ebp]
mov word [ebp + 0x222], bx
call fcn.0040185a
mov eax, esi
push eax
call fcn.0040d648
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x120]
call fcn.00401aba
mov eax, esi
push eax
lea esi, [edi + 0xcc]
push esi
lea ebx, [ebp - 0x30]
call fcn.0040e6cc
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401a1b
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp]
call fcn.0040193c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.0041a6a2
add ebp, 0x22c
leave
ret 4
Function at 0x4162ba
Capabilities:
Connect to http server

Disassembly:
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
mov ebx, eax
mov dword [esi + 8], edi
jne 0x4162cb
xor al, al
jmp 0x416309
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x18], 8
jb 0x4162dd
mov ebx, dword [ebx + 4]
jmp 0x4162e0
add ebx, 4
push edi
push edi
push 3
push edi
push edi
push 0x50
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x416301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], edi
setne al
pop edi
pop ebx
ret
Function at 0x4199e1
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x435e2a
call fcn.0041ed67
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
call fcn.0040ab61
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], ebx
je 0x419b3f
mov eax, dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
inc edi
inc dword [ebp + 8]
cmp edi, 3
mov byte [ebp + edi - 0x11], al
mov dword [ebp - 0x18], edi
jne 0x419a8e
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0xf]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xf]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
and dword [ebp - 0x18], 0
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040f97d
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040b960
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x419a61
and dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
jne 0x419a0e
test edi, edi
je 0x419b3f
cmp edi, 3
jge 0x419aba
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push 0
push eax
call fcn.0041b0d0
add esp, 0xc
mov cl, byte [ebp - 0x10]
mov al, cl
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0xf]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0xe]
and dword [ebp - 0x10], 0
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x12], al
lea eax, [edi + 1]
and cl, 0x3f
test eax, eax
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x28], eax
jle 0x419b29
mov eax, dword [ebp - 0x10]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040f97d
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040b960
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x419afe
mov edi, dword [ebp - 0x18]
push 3
pop esi
cmp edi, esi
jge 0x419b3f
sub esi, edi
mov edi, dword [ebp - 0x1c]
push 0x3d
call fcn.0040b960
dec esi
jne 0x419b32
mov eax, dword [ebp - 0x1c]
call fcn.0041ee3f
ret

Function at 0x41a6a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4442c4]
jne 0x41a6ac
repz ret
jmp fcn.00422041
Function at 0x422aa6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4442e0]
je 0x422ac1
inc edi
cmp edi, 0x17
jb 0x422ab2
cmp edi, 0x17
jae 0x422c41
push ebp
push 3
call fcn.0042a46a
cmp eax, 1
pop ecx
je 0x422c0d
push 3
call fcn.0042a46a
test eax, eax
pop ecx
jne 0x422af5
cmp dword [0x444110], 1
je 0x422c0d
cmp ebx, 0xfc
je 0x422c40
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x446438
push ebp
call fcn.00421e2e
add esp, 0xc
test eax, eax
je 0x422b2b
push esi
push esi
push esi
push esi
push esi
call fcn.0041a745
add esp, 0x14
push 0x104
mov esi, 0x446451
push esi
push 0
mov byte [0x446555], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422b6f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00421e2e
add esp, 0xc
test eax, eax
je 0x422b6f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041a745
add esp, 0x14
push esi
call fcn.0041a9d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422bb4
push esi
call fcn.0041a9d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44674c
push 0x43a524
sub ecx, eax
push ecx
push eax
call fcn.00428ab6
add esp, 0x14
test eax, eax
je 0x422bb4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041a745
add esp, 0x14
jmp 0x422bb6
xor esi, esi
push 0x43a520
push ebx
push ebp
call fcn.004289fd
add esp, 0xc
test eax, eax
je 0x422bd6
push esi
push esi
push esi
push esi
push esi
call fcn.0041a745
add esp, 0x14
push dword [edi*8 + 0x4442e4]
push ebx
push ebp
call fcn.004289fd
add esp, 0xc
test eax, eax
je 0x422bf8
push esi
push esi
push esi
push esi
push esi
call fcn.0041a745
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042a2ad
add esp, 0xc
jmp 0x422c40
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x422c40
cmp ebp, 0xffffffff
je 0x422c40
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4442e4]
push dword [esi]
call fcn.0041a9d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42a2ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042221f
xor ebx, ebx
cmp dword [0x446b74], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42a383
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42a463
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42a463
push eax
call fcn.004221b1
mov dword [esp], 0x43b670
push edi
mov dword [0x446b74], eax
call esi
push eax
call fcn.004221b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446b78], eax
call esi
push eax
call fcn.004221b1
mov dword [0x446b7c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00421aaa
test eax, eax
pop ecx
pop ecx
je 0x42a351
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a745
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42a383
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004221b1
cmp eax, ebx
pop ecx
mov dword [0x446b84], eax
je 0x42a383
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004221b1
pop ecx
mov dword [0x446b80], eax
mov eax, dword [0x446b80]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42a408
cmp dword [0x446b84], ecx
je 0x42a408
push eax
call fcn.00422228
push dword [0x446b84]
mov esi, eax
call fcn.00422228
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42a408
cmp edi, ebx
je 0x42a408
call esi
cmp eax, ebx
je 0x42a3d5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a3d5
test byte [ebp - 0x18], 1
jne 0x42a408
lea eax, [ebp - 0x10]
push eax
call fcn.00421ae1
test eax, eax
pop ecx
je 0x42a3f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a745
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42a3ff
or dword [ebp + 0x10], 0x200000
jmp 0x42a443
or dword [ebp + 0x10], 0x40000
jmp 0x42a443
mov eax, dword [0x446b78]
cmp eax, dword [ebp - 8]
je 0x42a443
push eax
call fcn.00422228
cmp eax, ebx
pop ecx
je 0x42a443
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42a443
mov eax, dword [0x446b7c]
cmp eax, dword [ebp - 8]
je 0x42a443
push eax
call fcn.00422228
cmp eax, ebx
pop ecx
je 0x42a443
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446b74]
call fcn.00422228
cmp eax, ebx
pop ecx
je 0x42a463
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a465
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f6ac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4442c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042f641
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041b0d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42f6fb
cmp dword [ebp - 0x1c], 5
jb 0x42f713
jmp 0x42f70f
cmp dword [ebp - 0x10], 1
jne 0x42f713
cmp dword [ebp - 0x1c], 4
ja 0x42f70f
jne 0x42f713
cmp dword [ebp - 0x18], 0
jbe 0x42f713
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43b7c8
call fcn.0042f515
test eax, eax
jge 0x42f734
mov byte [0x446ce4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041a6a2
add ebp, 0x78
leave
ret

Function at 0x42f8e6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x446ccc], 0
push esi
jne 0x42f859
call fcn.0042f784
test eax, eax
je 0x42f89c
mov eax, dword [0x446ccc]
cmp eax, 1
jne 0x42f87a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42f89c
pop esi
ret
push eax
call dword [0x446cd4]
test eax, eax
jne 0x42f8e4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42f8a0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x446ccc]
call dword [0x446cd4]
mov edi, eax
test edi, edi
je 0x42f8c7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42f8e3
lea edi, [esi + 0xff0]
push esi
push dword [0x446ccc]
call dword [0x446cd0]
add esi, 0x10
cmp esi, edi
jb 0x42f8cd
mov eax, esi
pop edi
pop esi
ret
jmp 0x42f846
Function at 0x409c40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x473aab
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.00466964
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409cc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046441a
mov eax, dword [eax]
push 0x48d200
push eax
call fcn.00456f24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466bef
test bl, bl
je 0x409cc2
push 0x48d200
lea ecx, [esp + 0xc]
call fcn.00466fcb
push 0x490d58
lea ecx, [esp + 0xc]
call fcn.00466fcb
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 0x409cfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466bef
jmp 0x409dc9
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 0x409d82
lea edx, [esp + 0x7c]
push 0x490d54
push edx
call fcn.00456f24
add esp, 8
test eax, eax
je 0x409d82
lea eax, [esp + 0x7c]
push 0x490d50
push eax
call fcn.00456f24
add esp, 8
test eax, eax
je 0x409d82
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 0x409d12
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.00466bef
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 0x40a5c0
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 0x40a622
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 0x40a630
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4998f0]
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 0x40a768
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a696
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466bef
xor eax, eax
jmp 0x40a7df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00466d78
push esi
lea ecx, [esp + 0xc]
call fcn.00467007
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 0x40a7bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a5c0
test eax, eax
jne 0x40a7bd
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.0040a5c0
test eax, eax
jne 0x40a7bd
lea eax, [esp + 0x14]
push 0x490d6c
push eax
call fcn.00458000
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a79c
lea ecx, [esp + 0x14]
push 0x490d68
push ecx
call fcn.00457f80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a79c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a79f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00466d28
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a6ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466bef
xor eax, eax
jmp 0x40a7df
mov byte [esi], 0
push 0x490d64
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.00466bef
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 0x41b060
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 0x41b0ce
cmp si, 0x69
ja 0x41b0ce
add esi, 0xffd0
cmp si, 0x11
je 0x41b09e
push 0x11
call edi
test ax, ax
jge 0x41b09e
or esi, 0x2000
cmp si, 0x10
je 0x41b0b3
push 0x10
call edi
test ax, ax
jge 0x41b0b3
or esi, 0x4000
cmp si, 0x12
je 0x41b0c8
push 0x12
call edi
test ax, ax
jge 0x41b0c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b0db
mov esi, 0xbd
jmp 0x41b08f
cmp si, 0x6e
jne 0x41b0e8
mov esi, 0xbe
jmp 0x41b08f
cmp si, 0x6f
jne 0x41b089
mov esi, 0xbf
jmp 0x41b08f

Function at 0x41c810
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4aa6f0]
xor edx, edx
cmp eax, edx
jne 0x41c836
xor eax, eax
mov byte [eax + 0x4aa5f0], al
inc eax
cmp eax, 0x100
jl 0x41c81e
mov dword [0x4aa6f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4aa5f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c8c7
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 0x41c89a
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 0x41c868
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c940
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 0x41c993
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 0x41c97a
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