joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040f0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00413be0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x498698]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x49869c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004040e0
mov ecx, dword [0x4986a0]
mov edx, dword [0x4986a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404160
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x49fe24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40418c
mov dword [0x49fe20], 0xedeb2e40
jmp 0x4041a7
cmp eax, 0x3eb
jne 0x4041a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x49f8b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49fe24], 0x9e6
mov dword [0x49fe1c], 0xf4ea3dee
jne 0x4041e2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49fe24], 0x213
jne 0x404284
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub edi, dword [ebp - 4]
cmp dword [0x49fe24], 0xc
jne 0x404298
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4088b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4975b0]
jne 0x4088c0
repz ret
jmp fcn.0040d1c5

Function at 0x40c9fe
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.004082c2
and dword [ebp - 4], 0
cmp dword [0x49d89c], 0
mov ebx, eax
jne 0x40caaf
push 0x40355c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cb60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403550
push edi
call esi
test eax, eax
je 0x40cb60
push eax
call fcn.00408250
mov dword [esp], 0x403540
push edi
mov dword [0x49d89c], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x40352c
push edi
mov dword [0x49d8a0], eax
call esi
push eax
call fcn.00408250
mov dword [esp], 0x403510
push edi
mov dword [0x49d8a4], eax
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x49d8ac], eax
test eax, eax
je 0x40caaf
push 0x4034f8
push edi
call esi
push eax
call fcn.00408250
pop ecx
mov dword [0x49d8a8], eax
mov eax, dword [0x49d8a8]
cmp eax, ebx
je 0x40cb07
cmp dword [0x49d8ac], ebx
je 0x40cb07
push eax
call fcn.004082cb
push dword [0x49d8ac]
mov esi, eax
call fcn.004082cb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cb07
test edi, edi
je 0x40cb07
call esi
test eax, eax
je 0x40cafe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cafe
test byte [ebp - 0xc], 1
jne 0x40cb07
or dword [ebp + 0x10], 0x200000
jmp 0x40cb40
mov eax, dword [0x49d8a0]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb40
mov eax, dword [0x49d8a4]
cmp eax, ebx
je 0x40cb40
push eax
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d89c]
call fcn.004082cb
pop ecx
test eax, eax
je 0x40cb60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cb62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x404f80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00406f60
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407830
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
je 0x404fb4
push 1
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or eax, 0xffffffff
lea edx, [esi - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404fcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4072a9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4072e6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4072e2
nop word [eax + eax]
cmp esi, edx
jae 0x4072e6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4072d0
cmp esi, edx
jb 0x4072ed
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4095e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610b38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6b1a94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0046ca40
push eax
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.00407890
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409641
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409659
mov ecx, dword [edi + 4]
lea edx, [edi + 8]
call fcn.00478b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f6c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611388
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040e300
push str._Debug__Start_ScanDll._n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Start_ScanDll
call fcn.0047c620
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov dword [esi + 0x5c], 1
push 1
call dword [eax + 0xc]
mov ecx, dword [esi + 0x54]
push 0
call fcn.0043ccc0
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x5c]
call dword [eax + 0x10]
call fcn.0040e300
mov ebx, dword [eax + 0x54]
lea esi, [ebx + 4]
push esi
call fcn.005c69ac
add esp, 4
test eax, eax
je 0x40f74f
push eax
call fcn.005c618a
add esp, 4
mov edi, dword [ebx + 0x58]
sub edi, dword [ebx + 0x54]
push esi
mov dword [ebp - 4], 0
call fcn.005c69d1
add esp, 4
test eax, eax
je 0x40f772
push eax
call fcn.005c618a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, 4
jae 0x40f788
mov eax, 8
jmp 0x40f833
mov eax, dword [0x6c272c]
test eax, eax
jne 0x40f7bb
push 0x120
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040f360
mov dword [ebp - 4], 0xffffffff
mov dword [0x6c272c], eax
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f811
mov ecx, dword [0x6c272c]
lea edx, [ebp - 0x20]
sub esp, 8
mov eax, esp
push 0x88
push SysReAllocStringLen
push 0
mov dword [eax], 0
movups xmm0, xmmword [ecx + 0x7c]
push ecx
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], edx
call fcn.00495b10
mov ecx, dword [0x6c272c]
push 5
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
jmp 0x40f816
mov ebx, 8
mov ecx, dword [0x6c272c]
test ecx, ecx
je 0x40f827
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [0x6c272c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
Function at 0x40ffc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611454
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
cmp dword [0x6c2730], 0
jne 0x4100e4
push 0x120
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040fdc0
mov dword [ebp - 4], 0xffffffff
push 0xe8
mov dword [0x6c2730], eax
mov dword [eax + 0xe4], 1
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00499b50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push 0x6766d4
mov ecx, esi
call fcn.0049a720
movaps xmm0, xmmword [0x687cb0]
movups xmmword [esi + 0x6c], xmm0
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x58], 2
cmp dword [esi + 0x74], eax
jge 0x410082
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
cmp dword [esi + 0x78], eax
jge 0x41008d
mov dword [esi + 0x78], eax
mov edi, dword [0x6c2730]
cmp dword [edi + 0xe8], esi
je 0x4100b7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0xe8]
mov dword [edi + 0xe8], esi
test eax, eax
je 0x4100b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [0x6c2730]
push dword [esi + 0x38]
mov dword [esi + 0xbc], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4100e1
push 0
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, dword [ebp - 0x28]
mov eax, dword [0x6c2730]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x410129
mov ecx, dword [0x6c2730]
lea edx, [ebp - 0x20]
sub esp, 8
mov eax, esp
push 0
push SysReAllocStringLen
push str._u7b
mov dword [eax], 0
movups xmm0, xmmword [ecx + 0x7c]
push ecx
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push esi
mov dword [eax], edx
call fcn.00495b10
mov eax, dword [0x6c2730]
push 1
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x6c2730]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
Function at 0x410c00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611388
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040e300
push str._Debug__Start_ScanDll._n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Start_ScanDll
call fcn.0047c620
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov dword [esi + 0x5c], 1
push 1
call dword [eax + 0xc]
mov ecx, dword [esi + 0x54]
push 0
call fcn.0043ccc0
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x5c]
call dword [eax + 0x10]
call fcn.0040e300
mov ebx, dword [eax + 0x54]
lea esi, [ebx + 4]
push esi
call fcn.005c69ac
add esp, 4
test eax, eax
je 0x410c8f
push eax
call fcn.005c618a
add esp, 4
mov edi, dword [ebx + 0x58]
sub edi, dword [ebx + 0x54]
push esi
mov dword [ebp - 4], 0
call fcn.005c69d1
add esp, 4
test eax, eax
je 0x410cb2
push eax
call fcn.005c618a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, 4
jae 0x410cc8
mov eax, 8
jmp 0x410d73
mov eax, dword [0x6c2734]
test eax, eax
jne 0x410cfb
push 0x120
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00410940
mov dword [ebp - 4], 0xffffffff
mov dword [0x6c2734], eax
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x410d51
mov ecx, dword [0x6c2734]
lea edx, [ebp - 0x20]
sub esp, 8
mov eax, esp
push 0x88
push SysReAllocStringLen
push 0
mov dword [eax], 0
movups xmm0, xmmword [ecx + 0x7c]
push ecx
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], edx
call fcn.00495b10
mov ecx, dword [0x6c2734]
push 5
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
jmp 0x410d56
mov ebx, 8
mov ecx, dword [0x6c2734]
test ecx, ecx
je 0x410d67
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [0x6c2734], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
Function at 0x411530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611388
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040e300
push str._Debug__Start_ScanDll._n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Start_ScanDll
call fcn.0047c620
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov dword [esi + 0x5c], 1
push 1
call dword [eax + 0xc]
mov ecx, dword [esi + 0x54]
push 0
call fcn.0043ccc0
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x5c]
call dword [eax + 0x10]
call fcn.0040e300
mov ebx, dword [eax + 0x54]
lea esi, [ebx + 4]
push esi
call fcn.005c69ac
add esp, 4
test eax, eax
je 0x4115bf
push eax
call fcn.005c618a
add esp, 4
mov edi, dword [ebx + 0x58]
sub edi, dword [ebx + 0x54]
push esi
mov dword [ebp - 4], 0
call fcn.005c69d1
add esp, 4
test eax, eax
je 0x4115e2
push eax
call fcn.005c618a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, 4
jae 0x4115f8
mov eax, 8
jmp 0x4116a3
mov eax, dword [0x6c2738]
test eax, eax
jne 0x41162b
push 0x120
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00411270
mov dword [ebp - 4], 0xffffffff
mov dword [0x6c2738], eax
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x411681
mov ecx, dword [0x6c2738]
lea edx, [ebp - 0x20]
sub esp, 8
mov eax, esp
push 0x88
push SysReAllocStringLen
push 0
mov dword [eax], 0
movups xmm0, xmmword [ecx + 0x7c]
push ecx
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], edx
call fcn.00495b10
mov ecx, dword [0x6c2738]
push 5
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
jmp 0x411686
mov ebx, 8
mov ecx, dword [0x6c2738]
test ecx, ecx
je 0x411697
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [0x6c2738], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret
Function at 0x412c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610452
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6b1a94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 8
call fcn.0040e300
push str._Debug__Start_ScanGarbage._n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Start_ScanGarbage
call fcn.0047c620
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov dword [esi + 0x5c], 5
push 5
call dword [eax + 0xc]
mov ecx, dword [esi + 0x50]
call fcn.0043ee20
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x5c]
call dword [eax + 0x10]
call fcn.0040e300
mov ecx, dword [eax + 0x50]
call fcn.0043f460
test edx, edx
ja 0x412d22
jb 0x412dc4
cmp eax, 0x40000000
jb 0x412dc4
mov eax, dword [0x6c273c]
test eax, eax
jne 0x412d55
push 0x120
call fcn.005c92a6
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
mov dword [0x6c273c], eax
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x412da9
mov ecx, dword [0x6c273c]
lea edx, [ebp - 0x20]
sub esp, 8
mov eax, esp
push 0x88
push SysReAllocStringLen
push 0
mov dword [eax], 0
movups xmm0, xmmword [ecx + 0x7c]
push ecx
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], edx
call fcn.00495b10
mov ecx, dword [0x6c273c]
push 5
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov edi, eax
mov ecx, dword [0x6c273c]
test ecx, ecx
je 0x412dba
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [0x6c273c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8db3
mov esp, ebp
pop ebp
ret

Function at 0x4167c0
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
push 0x6c53a8
mov dword [0x6c53a8], 0
mov dword [0x6c53ac], 0
mov dword [0x6c53b0], 0
call esi
test eax, eax
jne 0x41681d
push 8
push 1
push eax
push eax
push 0x6c53a8
call esi
test eax, eax
jne 0x41681d
push 0xf0000000
push 1
push eax
push eax
push 0x6c53a8
call esi
test eax, eax
je 0x416837
push 0x6c53b0
push 0
push 0
push 0x8003
push dword [0x6c53a8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, 0x6c53a8
pop esi
ret
Function at 0x4168a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x416926
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
je 0x416926
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push 0
push 0
push 0x8003
push dword [esi]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x416926
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
test eax, eax
je 0x4168f1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x416926
push ebx
push 1
push dword [edi]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x416926
mov esi, 1
jmp 0x416928
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x416943
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x416b30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax + 4]
mov dword [ebp - 8], ecx
test edx, edx
je 0x416b5a
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x416b5c
push edx
call fcn.005eba38
add esp, 4
mov ebx, eax
jmp 0x416b5c
xor ebx, ebx
lea esi, [ebx + ebx]
push esi
call fcn.005c93d3
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 4]
push edi
call fcn.005e2230
add esp, 0x10
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp - 8]
push edi
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x416bae
test edi, edi
je 0x416ba3
push edi
call fcn.005c93ce
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
je 0x416bcf
push eax
call fcn.005c93ce
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 4]
test eax, eax
je 0x416bf0
push eax
call fcn.005c93ce
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push ebx
call fcn.005c93d3
push ebx
push 0
push eax
mov dword [esi + 4], eax
call fcn.005e27b0
push dword [ebp - 4]
mov dword [esi + 8], ebx
push edi
push dword [esi + 4]
call fcn.005e2230
add esp, 0x1c
test edi, edi
je 0x416c21
push edi
call fcn.005c93ce
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416c30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x416c58
mov esi, dword [ebx + 8]
test esi, esi
jne 0x416c5a
push eax
call fcn.005eba38
add esp, 4
mov esi, eax
jmp 0x416c5a
xor esi, esi
lea eax, [esi + esi]
push eax
call fcn.005c93d3
push esi
push dword [ebx + 4]
mov edi, eax
push edi
call fcn.005e2230
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push edi
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x416ca8
test edi, edi
je 0x416c9d
push edi
call fcn.005c93ce
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
je 0x416cc9
push eax
call fcn.005c93ce
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x416cea
push eax
call fcn.005c93ce
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push ebx
call fcn.005c93d3
push ebx
push 0
push eax
mov dword [esi + 4], eax
call fcn.005e27b0
push dword [ebp + 8]
mov dword [esi + 8], ebx
push edi
push dword [esi + 4]
call fcn.005e2230
add esp, 0x1c
test edi, edi
je 0x416d1b
push edi
call fcn.005c93ce
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8