joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037caf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4044
call fcn.1003a680
mov eax, dword [0x100bc054]
xor eax, esp
mov dword [esp + 0x4040], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x1000
lea eax, [esp + 0x50]
push esi
xor edi, edi
push edi
push eax
call fcn.1003cd40
push edi
xor ebx, ebx
lea eax, [esp + 0x60]
inc ebx
mov ebp, 0x800
push ebx
push ebp
push eax
call fcn.1001dfe7
add esp, 0x1c
test eax, eax
je 0x10037e60
lea eax, [esp + 0x50]
push eax
push str.11.281.2
call fcn.10044cef
pop ecx
pop ecx
test eax, eax
jg 0x10037e60
push esi
lea eax, [esp + 0x3054]
push edi
push eax
call fcn.1003cd40
push edi
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3064]
push ebp
push eax
call fcn.1001e213
add esp, 0x1c
test eax, eax
je 0x10037e60
push esi
lea eax, [esp + 0x1054]
push edi
push eax
call fcn.1003cd40
lea eax, [esp + 0x305c]
push eax
lea eax, [esp + 0x1060]
push ebp
push eax
call fcn.10044cef
push str._bin_ssvagent.exe
lea eax, [esp + 0x106c]
push ebp
push eax
call fcn.10044cef
push 0x3c
pop esi
push esi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.1003cd40
push 0x1000
lea eax, [esp + 0x2084]
mov dword [esp + 0x48], esi
push edi
push eax
call fcn.1003cd40
push str._high__jpisetup__register
lea eax, [esp + 0x2090]
push ebp
push eax
call fcn.10044cef
add esp, 0x48
call fcn.1002db30
test eax, eax
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1050]
mov dword [esp + 0x18], 0x40
mov edx, str.open
mov dword [esp + 0x24], eax
mov ecx, str.runas
lea eax, [esp + 0x50]
cmove ecx, edx
push eax
mov dword [esp + 0x24], ecx
call fcn.1002e849
test eax, eax
mov edx, str.__old
mov ecx, str.__new
lea eax, [esp + 0x2054]
cmove ecx, edx
push ecx
push ebp
push eax
call fcn.10044cef
add esp, 0x10
lea eax, [esp + 0x2050]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10037e5c
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x4c], edi
je 0x10037e5c
push 0xffffffffffffffff
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [esp + 0x4c]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x10037e62
mov eax, ebx
mov ecx, dword [esp + 0x4050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003a5a7
add esp, 0x4044
ret
Function at 0x10037e7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003a680
push 0xffffffffffffffff
push 0x100683cd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
mov dword [ebp - 0x18], edi
xor ebx, ebx
lea eax, [ebp]
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1003cd40
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x10037ee6
mov esi, dword [eax]
jmp 0x10037ee8
mov esi, ebx
movzx ecx, word [esi]
mov eax, ebx
mov edx, ebx
test cx, cx
je 0x1003800d
cmp cx, 0x2e
jne 0x10037f04
inc eax
cmp eax, 1
jg 0x10037f17
inc edx
movzx ecx, word [esi + edx*2]
test cx, cx
jne 0x10037ef8
cmp eax, 1
jle 0x1003800d
push 0x100a0b00
push esi
call fcn.10044cef
pop ecx
pop ecx
test eax, eax
js 0x1003800d
push esi
call fcn.100379a5
pop ecx
test al, al
je 0x1003800d
push 0x100a0b18
lea ecx, [ebp - 0x14]
call fcn.1000155e
push 0x100a0b70
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10012712
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037f79
call fcn.100016f0
push esi
lea ecx, [ebp - 0x10]
call fcn.1000155e
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037fa2
call fcn.100016f0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10037fad
mov eax, dword [esi]
jmp 0x10037faf
mov eax, ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037ff5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x100a0b74
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10037ff5
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.1000155e
test esi, esi
je 0x1003802d
mov ecx, esi
call fcn.100016f0
jmp 0x1003802d
push str.1.3.1
push esi
call fcn.10044cef
push esi
call fcn.100379a5
add esp, 0xc
mov ecx, edi
push 0x100a0606
call fcn.10012712
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003803c
call fcn.100016f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x1004
leave
ret
Function at 0x100383b1
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x10068458
call fcn.1003a5de
xor esi, esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
call fcn.1000155e
mov edi, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x100383e6
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x100383e8
mov eax, ebx
test al, al
je 0x100383f3
push 0x100a061a
jmp 0x10038411
test edi, edi
je 0x100383fb
mov eax, dword [edi]
jmp 0x100383fd
xor eax, eax
push eax
call fcn.10038353
pop ecx
test eax, eax
jne 0x1003844c
lea ecx, [ebp - 0x14]
call fcn.10029b00
push eax
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
je 0x100384b8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.wsock32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.10012712
push eax
lea ecx, [ebp - 0x10]
call fcn.100015bc
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003845c
call fcn.100016f0
jmp 0x1003845c
cmp eax, ebx
jne 0x100384b8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.100015bc
lea ecx, [ebp - 0x10]
call fcn.10029b00
push eax
call dword [sym.imp.wsock32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [sym.imp.wsock32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x100384b5
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038487
sub ecx, edx
push ecx
push dword [esi]
call fcn.10044cef
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.10012712
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100384b0
call fcn.100016f0
mov esi, dword [ebp - 0x10]
jmp 0x100384ba
mov esi, dword [ebp - 0x10]
xor bl, bl
test edi, edi
je 0x100384c5
mov ecx, edi
call fcn.100016f0
test esi, esi
je 0x100384d0
mov ecx, esi
call fcn.100016f0
mov al, bl
call fcn.1003a5b8
ret
Function at 0x10044cef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10044cfe
pop dword [ebp - 0x50]
mov eax, 0x10044cfe
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x48a47
push 0
mov eax, 0x208a513d
sub eax, 0x1083c0cd
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x65b9fd3e
add ecx, 0x9a464e59
mov esi, eax
mov edx, 0xae09ab5d
sub edx, 0x9df9315d
add edx, dword [ebp - 0x50]
mov edi, 0x1a33575
mov dword [ebp - 0x40], 0x42af8f51
mov ebx, dword [edx]
add dword [ebp - 0x30], 0x884509b3
xor ebx, edi
sub dword [ebp - 4], 0xb7491104
mov dword [esi], ebx
mov dword [ebp - 4], 0x23f6a083
add esi, 4
add edx, 0x1d668543
add edx, 0xe2997ac1
loop 0x10044d52
add eax, 0x1212f
xor ebx, ebx
add ebx, eax
add eax, 0xa90ae3f4
add eax, 0x56f51c11
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x402994
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403da0
test esi, esi
jne 0x4029ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403e90
jmp 0x4029e8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402848
mov edi, eax
test esi, esi
je 0x4029e8
cmp dword [ebx], 0
je 0x4029e8
dec esi
jmp 0x4029d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403068
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403048
xor eax, eax
push ebp
push 0x403041
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 0x403084
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 0x403048
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470044], 0
je 0x403c65
cmp word [0x470218], 0xd7b2
jne 0x403c2d
cmp dword [0x470220], 0
jbe 0x403c2d
mov eax, 0x470214
call dword [0x470230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42f068
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 0x403c8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42f02c], 0
jne 0x403c81
push 0
push 0x42f060
push 0x42f068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405058
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405288
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4050db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4050db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405164
xor eax, eax
push ebp
push 0x40515d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404ea0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405142
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4052c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405142
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405164
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40527e
cmp byte [ebp - 0xd], 0
jne 0x4051ab
cmp byte [ebp - 0x12], 0
je 0x40527e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4051c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4051d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40527e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405210
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40527e
cmp byte [ebp - 0xd], 0
je 0x40527e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40527e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405920
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405986
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404010
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405970
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40598d
lea eax, [ebp - 0x10]
call fcn.00403da0
ret

Function at 0x40a610
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a649
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e90
jmp 0x40a652
mov eax, ebx
mov edx, esi
call fcn.00403df4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a65c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a67d
mov al, byte [esp]
jmp 0x40a67f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ad04
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ab7c
mov eax, dword [0x46f81c]
cmp byte [eax], 0
je 0x40ad80
mov eax, dword [0x46f734]
call fcn.00402ad0
call fcn.00402774
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407a4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40adc8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40adb6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f710]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470660]
call fcn.00404e64
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ba64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bac8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404010
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040760c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bacf
lea eax, [ebp - 0xc]
call fcn.00403da0
ret

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

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.0042c580
test al, al
je 0x414ea0
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push 0x414ea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x414e0f
mov dword [esp + 0xc], 4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x414ecc
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [esp], 0
jne 0x414ea0
push 0x414ee0
call fcn.0042c4c0
push eax
call fcn.0042c4b4
mov edx, 0x46f468
pop ecx
call fcn.004061b8
mov ebx, eax
mov eax, ebx
and eax, 0x80
cmp eax, 0x80
jne 0x414e8e
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push 0x414ea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x414e8e
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x414ecc
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
and ebx, 0xf
cmp ebx, 7
jne 0x414ea0
mov eax, 1
call fcn.0042c0e4
add esp, 0x10
pop ebx
ret
Function at 0x415a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x415ab7
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 8]
call fcn.00404710
lea eax, [ebp - 0xc]
call fcn.00404710
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x415c05
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.004046cc
push esi
mov eax, dword [ebp - 0x10]
call fcn.00404548
push eax
push 0x104
mov eax, dword [ebp - 8]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFullPathNameW
mov eax, dword [ebp - 0x10]
call fcn.00404548
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004046cc
cmp dword [esi], 0
je 0x415bea
jmp 0x415bd9
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x415c18
call fcn.004085d0
mov eax, dword [ebp - 0x14]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415b7a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004043f8
mov bl, 1
jmp 0x415bea
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xf
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x415c28
call fcn.004085d0
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.004046cc
push esi
mov eax, dword [ebp - 0x10]
call fcn.00404548
push eax
push 0x104
mov eax, dword [ebp - 0x18]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFullPathNameW
mov eax, dword [ebp - 0x10]
call fcn.00404548
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004046cc
cmp dword [esi], 0
je 0x415bea
mov eax, dword [esi]
cmp word [eax], 0
jne 0x415b2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415c0c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004043d4
ret

Function at 0x418e60
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable

Disassembly:
push ebx
add esp, 0xfffffdf8
xor ebx, ebx
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x418eb4
push 0x104
lea eax, [esp + 4]
push eax
push 0x418ec0
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x418eb4
push esp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x418eb4
push 1
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0x418f00
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
setg bl
mov eax, ebx
add esp, 0x208
pop ebx
ret
Function at 0x420aa8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov eax, dword [ebx + 0x10c]
cmp eax, dword [ebx + 0x114]
je 0x420b6e
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x420b6e
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebx + 0x48]
call fcn.0041ff8c
inc eax
add eax, eax
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
je 0x420b5f
push esi
call sub.kernel32.dll_GlobalLock
mov edi, eax
test edi, edi
je 0x420b57
mov edx, dword [ebx + 0x114]
mov eax, dword [ebx + 0x10c]
call fcn.0041457c
mov ebp, eax
mov edx, dword [ebx + 0x114]
mov eax, dword [ebx + 0x10c]
call fcn.004145ec
mov dword [esp], eax
mov eax, dword [esp]
sub eax, ebp
test eax, eax
jle 0x420b46
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 4]
mov eax, ebp
add eax, eax
add edx, eax
mov eax, dword [esp]
sub eax, ebp
mov ecx, eax
add ecx, ecx
mov eax, edi
call fcn.00406120
mov eax, dword [esp]
sub eax, ebp
mov word [edi + eax*2], 0
push esi
call sub.kernel32.dll_GlobalUnlock
push esi
push 0xd
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
test esi, esi
je 0x420b6e
push esi
call sub.kernel32.dll_GlobalFree
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420b74
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00420920
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x420be6
push 0xd
call sub.user32.dll_GetClipboardData
mov esi, eax
test esi, esi
je 0x420be1
push esi
call sub.kernel32.dll_GlobalLock
mov edi, eax
test edi, edi
je 0x420be1
push 0xffffffffffffffff
mov ecx, edi
mov edx, dword [ebx + 0x10c]
mov eax, dword [ebx + 0x48]
call fcn.00420130
test al, al
je 0x420bcf
push edi
call sub.kernel32.dll_lstrlenW
mov edx, eax
add edx, dword [ebx + 0x10c]
mov eax, ebx
call fcn.00420728
mov eax, dword [ebx + 0x10c]
mov dword [ebx + 0x114], eax
push esi
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
pop edi
pop esi
pop ebx
ret