joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419718
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
call fcn.00449020
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x419808
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x41977c
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.00449020
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419806
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x419fca
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.VIP_TRACKING
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x41a06b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret
Function at 0x41a4dc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x41a52d
test edi, edi
je 0x41a531
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a4ef
sub eax, edx
je 0x41a52d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a4ff
sub eax, edx
je 0x41a52d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Attempting_to_send
call esi
push dword [ebp + 8]
call esi
push str._to_URL:
call esi
push edi
call esi
push 0x459c90
call esi
test edi, edi
jne 0x41a56e
mov eax, dword [0x471b50]
test eax, eax
je 0x41a59f
push 0
push 0
push 0x12
push dword [eax + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0043f1f0
and dword [0x471b50], 0
pop ecx
jmp 0x41a59f
cmp dword [0x471b50], 0
jne 0x41a593
push 0x10
call fcn.0043f248
pop ecx
test eax, eax
je 0x41a58c
mov esi, eax
call fcn.00419fca
jmp 0x41a58e
xor eax, eax
mov dword [0x471b50], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.0041a012
pop esi
leave
ret

Function at 0x41a5a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41a5c0
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041a999
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x41a5e4
add ecx, 4
dec edi
jne 0x41a5df
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041a618
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x41a651
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret
Function at 0x41a907
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x41a951
jmp 0x41a927
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x41a91c
call fcn.0041a74d
jmp 0x41a93e
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x41a933
jmp 0x41a956
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x41a946
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.0041a74d

Function at 0x41a9c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
push edi
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x45a5b0
stosb byte es:[edi], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41a9ea
sub eax, esi
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0041a999
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x41aa0c
add ecx, 4
dec edi
jne 0x41aa07
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.0041a618
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x41aa40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.0041a651
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.0041a6e2
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.0041a6e2
lea eax, [ebp - 0x1c]
push eax
call fcn.0041a685
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041a618
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x41aabe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x41ab32
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.00447e70
mov edi, esp
push ebx
push 0
push edi
call fcn.00449020
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.00446800
add esp, 0xc
push esi
push edi
call fcn.0041a9c8
pop ecx
pop ecx
test esi, esi
je 0x41ab2d
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.00446800
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.0041aa40
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ab6e
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ab79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x41ab8f
mov ecx, dword [eax]
jmp 0x41ab91
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x41ab9b
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x41abaf
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41abb2
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], esi
je 0x41ac28
cmp dword [ebp + 0x14], esi
je 0x41ac28
mov dword [ebp - 0x10], ebx
cmp eax, esi
je 0x41abdc
lea eax, [ecx + ecx + 2]
mov dword [ebp - 4], eax
call fcn.00447e70
mov edi, esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x41acb6
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41ac2d
mov eax, esi
jmp 0x41acb6
mov dword [ebp - 0x10], esi
jmp 0x41abdc
cmp dword [ebp - 0x10], 0
je 0x41ac9c
push dword [ebp - 4]
push edi
call fcn.0041a9c8
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
je 0x41ac9c
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 4]
mov esi, eax
inc esi
cmp esi, ebx
jae 0x41ac7d
push ebx
push edi
call fcn.0041a9c8
sub dword [ebp - 4], esi
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 0x1c]
call fcn.0041aa40
mov ebx, dword [ebp - 4]
add esp, 0x14
dec ebx
mov dword [ebp - 4], ebx
jmp 0x41ac7f
xor esi, esi
push ebx
add esi, edi
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.00446800
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [eax]
jae 0x41ac9f
mov byte [ebx + esi], 0
jmp 0x41ac9f
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41aca8
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41acb4
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ad3e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x64
mov esi, eax
pop ebx
call fcn.0041ace9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x41ad63
mov ebx, dword [esi + 8]
add ebx, 0x64
call fcn.0041ace9
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xea
je 0x41ad58
test ebx, ebx
jne 0x41adab
cmp dword [ebp - 8], eax
jbe 0x41ada6
cmp dword [ebp - 8], 2
jbe 0x41ad9d
cmp dword [ebp - 8], 7
jne 0x41ada6
cmp dword [ebp - 4], 0
je 0x41ada6
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x41adad
xor eax, eax
mov ecx, esi
call fcn.0041ad27
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x41dc89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x471b58
push 0x45b388
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push esi
push esi
push SysReAllocStringLen
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov eax, esi
je 0x41dce3
mov eax, 0x471b6c
pop esi
leave
ret
Function at 0x41fcb8
Capabilities:
Print debug messages

Disassembly:
push dword [esi + 0x190]
call fcn.00437216
mov eax, dword [esi + 0x188]
pop ecx
mov ecx, dword [esi + 0x18c]
mov edx, eax
or edx, ecx
je 0x41fcea
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esi + 0x188], eax
mov dword [esi + 0x18c], ecx
jmp 0x41fcf5
push str.Attempt_to_reduce_CMuppet_ref_count___0_IGNORED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
push dword [esi + 0x190]
call fcn.0043722a
lea edi, [esi + 0x10c]
push dword [edi]
call fcn.00437216
cmp byte [esi + 0x72], 0
push dword [edi]
sete bl
call fcn.0043722a
add esp, 0xc
pop edi
mov al, bl
pop ebx
ret

Function at 0x420320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
push dword [ebx + 0xfc]
mov esi, eax
call fcn.00437216
mov eax, dword [ebx + 0x180]
pop ecx
test eax, eax
je 0x42034a
push eax
call fcn.0043fe48
pop ecx
push dword [ebx + 0xfc]
and dword [ebx + 0x180], 0
call fcn.0043722a
mov dword [esp], 0x104
lea eax, [ebp - 0x110]
push eax
push str.MUP_CACHEDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x420385
lea eax, [ebp - 0x110]
jmp 0x4203a7
mov dword [ebp - 4], esi
test esi, esi
jne 0x4203aa
push esi
lea eax, [ebp - 0x218]
call fcn.0042be4f
pop ecx
test al, al
je 0x4204a1
lea eax, [ebp - 0x218]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4203b0
sub eax, esi
add eax, 0x11
push eax
call fcn.0043f4d3
mov edx, dword [ebp - 4]
pop ecx
mov dword [ebx + 0x180], eax
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4203cc
mov esi, dword [ebx + 0x180]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4203e1
sub eax, edi
je 0x420405
cmp byte [esi + eax - 1], 0x5c
je 0x420405
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4203f4
mov edi, esi
mov esi, 0x45886c
movsw word es:[edi], word [esi]
mov edi, dword [ebx + 0x180]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42040c
mov esi, str.cache
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x180]
push 0
call fcn.00427447
pop ecx
test al, al
jne 0x42045c
push dword [ebx + 0x180]
call fcn.0043fe48
and dword [ebx + 0x180], 0
pop ecx
push dword [ebp - 4]
push str.Unable_to_use_global_cache_at__s:_dir_doesnt_exist_and_cant_be_created_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
jmp 0x4204a1
push dword [ebx + 0xfc]
call fcn.00437216
mov esi, dword [ebx + 0x180]
mov eax, esi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420473
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x420495
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x420484
mov edi, esi
mov esi, 0x45886c
movsw word es:[edi], word [esi]
push dword [ebx + 0xfc]
call fcn.0043722a
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4230a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20
push dword [ebp + 0xc]
call fcn.004260b0
mov ebx, eax
push 0
mov dword [ebp - 8], ebx
call fcn.0043f8a3
pop ecx
and eax, 0xffff
push eax
call fcn.00442073
pop ecx
call fcn.00442085
imul eax, eax, 0x3e8
cdq
mov ecx, 0x7fff
idiv ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push str._04i
push eax
call fcn.0044013b
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4230fa
mov esi, 0x45bf2c
lea eax, [ebp - 0x2c]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42310e
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42311a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x2710
jmp 0x423194
push ebx
call fcn.00424a4b
pop ecx
test al, al
jne 0x42317d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423149
sub eax, edx
cmp eax, 0x104
jae 0x4231d4
mov edi, dword [ebp + 0xc]
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
test al, al
jne 0x4231a2
inc dword [ebp - 4]
push dword [ebp - 4]
push edi
push str._s._04i
jmp 0x42318b
inc dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp + 0xc]
push str._s._4i
push ebx
call fcn.0044013b
add esp, 0x10
cmp dword [ebp - 4], esi
jl 0x423139
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
call fcn.004273ec
mov esi, dword [ebp + 8]
pop ecx
mov eax, edi
call fcn.0042350a
mov edx, edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4231b9
mov bl, 1
mov eax, dword [ebp + 8]
lea edi, [ebp - 8]
call fcn.00426211
mov al, bl
jmp 0x42319b
xor bl, bl
jmp 0x4231c5
Function at 0x4231d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax + 0x180]
sub esp, 0x108
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4231ef
sub eax, esi
test ecx, ecx
je 0x423266
test eax, eax
je 0x423266
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dl, byte [ecx]
inc ecx
mov byte [esi], dl
inc esi
test dl, dl
jne 0x423205
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x45886c
je 0x423228
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42321c
mov esi, ebx
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42322c
mov esi, str.__temp
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
push 0
mov eax, edi
call fcn.00427447
pop ecx
test al, al
je 0x42337f
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423253
mov esi, ebx
movsw word es:[edi], word [esi]
mov edi, 0x104
jmp 0x423285
push dword [ebp + 0xc]
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42337f
cmp eax, edi
jae 0x42337f
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42328b
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42329c
sub eax, ecx
lea eax, [eax + esi + 1]
cmp eax, edi
jae 0x42337f
push 0x45be94
push dword [ebp + 8]
call fcn.0043f5a0
pop ecx
pop ecx
test eax, eax
je 0x4232c9
add eax, 3
jmp 0x4232cc
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4232d4
lea eax, [ebp - 0x108]
cmp byte [ebp - 0x108], cl
je 0x423340
movsx ecx, byte [eax]
cmp ecx, 0x2f
jg 0x423323
je 0x42331e
cmp ecx, 0x22
je 0x423337
cmp ecx, 0x2a
je 0x423337
cmp ecx, 0x2e
jne 0x42333a
mov cl, byte [eax + 1]
test cl, cl
je 0x423337
cmp cl, 0x2e
je 0x423318
cmp cl, 0x5c
je 0x423337
jmp 0x42333a
mov byte [eax + 1], 0x5f
jmp 0x423337
mov byte [eax], 0x5c
jmp 0x42333a
cmp ecx, 0x3c
je 0x423337
cmp ecx, 0x3d
jle 0x42333a
cmp ecx, 0x3f
jle 0x423337
cmp ecx, 0x7c
jne 0x42333a
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x4232ec
lea eax, [ebp - 0x108]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423348
mov edi, dword [ebp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423355
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
call fcn.00427447
test al, al
pop ecx
setne al
jmp 0x423381
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x423388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push dword [ebp + 8]
mov esi, 0x80
push esi
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.00440de5
add esp, 0x10
cmp eax, esi
je 0x4233b4
xor al, al
jmp 0x42346c
lea eax, [ebp - 0x80]
mov byte [ebp - 1], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4233be
sub eax, edx
jmp 0x4233d1
cmp byte [ebp + eax - 0x80], 0
jne 0x4233ad
inc eax
cmp eax, esi
jb 0x4233c9
lea eax, [ebp - 0x100]
push eax
push str.size
lea eax, [ebp - 0x80]
push eax
call fcn.00423471
test al, al
je 0x4233ad
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.0043f0f8
pop ecx
mov edi, eax
lea eax, [ebp - 0x100]
push eax
push str.hash
lea eax, [ebp - 0x80]
push eax
call fcn.00423471
test al, al
je 0x42342e
lea eax, [ebp - 0x100]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423420
sub eax, edx
cmp eax, 0x20
jb 0x423432
xor al, al
jmp 0x42346b
push 0x24
call fcn.0043f248
pop ecx
test eax, eax
je 0x423449
and dword [eax + 0x20], 0
mov byte [eax], 0
mov edx, eax
jmp 0x42344b
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
lea eax, [ebp - 0x100]
mov esi, edx
mov ecx, eax
sub esi, ecx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x42345c
mov dword [edx + 0x20], edi
mov al, 1
pop edi
pop esi
leave
ret 8
Function at 0x427678
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push eax
push 0
push dword [eax + 0x20]
lea eax, [ebp - 0x84]
push str.size:__llu__hash:__s
push eax
call fcn.0044013b
lea eax, [ebp - 0x84]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4276a5
sub eax, ecx
mov esi, 0x80
cmp eax, esi
jae 0x4276ce
mov edx, esi
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x84]
push 0
push ecx
call fcn.00449020
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push esi
push 1
push eax
call fcn.00442286
add esp, 0x10
cmp eax, esi
je 0x4276eb
xor al, al
jmp 0x4276f6
push dword [ebp + 8]
call fcn.00441f67
pop ecx
mov al, 1
pop esi
leave
ret 4
Function at 0x42be4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push 0
mov ebx, eax
push 0x23
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42be79
xor al, al
jmp 0x42befa
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42be82
sub eax, edx
cmp eax, 0xf8
jae 0x42be72
lea eax, [ebp - 0x104]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42be9e
push esi
push edi
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42bead
mov eax, 0x45886c
mov esi, eax
movsw word es:[edi], word [esi]
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42bec1
mov esi, 0x457d08
movsd dword es:[edi], dword [esi]
cmp byte [ebp + 8], cl
je 0x42bef6
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42bed7
mov esi, eax
dec ebx
movsw word es:[edi], word [esi]
mov edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42bee6
mov esi, str.cache
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
mov al, 1
pop esi
pop ebx
leave
ret