joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551640
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x264]
call fcn.004185a0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.0050d5d0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x24c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, 0x5c
mov word [ebp - 0x44], dx
mov eax, 0x48
mov word [ebp - 0x42], ax
mov ecx, 0x61
mov word [ebp - 0x40], cx
mov edx, 0x6f
mov word [ebp - 0x3e], dx
mov eax, 0x5a
mov word [ebp - 0x3c], ax
mov ecx, 0x69
mov word [ebp - 0x3a], cx
mov edx, 0x70
mov word [ebp - 0x38], dx
mov eax, 0x5c
mov word [ebp - 0x36], ax
mov ecx, 0x48
mov word [ebp - 0x34], cx
mov edx, 0x61
mov word [ebp - 0x32], dx
mov eax, 0x6f
mov word [ebp - 0x30], ax
mov ecx, 0x5a
mov word [ebp - 0x2e], cx
mov edx, 0x69
mov word [ebp - 0x2c], dx
mov eax, 0x70
mov word [ebp - 0x2a], ax
mov ecx, 0x44
mov word [ebp - 0x28], cx
mov edx, 0x69
mov word [ebp - 0x26], dx
mov eax, 0x73
mov word [ebp - 0x24], ax
mov ecx, 0x70
mov word [ebp - 0x22], cx
mov edx, 0x6c
mov word [ebp - 0x20], dx
mov eax, 0x61
mov word [ebp - 0x1e], ax
mov ecx, 0x79
mov word [ebp - 0x1c], cx
mov edx, 0x2e
mov word [ebp - 0x1a], dx
mov eax, 0x64
mov word [ebp - 0x18], ax
mov ecx, 0x61
mov word [ebp - 0x16], cx
mov edx, 0x74
mov word [ebp - 0x14], dx
xor eax, eax
mov word [ebp - 0x12], ax
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x294]
call fcn.00418560
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.0041eae0
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x264]
call fcn.004184e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
call fcn.004184d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.004184d0
lea edx, [ebp - 0x264]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418520
mov eax, dword [ebp - 0x298]
or eax, 1
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call fcn.004184d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret
Function at 0x5081d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516b0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x230]
call fcn.004185a0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0050d5d0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x260]
call fcn.00418560
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 2
push str.2345SoftMgrconfigpushnotifyhistory
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.0041eae0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004184e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.004184d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.004184d0
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418520
mov eax, dword [ebp - 0x264]
or eax, 1
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004184d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret

Function at 0x508320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516b0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x230]
call fcn.004185a0
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0050d5d0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x260]
call fcn.00418560
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 2
push str.2345Pic2345PicDisplay.dat
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.0041eae0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004184e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.004184d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.004184d0
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418520
mov eax, dword [ebp - 0x264]
or eax, 1
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004184d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret
Function at 0x522fea
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00522caa
Function at 0x52cc90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x52ccde
xor al, al
jmp 0x52cd37
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x52cd10
cmp dword [ebp - 0x418], 0
je 0x52cd0c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x52cd37
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00418470
cmp dword [ebp - 0x418], 0
je 0x52cd35
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret

Function at 0x52cf80
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x5928f4], 0
jne 0x52d002
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52cfe3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5928e4
call fcn.00418830
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0050b0b7
add esp, 0x214
ret
Function at 0x52d0b0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x5520a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x595500]
test eax, eax
jle 0x52d101
inc eax
mov dword [0x595500], eax
mov al, 1
jmp 0x52d1f3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.00431b50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00432a00
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00431bd0
test bl, bl
je 0x52d1e3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52d1e3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x52d1dc
inc dword [0x595500]
mov eax, dword [edi]
test eax, eax
je 0x52d186
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x59290c], 0
mov dword [ebp - 0x10], 0
jne 0x52d1dc
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x5928fc
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.00418470
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x52d1f1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x65742ce0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x98
mov ebx, dword [ecx]
test byte [0x65746018], 8
jne 0x65742e00
mov ecx, 0x16
lea edi, [ebp - 0x70]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x65742dba
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x7c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x65742e2d
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edx
mov dword [ebp - 0x60], esi
sub esp, 0x18
lea eax, [ebp - 0x70]
mov dword [esp], eax
call sym.cryptdlg.dll_CertViewPropertiesW
sub esp, 4
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.CertViewPropertiesA
mov dword [esp + 4], 0x65746018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65742d06
xor ebx, ebx
jmp 0x65742dee
Function at 0x65743130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x6c]
xor esi, esi
push ebx
mov edi, edx
lea ebx, [ebp - 0x7c]
push ecx
mov ecx, 0x12
sub esp, 0xa8
mov dword [ebp - 0x80], 0xea879397
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x7801ebd0
mov dword [ebp - 0x88], 0x11d0cf4b
mov dword [ebp - 0x84], 0x60001f85
mov dword [ebp - 0x7c], 0x64
mov dword [ebp - 0x78], 0xc
mov dword [ebp - 0x74], 0x6574614c
mov dword [ebp - 0x70], 0x65746120
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x50], str.wintrust.dll
mov dword [ebp - 0x4c], str.WintrustCertificateTrust
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], 0x6574614c
mov dword [ebp - 0x40], 0x65746060
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], 0x6574614c
mov dword [ebp - 0x34], 0x657460e0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0x6574614c
mov dword [ebp - 0x1c], 0x657460a0
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._WintrustAddActionID_12
sub esp, 0xc
test eax, eax
jne 0x65743219
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov ebx, dword [sym.imp.crypt32.dll_CryptRegisterOIDFunction]
mov dword [esp + 0x10], str.EncodeAttrSequence
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.1.3.6.1.4.1.311.16.1.1
mov dword [esp + 4], str.CryptDllEncodeObject
mov dword [esp], 1
call ebx
sub esp, 0x14
mov dword [esp + 0x10], str.EncodeRecipientID
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.1.3.6.1.4.1.311.16.4
mov dword [esp + 4], str.CryptDllEncodeObject
mov dword [esp], 1
call ebx
sub esp, 0x14
mov dword [esp + 0x10], str.DecodeAttrSequence
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.1.3.6.1.4.1.311.16.1.1
mov dword [esp + 4], str.CryptDllDecodeObject
mov dword [esp], 1
call ebx
sub esp, 0x14
mov dword [esp + 0x10], str.DecodeRecipientID
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.1.3.6.1.4.1.311.16.4
mov dword [esp + 4], str.CryptDllDecodeObject
mov dword [esp], 1
call ebx
sub esp, 0x14
mov dword [esp + 0x10], str.FormatPKIXEmailProtection
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.1.3.6.1.5.5.7.3.4
mov dword [esp + 4], str.CryptDllFormatObject
mov dword [esp], 1
call ebx
sub esp, 0x14
mov dword [esp + 0x10], str.FormatVerisignExtension
mov dword [esp + 0xc], str.cryptdlg.dll
mov dword [esp + 8], str.2.5.29.32
mov dword [esp + 4], str.CryptDllFormatObject
mov dword [esp], 1
call ebx
mov eax, esi
sub esp, 0x14
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x65745390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x657453eb
cmp byte [esi + ebx - 1], 0xa
je 0x657453bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x65746218], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x409520
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4387fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov ecx, dword [0x449fb4]
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.0040be50
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x128], edi
call dword [edx + 4]
mov edx, dword [esp + 0x12c]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
push esi
call fcn.00409400
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edi
mov dword [esp + 8], 0x43b2e8
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x4095a8
push eax
call fcn.0041b6a9
add esp, 4
cmp esi, edi
jbe 0x4095bf
cmp esi, 0x104
jae 0x4095bf
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x40a990
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4389a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0xc], 0
call fcn.0040a980
mov ebx, eax
test ebx, ebx
jne 0x40a9e8
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00401b80
mov dword [esi], 0x43b30c
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x24]
call fcn.00404ec0
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 0x43b31c
call fcn.004019a0
mov dword [esp + 0x1c], 0x43b30c
mov edi, dword [esp + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push edi
push ebx
mov dword [esp + 0x4c], 2
call ebp
mov esi, eax
test esi, esi
jne 0x40aa9e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push edi
push ebx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
test esi, esi
mov esi, dword [esp + 0x34]
push 0
push 0
mov ecx, esi
jne 0x40ab03
call fcn.00404ec0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 3
mov dword [esi], 0x43b31c
call fcn.004019a0
mov dword [esi], 0x43b30c
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43b2e8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 4
call fcn.00401ec0
test eax, eax
je 0x40ab68
jmp 0x40ab5f
call fcn.00404ec0
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x2c], 5
mov dword [esi], 0x43b31c
je 0x40ab2b
cmp byte [ecx], 0
je 0x40ab2b
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x40ab22
push eax
push ecx
mov ecx, esi
call fcn.004019a0
mov dword [esi], 0x43b30c
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43b2e8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
call fcn.00401ec0
test eax, eax
je 0x40ab68
push eax
call fcn.0041b6a9
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40ab80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x40abb7
call fcn.0040a980
mov esi, eax
test esi, esi
jne 0x40ab98
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
call fcn.0040a980
mov esi, eax
test esi, esi
jne 0x40abc5
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
Function at 0x40b190
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0x10000
push edi
push ebx
push ebp
push 0
mov dword [esp + 0x28], 0
call fcn.0041d922
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40b1de
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
push ebp
push eax
call fcn.0041d922
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40b204
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40c800
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
cmp eax, 1
push ebp
mov ebp, ecx
jge 0x40c834
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x1c], str.Key_Length_should_be_at_least_1
call fcn.0041daaa
lea ecx, [esp + 4]
push 0x440bd8
push ecx
call fcn.0041db99
push ebx
push esi
xor ecx, ecx
push edi
xor eax, eax
lea ebx, [ebp + 1]
mov byte [ebx + eax], al
inc eax
cmp eax, 0x100
jl 0x40c83e
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
mov byte [ebp + 0x201], cl
mov byte [ebp + 0x202], cl
mov ecx, ebx
sub edi, ebp
xor edx, edx
mov dword [ebp + 0x204], ecx
mov dl, byte [ebp + 0x201]
mov al, byte [edx + esi]
mov dl, byte [ecx]
add al, dl
mov dl, byte [ebp + 0x202]
add dl, al
mov al, dl
mov byte [ebp + 0x202], dl
and eax, 0xff
lea edx, [eax + ebp + 1]
mov dword [ebp + 0x208], edx
mov al, byte [ecx]
mov byte [ebp + 0x20c], al
mov al, byte [edx]
mov byte [ecx], al
mov edx, dword [ebp + 0x208]
mov al, byte [ebp + 0x20c]
mov byte [edx], al
xor eax, eax
mov al, byte [ebp + 0x201]
inc eax
cdq
idiv dword [esp + 0x24]
inc ecx
mov byte [ebp + 0x201], dl
lea edx, [edi + ecx]
cmp edx, 0x100
jl 0x40c860
lea edi, [ebp + 0x101]
mov ecx, 0x40
mov esi, ebx
xor al, al
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov byte [ebp + 0x201], al
mov byte [ebp + 0x202], al
mov byte [ebp], 1
pop ebx
pop ebp
add esp, 0xc
ret 8

Function at 0x40cc20
Capabilities:
Hash data using sha256

Disassembly:
mov edx, 0x43b48c
push esi
push edi
mov eax, ecx
sub edx, ecx
mov esi, 8
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x40cc30
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x40faf0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x18
call fcn.0041c812
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x40fb37
push edi
push edi
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esi], 0x43b4ac
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
jmp 0x40fb39
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push edi
push 0x40f700
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.0041dbd3
mov eax, dword [esi + 4]
add esp, 0xc
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret