joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44719a
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.0042f410
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0042f410
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Softlink
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.SLDefault.xml
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [0x466818], 8
mov ecx, dword [0x466804]
jae 0x44723d
mov ecx, 0x466804
lea edx, [ebp - 0x414]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, di
jne 0x447243
push str.Softlink.xml
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x447286
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cac7
leave
ret
Function at 0x4474c4
Capabilities:
Get common file path
Get program files directory
Hide graphical window

Disassembly:
sub esp, 0x414
mov eax, dword [0x4650e0]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [0x466888], 8
mov eax, dword [0x466874]
push ebx
push ebp
push esi
push edi
mov edi, ecx
jae 0x4474f1
mov eax, 0x466874
push eax
push 0x410
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f0
push dword [edi + 4]
call ebp
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov ebx, 0x3ee
push ebx
push dword [edi + 4]
call ebp
push 0
push eax
call esi
push ebx
push dword [edi + 4]
call ebp
push 0x64
xor ebx, ebx
push ebx
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
mov esi, 0x3ec
push esi
push dword [edi + 4]
call ebp
push eax
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
push ebx
push ebx
lea ebx, [esp + 0x220]
call fcn.0044d53a
cmp eax, 1
jne 0x4475dc
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
xor esi, esi
lea eax, [esp + 0x16]
push esi
push eax
call fcn.0042f410
add esp, 0xc
cmp dword [edi + 0x58], esi
je 0x447598
lea eax, [esp + 0x10]
push eax
call fcn.00446e0b
test eax, eax
je 0x4475a7
push esi
push 0x26
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x15
pop esi
call fcn.00444750
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x3ed
push dword [edi + 4]
call ebp
push 1
jmp 0x447603
lea eax, [esp + 0x218]
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
push dword [edi + 4]
call ebp
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push esi
push dword [edi + 4]
call ebp
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [edi + 0x58], 1
sete al
mov byte [0x46a2a2], al
call fcn.004472be
push 0xca
push dword [0x467410]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov ecx, dword [esp + 0x420]
mov dword [edi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042cac7
add esp, 0x414
ret
Function at 0x44764a
Capabilities:
Get disk information

Disassembly:
push 8
mov eax, 0x44efd4
call fcn.0042fb3d
mov esi, ecx
cmp word [esi], 0
je 0x4476ea
push 0x5c
push esi
call fcn.0042dae9
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4476ea
mov edi, ebx
sub edi, esi
sar edi, 1
push esi
inc edi
lea esi, [ebp - 0x14]
call fcn.00404029
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
je 0x4476e2
cmp eax, 5
je 0x4476e2
add ebx, 2
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00401015
push str._:____
push dword [ebp - 0x10]
call fcn.0042dfd8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
test eax, eax
jne 0x4476c2
or esi, 0xffffffff
jmp 0x4476c8
sub eax, ecx
sar eax, 1
mov esi, eax
lea eax, [ecx - 0x10]
call fcn.004015fa
lea eax, [edi - 0x10]
call fcn.004015fa
xor eax, eax
cmp esi, 0xffffffff
sete al
jmp 0x4476ec
lea eax, [edi - 0x10]
call fcn.004015fa
xor eax, eax
call fcn.0042fc15
ret
Function at 0x44b03d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0042f410
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test esi, esi
je 0x44b0a9
test edi, edi
je 0x44b0a9
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x44b0a9
and dword [esi], eax
mov eax, edi
pop edi
leave
ret

Function at 0x44b26c
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push ebx
push esi
xor esi, esi
push esi
push esi
lea ebx, [ebp - 0x44]
call fcn.0044d53a
test eax, eax
jne 0x44b2ec
push 0x45be28
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44b2ec
push 0x38
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0042f410
mov eax, ebx
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov ecx, dword [ebp + 0x1c4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cac7
add ebp, 0x1c8
leave
ret
Function at 0x44b305
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 2
mov edi, eax
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x44b318
sub eax, edx
sar eax, 1
push esi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c877
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
mov dword [ebp - 8], eax
call fcn.0042f410
movzx ecx, word [edi]
add esp, 0x10
mov eax, edi
test cx, cx
je 0x44b36f
movzx ecx, cx
cmp cx, 0x20
je 0x44b36f
add eax, ebx
movzx ecx, word [eax]
test cx, cx
jne 0x44b35f
sub eax, edi
sar eax, 1
push eax
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.0042da9f
add esp, 0xc
push 0x10
pop esi
call fcn.00444750
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x44b3e6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x44b3a6
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
xor ebx, ebx
inc ebx
push ebx
push 0
push 0x45bda4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44b3dd
push edi
call fcn.0042d85a
pop ecx
pop edi
mov al, bl
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x44b3d0

Function at 0x44b79a
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push eax
push 0x44b730
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret
Function at 0x44d328
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4673ec]
push esi
push edi
mov ecx, 0x4673ec
call dword [eax + 0xc]
and dword [ebp - 0x230], 0
mov esi, eax
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
add esi, 0x10
call fcn.0042f410
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d396
xor edi, edi
lea eax, [esi - 0x10]
call fcn.004015fa
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042cac7
leave
ret
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x44d3c7
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x228]
je 0x44d3d4
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x44d3af
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x44d37c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0x218]
jmp 0x44d37e

Function at 0x44d3e3
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x44efa4
call fcn.0042fba6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x240], eax
mov eax, dword [0x4673ec]
mov ecx, 0x4673ec
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x244], ebx
xor esi, esi
push 0x228
lea eax, [ebp - 0x238]
push esi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x23c], esi
call fcn.0042f410
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d450
lea eax, [ebx - 0x10]
call fcn.004015fa
mov eax, esi
call fcn.0042fc29
ret
lea eax, [ebp - 0x23c]
push eax
push edi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x44d481
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x234]
je 0x44d48e
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x44d469
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x44d440
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x240]
push 0x45b41c
call fcn.004061c2
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
inc esi
jmp 0x44d440
Function at 0x44d4b3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x10
pop esi
mov edi, eax
call fcn.00444750
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44d4e9
xor eax, eax
inc eax
jmp 0x44d535
cmp dword [edi + 0x18], 8
mov eax, dword [edi + 0x14]
jb 0x44d4f7
mov ecx, dword [edi + 4]
jmp 0x44d4fa
lea ecx, [edi + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
push ecx
push 1
push ebx
push str.path
push dword [ebp - 4]
call esi
cmp dword [edi + 0x34], 8
mov eax, dword [edi + 0x30]
jb 0x44d51f
mov edi, dword [edi + 0x20]
jmp 0x44d522
add edi, 0x20
add eax, eax
push eax
push edi
push 1
push ebx
push 0x45b47c
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44d53a
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push esi
push edi
push 0x10
pop esi
mov dword [ebp - 0x80], eax
call fcn.00444750
lea ecx, [ebp - 0x78]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44d5d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp ebx, esi
je 0x44d62b
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.0042f410
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x45b43c
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x208
call edi
test eax, eax
je 0x44d5ec
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cac7
add ebp, 0x198
leave
ret 8
lea eax, [ebp - 0x74]
push eax
push 0x104
push ebx
call fcn.0042d016
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44d60e
mov word [ebx], ax
jmp 0x44d5c7
push 0x45b448
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44d5c7
cmp dword [ebp - 0x80], esi
je 0x44d657
mov eax, dword [ebp + 0x1a4]
cmp eax, esi
je 0x44d657
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
push esi
push esi
push 0x45b460
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x44d657
xor esi, esi
inc esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x44d5d3
Function at 0x44d811
Capabilities:
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push 0x40c
mov eax, 0x44eed8
call fcn.0042fb3d
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor edi, edi
push edi
push edi
call esi
push edi
push 0x8000000
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push edi
push eax
mov dword [ebp - 0x14], eax
call esi
mov ebx, eax
mov eax, dword [0x4673ec]
mov ecx, 0x4673ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp ebx, edi
mov dword [ebp - 4], edi
jle 0x44d89d
push ebx
lea esi, [ebp - 0x10]
call fcn.004015c9
cmp ebx, edi
mov edx, eax
jle 0x44d893
push 0x20
pop eax
mov edi, edx
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov eax, ebx
lea edx, [ebp - 0x10]
call fcn.004014e0
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004015c9
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x10]
push dword [esi - 8]
push esi
call fcn.0042da80
pop ecx
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014e0
xor eax, eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x44d8f2
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x44d8f4
shr ecx, 1
dec edx
jne 0x44d8e3
mov dword [ebp + eax*4 - 0x418], ecx
inc eax
cmp eax, 0x100
jl 0x44d8de
or dword [ebp - 0x10], 0xffffffff
mov eax, esi
jmp 0x44d92e
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor ecx, edx
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ebp + ecx*4 - 0x418]
dec ebx
mov dword [ebp - 0x10], edx
inc eax
cmp ebx, edi
jne 0x44d90e
lea eax, [esi - 0x10]
call fcn.004015fa
mov eax, dword [ebp - 0x10]
not eax
call fcn.0042fc15
ret
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x1003a8e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1003a8f6
pop dword [ebp - 0x3c]
mov eax, 0xb90cbae5
add eax, 0x56f6ee11
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc6a0dce7
sub dword [ebp - 0x4c], 0x784e979c
mov dword [ebp - 0x48], 0x777d476e
add dword [ebp - 0x48], 0xbab604d7
mov dword [ebp - 0x44], 0x5d641d8a
sub dword [ebp - 0x44], 0x1117d95c
mov dword [ebp - 0x40], 0xbae08ac8
sub dword [ebp - 0x40], 0xbae08ac8
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x89757ee1
sub eax, 0x796e7dd5
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x53fcc247
sub dword [ebp - 0x4c], 0xdf8a58f1
mov dword [ebp - 0x48], 0x91b1bdb1
add dword [ebp - 0x48], 0xafbaa3c4
mov dword [ebp - 0x44], 0xc80985fc
sub dword [ebp - 0x44], 0x649a1990
mov dword [ebp - 0x40], 0x3fbf0dd3
sub dword [ebp - 0x40], 0x3fbf0dd3
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xebafe204
sub eax, 0xdba8e1c4
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x69157
push 0
call eax
mov ecx, 0xfc0f760b
sub ecx, 0xfc0f26b1
xor ebx, ebx
add ebx, eax
mov edi, 0x10084c00
add edi, dword [ebp - 0x3c]
mov edx, 0x3d0b1a07
add edx, 0x766f1674
xor dword [ebp - 0x10], 0x56deef7
mov esi, dword [edi]
add dword [ebp - 0x38], ebx
xor esi, edx
sub dword [ebp - 0x34], eax
mov dword [ebx], esi
mov dword [ebp - 0x14], 0x6c378761
add ebx, 0x44ccc352
sub ebx, 0x44ccc34e
add edi, 4
loop 0x1003aa14
add eax, 0xf2e4d8f0
sub eax, 0xf2e3a8b5
xor ebx, ebx
add ebx, eax
add eax, 0xa2322fd0
add eax, 0x5dcdd035
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4014c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
cmp dword [ebx + 4], 0xffffffff
je 0x401511
mov edi, dword [ebp + 8]
test edi, edi
je 0x401511
cmp dword [ebp + 0xc], 1
jb 0x401511
push esi
xor esi, esi
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40150c
cmp dword [ebp + 8], 0
je 0x40150c
add esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
jb 0x4014dd
mov eax, esi
pop esi
jmp 0x401513
xor eax, eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40354b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x4035f0
push ecx
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call fcn.00401407
test al, al
je 0x4035f0
push esi
push edi
mov ecx, ebx
call fcn.00401442
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
test eax, eax
je 0x4035e1
add eax, 0x10
push 0x45a8ac
push eax
call fcn.0041a51d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4035e1
mov eax, dword [edi]
test eax, eax
je 0x4035d9
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4035c6
push esi
call fcn.0041a526
xor esi, esi
and dword [edi], esi
pop ecx
jmp 0x4035e3
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [esi + eax], 0
mov eax, dword [ebp - 4]
mov byte [esi + eax + 1], 0
jmp 0x4035e3
mov word [eax + esi], 0
jmp 0x4035e3
xor esi, esi
mov ecx, ebx
call fcn.004013ef
pop edi
mov eax, esi
pop esi
jmp 0x4035f2
xor eax, eax
pop ebx
leave
ret 8

Function at 0x403860
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x403898
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x40388b
xor al, al
jmp 0x4038bc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 4], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0
call fcn.0042a008
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
setne al
pop esi
leave
ret 0xc

Function at 0x4039b8
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea ebp, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4039c5
sub esi, ebp
sar esi, 1
lea esi, [esi*2 + 2]
test ecx, ecx
je 0x403a38
test edx, edx
je 0x403a38
cmp dword [esp + 0x14], ebx
je 0x403a38
cmp dword [esp + 0x1c], ebx
je 0x403a38
test esi, esi
je 0x403a38
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 0x20106
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a38
push esi
push dword [esp + 0x20]
xor esi, esi
inc esi
push esi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
test eax, eax
movzx ebx, bl
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x403acb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x403b3d
cmp dword [ebp + 0x10], 4
jb 0x403b3d
xor ebx, ebx
mov dword [esi], ebx
test ecx, ecx
je 0x403b3d
test edx, edx
je 0x403b3d
cmp dword [ebp + 8], ebx
je 0x403b3d
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
mov dword [ebp - 4], ebx
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b39
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x403b3f
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x403f55
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
cmp dword [esp + 0x24], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
je 0x404118
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
or esi, 0xffffffff
cmp ebx, esi
je 0x404118
push 0
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push 0
push ebx
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [esp + 0x28], eax
cmp eax, esi
jne 0x403fc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x404111
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
jne 0x404111
mov eax, dword [edi]
xorps xmm0, xmm0
mov edx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
movlpd qword [esp + 0x10], xmm0
test eax, eax
je 0x40406a
test edx, edx
jne 0x403ff4
test ebp, ebp
je 0x40406a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
and dword [esp + 0x34], 0
test edx, edx
jb 0x40401e
ja 0x404017
cmp ebp, 0xfffffff
jbe 0x40401e
mov ecx, 0xfffffff
jmp 0x404020
mov ecx, ebp
add eax, dword [esp + 0x28]
lea edx, [esp + 0x34]
push 0
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x404072
add eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
adc ecx, 0
mov dword [esp + 0x10], eax
sub ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
sbb edx, 0
mov dword [esp + 0x20], edx
test edx, edx
ja 0x404004
jb 0x404072
test ebp, ebp
jne 0x404004
jmp 0x404072
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jne 0x404111
cmp ecx, dword [edi + 0xc]
jne 0x404111
push 1
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push ebx
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, esi
jne 0x4040bb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4040b7
mov edi, esi
mov ebp, esi
jmp 0x4040bf
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], edi
push eax
push edi
push ebx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [esp + 0x28], eax
cmp eax, esi
jne 0x4040f0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4040ec
mov eax, esi
jmp 0x4040f6
mov eax, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp esi, edi
jne 0x404105
cmp eax, ebp
jne 0x404105
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
jmp 0x40411a
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc