joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410cb4
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x41f440], esi
jbe 0x410cec
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x410cf8
mov eax, dword [esi*4 + 0x41f444]
test ah, 0x40
je 0x410d00
xor edi, edi
test ah, 2
je 0x410d0c
xor eax, eax
jmp 0x410cf8
mov dword [esp], 0xfffffffa
call fcn.00411fd8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x4110ec
test edx, edx
jne 0x410d14
xor eax, eax
jmp 0x410cf8
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x4110ec
mov ebp, eax
test ebp, ebp
je 0x410e6d
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x410cf8
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.00410320
test eax, eax
je 0x410d70
or byte [esi*4 + 0x41f445], 2
mov ebp, eax
sub ebp, ebx
je 0x410e69
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x410da3
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x4110ec
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x410cf8
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x410dc9
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.00410320
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x410e04
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00410378
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x410dc4
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x410e45
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x41f445], 0x20
sete cl
test ebp, ebp
jne 0x410e6d
and cl, al
jne 0x410e59
jmp 0x410e6d
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x410e6d
test al, al
je 0x410e6d
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x410d18
jmp 0x410e6d
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x410cf8
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41f440], eax
jbe 0x411139
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4244d8]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x411147
mov eax, dword [esp + 0x14]
jmp 0x41115d
mov dword [esp], 6
call fcn.00411fd8
jmp 0x41115d
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x41115d
mov dword [esp], ecx
call fcn.00411fd8
add esp, 0x18
pop esi
ret
Function at 0x4110ec
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x41f440], esi
jbe 0x410cec
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x410cf8
mov eax, dword [esi*4 + 0x41f444]
test ah, 0x40
je 0x410d00
xor edi, edi
test ah, 2
je 0x410d0c
xor eax, eax
jmp 0x410cf8
mov dword [esp], 0xfffffffa
call fcn.00411fd8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x4110ec
test edx, edx
jne 0x410d14
xor eax, eax
jmp 0x410cf8
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x4110ec
mov ebp, eax
test ebp, ebp
je 0x410e6d
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x410cf8
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.00410320
test eax, eax
je 0x410d70
or byte [esi*4 + 0x41f445], 2
mov ebp, eax
sub ebp, ebx
je 0x410e69
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x410da3
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x4110ec
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x410cf8
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x410dc9
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.00410320
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x410e04
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00410378
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x410dc4
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x410e45
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x41f445], 0x20
sete cl
test ebp, ebp
jne 0x410e6d
and cl, al
jne 0x410e59
jmp 0x410e6d
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x410e6d
test al, al
je 0x410e6d
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x410d18
jmp 0x410e6d
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x410cf8
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41f440], eax
jbe 0x411139
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4244d8]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x411147
mov eax, dword [esp + 0x14]
jmp 0x41115d
mov dword [esp], 6
call fcn.00411fd8
jmp 0x41115d
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x41115d
mov dword [esp], ecx
call fcn.00411fd8
add esp, 0x18
pop esi
ret
Function at 0x411174
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41f440], eax
jbe 0x4111c1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4244d8]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
cmp eax, 1
jne 0x4111cf
mov eax, dword [esp + 0x14]
jmp 0x4111d4
mov dword [esp], 6
call fcn.00411fd8
jmp 0x4111d4
call fcn.00412058
add esp, 0x18
pop esi
ret

Function at 0x412a88
Capabilities:
Delete file

Disassembly:
push eax
mov eax, dword [esp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x412aa1
xor eax, eax
pop edx
ret
pop eax
jmp fcn.00412058

Function at 0x417680
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
test esi, esi
je 0x4177a3
lea eax, [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetLocalTime
sub esp, 4
movzx eax, word [esp + 0x2e]
mov dword [esp + 0x24], eax
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x2c]
movzx ebx, word [esp + 0x34]
movzx ebp, word [esp + 0x36]
movzx edi, word [esp + 0x38]
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._02d__02d__04d__02d:_02d:_02d._03d
mov dword [esp], 0x4247c8
call sub.USER32.DLL_wsprintfA
mov dword [esp], 0x4247c8
call fcn.00410658
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x4247c8
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov edi, dword [esp + 0x54]
mov dword [esp], edi
call fcn.00410658
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4177b4
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x9c
mov ecx, dword [0x4247e8]
mov eax, dword [0x4247ec]
mov edi, dword [esp + 0xac]
test eax, eax
jne 0x4178a9
test ecx, ecx
jne 0x4178a9
cmp dword [0x420620], 0
je 0x4178eb
lea esi, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x80
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 0x5c
call fcn.00417548
test eax, eax
jne 0x417836
mov dword [esp], esi
mov dword [esp + 4], 0x3a
call fcn.00417548
test eax, eax
je 0x417839
inc eax
mov esi, eax
mov dword [esp + 0x98], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x417889
call sub.KERNEL32.DLL_GetCurrentThreadId
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x4179b4
call sub.USER32.DLL_EnumThreadWindows
sub esp, 0xc
mov ecx, 0x12010
cmp dword [esp + 0x98], 0
jne 0x417889
mov ecx, 0x11010
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.USER32.DLL_MessageBoxA
sub esp, 0x10
jmp 0x417975
test ecx, ecx
je 0x4178c0
cmp ecx, 0xffffffff
je 0x417975
mov dword [esp], edi
call ecx
mov eax, dword [0x4247ec]
test eax, eax
je 0x417975
cmp eax, 0xffffffff
je 0x417975
cmp byte [eax], 0
je 0x417975
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00417680
jmp 0x417975
mov dword [esp], 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov esi, eax
lea ebx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x420470
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], edi
call fcn.00410658
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x420470
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
add esp, 0x9c
pop esi
pop edi
pop ebx
ret
Function at 0x418800
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x42881c]
test eax, eax
je 0x418847
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
je 0x4188d2
add eax, 4
xor edi, edi
nop word cs:[eax + eax]
cmp byte [ecx], 1
sbb ecx, ecx
lea edi, [edi + ecx + 1]
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x418830
jmp 0x4188d2
mov esi, dword [0x428858]
test esi, esi
jne 0x418874
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x428858], esi
test esi, esi
jne 0x418874
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00417994
mov esi, dword [0x428858]
mov dword [esp], esi
call fcn.00410658
xor ebx, ebx
mov ebp, 1
xor edi, edi
test eax, eax
je 0x4188a8
mov ebp, esi
nop dword [eax + eax]
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
lea ebx, [eax + ebx + 1]
inc edi
call fcn.00410658
test eax, eax
jne 0x418890
inc ebx
mov ebp, ebx
mov dword [esp], ebp
call fcn.0040ddfc
mov ecx, eax
mov dword [0x428818], ecx
xor eax, eax
test ecx, ecx
je 0x41897d
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.00410378
lea eax, [edi + 4]
mov dword [0x428820], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0040dde4
mov esi, eax
xor eax, eax
test esi, esi
je 0x41897d
mov edi, dword [0x42881c]
test edi, edi
je 0x41892f
mov edx, dword [edi]
test edx, edx
je 0x41896a
lea eax, [edi + 4]
xor ecx, ecx
nop
cmp byte [edx], 0
jne 0x418920
dec ecx
jmp 0x418923
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x418910
jmp 0x418966
mov ebx, dword [0x428818]
mov dword [esp], ebx
call fcn.00410658
test eax, eax
je 0x418972
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [eax + ebx + 1]
mov dword [esp], ebx
add ebp, 4
call fcn.00410658
test eax, eax
jne 0x418950
test edi, edi
je 0x418972
mov dword [esp], edi
call fcn.0040de0c
mov dword [0x42881c], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x65c7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17f000]
push edi
jmp 0x65c7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x65c7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c7e0
mov eax, 1
add ebx, ebx
jne 0x65c803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x65c814
jne 0x65c833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c833
dec eax
add ebx, ebx
jne 0x65c820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x65c7f8
add ebx, ebx
jne 0x65c82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x65c885
xor ecx, ecx
sub eax, 3
jb 0x65c84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x65c8ba
sar eax, 1
mov ebp, eax
jmp 0x65c856
add ebx, ebx
jne 0x65c856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c824
inc ecx
add ebx, ebx
jne 0x65c864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65c824
add ebx, ebx
jne 0x65c871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x65c866
jne 0x65c882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x65c866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65c8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x65c896
jmp 0x65c7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65c8a4
add edi, ecx
jmp 0x65c7e6
pop esi
mov edi, esi
mov ecx, 0xa876
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65c8c2
cmp byte [edi], 0x22
jne 0x65c8c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x65c8c7
lea edi, [esi + 0x258000]
mov eax, dword [edi]
or eax, eax
je 0x65c93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b0f40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x65c8f4
mov ecx, edi
jns 0x65c923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b0f44]
or eax, eax
je 0x65c939
mov dword [ebx], eax
add ebx, 4
jmp 0x65c911
call dword [esi + 0x2b0f54]
mov ebp, dword [esi + 0x2b0f48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x65c973
sub esp, 0xffffff80
jmp 0x480bb9
Function at 0x40141d
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004069c2
test eax, eax
jne 0x40152f
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401492
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150b
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e0
test esi, esi
jne 0x40150b
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141d
test eax, eax
jne 0x4014e0
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407291
test eax, eax
jne 0x40151c
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152f
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403783
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x4037ac
mov eax, dword [0x46f5b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x420154], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403604
test eax, eax
js 0x403882
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call fcn.004072f3
test eax, eax
je 0x40387d
push dword [ebp + 8]
add dword [0x420154], 4
call fcn.00403604
mov esi, eax
test esi, esi
js 0x403879
cmp dword [ebp + 0x10], edi
jne 0x40384d
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x403879
mov ebx, 0x4000
mov edi, 0x4281f8
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40c014]
mov dword [ebp - 4], eax
call fcn.004072f3
test eax, eax
je 0x40387d
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004073b6
test eax, eax
je 0x403849
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x420154], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403805
jmp 0x403879
push 0xfffffffffffffffe
jmp 0x40387f
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40387d
mov esi, dword [ebp - 4]
add dword [0x420154], esi
mov eax, esi
jmp 0x403880
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4038a5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x4038cd
mov eax, dword [0x420168]
test eax, eax
je 0x4038c4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420168], 0
leave
ret
cmp dword [0x420168], 0
je 0x4038df
push 0
call fcn.004068f9
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x46f560]
jbe 0x403949
cmp dword [0x467558], 0
je 0x403924
test byte [0x46f654], 1
je 0x403949
call fcn.00403887
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00406439
leave
ret
push 0
push 0x403c03
push 0
push 0x6f
push dword [0x467554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420168], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x40651d
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40688e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmovbe ecx, eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
test ecx, ecx
je 0x4068cc
cmp word [eax - 2], 0x5c
mov ecx, 0x4098b4
jne 0x4068d1
mov ecx, 0x4098b6
push dword [ebp + 8]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406927
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40694a
push dword [esp + 8]
push dword [esp + 8]
call fcn.004069f0
pop ecx
pop ecx
inc dword [0x46f630]
ret 8

Function at 0x4069f0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x45ce80], 0x55004e
mov ebp, 0x45ce80
mov dword [0x45ce84], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406a46
push 1
push 0
push esi
call fcn.004072c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406b26
cmp eax, ebx
jg 0x406b26
push ebx
mov esi, 0x45c680
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406b26
cmp eax, ebx
jg 0x406b26
push esi
push ebp
push str._ls_ls_r_n
push 0x45c280
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x46f570]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406598
push 4
push 0xc0000000
push esi
call fcn.004072c6
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b26
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406b1f
push esi
push edi
push ebx
call fcn.004072f3
test eax, eax
je 0x406b1f
push str._Rename__r_n
push edi
call fcn.004074e1
test eax, eax
jne 0x406b2b
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x45c280
lea eax, [ecx + edi]
push eax
call fcn.00407005
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004073b6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a374
add eax, 0xa
push eax
call fcn.004074e1
mov ecx, eax
test ecx, ecx
je 0x406af0
lea edx, [edi + esi]
jmp 0x406b4a
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406b44
sub ecx, edi
inc ecx
jmp 0x406af2