joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100038dc
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push esi
push edi
push ebx
push 0x70
push dword [0x1000d886]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x10003a9a
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x1000f13f
push 9
push dword [0x1000d88a]
call fcn.10002a57
mov dword [esi + 4], eax
push eax
call fcn.10006cf0
or eax, eax
je 0x10003a9a
push dword [0x1000d886]
pop dword [esi]
lea ebx, [ebp - 0x414]
push ebx
push dword [ebp - 0x404]
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x424]
push edi
push dword [0x1000d886]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
push dword [0x1000d886]
call fcn.100018b0
push 1
push 0x12
push dword [0x1000d882]
call fcn.10001460
or eax, eax
je 0x100039a0
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
push 1
push 0xb
push dword [0x1000d882]
call fcn.10001460
or eax, eax
je 0x100039bb
mov eax, dword [eax + 1]
jmp 0x100039cd
cmp dword [esi + 0x1d], 0
je 0x100039c8
mov eax, 0xfe
jmp 0x100039cd
mov eax, 0xff
mov byte [esi + 0x1c], al
lea ebx, [ebp - 0x460]
push 0x3c
push ebx
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebx], 7
mov byte [ebx + 0x17], 1
mov byte [ebx + 0x1a], 4
push str.MS_SANS_SERIF
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
push dword [0x1000d882]
call fcn.10001460
or eax, eax
je 0x10003a8b
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x10003a2a
mov dword [ebx + 0x10], 0x2bc
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [edi + 0x15]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x95]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x9b]
mov ecx, dword [edi + 0xd]
lea eax, [ebp - 0x400]
push eax
push ecx
push edx
call fcn.10003a9f
lea edx, [edi + 0x15]
cmp byte [edx], 0
jne 0x10003a81
xor ebx, ebx
jmp 0x10003a8b
push edx
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
call sub.gdi32.dll_CreateFontIndirectA
mov dword [esi + 0x14], eax
push esi
call fcn.10001b8b
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10004626
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push esi
push edi
push ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x54], ecx
add ecx, ecx
mov dword [ebp - 0x58], ecx
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], ecx
mov esi, dword [ebp + 8]
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
push 0x1000d8f1
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10004797
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x3c], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x30]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x1000478d
mov dword [ebp - 0x34], eax
push str.trying_large_file_patchmode
call sym.dup2patcher.dll_AddMsg
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov eax, dword [esi + 0x16]
lea esi, [eax + esi]
push dword [ebp - 0x5c]
pop dword [ebp - 0x4c]
mov dword [ebp - 8], 0
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 2
push dword [ebp - 0x34]
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x10004747
mov dword [ebp - 0x38], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
cmp edx, 0xffffffff
je 0x100046f9
sub edx, dword [ebp - 8]
push edx
cmp dword [ebp - 0x4c], 0
je 0x1000470a
mov edx, dword [ebp - 0x58]
add edx, ecx
sub edx, 1
jmp 0x10004710
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x44]
push edx
push ecx
lea eax, [esi + ecx*2 + 8]
add eax, ecx
push eax
lea eax, [esi + ecx*2 + 8]
push eax
lea eax, [ecx + esi + 8]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp - 0x38]
call sym.dup2patcher.dll_SearchAndReplace
add dword [ebp - 8], eax
or dword [ebp - 4], eax
push dword [ebp - 0x38]
call sub.kernel32.dll_UnmapViewOfFile
cmp dword [ebp - 0x4c], 0
jne 0x10004749
jmp 0x10004776
jmp 0x10004785
mov eax, dword [ebp - 0x58]
mov edx, 0
add dword [ebp - 0x44], eax
adc dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x48], ecx
jne 0x10004771
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x3c]
jb 0x10004771
mov dword [ebp - 0x4c], 0
jmp 0x100046d2
mov ecx, dword [esi]
lea esi, [esi + ecx*4 + 8]
cmp dword [esi], 0
jne 0x100046b1
push dword [ebp - 0x34]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x30]
call sub.kernel32.dll_CloseHandle
jmp 0x10004797
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10005518
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbac
push esi
push edi
push ebx
mov byte [ebp - 1], 0
push 0x400
push 0x1001e21d
push 4
push dword [0x1000d882]
call sub.user32.dll_LoadStringA
push 0x1001e21d
call sym.dup2patcher.dll_AddMsg
lea eax, [ebp - 0x401]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
test dword [esi + 5], 8
je 0x1000557c
call fcn.100040df
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x410], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x408], eax
lea eax, [esi + 9]
push dword [ebp - 0x408]
push eax
call fcn.1000580b
mov ecx, dword [ebp - 0x408]
test dword [esi + 5], 1
je 0x100055fd
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x414], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.1000575f
mov ecx, dword [ebp - 0x40c]
push eax
push ecx
lea eax, [ebp - 0x401]
push eax
call sym.dup2patcher.dll_write_disk_file
test eax, eax
je 0x10005705
mov edi, 0x1000d8f1
cmp dword [0x1001217d], 5
jb 0x10005637
cmp dword [0x10012181], 1
jb 0x10005637
push str.import__
push edi
call sub.kernel32.dll_lstrcpyA
jmp 0x10005642
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x401]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x1000d6e6
push edi
call sub.kernel32.dll_lstrcatA
push 0x3c
lea eax, [ebp - 0x450]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebp - 0x450], 0x3c
mov dword [ebp - 0x44c], 0x40
mov dword [ebp - 0x444], 0x1000d6d3
cmp dword [0x1001217d], 5
jb 0x100056a4
cmp dword [0x10012181], 1
jb 0x100056a4
mov dword [ebp - 0x440], str.reg.exe
jmp 0x100056ae
mov dword [ebp - 0x440], str.regedit.exe
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x450]
push eax
call sub.shell32.dll_ShellExecuteExA
push 0xffffffffffffffff
push dword [ebp - 0x418]
call sub.kernel32.dll_WaitForSingleObject
cmp dword [0x1001217d], 6
jb 0x10005701
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x418]
call sub.kernel32.dll_GetExitCodeProcess
or eax, eax
je 0x10005705
mov eax, dword [ebp - 0x454]
mov byte [ebp - 1], al
jmp 0x10005705
mov byte [ebp - 1], 1
push 0x4000
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x1000573a
push 0x4000
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_DeleteFileA
test dword [esi + 5], 8
je 0x10005754
call fcn.1000410a
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1000575f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x100057ec
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x100057e1
mov bl, 0
jmp 0x100057d7
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x100057b9
mov bl, 1
cmp al, 0x5c
jne 0x100057cd
or bl, bl
jne 0x100057cd
cmp byte [esi], 0x5c
je 0x100057cd
cmp byte [esi - 2], 0x5c
je 0x100057cd
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x100057d7
mov bl, 0
cmp byte [esi], 0
jne 0x100057af
mov byte [edi], 0
jmp 0x100057ec
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrcpyA
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call fcn.10006cf0
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x100060e9
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffebc0
push esi
push edi
push ebx
lea eax, [ebp - 0xc00]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0xc00]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov edi, 0x1001261d
xor ebx, ebx
jmp 0x100061f4
cmp byte [esi], 0x18
jne 0x100061f4
push 0x10
lea eax, [ebp - 0x1440]
push eax
lea eax, [esi + 1]
push eax
call fcn.10002200
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x1400]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x1000d7d0
lea eax, [ebp - 0x1400]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x1440]
push eax
lea eax, [ebp - 0x1400]
push eax
call sub.kernel32.dll_lstrcatA
push 0x1000d7d2
lea eax, [ebp - 0x1400]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x1440]
push eax
push dword [0x1000d882]
call fcn.1000149b
mov edx, eax
push dword [0x1000d860]
push edx
lea eax, [ebp - 0x1400]
push eax
call sym.dup2patcher.dll_write_disk_file
or eax, eax
je 0x100061f4
lea eax, [ebp - 0x1400]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x100061f4
mov dword [edi + 4], eax
lea edx, [edi + 8]
lea eax, [esi + 1]
push dword [eax]
pop dword [edx]
push dword [eax + 4]
pop dword [edx + 4]
push dword [eax + 8]
pop dword [edx + 8]
push dword [eax + 0xc]
pop dword [edx + 0xc]
add edi, 0x18
inc ebx
push ebx
push dword [0x1000d882]
call fcn.1000149b
mov esi, eax
or esi, esi
jne 0x10006134
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1000621c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffefc0
push esi
push edi
push ebx
lea eax, [ebp - 0x800]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
mov edi, 0x1001261d
jmp 0x100062b1
push dword [edi + 4]
call sub.kernel32.dll_FreeLibrary
push 0x10
lea eax, [ebp - 0x1040]
push eax
lea eax, [edi + 8]
push eax
call fcn.10002200
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x1000d7d7
lea eax, [ebp - 0x1000]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x1000]
push eax
call sub.kernel32.dll_lstrcatA
push str..dll
lea eax, [ebp - 0x1000]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x1000]
push eax
call sub.kernel32.dll_DeleteFileA
add edi, 0x18
cmp dword [edi + 4], 0
jne 0x10006240
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1000660e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x10006652
inc ecx
cmp ecx, dword [0x1000e4f9]
jne 0x10006652
push 0x400
push 0x10021e25
push 0x16
push dword [0x1000d882]
call sub.user32.dll_LoadStringA
push 0x10021e25
call sym.dup2patcher.dll_AddMsg
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x14
cmp dword [ecx + esi], 0x4550
jne 0x1000661d
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x1000e4f9]
cmp dword [eax - 4], 0x32505564
jne 0x10006692
push 0x400
push 0x10022225
push 0x17
push dword [0x1000d882]
call sub.user32.dll_LoadStringA
push 0x10022225
call sym.dup2patcher.dll_AddMsg
jmp 0x10006647
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
movzx ecx, word [esi + 0x14]
add esi, 0x18
add esi, ecx
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
mov dword [0x100069ed], 0
cmp dword [ebp + 0xc], 4
jne 0x100066c7
or dword [0x100069ed], 1
test dword [ebp + 0x18], 0x40
je 0x100066d7
or dword [0x100069ed], 2
mov ebx, dword [esi + 0x28]
mov dword [0x100069e5], ebx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x100066f9
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x100066fb
xor eax, eax
mov dword [0x100069f1], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x10006790
mov ebx, 0x278
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x1000d860]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.10006f40
add dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.10006f40
mov dword [esi + 0x50], eax
mov ecx, dword [ebp + 8]
add ecx, dword [0x1000e509]
mov byte [ecx - 1], 0x32
mov byte [ecx - 2], 0x50
mov byte [ecx - 3], 0x55
mov byte [ecx - 4], 0x64
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x14
Function at 0x10006867
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, ebx
movzx eax, word [ebx + 0x3c]
add ebx, eax
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0x100068c6
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
add esi, edx
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg edi, esi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0x100068a5
cmp byte [edi], 0
je 0x100068ae
jmp 0x100068ac
cmp byte [edi], al
jne 0x100068ac
inc edi
jmp 0x10006899
mov al, 1
pop edi
pop esi
or al, al
je 0x100068b7
inc ebx
loop 0x10006891
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
inc eax
shl eax, 1
add esi, eax
movzx ecx, word [esi]
mov esi, dword [ebx + 0x1c]
add esi, edx
sub ecx, dword [ebx + 0x10]
xchg ecx, eax
shl eax, 2
add esi, eax
mov eax, dword [esi]
add eax, edx
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8

Function at 0x10006d74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10006e10
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x10006dac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x10006dd7
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x10006f60
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x10006fa5
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x10006f9e
cmp dword [ebp - 0x98], 1
jb 0x10006f9e
mov ecx, 0x101
jmp 0x10006faa
mov ecx, 1
jmp 0x10006faa
mov ecx, 1
lea eax, [ebp - 4]
push eax
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10006ff1
mov eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14
Function at 0x10007000
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x10007045
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x1000703e
cmp dword [ebp - 0x98], 1
jb 0x1000703e
mov ecx, 0x101
jmp 0x1000704a
mov ecx, 1
jmp 0x1000704a
mov ecx, 1
lea eax, [ebp - 4]
push eax
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10007091
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14

Function at 0x10007110
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x10007150
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x10007145
dec esi
cmp byte [esi], 0x5c
jne 0x10007144
mov byte [esi], 0
pop esi
jmp 0x10007153
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x1000722a
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x1000722a
cmp byte [esi], 0
je 0x1000722a
lea edi, [ebp - 0x401]
jmp 0x100071ff
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x10007209
cmp byte [esi], 0
jne 0x100071fd
cmp al, 0x3a
je 0x100071fd
lodsb al, byte [esi]
stosb byte es:[edi], al
mov byte [edi], 0
push 0
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp byte [esi - 1], 0
jne 0x100071fb
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret 4

Function at 0x10007240
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x100072ae
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x100072ae
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
cmp eax, 1
jne 0x100072ae
add ebx, 2
push ebx
push 0x2042
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100072a9
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x100072a9
mov edi, eax
push esi
push edi
call sub.kernel32.dll_lstrcpyA
call sub.user32.dll_EmptyClipboard
cmp eax, 1
jne 0x100072a9
push edi
call sub.kernel32.dll_GlobalUnlock
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
popal
movzx eax, byte [ebp - 1]
leave
ret 4
Function at 0x1000a5d8
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
mov dword [0x10022790], eax
xor eax, eax
mov dword [0x10022794], eax
mov edi, 0x10022740
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x10022780
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop edi
ret

Function at 0x1000a750
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a78f
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegDeleteValueA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0xc

Function at 0x1000a7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push dword [ebp + 0x14]
pop dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a7ef
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x1000a800
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x1000a845
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x1000a83e
cmp dword [ebp - 0x98], 1
jb 0x1000a83e
mov ecx, 0x101
jmp 0x1000a84a
mov ecx, 1
jmp 0x1000a84a
mov ecx, 0xf003f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a894
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14