joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e490
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x518
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
push 0x46c320
push connect
mov dword [esp + 0x10], 0x400
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41e586
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 8]
lea edx, [esp + 0x120]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], 0x104
call edi
test eax, eax
jne 0x41e52e
cmp dword [esp + 0x14], 3
jne 0x41e535
mov eax, dword [esp + 8]
test eax, eax
jbe 0x41e535
lea ecx, [esp + 0x120]
push ecx
call fcn.0041e1c0
test eax, eax
jne 0x41e538
inc esi
jmp 0x41e4d1
cmp eax, 0x103
je 0x41e56a
inc esi
jmp 0x41e4d1
lea edx, [esp + 0x1c]
push edx
push 0x46c320
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov eax, dword [esp + 0x10]
mov esi, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x518
ret 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x518
ret 4
mov eax, esi
pop esi
add esp, 0x518
ret 4

Function at 0x41e5a0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x518
push ebx
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push 0x46c320
push connect
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x28], 0x104
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e6b5
push ebp
push edi
push esi
push esi
mov edx, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x1c]
push esi
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41e69d
mov ecx, dword [esp + 0x10]
mov eax, 0x64
cmp ecx, eax
jbe 0x41e69d
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x41e69d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x3c], 0x104
call edi
test eax, eax
jne 0x41e68d
cmp dword [esp + 0x20], 3
jne 0x41e694
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41e694
lea eax, [esp + 0x24]
push eax
push 0x46c320
push connect
call ebp
mov ebx, 1
jmp 0x41e694
cmp eax, 0x103
je 0x41e69d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x41e62c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x518
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x518
ret
Function at 0x41e6c0
Capabilities:
Create thread
Print debug messages
Terminate thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push eax
push 0
push 0
push 0x41e750
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x41e739
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41e725
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x41e70e
mov dword [esp + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 8
ret
push 0x46c344
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 8
ret

Function at 0x41e820
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x47f600]
test eax, eax
jne 0x41e8dd
push esi
push edi
push 0x46c414
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x46c3f8
push esi
call edi
push 0x46c3dc
push esi
mov dword [0x47f5e8], eax
call edi
push 0x46c3b8
push esi
mov dword [0x47f5ec], eax
call edi
push 0x46c394
push esi
mov dword [0x47f5f0], eax
call edi
push 0x46c370
push esi
mov dword [0x47f5f4], eax
call edi
push 0x46c360
push esi
mov dword [0x47f5f8], eax
call edi
mov ecx, dword [0x47f5e8]
pop edi
test ecx, ecx
mov dword [0x47f5fc], eax
pop esi
je 0x41e8d3
mov ecx, dword [0x47f5ec]
test ecx, ecx
je 0x41e8d3
mov ecx, dword [0x47f5f0]
test ecx, ecx
je 0x41e8d3
mov ecx, dword [0x47f5f4]
test ecx, ecx
je 0x41e8d3
mov ecx, dword [0x47f5f8]
test ecx, ecx
je 0x41e8d3
test eax, eax
je 0x41e8d3
mov eax, 1
mov dword [0x47f600], eax
ret
mov eax, 2
mov dword [0x47f600], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
ret

Function at 0x41ef70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push 0x46c4c8
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41efbb
cmp dword [esp + 8], 4
jne 0x41efbb
mov eax, dword [esp]
cmp eax, 0x11
ja 0x41efc0
mov eax, 0x11
add esp, 0xc
ret
Function at 0x41eff0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x34c
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.0041ef30
add esp, 4
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x41f01a
inc eax
dec ecx
jne 0x41f00f
jmp 0x41f05e
test ecx, ecx
je 0x41f05e
lea edx, [esp + 0xc]
test edx, edx
je 0x41f02f
mov eax, 0x104
sub eax, ecx
jmp 0x41f033
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x41f05e
mov esi, 0x46c4d8
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x41f056
mov byte [eax], cl
inc eax
dec edx
jne 0x41f047
jmp 0x41f05a
test edx, edx
jne 0x41f05b
dec eax
mov byte [eax], 0
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x46c4d0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x10]
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x41f08d
mov byte [eax], cl
inc eax
dec esi
jne 0x41f07e
jmp 0x41f091
test esi, esi
jne 0x41f092
dec eax
mov byte [eax], 0
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f0ff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x248]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x41f0d5
mov byte [eax], cl
inc eax
dec esi
jne 0x41f0c6
jmp 0x41f0d9
test esi, esi
jne 0x41f0da
dec eax
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
call ebp
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f0b6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
Function at 0x4209a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x4209bb
cmp ebx, 8
jg 0x4209bb
mov eax, 1
jmp 0x4209bd
xor eax, eax
mov esi, dword [esp + 0x14]
push 0x46c768
push eax
push esi
call fcn.0041f200
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x4209f4
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x443b42]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x443b40]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x443b44]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x443b46]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x420a55
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x420a61
cmp ebx, 8
jl 0x420a61
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x420ada
cmp eax, 0xffffffff
je 0x420ada
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x420aa5
push esi
call fcn.00420cf0
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x420aad
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x420e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x421084
push ebx
cmp eax, 3
jb 0x420ebb
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + esi + 0x1af72]
and eax, 0x7fff
shl edx, 5
xor eax, edx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x420efd
mov edx, dword [esi + 0x6af84]
sub edx, ebp
cmp edx, 0x7efa
ja 0x420efd
mov eax, dword [esi + 0x6af90]
mov ecx, dword [esi + 0x6afa0]
cmp ecx, eax
jbe 0x420ee5
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00420af0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x420efd
mov edi, eax
cmp edi, 3
jb 0x420ff6
mov ecx, dword [esi + 0x6af84]
mov ebx, dword [esi + 0x6af88]
lea eax, [edi - 3]
sub ecx, ebx
push eax
push ecx
push esi
call fcn.004201f0
mov edx, dword [esi + 0x6af90]
mov ecx, dword [esi + 0x6af98]
add esp, 0xc
sub edx, edi
mov ebx, eax
cmp edi, ecx
mov dword [esi + 0x6af90], edx
mov eax, edx
ja 0x420fa4
cmp eax, 3
jb 0x420fa4
dec edi
mov ebp, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
inc ebp
xor eax, eax
mov ecx, ebp
mov dword [esi + 0x6af84], ebp
and edx, 0x3ff
mov al, byte [esi + ecx + 0x1af72]
and ecx, 0x7fff
and eax, 0x7fff
shl edx, 5
xor eax, edx
dec edi
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x420f44
jmp 0x421020
mov edx, dword [esi + 0x6af84]
xor eax, eax
add edx, edi
push 0x46c7c4
mov dword [esi + 0x6af84], edx
push 1
mov al, byte [edx + esi + 0x1af70]
lea ecx, [edx + esi]
xor edx, edx
mov dword [esi + 0x6af7c], eax
mov dl, byte [ecx + 0x1af71]
and eax, 0x3ff
and edx, 0x7fff
push esi
shl eax, 5
xor edx, eax
xor edi, edi
mov dword [esi + 0x6af7c], edx
call fcn.0041f200
add esp, 0xc
jmp 0x421026
mov eax, dword [esi + 0x6af84]
xor ecx, ecx
mov cl, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.004201f0
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
dec ecx
mov ebx, eax
mov dword [esi + 0x6af90], ecx
inc dword [esi + 0x6af84]
test ebx, ebx
je 0x421060
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x42103d
lea ecx, [eax + esi + 0x1af70]
jmp 0x42103f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0041ffa0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x421075
push esi
call fcn.00420cf0
add esp, 4
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x420e64
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x421097
lea ecx, [eax + esi + 0x1af70]
jmp 0x421099
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0041ffa0
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x421d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x421d7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x421e7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x443b90]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x443b90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x443b90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x443b90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x443b90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x443b90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x443b90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x443b90]
xor eax, edx
inc ecx
dec edi
jne 0x421d96
pop edi
test esi, esi
je 0x421ea0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x443b90]
xor eax, edx
inc ecx
dec esi
jne 0x421e82
pop esi
pop ebx
not eax
ret

Function at 0x421eb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x443b90]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x443b90]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x4220e0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x422102
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x422115
mov ebp, 1
test al, 2
je 0x42211c
or ebp, 2
test al, 4
je 0x422123
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x42212d
or ebp, 0x10
test al, 0x20
je 0x422134
or ebp, 0x20
test ecx, ecx
je 0x422140
or ebp, 0x40000000
jmp 0x422146
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x422156
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x422205
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x422205
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x422205
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x4221ff
cmp eax, 0x454e
je 0x4221ff
cmp eax, 0x454c
je 0x4221ff
cmp eax, 0x4550
jne 0x422205
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x422211
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x422220
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x422269
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00422040
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.00422040
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00422040
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4222a8
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00422070
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x422460
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebx + 0x2d]
push esi
mov esi, dword [esp + 0x10]
push edi
test al, al
je 0x4224e5
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x422491
cmp dword [ebx + 0x40], ebp
jae 0x422491
push eax
call fcn.0043fa08
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4224ab
lea eax, [ebp + ebp]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x4224e2
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.00421f30
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x4224c7
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x42252d
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x422509
pop edi
pop esi
mov dword [ebx + 0x14], 0x30000
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x24], eax
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x42254f
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov dword [ebx + 0x14], 0x1000000
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4229e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x422a59
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jae 0x422aaa
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x422a0f
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.00421d70
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x422aa3
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422aaa
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
add ecx, eax
push eax
mov eax, dword [ebx + 0x78]
push esi
push eax
mov dword [ebx + 0x74], ecx
call fcn.00421d70
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x426b00
Capabilities:
Get file version info

Disassembly:
sub esp, 0x21c
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x224]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x426b2b
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
lea ecx, [esp + 0x1c]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x426b48
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
jne 0x426b68
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
push ebp
xor ebp, ebp
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x426cbe
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x45f260
push edi
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x426cbe
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push 0x45f244
lea eax, [esp + 0x30]
push 0x104
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x24]
lea edx, [esp + 0x128]
push ecx
push 0x46cdd0
push 0x104
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x128]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x426cbe
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, eax
je 0x426c16
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov ebx, dword [esp + 0x234]
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x426c2f
cmp ebp, dword [eax - 4]
jle 0x426c91
mov edx, dword [0x449b50]
add eax, 0xfffffff4
cmp eax, edx
je 0x426c5d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x426c55
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0043fa08
add esp, 4
mov ecx, dword [0x449b4c]
mov dword [ebx], ecx
test ebp, ebp
jne 0x426c6b
mov edx, dword [0x449b4c]
mov dword [ebx], edx
jmp 0x426c91
lea eax, [ebp + 0xd]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x426cb9
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x426cae
mov edi, dword [ebx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
mov dword [eax - 8], ebp
mov ecx, dword [ebx]
mov byte [ecx + ebp], 0
mov ebp, 1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
Function at 0x426ce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
push edx
push 0x46ce3c
push 0x46cde0
push connect
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x426d2b
cmp dword [esp + 4], 4
jne 0x426d2b
mov eax, dword [esp + 8]
test eax, eax
je 0x426d2b
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret