joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp eax, 0
mov eax, 0x4484937f
cmp eax, 0x4ac3977d
nop
cmp eax, 0xf571b793
nop
cmp eax, 0x34
mov eax, ecx
mov eax, ebx
cmp eax, 0x9b7ce306
cmp eax, 0xffffffe9
mov eax, 0x88168552
nop
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, 0x4d5bac9b
mov eax, ecx
mov eax, 0x9ac0c4de
mov eax, 0x9dba70c1
mov eax, ecx
nop
mov eax, 0xcbc18910
mov eax, 0x48d5ff09
inc eax
cmp eax, 0xffffffdc
mov eax, ecx
mov eax, 0x11e46514
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
cmp eax, 0xe912607a
cmp eax, 0xa5298164
mov eax, ecx
nop
inc eax
cmp eax, 0x10
nop
inc eax
mov eax, ebx
inc eax
inc eax
inc eax
inc eax
cmp eax, 0xed15049c
cmp eax, 0xffffffd3
mov eax, 0xc8094d64
cmp eax, 0x31
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 0xf18c282
mov eax, ebx
cmp eax, 0x7eadd3dc
mov eax, ebx
inc eax
mov eax, ebx
nop
nop
mov eax, ecx
mov eax, 0xf83f907c
cmp eax, 0xf58db42
inc eax
nop
nop
mov eax, ebx
inc eax
cmp eax, 0x3b
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, ecx
cmp eax, 0xffffffee
mov eax, ecx
inc eax
mov eax, 0x97a1922c
nop
nop
cmp eax, 0x1c
nop
nop
cmp eax, 0xffffff8b
inc eax
nop
mov eax, ecx
mov eax, 0xe668ed97
mov eax, ecx
inc eax
mov eax, ebx
mov eax, ecx
nop
nop
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xb37b76b5
nop
cmp eax, 0xffffffcf
nop
mov eax, ebx
nop
nop
cmp eax, 0x2e
mov eax, 0x4dd06953
cmp eax, 0x72f85488
cmp eax, 0xffffffe3
inc eax
mov eax, 0x3930a06a
inc eax
mov eax, 0x524e9565
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x572754
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x58a008], 0x8088405
inc edx
mov dword [ebx + 0x58a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x57287c
Capabilities:
Query or enumerate registry value

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

Function at 0x5733f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59c040], 0
je 0x573451
cmp word [0x59c214], 0xd7b2
jne 0x573419
cmp dword [0x59c21c], 0
jbe 0x573419
mov eax, 0x59c210
call dword [0x59c22c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x58a064
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 0x573478
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58a028], 0
jne 0x57346d
push 0
push 0x58a05c
push 0x58a064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x574888
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 0x5748ee
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.005737d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00572770
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x5748d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5748f5
lea eax, [ebp - 0x10]
call fcn.0057356c
ret
Function at 0x575bc4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x575c60
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00573b50
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00573a78
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x575bec
cmp byte [esp], 0
je 0x575c31
mov eax, edi
call fcn.00573a78
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x575c6c
mov eax, edi
call fcn.00573a78
push eax
mov eax, edi
call fcn.00573a78
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.005725f8
mov edx, ebx
mov eax, edi
call fcn.00573b50
jmp 0x575c6c
mov eax, edi
mov edx, 0x575c7c
call fcn.005735c0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5763bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00573a10
xor eax, eax
push ebp
push 0x57641e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.005735c0
mov eax, ebx
call fcn.00573a70
mov eax, dword [ebx]
call fcn.00573820
test eax, eax
jle 0x576408
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x5763fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576425
lea eax, [ebp - 4]
call fcn.0057356c
ret

Function at 0x5767f4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0xff
call fcn.00572734
sub ebx, 1
jb 0x57681a
je 0x57682b
dec ebx
je 0x57683c
jmp 0x576847
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x576847
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x576847
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.005737d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x576860
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
mov dword [esp], 0x10
lea eax, [esp + 4]
xor ecx, ecx
mov edx, dword [esp]
call fcn.00572734
sub ebx, 1
jb 0x576887
je 0x576894
jmp 0x57689f
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
jmp 0x57689f
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x11
call fcn.005737d0
add esp, 0x18
pop esi
pop ebx
ret

Function at 0x576954
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
mov edx, 0x58
call fcn.005750dc
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x577b44
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x577b8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x577b82
cmp word [edi], 0x5a4d
jne 0x577b82
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x577b82
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x577b98
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x577d28
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x577d6e
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x577d9f
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_2
cmp esi, 0xffffffff
je 0x577dfc
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x577dca
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x577ddc
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x577df6
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x578580
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax], 0
setne al
pop ebp
ret

Function at 0x578658
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetEndOfFile
pop ebp
ret
Function at 0x57891c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x578a02
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x57898c
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.005737d0
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x578a18
call fcn.0057386c
jmp 0x578993
mov eax, ebx
call fcn.0057356c
push dword [ebx]
push 0x578a24
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 8
call fcn.00575f10
push dword [ebp - 0x110]
lea eax, [ebp - 0x114]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.00575f10
push dword [ebp - 0x114]
push 0x578a3c
mov eax, ebx
mov edx, 5
call fcn.005738e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578a09
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00573590
ret

Function at 0x578a40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x578ac1
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x578aa6
mov eax, dword [esi]
add eax, 8
call fcn.00578a40
mov ebx, dword [esi]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esi], eax
cmp byte [ebx + 0x14], 0
jne 0x578a99
cmp dword [ebx + 0x1d], 0
je 0x578a99
mov eax, dword [ebx + 0x1d]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0057891c
mov eax, dword [ebp - 4]
call fcn.00573a20
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, dword [0x578520]
mov eax, ebx
call fcn.005743e8
cmp dword [esi], 0
jne 0x578a59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578ac8
lea eax, [ebp - 4]
call fcn.0057356c
ret
Function at 0x578d7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x578ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
lea edi, [esi + ebx]
mov eax, edi
mov edx, 4
call fcn.00578548
mov dword [ebp - 0x10], eax
mov eax, edi
add eax, dword [ebp + 8]
test eax, eax
jbe 0x578eb2
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.0057891c
mov eax, dword [ebp - 0x2c]
call fcn.00573a20
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x578ea4
push 0
push 0
mov eax, edi
mov edx, 4
call fcn.00578548
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetEndOfFile
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x578e9b
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x578e92
mov eax, edi
mov edx, 4
call fcn.00578548
mov edx, eax
add edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005750dc
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00578b60
pop ecx
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
call fcn.00573a20
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578ed4
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00573590
ret
Function at 0x5796e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5797a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 0x15], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x19], eax
xor eax, eax
mov dword [ebx + 0x21], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x8000
jbe 0x57977d
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0057891c
mov eax, dword [ebp - 8]
call fcn.00573a20
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
mov dword [ebx + 0x1d], esi
cmp esi, 0xffffffff
je 0x579776
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
jmp 0x579791
xor eax, eax
mov dword [ebx + 0x1d], eax
jmp 0x579791
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
lea eax, [ebx + 0x10]
call fcn.0057365c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5797ae
lea eax, [ebp - 8]
call fcn.0057356c
ret

Function at 0x579930
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
xor ecx, ecx
push ebp
push 0x5799f1
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea edi, [edx + 1]
sub edi, 2
test edi, edi
jl 0x5799db
inc edi
mov ebx, eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.00573da8
jne 0x579977
mov eax, dword [ebx + 4]
mov eax, dword [eax]
dec dword [eax + 0x25]
jmp 0x57997f
mov eax, dword [ebx + 4]
mov eax, dword [eax]
dec dword [eax + 0x21]
mov eax, dword [ebx]
mov eax, dword [eax]
mov esi, eax
mov eax, dword [eax + 0xc]
mov edx, dword [ebx]
mov dword [edx], eax
cmp byte [esi + 0x14], 0
jne 0x5799b9
cmp dword [esi + 0x1d], 0
je 0x5799b9
mov eax, dword [esi + 0x1d]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 8]
mov eax, esi
call fcn.0057891c
mov eax, dword [ebp - 8]
call fcn.00573a20
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, dword [0x578520]
mov eax, esi
call fcn.005743e8
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x25]
add edx, dword [eax + 0x21]
test edx, edx
ja 0x5799db
add ebx, 4
dec edi
jne 0x57995d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5799f8
lea eax, [ebp - 8]
call fcn.0057356c
ret
Function at 0x579e6c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00572734
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [0x59c6c4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop ebx
ret

Function at 0x579ebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x579f6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00579e0c
lea eax, [ebp - 0x24]
call fcn.00579e6c
test al, al
je 0x579f51
mov ecx, dword [ebp - 0x18]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0057365c
mov ebx, dword [ebp - 0x1c]
dec ebx
test ebx, ebx
jl 0x579f51
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00573a20
push eax
push esi
mov eax, dword [0x59c6c4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 8]
call fcn.00573a20
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00573764
mov edx, dword [ebp - 0x28]
mov eax, edi
call fcn.00579db8
inc esi
dec ebx
jne 0x579f09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579f76
lea eax, [ebp - 0x28]
call fcn.0057356c
lea eax, [ebp - 8]
call fcn.0057356c
ret

Function at 0x57a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x57a242
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, ebx
call fcn.00573a20
push eax
mov eax, dword [0x59c6c4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x57a238
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call fcn.0057a13c
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57a24c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x57a418
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
call fcn.00573a10
mov eax, dword [ebp + 0x10]
call fcn.00573a10
mov eax, dword [ebp + 0x14]
call fcn.00573a10
xor eax, eax
push ebp
push 0x57a4a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00573a20
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyA
mov eax, dword [ebp + 0x14]
call fcn.00573820
push eax
mov eax, dword [ebp + 0x14]
call fcn.00573a20
push eax
push 1
push 0
mov eax, dword [ebp + 0x10]
call fcn.00573a20
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a4ab
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00573590
ret

Function at 0x57a7b8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x57a851
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x57a81f
xor bl, 1
neg bl
sbb eax, eax
push eax
lea eax, [ebp - 4]
mov edx, esi
call fcn.00573d20
mov eax, dword [ebp - 4]
call fcn.00573d8c
push eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00573d20
mov eax, dword [ebp - 8]
call fcn.00573d8c
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
jmp 0x57a836
xor bl, 1
neg bl
sbb eax, eax
push eax
push esi
push edi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a858
lea eax, [ebp - 8]
mov edx, 2
call fcn.00573c28
ret
Function at 0x57a864
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57a9b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test dl, dl
je 0x57a960
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00573d20
mov eax, dword [ebp - 0x14]
call fcn.00573d8c
xor ecx, ecx
mov dl, 1
call fcn.0057a6f4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x57a960
xor eax, eax
push ebp
push 0x57a959
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 0x3e8
call fcn.0057a6a0
mov dword [ebp - 8], eax
mov edx, 0x3e8
mov eax, dword [ebp - 8]
call fcn.005750dc
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov edi, eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov ebx, edi
sub ebx, esi
cmp ebx, 0x3e8
jb 0x57a919
mov ebx, 0x3e8
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp ebx, dword [ebp - 0x10]
jne 0x57a938
add esi, ebx
cmp edi, esi
ja 0x57a908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a960
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0057a6c8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x57a98d
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00573d20
mov eax, dword [ebp - 0x18]
call fcn.00573d8c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x57a99c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a9be
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00573c28
ret