joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098d1
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 1
push 2
push dword [0x4041dc]
mov dword [ebp - 0x210], edi
call dword [sym.imp.iertutil.dll_Ordinal_654]
push 0xa
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409a32
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409a32
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x409a31
push dword [0x4041d8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call fcn.0040de2f
push dword [0x4041e8]
lea ecx, [ebp - 0x214]
call fcn.0040de2f
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add ecx, dword [ebp - 0x210]
adc eax, edi
cmp eax, 0x10000000
ja 0x409a31
jb 0x409997
cmp ecx, 0x178e182d
jae 0x409a31
push dword [0x4041e0]
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp - 0x20c], ax
call fcn.0040db13
push 0x5c
pop eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x409a31
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5c
pop eax
mov word [edi], ax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409a31
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x409b51
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409b90
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x402978
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x409ba6
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push 0x402978
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c28
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.00409a47
cmp dword [ebp + 0x10], 0
je 0x409be7
cmp dword [ebp + 0x14], 0
jne 0x409bde
test eax, eax
je 0x409c1c
push 0x18
push 0x402f5c
jmp 0x409c0d
cmp dword [ebp + 0x14], 0
jne 0x409c07
test eax, eax
jne 0x409c1c
lea eax, [ebp - 0x20c]
push eax
push 0x402f5c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x409c1c
push esi
push 0x4021bc
push 1
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409c3e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x90]
xor ebx, ebx
push eax
push 1
push ebx
push 0x402ba0
push reloc.SHLWAPI.dll_ParseURLW
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x409d06
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409d06
push ebx
lea eax, [ebp - 0x8c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x402ba0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x409cfa
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40a0c4
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
mov edi, ecx
lea ecx, [ebp - 0x20c]
push edx
push edi
mov edx, 0x104
call fcn.0040ea93
lea ecx, [ebp - 0x20c]
call fcn.0040bbcd
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40a83d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x402910
push 0x402ce8
push 0x104
push eax
mov esi, edx
call fcn.00408504
add esp, 0x10
mov dword [ebp - 0x214], 4
lea eax, [ebp - 0x214]
mov ebx, 0x402960
mov edi, SysReAllocStringLen
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, esi
or eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 4

Function at 0x40a98d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x424004]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
xor esi, esi
lea eax, [esp + 0x10]
push esi
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x104
test eax, eax
je 0x40aa05
lea ecx, [esp + 0x10]
call fcn.0040a8f2
push edi
lea eax, [esp + 0x21c]
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40aa05
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x10]
call fcn.0040a8f2
lea eax, [esp + 8]
mov dword [esp + 8], 0x208
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4025c4
push 0x402600
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40aa55
push edi
lea eax, [esp + 0x21c]
push eax
push 0x11
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40aa82
push esi
push 2
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40aa82
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x10]
call fcn.0040a8f2
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40aa9b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x40aaee
push 0
push dword [ebx + esi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40aae8
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
push 0
call fcn.0040a6ef
inc esi
cmp esi, dword [ebp + 8]
jb 0x40aabe
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 8

Function at 0x40ab06
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
je 0x40ab49
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40ab43
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push 2
pop edx
call fcn.0040a6ef
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add edi, 0x10
dec esi
jne 0x40ab17
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ab56
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
lea eax, [ebp - 0x61c]
push edi
push ecx
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ac5f
push esi
push ecx
push 0x40227c
lea eax, [ebp - 0x61c]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040ea93
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ef
push esi
lea eax, [ebp - 0x414]
push eax
push 0x2db
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ecx
lea eax, [ebp - 0x414]
mov edx, esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040ea93
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ef
push esi
lea eax, [ebp - 0x414]
push eax
push 0x2dd
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push ecx
lea eax, [ebp - 0x414]
mov edx, esi
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040ea93
push edi
push edi
push 2
pop edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ef
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40adee
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ae2d
push 1
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0040a6ef
test esi, esi
je 0x40ae3a
call fcn.0040ad04
test al, al
je 0x40ae41
mov edx, esi
call fcn.0040ad5a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret 4

Function at 0x40aeb7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40af64
push 0x4027d0
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.004096ea
test eax, eax
js 0x40af64
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x260]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x260], esi
lea edi, [ebp - 0x21c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x40af64
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret

Function at 0x40af79
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40aff5
cmp dword [ebp - 0x28], 0
je 0x40aff5
push edi
lea eax, [ebp - 0x28]
mov edi, SysReAllocStringLen
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x40aff4
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40aff4
push 7
pop ecx
mov byte [ebp - 0x24], al
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
push 0x1e
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
push 3
push 0
push 0x402ccc
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40b009
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40b15e
push edi
push 2
pop edx
cmp dword [ebp - 4], esi
jbe 0x40b0df
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b0df
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x40b0dc
cmp dword [ebp - 4], esi
jbe 0x40b0d4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b0ce
and dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b0ce
push dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
call fcn.0040b009
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 4]
jb 0x40b080
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push 2
pop edx
cmp dword [ebp - 0x10], 0
jbe 0x40b15d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b15d
inc eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x40b15d
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40b155
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [edi - 1]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40b152
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], eax
jb 0x40b152
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40b152
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec edi
jne 0x40b110
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b221
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x20c]
call fcn.0041f50f
mov esi, eax
test esi, esi
js 0x40b32f
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b27f
call fcn.0040f825
mov esi, eax
test esi, esi
js 0x40b32d
push ebx
lea eax, [ebp - 0x418]
push eax
push 4
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b29f
mov esi, ebx
jmp 0x40b2a6
call fcn.0040f825
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x40b32d
cmp dword [ebp - 0x418], 4
jne 0x40b2c6
cmp dword [ebp - 0x414], 0x4020000
je 0x40b32d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2e2
call fcn.0040f825
mov esi, eax
test esi, esi
js 0x40b32d
mov edx, 0x100
lea ecx, [ebp - 0x40c]
call fcn.0041f571
mov esi, eax
test esi, esi
js 0x40b32d
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], ebx
push eax
sub esp, 0xc
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x20c]
push eax
call fcn.0041c8db
mov esi, eax
test esi, esi
js 0x40b32d
mov ecx, dword [ebp - 0x410]
call fcn.0041cc8b
mov esi, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40b5fe
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x40b62e
push 0x402f78
push 0x402848
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x40b679
push ecx
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040ca77
test al, al
je 0x40b679
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b648
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x402f78
push 0x402848
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40b9d6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push 0x402770
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ba2a
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push esi
push 0x402738
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bd2a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0x57
push 0
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x60], edi
xor eax, eax
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x30], ax
or edi, 0xffffffff
inc eax
mov dword [ebp - 0x34], eax
test esi, esi
je 0x40bddf
xor ecx, ecx
mov dword [ebp - 0x64], eax
push ecx
push 0x80
push 2
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0xc
push eax
push ecx
push 0x40000000
push esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40be38
push 2
push 1
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40be1c
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
or dword [ebp - 0x34], 0x100
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
xor eax, eax
push eax
push eax
push 0x10
push 1
push eax
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40be2b
push 0x2bf20
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40be43
cmp eax, 0x102
jne 0x40be54
and dword [ebp - 4], 0
jmp 0x40be5d
push dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40be2b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40be5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x40bea3
cmp dword [ebp - 0x24], edi
je 0x40be84
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x20], edi
je 0x40be95
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x28], edi
je 0x40bea3
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40be31
Function at 0x40bead
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx]
push esi
push edi
xor esi, esi
jmp 0x40bfbe
push 1
push 0x32
lea eax, [ebp - 0x288]
push eax
push 0x32
push 0x402fa8
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x40bfbe
push 0x64
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x13
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 0x63
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x288]
push 0x403010
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0x18
cmp eax, 2
jne 0x40bfbe
push 1
push 0xb
lea eax, [ebp - 0x2c]
push eax
push 0xb
push 0x403020
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x40bfbe
push 0x403038
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x40bfbe
lea eax, [ebp - 0xf8]
mov edi, 0x200
push eax
push 0x403048
lea eax, [ebp - 0x688]
push edi
push eax
call fcn.00408504
add esp, 0x10
test eax, eax
js 0x40bfbe
push edi
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jae 0x40bfb6
lea edx, [ebp - 0xa88]
xor ecx, ecx
call fcn.0040bd2a
jmp 0x40bfb9
push 0x57
pop eax
test eax, eax
jne 0x40bfbe
inc esi
push ebx
lea eax, [ebp - 0x288]
push 0xc8
push eax
call dword [sym.imp.msvcrt.dll_fgetws]
add esp, 0xc
test eax, eax
jne 0x40bece
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret