joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c1420
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
or dword [esi + 0x2c], 0x100
or eax, 0xffffffff
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x1108]
push eax
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea edx, [ebp - 0x20]
push str..pipe_s_s_d
push 0x1cef30
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
call fcn.001c1af8
mov ecx, dword [edi + 0x1108]
push ecx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x1cf038
call fcn.001c1af8
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x1cf140
call fcn.001c1af8
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x1cef30
call edi
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x1cf140
mov dword [esi + 0x3c], eax
call edi
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
push 0
push 0
push 0xff
mov dword [esi + 0x40], eax
push 4
push 1
push 0x1cf038
call edi
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
cmp ecx, 0xffffffff
je 0x1c1575
cmp dword [esi + 0x40], 0xffffffff
je 0x1c1575
cmp eax, 0xffffffff
je 0x1c1575
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov eax, dword [esi + 0x38]
push 0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push ecx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1c15a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.001c1b80
lea ecx, [ebp - 0x160]
push ecx
push esi
mov dword [ebp - 0x160], 0x44
call fcn.001c1420
add esp, 0x14
test eax, eax
jne 0x1c15fe
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001c186a
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea edx, [ebp - 0x108]
push 0x1cb244
push edx
mov dword [edi], 0
mov dword [ebp - 0x10c], 0
call fcn.001c1af8
movsx eax, byte [esi + 0x1000]
add esp, 0xc
lea ecx, [esi + 0x1000]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [esi + 0x1104]
push 0
or eax, 0x8000000
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1c16ac
mov eax, dword [ebp - 0x11c]
mov dword [edi], 0
cmp dword [esi + 0x1210], 0
mov ebx, eax
jne 0x1c16b6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001c186a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.001c186a
mov esp, ebp
pop ebp
ret

Function at 0x1c186a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1c1874
repz ret
jmp fcn.001c1db0
Function at 0x1c7ceb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.001c1f28
and dword [ebp - 4], 0
cmp dword [0x1cfbc4], 0
mov ebx, eax
jne 0x1c7d9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1c7e4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1c7e4d
push eax
call fcn.001c1eb6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1cfbc4], eax
call esi
push eax
call fcn.001c1eb6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1cfbc8], eax
call esi
push eax
call fcn.001c1eb6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1cfbcc], eax
call esi
push eax
call fcn.001c1eb6
pop ecx
mov dword [0x1cfbd4], eax
test eax, eax
je 0x1c7d9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.001c1eb6
pop ecx
mov dword [0x1cfbd0], eax
mov eax, dword [0x1cfbd0]
cmp eax, ebx
je 0x1c7df4
cmp dword [0x1cfbd4], ebx
je 0x1c7df4
push eax
call fcn.001c1f31
push dword [0x1cfbd4]
mov esi, eax
call fcn.001c1f31
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1c7df4
test edi, edi
je 0x1c7df4
call esi
test eax, eax
je 0x1c7deb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1c7deb
test byte [ebp - 0xc], 1
jne 0x1c7df4
or dword [ebp + 0x10], 0x200000
jmp 0x1c7e2d
mov eax, dword [0x1cfbc8]
cmp eax, ebx
je 0x1c7e2d
push eax
call fcn.001c1f31
pop ecx
test eax, eax
je 0x1c7e2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1c7e2d
mov eax, dword [0x1cfbcc]
cmp eax, ebx
je 0x1c7e2d
push eax
call fcn.001c1f31
pop ecx
test eax, eax
je 0x1c7e2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1cfbc4]
call fcn.001c1f31
pop ecx
test eax, eax
je 0x1c7e4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1c7e4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403570
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0x411220
push 1
push str.Mode
push str.Setup
call esi
xor edi, edi
push 0x411220
push edi
push str.Top_Margin
push str.Setup
mov dword [0x40d030], eax
mov dword [0x40d034], eax
call esi
push 0x411220
push edi
push str.Bottom_Margin
push str.Setup
mov dword [0x4111a4], eax
call esi
push 0x411220
push edi
push str.Left_Margin
push str.Setup
mov dword [0x4111ac], eax
call esi
push 0x411220
push edi
push str.Right_Margin
push str.Setup
mov dword [0x4111a0], eax
call esi
mov ecx, dword [0x4111a0]
mov edx, dword [0x4111a4]
mov dword [0x4111a8], eax
push eax
mov eax, dword [0x4111ac]
push eax
push ecx
push edx
call fcn.004037d0
add esp, 0x10
test eax, eax
jne 0x403644
mov eax, dword [0x411198]
push 0x10
push str.FaFa
push str.Invalid_Margin_Values__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x4111a8], edi
mov dword [0x4111a0], edi
mov dword [0x4111ac], edi
mov dword [0x4111a4], edi
mov ecx, dword [0x4111a4]
mov edx, dword [0x4111ac]
mov eax, dword [0x4111a0]
push 0x411220
mov dword [0x4113a4], ecx
mov ecx, dword [0x4111a8]
push 0x96
push str.Timer
push str.Setup
mov dword [0x4113ac], edx
mov dword [0x4113a0], eax
mov dword [0x4113a8], ecx
call esi
pop edi
mov dword [0x40d04c], eax
mov dword [0x4111f4], eax
pop esi
ret

Function at 0x408f69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4107f0
cmp edx, dword [eax]
je 0x408f8b
add eax, 8
inc ecx
cmp eax, 0x410880
jl 0x408f7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4107f0]
jne 0x4090b9
mov eax, dword [0x410f24]
cmp eax, 1
je 0x409093
test eax, eax
jne 0x408fbc
cmp dword [0x410734], 1
je 0x409093
cmp edx, 0xfc
je 0x4090b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408ff3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407f80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409760
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409036
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409760
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c548
push edi
call fcn.0040a710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407f80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407f90
lea eax, [ebp - 0xa0]
push 0x40c528
push eax
call fcn.00407f90
push dword [esi + 0x4107f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407f90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a685
add esp, 0x2c
pop edi
jmp 0x4090b9
lea eax, [ebp + 8]
lea esi, [esi + 0x4107f4]
push 0
push eax
push dword [esi]
call fcn.00409760
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000fbe6
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x1000fc08
mov eax, 0xfffffffd
jmp 0x1000fc80
mov ebx, dword [0x10116a10]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1000fc4e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x10116a10]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000fc76
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000fc80
mov esp, ebp
pop ebp
ret 4
Function at 0x1005472c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret

Function at 0x10058970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d0550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100c5477
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1005ac10
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100589c4
jmp dword [ecx*4 + 0x10058b2c]
mov al, byte [esi]
test al, al
je 0x100589f2
cmp al, 0x20
je 0x100589de
cmp al, 0xa1
jne 0x100589f2
cmp byte [esi + 1], al
jne 0x100589f2
test al, 0x80
je 0x100589ea
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100589f2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100589d1
test ecx, ecx
je case.default.0x100589c4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100589c4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10058a38
cmp dl, 0xa1
jne 0x10058a2c
cmp byte [eax + 1], 0xa1
jne 0x10058a2c
test ecx, ecx
jne 0x10058a24
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10058a4c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10058a66
jmp 0x10058a4c
cmp dl, 0x20
jne 0x10058a4a
test ecx, ecx
jne 0x10058a43
mov edi, eax
mov ecx, 1
jmp 0x10058a4c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10058a0c
cmp ecx, 1
jne case.default.0x100589c4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100589c4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100589c4
mov al, byte [esi]
test al, al
je 0x10058abe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10058aa4
mov cl, byte [esi + 1]
test cl, cl
je 0x10058abe
cmp al, 0xa1
jne 0x10058a94
cmp cl, al
je 0x10058aa1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1005aee0
inc esi
jmp 0x10058ab6
cmp al, 0x20
je 0x10058ab6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1005af20
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10058a7d
push 0
lea ecx, [esp + 0x14]
call fcn.1005af20
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006fb80
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10058af1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100f1820
call fcn.1005ae10
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100c5409
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10059af0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x10104284
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10059ab0
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10059b9a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x10059bfb
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10059b7c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x10059b84
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.100b4f70
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x10059bef
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x10059bcd
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x10065840
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d10bb
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.100c517e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100658c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100c2e2d
mov eax, dword [eax]
push 0x10104290
push eax
call fcn.100b4784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100c5409
test bl, bl
je 0x100658c2
push 0x10104290
lea ecx, [esp + 0xc]
call fcn.100c5799
push 0x10107e28
lea ecx, [esp + 0xc]
call fcn.100c5799
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 0x100658fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100c5409
jmp 0x100659c9
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 0x10065982
lea edx, [esp + 0x7c]
push 0x10107e24
push edx
call fcn.100b4784
add esp, 8
test eax, eax
je 0x10065982
lea eax, [esp + 0x7c]
push 0x10107e20
push eax
call fcn.100b4784
add esp, 8
test eax, eax
je 0x10065982
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 0x10065912
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.100c5409
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 0x100661e0
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 0x10066242
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 0x10066250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d113b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1011292c]
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 0x10066388
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100662b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c5409
xor eax, eax
jmp 0x100663ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100c5546
push esi
lea ecx, [esp + 0xc]
call fcn.100c57d5
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 0x100663dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.100661e0
test eax, eax
jne 0x100663dd
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.100661e0
test eax, eax
jne 0x100663dd
lea eax, [esp + 0x14]
push 0x10107e3c
push eax
call fcn.100b5800
mov esi, eax
add esp, 8
test esi, esi
jne 0x100663bc
lea ecx, [esp + 0x14]
push 0x10107e38
push ecx
call fcn.100b5780
mov esi, eax
add esp, 8
test esi, esi
jne 0x100663bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100663bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100c54f6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100662ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c5409
xor eax, eax
jmp 0x100663ff
mov byte [esi], 0
push 0x10107e34
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.100c5409
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 0x1007b7b0
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 0x1007b81e
cmp si, 0x69
ja 0x1007b81e
add esi, 0xffd0
cmp si, 0x11
je 0x1007b7ee
push 0x11
call edi
test ax, ax
jge 0x1007b7ee
or esi, 0x2000
cmp si, 0x10
je 0x1007b803
push 0x10
call edi
test ax, ax
jge 0x1007b803
or esi, 0x4000
cmp si, 0x12
je 0x1007b818
push 0x12
call edi
test ax, ax
jge 0x1007b818
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1007b82b
mov esi, 0xbd
jmp 0x1007b7df
cmp si, 0x6e
jne 0x1007b838
mov esi, 0xbe
jmp 0x1007b7df
cmp si, 0x6f
jne 0x1007b7d9
mov esi, 0xbf
jmp 0x1007b7df

Function at 0x1007cf50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10123558]
xor edx, edx
cmp eax, edx
jne 0x1007cf76
xor eax, eax
mov byte [eax + 0x10123458], al
inc eax
cmp eax, 0x100
jl 0x1007cf5e
mov dword [0x10123558], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10123458
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1007d007
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 0x1007cfda
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 0x1007cfa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1007d080
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 0x1007d0d3
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 0x1007d0ba
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