joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 0x426a10
push 1
push 0
push 0x426a30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4044d4
jmp 0x4046db
lea ecx, [ebp - 0x10]
push ecx
push 0x426a20
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax]
call edx
test eax, eax
jge 0x4044f3
jmp 0x4046db
lea ecx, [ebp - 8]
call fcn.00405400
lea ecx, [ebp - 4]
call fcn.00405400
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.004129b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 4]
call fcn.00405510
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405f20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40457f
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x434]
push edx
lea ecx, [ebp - 4]
call fcn.00406360
push eax
lea ecx, [ebp - 8]
call fcn.004062d0
lea ecx, [ebp - 0x434]
call fcn.00405690
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066c0
jmp 0x40459b
lea ecx, [ebp - 0x228]
call fcn.00406b00
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066f0
push eax
lea ecx, [ebp - 0x228]
call fcn.00406b60
movzx edx, al
test edx, edx
je 0x4046af
push 2
lea ecx, [ebp - 0x228]
call fcn.00406a60
mov ecx, eax
call fcn.004032a0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x4046aa
xor ecx, ecx
mov word [ebp - 0x430], cx
push 0x206
push 0
lea edx, [ebp - 0x42e]
push edx
call fcn.004129b0
add esp, 0xc
push 2
push 0
push 0x104
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0xc]
call ecx
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 4]
call fcn.00405510
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405f20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4046aa
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 4]
call fcn.00406360
mov ecx, eax
call fcn.004032a0
push eax
lea ecx, [ebp - 8]
call fcn.00406040
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x43d], al
lea ecx, [ebp - 0x444]
call fcn.00405690
movzx edx, byte [ebp - 0x43d]
test edx, edx
je 0x4046aa
lea ecx, [ebp - 0x228]
call fcn.00406a60
mov ecx, eax
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404590
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 4]
call fcn.00405690
lea ecx, [ebp - 8]
call fcn.00405690
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x4259ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00405d60
push str.Del.bat
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.00406270
push eax
mov ecx, 0x42d4bc
call fcn.004062d0
lea ecx, [ebp - 0x438]
call fcn.00405690
mov ecx, 0x42d4bc
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea ecx, [ebp - 0x430]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00405d60
lea eax, [ebp - 0x21c]
push eax
call fcn.00404ea0
add esp, 4
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00405f90
push 0x5c
lea ecx, [ebp - 0x214]
call fcn.00405f20
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x40503e
lea ecx, [ebp - 0x214]
call fcn.00405e00
mov dword [ebp - 0x434], eax
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x214]
call fcn.00405e20
push str.cd_.._r_n:pp_r_ndel
lea ecx, [ebp - 0x218]
call fcn.00405d60
push str._r_nif_exist
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.00406270
push eax
lea ecx, [ebp - 0x218]
call fcn.00405fe0
lea ecx, [ebp - 0x43c]
call fcn.00405690
push str._goto_pp_r_nrd
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.00406270
push eax
lea ecx, [ebp - 0x218]
call fcn.00405fe0
lea ecx, [ebp - 0x440]
call fcn.00405690
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x218]
call fcn.00405fe0
push str._r_ndel__0
lea ecx, [ebp - 0x218]
call fcn.00406010
push 0x425a78
push 0
call fcn.00412ccc
add esp, 8
push str.at_ccsUNICODE
mov ecx, 0x42d4bc
call fcn.004032a0
push eax
call fcn.00412cb5
add esp, 8
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
call fcn.004032a0
push eax
call fcn.00412b43
add esp, 8
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00412ac7
add esp, 4
lea ecx, [ebp - 0x218]
call fcn.00405690
lea ecx, [ebp - 0x214]
call fcn.00405690
lea ecx, [ebp - 0x21c]
call fcn.00405690
lea ecx, [ebp - 0x224]
call fcn.00405690
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret
Function at 0x408b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 5], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004129b0
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x408da3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00405d60
push 0x426140
lea ecx, [ebp - 0x244]
call fcn.00406040
test eax, eax
jne 0x408d80
mov dword [ebp - 0x670], 0
push 0x424
push 0
lea ecx, [ebp - 0x66c]
push ecx
call fcn.004129b0
add esp, 0xc
mov edx, dword [ebp - 0x238]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x670], 0x428
lea eax, [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x87c]
push ecx
call sub.KERNEL32.dll_Module32FirstW
mov edx, dword [ebp - 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x888]
call fcn.00405d60
xor ecx, ecx
mov word [ebp - 0x878], cx
push 0x206
push 0
lea edx, [ebp - 0x876]
push edx
call fcn.004129b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x878]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x878]
push ecx
lea ecx, [ebp - 0x880]
call fcn.00405d60
push 0x5c
lea ecx, [ebp - 0x880]
call fcn.00405f20
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0xffffffff
je 0x408d28
lea ecx, [ebp - 0x880]
call fcn.00405e00
mov dword [ebp - 0x88c], eax
mov edx, dword [ebp - 0x88c]
sub edx, dword [ebp - 0x884]
push edx
mov eax, dword [ebp - 0x884]
add eax, 1
push eax
lea ecx, [ebp - 0x880]
call fcn.00405e20
push str.YY.exe
lea ecx, [ebp - 0x880]
call fcn.00406010
lea ecx, [ebp - 0x888]
call fcn.004032a0
push eax
lea ecx, [ebp - 0x880]
call fcn.00406040
test eax, eax
jne 0x408d6a
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x880]
call fcn.00405690
lea ecx, [ebp - 0x888]
call fcn.00405690
lea ecx, [ebp - 0x244]
call fcn.00405690
jmp 0x408da3
lea ecx, [ebp - 0x880]
call fcn.00405690
lea ecx, [ebp - 0x888]
call fcn.00405690
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x244]
call fcn.00405690
jmp 0x408be0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret
Function at 0x408dc0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004129b0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 8]
call fcn.00405d60
push str.duowanyy4.0_
lea ecx, [ebp - 8]
call fcn.00406010
push str.GameFriend.txt
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00406270
lea ecx, [ebp - 4]
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 4]
call fcn.00405690
lea ecx, [ebp - 8]
call fcn.00405690
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret

Function at 0x408e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0x48], eax
xor eax, eax
mov word [ebp - 0x250], ax
push 0x206
push 0
lea ecx, [ebp - 0x24e]
push ecx
call fcn.004129b0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x250]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 4]
call fcn.00405d60
push 0x5c
lea ecx, [ebp - 4]
call fcn.00405f20
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x408f02
lea ecx, [ebp - 4]
call fcn.00405e00
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x44]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x44]
add edx, 1
push edx
lea ecx, [ebp - 4]
call fcn.00405e20
push 0x4261a0
lea ecx, [ebp - 4]
call fcn.00406010
push 0x4261ac
lea ecx, [ebp - 4]
call fcn.00406010
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00405fe0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x4261b0
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004129b0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x8440
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x4261f0
lea ecx, [ebp - 4]
call fcn.004032a0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
call fcn.004032a0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], 0
je 0x408fb9
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
call fcn.00405690
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret
Function at 0x40b8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.0040b250
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.0040e650
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bbd0
lea ecx, [ebp - 0x438]
call fcn.0040e650
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b2b0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b95e
call fcn.0040b2c0
mov dword [ebp - 0x444], eax
jmp 0x40bab3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x40b98f
call fcn.0040b2c0
mov dword [ebp - 0x444], eax
jmp 0x40bab3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40b9bf
call fcn.0040b2c0
mov dword [ebp - 0x444], eax
jmp 0x40bab3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40ba0f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.0040e6d0
lea ecx, [ebp - 0x2c]
call fcn.0040e390
mov eax, dword [ebp - 0x44c]
jmp 0x40bae8
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.0040e670
lea ecx, [ebp - 0x438]
call fcn.004032a0
test eax, eax
jne 0x40ba3c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x40bab3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004032a0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0040b250
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x40ba7e
call fcn.0040b2c0
mov dword [ebp - 0x444], eax
jmp 0x40bab3
lea ecx, [ebp - 0x438]
call fcn.004032a0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.004032a0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bc00
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x40bac3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.0040e6d0
lea ecx, [ebp - 0x2c]
call fcn.0040e390
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d400
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0040d1d0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d3a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d46b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0040d200
mov eax, dword [ebp - 0x224]
jmp 0x40d4fc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d4d1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d400
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d4c8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0040d200
mov eax, dword [ebp - 0x228]
jmp 0x40d4fc
mov dword [ebp - 4], 0x100
jmp 0x40d472
lea ecx, [ebp - 0x14]
call fcn.0040d2e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0040d280
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0040d200
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret 4
Function at 0x40da60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x40da69
xor ecx, ecx
jne 0x40da69
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40da8a
mov eax, 0xd
jmp 0x40dae5
xor eax, eax
jne 0x40da71
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40da9b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x40ec70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x40f9d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x42c3f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.004129b0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x228]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x426994
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x244]
call fcn.00402180
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401990
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.00401140
lea ecx, [ebp - 0x20]
call fcn.004015e0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401a60
lea ecx, [ebp - 0x20]
call fcn.00401140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411eb4
mov esp, ebp
pop ebp
ret
Function at 0x411a8f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42d55c], 0
push esi
jne 0x411a02
call fcn.00411928
test eax, eax
je 0x411a45
mov eax, dword [0x42d55c]
cmp eax, 1
jne 0x411a23
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411a45
pop esi
ret
push eax
call dword [0x42d564]
test eax, eax
jne 0x411a8d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411a49
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42d55c]
call dword [0x42d564]
mov edi, eax
test edi, edi
je 0x411a6e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x411a8a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42d55c]
call dword [0x42d560]
add edi, 0x10
cmp edi, esi
jb 0x411a76
mov eax, edi
pop edi
pop esi
ret
jmp 0x4119ef

Function at 0x411eb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c3f8]
jne 0x411ebe
repz ret
jmp fcn.00414978

Function at 0x42303b
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.00414af0
and dword [ebp - 4], 0
cmp dword [0x42e0b8], 0
mov ebx, eax
jne 0x4230ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42319d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42319d
push eax
call fcn.00414a7e
mov dword [esp], 0x428c8c
push edi
mov dword [0x42e0b8], eax
call esi
push eax
call fcn.00414a7e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e0bc], eax
call esi
push eax
call fcn.00414a7e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42e0c0], eax
call esi
push eax
call fcn.00414a7e
pop ecx
mov dword [0x42e0c8], eax
test eax, eax
je 0x4230ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414a7e
pop ecx
mov dword [0x42e0c4], eax
mov eax, dword [0x42e0c4]
cmp eax, ebx
je 0x423144
cmp dword [0x42e0c8], ebx
je 0x423144
push eax
call fcn.00414af9
push dword [0x42e0c8]
mov esi, eax
call fcn.00414af9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423144
test edi, edi
je 0x423144
call esi
test eax, eax
je 0x42313b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42313b
test byte [ebp - 0xc], 1
jne 0x423144
or dword [ebp + 0x10], 0x200000
jmp 0x42317d
mov eax, dword [0x42e0bc]
cmp eax, ebx
je 0x42317d
push eax
call fcn.00414af9
pop ecx
test eax, eax
je 0x42317d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42317d
mov eax, dword [0x42e0c0]
cmp eax, ebx
je 0x42317d
push eax
call fcn.00414af9
pop ecx
test eax, eax
je 0x42317d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e0b8]
call fcn.00414af9
pop ecx
test eax, eax
je 0x42319d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42319f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x452020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036a8
xor eax, eax
push ebp
push 0x4036a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x452020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x452020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x4043d5
cmp word [0x45421c], 0xd7b2
jne 0x40439d
cmp dword [0x454224], 0
jbe 0x40439d
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x452070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x4043f1
push 0
push 0x452068
push 0x452070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret