joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035de
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x403680
cmp byte [esi + 0x20], 0
jne 0x403680
cmp dword [edi + 4], 0x100
jne 0x403642
cmp dword [edi + 8], 0x54
jne 0x40361d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40361d
mov ecx, esi
call fcn.0040490d
push dword [0x43f500]
mov ecx, esi
call fcn.00403558
test eax, eax
je 0x403680
test byte [eax + 0x7d], 0x80
je 0x403680
mov ecx, dword [esi + 0x404]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x403682
cmp dword [edi + 4], 0x104
jne 0x40361d
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40361d
mov eax, dword [edi + 8]
sub eax, 0x24
je 0x403673
sub eax, 1
je 0x40366f
dec eax
sub eax, 1
jne 0x40361d
push 2
jmp 0x403675
push 1
jmp 0x403675
push 6
mov ecx, esi
call fcn.004026d7
mov al, 1
jmp 0x403682
xor al, al
pop edi
pop esi
pop ebp
ret 4

Function at 0x404832
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0xcc]
call fcn.0040ef47
test eax, eax
je 0x404908
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x404904
cmp dword [ebp - 4], 4
jl 0x404904
mov eax, dword [edi + 4]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
push 1
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
push str.TEMPLATEHELP
push eax
mov dword [ebp - 0x10], eax
call sub.Mso30Win32Client.dll_Ordinal_799
cmp dword [ebp - 4], 5
mov ebx, eax
jl 0x4048a2
cmp dword [edi + 0x10], 0
jne 0x4048b1
test ebx, ebx
je 0x4048b1
push 0
mov ecx, esi
call fcn.00403f3c
jmp 0x404903
cmp dword [ebp - 4], 5
jl 0x404903
push dword [ebp - 8]
mov edi, dword [edi + 0x10]
push dword [ebp - 0xc]
call sub.Mso99LWin32Client.dll_Ordinal_1526
test ebx, ebx
je 0x4048e4
call fcn.004034e0
cmp eax, 2
je 0x4048dc
push 3
mov ecx, 0x442228
jmp 0x4048aa
push edi
call sub.Mso99LWin32Client.dll_Ordinal_1159
jmp 0x4048fd
push 1
push 0x42f76c
push dword [ebp - 0x10]
call sub.Mso30Win32Client.dll_Ordinal_799
test eax, eax
je 0x404903
push edi
call sub.Mso99LWin32Client.dll_Ordinal_2393
mov dword [esi + 0xac], eax
pop ebx
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4063fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x42cee4
call fcn.0042b99e
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x406479
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x406479
call fcn.0040574b
mov esi, eax
jmp 0x406550
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40649c
call fcn.0040574b
jmp 0x406543
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x406492
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4064cc
mov esi, 0x8007000e
jmp 0x406545
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004054fb
jmp 0x4064f2
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4064c5
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406492
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.004061d1
mov esi, eax
test edi, edi
je 0x406550
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406569
lea ecx, [ebp - 0x418]
call fcn.004059f3
lea ecx, [ebp - 0x428]
call fcn.00404dfa
mov eax, esi
call fcn.0042b8ef
ret 0x10
Function at 0x406d39
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x406d4c
push 0xd
pop eax
jmp 0x406d90
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x406d5f
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x406d57
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406d97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406da9
push 0xd
pop eax
jmp 0x406ddb
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x406db2
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40791e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 4]
mov ebx, eax
cmp edx, 3
jge 0x40794f
mov dword [0x442244], 5
xor eax, eax
jmp 0x4079b8
push esi
xor esi, esi
mov ecx, esi
test edx, edx
jle 0x407965
mov eax, dword [ebx + ecx*4]
cmp word [eax], si
je 0x4079be
inc ecx
cmp ecx, edx
jl 0x407958
push 0x104
lea esi, [edi + 0x410]
push esi
push dword [ebx + 4]
call fcn.00401be8
push esi
call sub.Mso30Win32Client.dll_Ordinal_1197
mov esi, 0x104
push esi
push edi
push dword [ebx + 8]
call fcn.00401be8
push esi
lea eax, [edi + 0x208]
mov ecx, edi
push eax
push edi
call fcn.004078a7
cmp dword [ebp - 4], 4
jl 0x4079b4
push esi
lea eax, [edi + 0x1660]
push eax
push dword [ebx + 0xc]
call fcn.00401be8
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4079b7
Function at 0x407e7b
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [ecx + 0x618]
xor eax, eax
push edi
cmp ax, word [esi]
jne 0x407f0e
lea eax, [ebp - 0x82c]
mov ebx, 0x824
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], ebx
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
js 0x407f02
lea ecx, [ebp - 0x828]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407ecb
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x407f02
lea eax, [edi + edi]
call fcn.0042be4b
mov eax, esp
lea ecx, [ebp - 0x828]
push 3
push edi
push ecx
push eax
call fcn.0040783e
test eax, eax
je 0x407f02
push ebx
push esi
push eax
jmp 0x407f09
push ebx
push esi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call fcn.00401be8
mov eax, esi
lea esp, [ebp - 0x838]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b23a
mov esp, ebp
pop ebp
ret

Function at 0x409817
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 1
xor edi, edi
mov word [ebp - 4], 0xfeff
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call sub.Mso20Win32Client.dll_Ordinal_1196
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40984d
xor al, al
jmp 0x40987f
push edi
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409877
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a86a
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24b0
call fcn.0042be1e
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x24ac], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x24b0], eax
lea eax, [ebp - 0x414]
push esi
push eax
mov dword [ebp - 0x24a8], edi
call sub.VCRUNTIME140.dll_memset
push 0x1048
lea eax, [ebp - 0x24a4]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
test edi, edi
jne 0x40a8d5
xor al, al
jmp 0x40aa2f
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
cmp dword [ebx + 0x414], 1
mov edi, 0x104
push edi
push eax
jne 0x40a914
mov ecx, dword [0x4422d0]
call fcn.00407d3a
test eax, eax
jne 0x40a920
jmp 0x40aa23
lea eax, [ebx + 0x20a]
push eax
call fcn.00401be8
call fcn.00407876
push eax
lea eax, [ebx + 0x20a]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call sub.Mso99LWin32Client.dll_Ordinal_1724
test eax, eax
je 0x40aa23
push dword [ebp - 0x24a8]
lea eax, [ebp - 0x414]
push eax
push str._s_content__s
lea eax, [ebp - 0x24a4]
push 0xffffffffffffffff
push eax
call fcn.00408316
add esp, 0x14
test eax, eax
jle 0x40aa23
mov eax, dword [ebp - 0x24ac]
test eax, eax
je 0x40a987
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x24a4]
push eax
call fcn.00401be8
mov ecx, ebx
call fcn.0040be61
mov edi, eax
test edi, edi
je 0x40a8ce
push 0x1048
lea eax, [ebp - 0x145c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x145c]
mov ebx, 0x824
push ebx
push eax
push edi
call fcn.00401be8
push ebx
lea eax, [ebp - 0x145c]
push eax
push 0x431214
call sub.Mso20Win32Client.dll_Ordinal_1304
push ebx
lea eax, [ebp - 0x145c]
push eax
push dword [ebp - 0x24a8]
call sub.Mso20Win32Client.dll_Ordinal_1304
mov eax, dword [ebp - 0x24b0]
test eax, eax
je 0x40a9ff
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x145c]
push eax
call fcn.00401be8
push esi
push esi
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0x24a4]
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x40aa28
mov dword [0x442244], 1
mov esi, 0x80004005
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b23a
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40b8bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x40b8ca
xor al, al
jmp 0x40b8f2
push dword [ebp + 0xc]
call fcn.0040140a
add eax, eax
jne 0x40b8da
mov al, 1
jmp 0x40b8f2
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8
Function at 0x40b8f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x40b90c
mov al, 1
jmp 0x40ba15
xor ecx, ecx
xor eax, eax
mov edx, esi
push ebx
push edi
cmp cx, word [esi]
je 0x40ba11
mov dword [ebp - 8], 0x22
movzx ecx, word [esi]
xor edi, edi
mov dword [ebp - 4], 0x26
xor ebx, ebx
cmp word [ebp - 4], cx
je 0x40b965
mov dword [ebp - 4], 0x3c
cmp word [ebp - 4], cx
je 0x40b965
mov dword [ebp - 4], 0x3e
cmp word [ebp - 4], cx
je 0x40b965
mov dword [ebp - 4], 0x27
cmp word [ebp - 4], cx
je 0x40b965
cmp word [ebp - 8], cx
jne 0x40b9e4
test eax, eax
je 0x40b982
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ba0d
movzx eax, word [esi]
push 0x22
pop ecx
sub eax, ecx
je 0x40b9c1
sub eax, 4
je 0x40b9b8
sub eax, 1
je 0x40b9b1
sub eax, 0x15
je 0x40b9aa
dec eax
sub eax, 1
jne 0x40b9c9
mov edi, str.gt_
push 8
jmp 0x40b9c8
mov edi, str.lt_
jmp 0x40b9a6
mov edi, str.apos_
jmp 0x40b9c6
mov edi, str.amp_
push 0xa
jmp 0x40b9c8
mov edi, str.quot_
push 0xc
pop ebx
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ba0d
push 0xfffffffffffffffe
pop eax
lea edx, [esi + 2]
add esi, 2
xor ecx, ecx
add eax, 2
cmp cx, word [esi]
jne 0x40b924
test eax, eax
je 0x40ba11
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ba11
xor al, al
jmp 0x40ba13
mov al, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40bd9a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.0042be1e
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1048
xor edi, edi
lea eax, [ebp - 0x104c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00408510
push edi
push str.CLViewServer12
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x40be51
push 0x824
lea eax, [ebp - 0x104c]
mov ecx, esi
push eax
call fcn.0040a1a1
test al, al
je 0x40be51
lea eax, [ebp - 0x104c]
mov ecx, esi
push eax
call fcn.0040bd6c
xor eax, eax
cmp ax, word [ebp - 0x104c]
je 0x40be51
push 7
pop ecx
lea edi, [ebp - 0x106c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x414
mov word [ebp - 0x105c], ax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x106c]
push eax
mov dword [ebp - 0x1068], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b23a
mov esp, ebp
pop ebp
ret
Function at 0x40be61
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0042be1e
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1048
xor ebx, ebx
lea eax, [ebp - 0x104c]
push ebx
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
lea esi, [edi + 0x622]
add esp, 0xc
cmp word [esi], bx
je 0x40bea6
mov eax, esi
jmp 0x40bf38
push 0x824
push esi
mov ecx, edi
call fcn.0040a1a1
test al, al
je 0x40bf33
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push esi
call edi
test eax, eax
jne 0x40bed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bf33
push 0x824
lea eax, [ebp - 0x104c]
push eax
push ebx
push 0x430ed0
push esi
call sub.Mso20Win32Client.dll_Ordinal_243
test eax, eax
setne al
test al, al
je 0x40bf33
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [ebp - 0x104c]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x40bf33
push 0x824
push esi
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
setne al
test al, al
jne 0x40be9f
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b23a
mov esp, ebp
pop ebp
ret

Function at 0x40c332
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40c2a5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c34f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x40da4e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.0042be1e
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x30e0], 0x824
call fcn.0040d546
test al, al
jne 0x40da84
xor al, al
jmp 0x40dbc7
lea eax, [ebp - 0x30e0]
push eax
lea eax, [ebp - 0x104c]
push eax
push str.open
push str..htm
push 1
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x40da7d
push esi
push edi
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
lea eax, [ebp - 0x104c]
push 0x25
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40db1b
push 0x31
lea eax, [esi + 2]
pop ecx
cmp cx, word [eax]
je 0x40dadd
push 0x25
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40dac5
test esi, esi
je 0x40db1b
xor eax, eax
mov edi, 0x1048
mov word [esi], ax
lea eax, [ebp - 0x30dc]
push edi
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.00401be8
push edi
lea eax, [ebp - 0x30dc]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_1304
push edi
lea eax, [ebp - 0x30dc]
push eax
lea eax, [esi + 4]
push eax
jmp 0x40db61
mov edi, 0x1048
lea eax, [ebp - 0x30dc]
push edi
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.00401be8
push edi
lea eax, [ebp - 0x30dc]
push eax
push 0x431e98
call sub.Mso20Win32Client.dll_Ordinal_1304
push edi
lea eax, [ebp - 0x30dc]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_1304
push edi
lea eax, [ebp - 0x30dc]
push eax
push 0x431ea0
call sub.Mso20Win32Client.dll_Ordinal_1304
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3134]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3134], esi
lea eax, [ebp - 0x30f0]
push eax
lea eax, [ebp - 0x3134]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x30dc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x40dbc3
push dword [ebp - 0x30ec]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30f0]
call esi
pop edi
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042b23a
mov esp, ebp
pop ebp
ret 4

Function at 0x40dc54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4422e8]
pop ebp
jmp fcn.0040b312

Function at 0x40eefb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
call fcn.0040f1f1
mov edi, eax
test edi, edi
jne 0x40ef14
mov esi, 0x80004003
jmp 0x40ef3a
push 4
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push 4
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
pop ebp
ret 8
Function at 0x40ef47
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x420]
xor esi, esi
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x40ef8b
mov esi, 0x80004005
jmp 0x40f046
mov ecx, dword [0x4422d0]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00407d3a
test eax, eax
jne 0x40efb0
mov esi, 0x80004003
jmp 0x40f046
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push str._d:_s
push 0xffffffffffffffff
push eax
call fcn.004082d4
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push dword [0x43f510]
call sub.Mso20Win32Client.dll_Ordinal_347
test eax, eax
jne 0x40ef81
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push 2
push 1
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ef81
mov ecx, 0x442228
call fcn.00403ab8
push 4
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push 3
push esi
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
cmp dword [ebp - 0x418], 0
je 0x40f05b
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x41c], 0
je 0x40f070
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
setns al
xor ecx, ebp
call fcn.0042b23a
mov esp, ebp
pop ebp
ret

Function at 0x40f3bd
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40f46b
mov ecx, dword [0x4422d0]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00407d3a
test eax, eax
je 0x40f456
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push str._d:_s
push 0xffffffffffffffff
push eax
call fcn.004082d4
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push dword [0x43f510]
call sub.Mso20Win32Client.dll_Ordinal_16
test eax, eax
jne 0x40f456
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x418], 0
je 0x40f46b
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b23a
mov esp, ebp
pop ebp
ret
Function at 0x4119e2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x411a22
cmp dword [esi + 4], 0x100
jne 0x411a22
cmp dword [esi + 8], 0x75
jne 0x411a00
xor eax, eax
jmp 0x411a25
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x411a22
mov eax, dword [esi + 8]
cmp eax, 9
je 0x4119fc
cmp eax, 0x4c
je 0x4119fc
add eax, 0xffffffb2
cmp eax, 1
jbe 0x4119fc
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x411b7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0042be1e
mov eax, dword [0x436c88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x2010], ebx
call fcn.00411b12
push 1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call sub.Mso20Win32Client.dll_Ordinal_1196
mov esi, eax
cmp esi, 0xffffffff
je 0x411cc7
push 0
lea eax, [ebp - 0x2008]
mov edi, 0x2000
push eax
push 0x1fff
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x411cc1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x411cc7
cmp eax, edi
jae 0x411ce3
mov byte [ebp + eax - 0x2004], 0
lea edi, [ebp - 0x2004]
mov al, byte [edi]
cmp al, 0xa
je 0x411cb6
cmp al, 0xd
je 0x411cb6
cmp al, 0xef
je 0x411cb6
cmp al, 0xbb
je 0x411cb6
cmp al, 0xbf
je 0x411cb6
test al, al
je 0x411cbc
mov esi, edi
cmp al, 0xd
je 0x411c63
test al, al
je 0x411c63
cmp dword [ebp + 0xc], 1
jne 0x411c59
cmp al, 0x3e
je 0x411c62
inc esi
mov al, byte [esi]
cmp al, 0xa
jne 0x411c47
jmp 0x411c63
inc esi
xor eax, eax
mov ebx, esi
cmp byte [esi], al
sete al
sub ebx, edi
inc ebx
mov dword [ebp - 0x2014], eax
push ebx
call fcn.004024d0
mov dword [ebp - 0x200c], eax
pop ecx
test eax, eax
je 0x411cbc
push ebx
push eax
push edi
call fcn.00411ce9
mov ebx, dword [ebp - 0x2010]
lea eax, [ebp - 0x200c]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_99
cmp eax, 0xffffffff
je 0x411cc7
cmp dword [ebp - 0x2014], 0
jne 0x411cbc
mov edi, esi
jmp 0x411c23
inc edi
jmp 0x411c23
xor eax, eax
inc eax
jmp 0x411cd0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00411b12
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b23a
mov esp, ebp
pop ebp
ret 8
call fcn.0042bb18
int3