joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50756d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x507596
xor eax, eax
jmp 0x507704
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5a5100]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5075c9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0050dcef
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x50769b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x5076d6
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x507624
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x507615
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x5075f8
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x507664
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x50766d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x5075e9
jmp 0x50766f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x5076ff
cmp dword [ebp - 8], edi
je 0x5076d6
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x5076c8
call fcn.004fe1da
mov dword [eax], 9
call fcn.004fe1e3
mov dword [eax], esi
jmp 0x5076d1
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5076bd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x50766f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x50766f
push dword [ebp - 8]
call fcn.004fe1ec
pop ecx
or eax, 0xffffffff
jmp 0x507702
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5076eb
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x5076eb
xor eax, eax
jmp 0x507702
call fcn.004fe1da
mov dword [eax], 0x1c
call fcn.004fe1e3
mov dword [eax], edi
jmp 0x5076d1
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004fb7a4
leave
ret
Function at 0x50a8c4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004fdfb0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x50a959
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5a4a2c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x50a959
cmp eax, 1
je 0x50a971
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x50a959
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x50a92e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x50a955
xor eax, eax
inc eax
jmp 0x50a98d
cmp esi, ebx
jae 0x50a95d
xor eax, eax
jmp 0x50a98d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5a4a2c]
jmp 0x50a973
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x50b7a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5a4e88], ebx
push esi
push edi
jne 0x50b829
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x50b864
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54cb74
push edi
call esi
test eax, eax
mov dword [0x5a4e88], eax
je 0x50b864
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x5a4e8c], eax
call esi
cmp dword [0x5a4a2c], 2
mov dword [0x5a4e90], eax
jne 0x50b829
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5a4e98], eax
je 0x50b829
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5a4e94], eax
mov eax, dword [0x5a4e94]
test eax, eax
je 0x50b86e
call eax
test eax, eax
je 0x50b855
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5a4e98]
test eax, eax
je 0x50b855
test byte [ebp - 8], 1
jne 0x50b86e
cmp dword [0x5a4a38], 4
jb 0x50b868
or byte [ebp + 0x12], 0x20
jmp 0x50b88d
xor eax, eax
jmp 0x50b89d
or byte [ebp + 0x12], 4
jmp 0x50b88d
mov eax, dword [0x5a4e8c]
test eax, eax
je 0x50b88d
call eax
mov ebx, eax
test ebx, ebx
je 0x50b88d
mov eax, dword [0x5a4e90]
test eax, eax
je 0x50b88d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5a4e88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50dfc9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x50e034
push 0x3d
push dword [ebp + 8]
call fcn.0050edba
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x50e034
cmp dword [ebp + 8], esi
je 0x50e034
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5a4a4c]
cmp eax, dword [0x5a4a50]
jne 0x50e01a
mov edi, eax
call fcn.0050df68
mov dword [0x5a4a4c], eax
cmp eax, ebx
jne 0x50e073
cmp dword [ebp + 0xc], ebx
je 0x50e03c
cmp dword [0x5a4a54], ebx
je 0x50e03c
call fcn.00508e70
test eax, eax
je 0x50e073
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x50e177
push 4
call fcn.004fc184
cmp eax, ebx
pop ecx
mov dword [0x5a4a4c], eax
je 0x50e034
mov dword [eax], ebx
cmp dword [0x5a4a54], ebx
jne 0x50e073
push 4
call fcn.004fc184
cmp eax, ebx
pop ecx
mov dword [0x5a4a54], eax
je 0x50e034
mov dword [eax], ebx
mov ebx, dword [0x5a4a4c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0050df1b
mov edi, eax
test edi, edi
pop ecx
jl 0x50e0cc
cmp dword [ebx], 0
je 0x50e0cc
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004fdb46
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x50e0b4
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x50e102
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x50e0ab
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004fea50
test eax, eax
pop ecx
pop ecx
je 0x50e102
jmp 0x50e0fd
cmp dword [ebp - 4], 0
jne 0x50e170
test edi, edi
jge 0x50e0dc
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004fea50
test eax, eax
pop ecx
pop ecx
je 0x50e034
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5a4a4c], eax
cmp dword [ebp + 0xc], 0
je 0x50e159
push dword [ebp + 8]
call fcn.004ff350
inc eax
inc eax
push eax
call fcn.004fc184
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x50e159
push dword [ebp + 8]
push esi
call fcn.00503100
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x50e152
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004fdb46
pop ecx
cmp dword [ebp - 4], 0
je 0x50e168
push dword [ebp + 8]
call fcn.004fdb46
pop ecx
mov eax, dword [ebp - 8]
jmp 0x50e037
push esi
call fcn.004fdb46
pop ecx
xor eax, eax
jmp 0x50e037
Function at 0x50e2ce
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x54cc38
call fcn.00503428
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x5a4ea0], edi
jne 0x50e312
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50e2fd
mov dword [0x5a4ea0], ebx
jmp 0x50e312
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x50e312
mov dword [0x5a4ea0], 2
mov eax, dword [0x5a4ea0]
cmp eax, ebx
jne 0x50e332
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x50e3f5
cmp eax, 2
je 0x50e33b
cmp eax, edi
jne 0x50e363
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x50e34e
mov eax, dword [0x5a4e34]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x50e36a
xor eax, eax
jmp 0x50e3f5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004fdfb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x50e39d
cmp esi, edi
jne 0x50e3b3
push dword [ebp - 0x24]
call fcn.004fc184
pop ecx
mov esi, eax
cmp esi, edi
je 0x50e363
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x50e3e6
cmp dword [ebp + 0x14], edi
jne 0x50e3d0
push edi
push edi
jmp 0x50e3d6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x50e3f2
push esi
call fcn.004fdb46
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00503463
ret
Function at 0x50e3fe
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x54cc48
call fcn.00503428
xor esi, esi
cmp dword [0x5a4ea4], esi
jne 0x50e442
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50e42d
mov dword [0x5a4ea4], edi
jmp 0x50e442
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x50e442
mov dword [0x5a4ea4], 2
mov eax, dword [0x5a4ea4]
cmp eax, 2
je 0x50e523
cmp eax, esi
je 0x50e523
cmp eax, 1
jne 0x50e487
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x50e470
mov eax, dword [0x5a4e34]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x50e48e
xor eax, eax
jmp 0x50e535
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004fdfb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x50e4c4
cmp edi, esi
jne 0x50e4df
lea eax, [ebx + ebx]
push eax
call fcn.004fc184
pop ecx
mov edi, eax
cmp edi, esi
je 0x50e487
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50e512
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x50e4fc
push esi
push esi
jmp 0x50e502
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x50e51e
push edi
call fcn.004fdb46
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x50e535
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00503463
ret
Function at 0x50ec54
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004fdfb0
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00507112
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x50ed7e
push 2
push esi
push dword [ebp + 8]
call fcn.00507112
add esp, 0xc
cmp eax, ebx
je 0x50ed7e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x50ed21
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00500e50
push 0x8000
push dword [ebp + 8]
call fcn.0050eea1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x50ecda
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0050756d
add esp, 0xc
cmp eax, 0xffffffff
je 0x50ecfa
sub edi, eax
test edi, edi
jg 0x50ecd2
jmp 0x50ed12
call fcn.004fe1e3
cmp dword [eax], 5
jne 0x50ed0f
call fcn.004fe1da
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0050eea1
pop ecx
pop ecx
jmp 0x50ed69
jge 0x50ed69
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00507112
push dword [ebp + 8]
call fcn.0050d790
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x50ed69
call fcn.004fe1da
mov dword [eax], 0xd
call fcn.004fe1e3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00507112
add esp, 0xc
mov eax, esi
pop edi
jmp 0x50ed80
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004fb7a4
leave
ret
Function at 0x410e40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47bffb
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.0046e6bb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410ec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c0aa
mov eax, dword [eax]
push 0x4b8214
push eax
call fcn.0045e2a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046e946
test bl, bl
je 0x410ec2
push 0x4b8214
lea ecx, [esp + 0xc]
call fcn.0046ed22
push 0x4bbd7c
lea ecx, [esp + 0xc]
call fcn.0046ed22
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 0x410efe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046e946
jmp 0x410fc9
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 0x410f82
lea edx, [esp + 0x7c]
push 0x4bbd78
push edx
call fcn.0045e2a4
add esp, 8
test eax, eax
je 0x410f82
lea eax, [esp + 0x7c]
push 0x4bbd74
push eax
call fcn.0045e2a4
add esp, 8
test eax, eax
je 0x410f82
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 0x410f12
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.0046e946
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 0x412220
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 0x412282
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 0x412290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c15b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c3074]
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 0x4123c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4122f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e946
xor eax, eax
jmp 0x41243f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046eacf
push esi
lea ecx, [esp + 0xc]
call fcn.0046ed5e
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 0x41241d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00412220
test eax, eax
jne 0x41241d
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.00412220
test eax, eax
jne 0x41241d
lea eax, [esp + 0x14]
push 0x4bbd90
push eax
call fcn.0045f380
mov esi, eax
add esp, 8
test esi, esi
jne 0x4123fc
lea ecx, [esp + 0x14]
push 0x4bbd8c
push ecx
call fcn.0045f300
mov esi, eax
add esp, 8
test esi, esi
jne 0x4123fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4123ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ea7f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41230e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e946
xor eax, eax
jmp 0x41243f
mov byte [esi], 0
push 0x4bbd88
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.0046e946
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 0x422dc0
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 0x422e2e
cmp si, 0x69
ja 0x422e2e
add esi, 0xffd0
cmp si, 0x11
je 0x422dfe
push 0x11
call edi
test ax, ax
jge 0x422dfe
or esi, 0x2000
cmp si, 0x10
je 0x422e13
push 0x10
call edi
test ax, ax
jge 0x422e13
or esi, 0x4000
cmp si, 0x12
je 0x422e28
push 0x12
call edi
test ax, ax
jge 0x422e28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x422e3b
mov esi, 0xbd
jmp 0x422def
cmp si, 0x6e
jne 0x422e48
mov esi, 0xbe
jmp 0x422def
cmp si, 0x6f
jne 0x422de9
mov esi, 0xbf
jmp 0x422def

Function at 0x4245f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d3eb8]
xor edx, edx
cmp eax, edx
jne 0x424616
xor eax, eax
mov byte [eax + 0x4d3db8], al
inc eax
cmp eax, 0x100
jl 0x4245fe
mov dword [0x4d3eb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d3db8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4246a7
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 0x42467a
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 0x424648
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424720
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 0x424773
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 0x42475a
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