joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411900
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x427058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x433178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x41193c
mov eax, dword [esi]
jmp 0x41193e
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411952
mov al, 1
jmp 0x4119e1
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00411df0
test al, al
je 0x4119ab
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4119ab
mov bl, 1
jmp 0x4119ad
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4119c8
push dword [esp + 0xc]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041637f
add esp, 0x28
ret
Function at 0x411a00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4270a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x433178]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x411a3d
mov eax, dword [esi]
jmp 0x411a3f
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x411a53
mov al, 1
jmp 0x411c10
cmp dword [esi + 0x14], 8
jb 0x411a5d
mov edx, dword [esi]
jmp 0x411a5f
mov edx, esi
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edx], ax
jne 0x411a8f
xor ecx, ecx
jmp 0x411aa3
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a94
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.00403030
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x2c]
call fcn.00411800
mov ebx, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x411adc
push dword [esp + 0x2c]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp ebx, 0xffffffff
jne 0x411aff
xor al, al
jmp 0x411c10
cmp dword [esi + 0x14], 8
jb 0x411b09
mov eax, dword [esi]
jmp 0x411b0b
mov eax, esi
push eax
lea ecx, [esp + 0x30]
call fcn.00402d30
mov dword [esp + 0x50], 1
xor edx, edx
lea ecx, [esp + 0x2c]
call fcn.004116f0
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x411b50
push dword [esp + 0x2c]
call fcn.00416b36
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
test al, al
jne 0x411af8
cmp dword [esi + 0x14], 8
jb 0x411b75
mov eax, dword [esi]
jmp 0x411b77
mov eax, esi
push eax
call edi
test eax, eax
jne 0x411a4c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], 2
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00411df0
test al, al
je 0x411bcb
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call edi
test eax, eax
je 0x411bcb
mov bl, 1
jmp 0x411bfd
cmp dword [esi + 0x14], 8
jb 0x411bd3
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.00402d30
mov byte [esp + 0x50], 3
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.004116f0
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x14]
call fcn.00402e40
xor bl, bl
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402e40
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041637f
add esp, 0x44
ret
Function at 0x412750
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x41277d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0041637f
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x412769
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4127b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4127b7
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0041637f
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.0041637f
add esp, 8
ret 4

Function at 0x412b70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x427386
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433178]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x3c]
push eax
push 0x3fe
call edi
mov ebp, eax
test ebp, ebp
je 0x412c39
lea eax, [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x848], esi
cmp ebp, 0x3fe
jbe 0x412c63
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416376
add esp, 4
mov ebx, eax
mov esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], esi
push ebx
push ebp
call edi
test eax, eax
je 0x412c21
cmp eax, ebp
ja 0x412c21
xor ecx, ecx
mov ebp, eax
mov dword [ebx + eax*2], ecx
jmp 0x412c8f
mov dword [esp + 0x848], 0xffffffff
test ebx, ebx
je 0x412c39
push ebx
call fcn.004171e3
add esp, 4
xor al, al
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.0041637f
add esp, 0x838
ret
lea eax, [ebp*2]
cmp eax, 0x800
jae 0x412d2f
xor ecx, ecx
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp eax, 0x800
jae 0x412d2f
mov word [esp + eax + 0x3c], cx
xor eax, eax
xor edi, edi
test ebp, ebp
je 0x412d10
mov esi, dword [esp + 0x18]
mov ebx, 2
cmp word [esi + ebx - 2], 0
jne 0x412d04
cmp eax, edi
je 0x412d04
lea eax, [esi + eax*2]
push eax
lea ecx, [esp + 0x24]
call fcn.00402d30
mov byte [esp + 0x848], 1
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004062f0
mov byte [esp + 0x848], 0
cmp dword [esp + 0x34], 8
jb 0x412cea
push dword [esp + 0x20]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea eax, [edi + 1]
mov dword [esp + 0x30], 0
inc edi
add ebx, 2
cmp edi, ebp
jb 0x412ca0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x848], 0xffffffff
test esi, esi
je 0x412d28
push esi
call fcn.004171e3
add esp, 4
mov al, 1
jmp 0x412c3b
call fcn.00417410
int3
Function at 0x413250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427476
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x433178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.RC::RCFileHash.0
mov dword [edi + 4], 0
mov dword [esp + 0x14], edi
mov byte [edi + 8], 0
mov dword [esp + 0x38], 0
mov dword [edi], vtable.RC::RCFileHashCalc.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [esp + 0x38], 2
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [edi], vtable.RC::RCMD5.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x38], 3
push 8
movq qword [esp + 0x28], xmm0
call fcn.00416b86
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x38], 4
test eax, eax
je 0x413324
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
call fcn.00412920
jmp 0x413326
xor eax, eax
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00409610
mov byte [esp + 0x38], 5
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.004134f0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0xc]
call fcn.004144c0
mov byte [esp + 0x38], 3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x413397
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x413397
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x413397
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x38], 2
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4133d5
push dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004110b0
push esi
call fcn.00416b36
add esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041637f
add esp, 0x2c
ret
Function at 0x414830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
lea esp, [esp]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4359e0], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x435ae0], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x435be0], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4358e0], al
inc esi
cmp esi, 0x100
jl 0x414940
pop esi
add esp, 0x80
ret
Function at 0x41ff7b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041b013
mov dword [ebp - 0x14], eax
cmp dword [0x435834], esi
jne 0x42006e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41fffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42014e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42014e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42014e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x435834], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x435838], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43583c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435844], eax
test eax, eax
je 0x42006b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435840], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x420093
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420086
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4200a8
push 4
pop eax
jmp 0x420150
cmp dword [ebp - 0x14], esi
je 0x4200a8
push dword [0x435834]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42008d
mov eax, dword [0x435840]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x420106
cmp dword [0x435844], edi
je 0x420106
push eax
call ebx
push dword [0x435844]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x420106
test eax, eax
je 0x420106
call ecx
test eax, eax
je 0x4200fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4200fb
test byte [ebp - 8], 1
jne 0x420106
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x420136
mov eax, dword [0x435838]
cmp eax, edi
je 0x420133
push eax
call ebx
test eax, eax
je 0x420133
call eax
mov esi, eax
test esi, esi
je 0x420133
mov eax, dword [0x43583c]
cmp eax, edi
je 0x420133
push eax
call ebx
test eax, eax
je 0x420133
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x435834]
call ebx
test eax, eax
je 0x42014e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x420150
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041637f
mov esp, ebp
pop ebp
ret
Function at 0x409680
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468e5b
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.0045d9a7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409702
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b71d
mov eax, dword [eax]
push 0x4801c0
push eax
call fcn.0044e504
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045dc32
test bl, bl
je 0x409702
push 0x4801c0
lea ecx, [esp + 0xc]
call fcn.0045dfc2
push 0x483d2c
lea ecx, [esp + 0xc]
call fcn.0045dfc2
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 0x40973e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045dc32
jmp 0x409809
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 0x4097c2
lea edx, [esp + 0x7c]
push 0x483d28
push edx
call fcn.0044e504
add esp, 8
test eax, eax
je 0x4097c2
lea eax, [esp + 0x7c]
push 0x483d24
push eax
call fcn.0044e504
add esp, 8
test eax, eax
je 0x4097c2
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 0x409752
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.0045dc32
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 0x40a000
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 0x40a062
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 0x40a070
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48bdc8]
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 0x40a1a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a0d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dc32
xor eax, eax
jmp 0x40a21f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dd6f
push esi
lea ecx, [esp + 0xc]
call fcn.0045dffe
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 0x40a1fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a000
test eax, eax
jne 0x40a1fd
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.0040a000
test eax, eax
jne 0x40a1fd
lea eax, [esp + 0x14]
push 0x483d40
push eax
call fcn.0044f540
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a1dc
lea ecx, [esp + 0x14]
push 0x483d3c
push ecx
call fcn.0044f4c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a1dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a1df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045dd1f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a0ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dc32
xor eax, eax
jmp 0x40a21f
mov byte [esi], 0
push 0x483d38
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.0045dc32
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 0x41ba90
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 0x41bafe
cmp si, 0x69
ja 0x41bafe
add esi, 0xffd0
cmp si, 0x11
je 0x41bace
push 0x11
call edi
test ax, ax
jge 0x41bace
or esi, 0x2000
cmp si, 0x10
je 0x41bae3
push 0x10
call edi
test ax, ax
jge 0x41bae3
or esi, 0x4000
cmp si, 0x12
je 0x41baf8
push 0x12
call edi
test ax, ax
jge 0x41baf8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bb0b
mov esi, 0xbd
jmp 0x41babf
cmp si, 0x6e
jne 0x41bb18
mov esi, 0xbe
jmp 0x41babf
cmp si, 0x6f
jne 0x41bab9
mov esi, 0xbf
jmp 0x41babf

Function at 0x41d240
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49c438]
xor edx, edx
cmp eax, edx
jne 0x41d266
xor eax, eax
mov byte [eax + 0x49c338], al
inc eax
cmp eax, 0x100
jl 0x41d24e
mov dword [0x49c438], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49c338
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d2f7
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 0x41d2ca
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 0x41d298
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d370
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 0x41d3c3
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 0x41d3aa
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