joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c9b6
test al, 0x10
je 0x41c9b6
mov eax, 1
ret
xor eax, eax
ret

Function at 0x41c9c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c9d6
test al, 0x10
jne 0x41c9d6
mov eax, 1
ret
xor eax, eax
ret

Function at 0x41c9e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x41cafd
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41c9f4
sub edx, ecx
sar edx, 1
je 0x41cafd
cmp word [ebx + 2], 0x3a
jne 0x41cafd
cmp word [ebx + 4], 0x5c
jne 0x41cafd
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41ca26
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a594a
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x41ca76
push 2
push 0x4c6108
push eax
call ebx
mov ebx, dword [sym.imp.MSVCR120.dll_wcschr]
lea eax, [edi + 6]
push 0x5c
push eax
mov dword [ebp - 4], 1
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x41cae9
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41caa9
test al, 0x10
jne 0x41cab6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41cae2
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ca94
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4edaa0]
mov dword [ebp - 0x214], 0
push ebx
push esi
mov esi, ecx
test al, 1
jne 0x41d3fb
or eax, 1
mov dword [0x4eda9c], 7
mov dword [0x4edaa0], eax
xor eax, eax
push 0x4bb570
mov dword [0x4eda98], 0
mov word [0x4eda88], ax
call fcn.004a5ca8
add esp, 4
cmp dword [0x4eda98], 0
jne 0x41d4e2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x41d446
xor ecx, ecx
jmp 0x41d45f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d450
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x4eda88
push eax
call fcn.00402ddd
mov edx, 0x4eda88
lea ecx, [ebp - 0x22c]
call fcn.0041cf50
mov ebx, eax
cmp ebx, 0x4eda88
je 0x41d4ca
cmp dword [0x4eda9c], 8
jb 0x41d4a3
push dword [0x4eda88]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [0x4eda9c], 7
push ebx
mov ecx, 0x4eda88
mov dword [0x4eda98], 0
mov word [0x4eda88], ax
call fcn.0040309c
cmp dword [ebp - 0x218], 8
jb 0x41d4e2
push dword [ebp - 0x22c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4eda88
mov word [esi], ax
call fcn.004030ea
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x41e750
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x3fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
mov dword [ebp - 0x808], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], 0
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e808
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push 0x4c431c
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x80c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41e830
push ecx
lea eax, [ebp - 0x804]
mov edx, str.SoftwareMicrosoftIE_SetupSetup
push eax
push str.Path
call fcn.004293c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41e8cf
push 0x200
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jle 0x41e8cf
push str.iexplore.exe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x41e89a
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push str.iexplore.exe
lea eax, [ebp - 0x404]
push 0x200
push eax
call dword [sym.imp.MSVCR120.dll_wcsncat_s]
add esp, 0x10
cmp word [ebp - 0x404], 0
jne 0x41e8a8
xor ecx, ecx
jmp 0x41e8c0
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e8b1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00402ddd
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x41e9c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x4c431c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00402ddd
mov edx, 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0041e4a0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x41eac6
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push str.iexplore.exe
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR120.dll_wcsstr]
add esp, 8
test eax, eax
je 0x41eac6
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x4c431c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402ddd
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041e750
test eax, eax
je 0x41eab8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x41eab8
cmp dword [ebp - 0x14], 8
jb 0x41eab1
push dword [ebp - 0x28]
call edi
add esp, 4
mov esi, 1
jmp 0x41eae5
cmp dword [ebp - 0x14], 8
jb 0x41eac6
push dword [ebp - 0x28]
call edi
add esp, 4
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
cmp dword [ebp - 0x2c], 8
jb 0x41eaf3
push dword [ebp - 0x40]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x420ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x420f00
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4eae30], ecx
inc eax
cmp eax, 0x100
jb 0x420f00
cmp eax, 0x800
jae 0x420fd3
lea esp, [esp]
mov edx, dword [eax*4 + 0x4eaa30]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4eae30]
mov dword [eax*4 + 0x4eae30], edx
inc eax
cmp eax, 0x800
jb 0x420fb0
lea ecx, [ebp - 0x20]
mov dword [0x4ed6e0], 0x4218d0
call fcn.00420e40
test eax, eax
je 0x421088
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov esi, edi
mov eax, 0x4e52a8
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x421027
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x421027
cmp dword [eax], ebx
je 0x421036
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x421010
or ecx, 0xffffffff
sub ecx, 0
je 0x42106f
dec ecx
je 0x42105e
dec ecx
jne 0x421088
cmp esi, 6
jb 0x421088
jne 0x42107e
cmp edi, 0xf
jb 0x421088
mov dword [0x4ed6e0], 0x421970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x421088
jne 0x42107e
cmp edi, 6
jb 0x421088
cmp edi, 0xa
jmp 0x42107c
cmp esi, 6
jb 0x421088
jne 0x42107e
cmp edi, 0x100c
je 0x421088
mov dword [0x4ed6e0], 0x421970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b52e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [esi], ax
jne 0x4210db
xor ecx, ecx
jmp 0x4210ef
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4210e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00402ddd
push 1
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], 0x5c
call fcn.0040db31
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00412285
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
cmp dword [edi], 0xffffffff
je 0x421167
xor esi, esi
jmp 0x42116b
call esi
mov esi, eax
cmp dword [ebp - 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x42117f
push dword [ebp - 0x30]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
jb 0x4211a1
push dword [ebp - 0x48]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret

Function at 0x4211f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x42125f
mov dword [edi], 0
mov edx, 0x400000
lea esp, [esp]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x421272
test ecx, ecx
je 0x42125f
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x421220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x421290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x4212ff
mov dword [edi], 0
mov edx, 0x400000
lea esp, [esp]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x421312
test ecx, ecx
je 0x4212ff
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x4212c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x426da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x426dc0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x426de9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x426de6
inc esi
cmp esi, edx
jb 0x426dd7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x426ef1
cmp ecx, 3
jbe 0x426e02
xor eax, eax
jmp 0x426e40
dec ecx
shl eax, cl
and eax, 7
je 0x426e40
movzx ecx, byte [eax + 0x4c4924]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4c4914], 0
mov cl, byte [edx + 4]
je 0x426e2a
test cl, cl
je 0x426e2a
cmp cl, 0xff
jne 0x426e3d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x426dd0
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x426e62
cmp cl, 0xff
je 0x426e62
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x426dd0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x426ebe
movzx edx, byte [eax + 0x4c4924]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x426eaa
cmp dl, 0xff
jne 0x426ebe
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x426e80
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x426dd0
pop esi
pop ebx
cmp ecx, 3
jbe 0x426f06
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4293c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429431
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x431bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x431c61
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x431c2f
cmp eax, 2
jne 0x431c4b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x431c5b
test ecx, ecx
je 0x431c56
test cl, 1
jne 0x431c4b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x431c5b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x431c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x431c85
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x431c90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431c90
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x431cc0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6082
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x21c], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x431d5d
xor ecx, ecx
jmp 0x431d75
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431d66
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402ddd
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret

Function at 0x431e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x431e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
mov dword [ebp - 8], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x431ead
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x431ee3
test esi, esi
je 0x431ee3
push 0x4ea758
push esi
mov dword [ebp - 4], 0
call fcn.004a61f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x431ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431f17
cmp dword [ebp - 4], esi
je 0x431f25
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor edi, edi
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431f40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431f7a
test al, 0x10
je 0x431f7a
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push esi
mov esi, edi
test edi, edi
jne 0x431f93
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push ebx
push 0x5c
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x432034
cmp word [esi - 2], 0x3a
je 0x432029
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431fb6
sub eax, edx
mov edx, esi
sar eax, 1
lea ebx, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x431fd0
sub edx, ebx
sar edx, 1
sub eax, edx
cmp eax, 0x7ffffffe
jbe 0x431ff3
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x432001
push eax
push edi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.004321e0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432029
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43204a
add esi, 2
test esi, esi
jne 0x431f94
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x432060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
test esi, esi
je 0x432109
cmp word [esi], 0
je 0x432109
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4320b4
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4320f3
cmp dword [ebp - 4], esi
jne 0x4320f3
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 4