joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x401db5
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x401d8e
mov eax, dword [esp + 8]
test eax, eax
jne 0x401dd2
mov eax, 6
add esp, 0x94
ret
cmp eax, 6
jne 0x401da7
mov eax, dword [esp + 8]
test eax, eax
jne 0x401da9
mov eax, 8
add esp, 0x94
ret
jb 0x401dd2
mov eax, 9
add esp, 0x94
ret
cmp eax, 1
jne 0x401dd2
cmp dword [esp + 4], 4
jne 0x401dd2
cmp dword [esp + 8], 0x5a
sbb eax, eax
add eax, 4
add esp, 0x94
ret
mov eax, 7
add esp, 0x94
ret

Function at 0x402280
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402292
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret 4

Function at 0x4022a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
pop edi
ret 8
Function at 0x54caa6
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0054cb25
jae 0x54cab2
xor ecx, ecx
call fcn.0054cb25
jae 0x54cadc
xor eax, eax
call fcn.0054cb25
jae 0x54caed
mov al, 0x10
call fcn.0054cb25
adc al, al
jae 0x54cace
jne 0x54cb1a
stosb byte es:[edi], al
jmp 0x54cab3
call fcn.0054cb31
dec ecx
loop 0x54caf9
mov eax, ebp
call fcn.0054cb2f
jmp 0x54cb1b
lodsb al, byte [esi]
shr eax, 1
je 0x54cb41
adc ecx, 2
mov ebp, eax
jmp 0x54cb1b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0054cb2f
cmp eax, 0x7d00
jae 0x54cb19
cmp eax, 0x500
jae 0x54cb1a
cmp eax, 0x7f
ja 0x54cb1b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54cab3
pop ebp
ret 8
Function at 0x4036d4
Capabilities:
Terminate process

Disassembly:
jmp 0x456909
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45691a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405ace
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403805
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a0502
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0513
pop esi
ret
push ebx
push edi
push esi
call fcn.004a03e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040fc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a053b
push ebx
push esi
push edi
call fcn.004058a8
add esp, 0xc
push 0
call fcn.00406456
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40597a
Capabilities:
Parse pe header

Disassembly:
jmp 0x4456bf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4456fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4456fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4456fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4456fe
cmp dword [ecx + 0x74], 0xe
jbe 0x4456fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x498fe7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x50ac34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040604b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x499029
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x499185
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061a9
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x50eb60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403328
mov ecx, dword [esi*4 + 0x50eb60]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49917e
cmp eax, dword [edi + ecx + 0x24]
jne 0x49917e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49917e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403328
add esp, 0x14
test edx, edx
jl 0x49917e
jg 0x4990f4
test eax, eax
jb 0x49917e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49917e
jl 0x49910e
cmp dword [ebp - 0x1008], eax
ja 0x49917e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49912c
test ebx, ebx
je 0x499165
cmp ecx, edi
jae 0x499165
mov al, byte [ecx]
cmp al, 0xd
jne 0x499146
lea eax, [edi - 1]
cmp ecx, eax
jae 0x499152
cmp byte [ecx + 1], 0xa
jne 0x499152
inc ecx
jmp 0x499152
movzx eax, al
movsx eax, byte [eax + 0x50af58]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49912c
cmp edx, ebx
jne 0x49912c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x499183
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403107
leave
ret
Function at 0x4998c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x50eb60]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499904
cmp byte [ebx], 0xa
jne 0x499904
or byte [eax + edi + 0x28], 4
jmp 0x499909
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x499a07
mov al, byte [edx]
cmp al, 0x1a
je 0x4999e9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x499938
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49995d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x499967
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49991a
jmp 0x499a07
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4999e4
cmp dword [ebp - 0xc], 0
je 0x4999e4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x50eb60]
test byte [eax + edi + 0x28], 0x48
je 0x4999be
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4999a9
mov byte [esi], dl
jmp 0x4999ba
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50eb60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x499a07
cmp byte [ebp - 1], 0xa
jne 0x4999cd
cmp esi, ebx
jne 0x4999cd
mov byte [esi], 0xa
jmp 0x499a06
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x499a07
mov byte [esi], 0xd
jmp 0x499a06
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x50eb60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499a03
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499a07
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499a63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x50eb60]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499aa6
cmp word [esi], dx
jne 0x499aa6
or byte [edi + eax + 0x28], 4
jmp 0x499aab
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x499bfe
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x499bde
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x499aed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x499b23
cmp eax, edx
jae 0x499b2f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x499ac5
jmp 0x499bfe
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499bda
cmp dword [ebp - 0x14], 0
je 0x499bda
mov eax, dword [ebx*4 + 0x50eb60]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x499bb2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x499b7b
mov word [esi], cx
jmp 0x499bae
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x50eb60]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x50eb60]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x50eb60]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x499bfe
pop ebx
cmp word [ebp - 4], bx
jne 0x499bc3
cmp esi, dword [ebp + 0xc]
jne 0x499bc3
mov word [esi], bx
jmp 0x499bfb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x499bfe
push 0xd
jmp 0x499bf7
mov ecx, dword [ebx*4 + 0x50eb60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499bf5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499bfe
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49eaa1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50ac34]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49eaec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049ef63
test al, al
jne 0x49eae6
sub edx, 2
cmp edx, edi
jne 0x49eacc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49eb0e
lea eax, [edi + 2]
cmp edx, eax
je 0x49eb0e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e69a
add esp, 0x10
jmp 0x49ec08
push esi
lea ecx, [ebp - 0x255]
call fcn.0049ef63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49eb51
push dword [ebp - 0x25c]
jmp 0x49eafe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49eb8e
cmp word [ebp - 0x226], 0
je 0x49ebaf
cmp word [ebp - 0x226], ax
jne 0x49eb8e
cmp word [ebp - 0x224], 0
je 0x49ebaf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e69a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ebfb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49eb68
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ebe3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ec08
push 0x49e082
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056dc
add esp, 0x10
jmp 0x49ebd8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
leave
ret
Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30c
push eax
push 0x40a26c
lea ecx, [ebp - 0x30c]
push str._s__c_rd__s__q___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0x30c]
push edx
push str.cmd.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret

Function at 0x401200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00401030
add esp, 4
test eax, eax
jne 0x401224
mov eax, str.Failed_to_locate_application_resource.
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401264
mov eax, dword [0x40de6c]
mov ecx, dword [0x40de68]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
je 0x40127d
cmp esi, 0xffffffff
je 0x40127d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
neg eax
sbb eax, eax
not eax
pop esi
and eax, str.Failed_to_decompress_application_files.
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Create directory
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x401307
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
test esi, esi
je 0x4013f1
cmp esi, 0x103
ja 0x4013f1
cmp byte [esi + edi - 1], 0x5c
je 0x4012df
mov word [esi + edi], 0x5c
mov esi, dword [ebp + 0x10]
push esi
push 0
push 0x40a270
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401359
test ebx, ebx
je 0x4013f1
push str.Failed_to_create_temporary_folder.
jmp 0x4013e2
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x4013dd
cmp esi, 0x104
ja 0x4013dd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4012d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4012d2
push str.Temporary_folder_missing._Ask_your_administrator_to_solve_this_problem.
push 0
call fcn.00401170
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40139a
cmp dword [ebp + 8], eax
je 0x401390
push str.Failed_to_create_temporary_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
push esi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebx
test eax, eax
jne 0x4013d3
cmp dword [ebp + 8], eax
je 0x4013c0
push str.Failed_to_use_temporary_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
push edi
call ebx
push esi
call fcn.00401120
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push str.Failed_to_resolve_temporary_folder_path.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x401400
Capabilities:
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallJoinMe
push 0x80000001
mov dword [ebp - 4], 0
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40146c
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 4]
push str.InstallLocation
push eax
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x40146c
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push edi
push esi
push 0
push 0
push 0x1c
push 0
call ebx
mov edi, eax
test edi, edi
je 0x401496
push esi
push 0
push 0
push 0x1a
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4014c5
push 0x40a38c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4014c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014c5
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
pop edi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401660
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x401689
cmp dword [ebp + 0x10], edi
je 0x401689
push str.backup
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jne 0x4016a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov edi, eax
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40172a
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0x40a3f4
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40172a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
cmp edx, esi
je 0x40172a
cmp dword [ebp + 0x10], esi
je 0x40172a
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], esi
jne 0x401705
cmp dword [ecx + 0xc], esi
je 0x40172a
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx esi, ax
push esi
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
jmp 0x401770
mov eax, dword [esi + section..data]
test eax, eax
je 0x4017c4
push eax
push ebx
lea eax, [ebp - 0x208]
push str._s_s
push eax
call edi
mov ecx, dword [esi + section..data]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x104]
push str._s_s
push eax
call edi
add esp, 0x20
push 1
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esi, 4
cmp esi, 0x24
jb 0x401770
push str.params.txt
push ebx
lea eax, [ebp - 0x208]
push str._s_s
push eax
call edi
mov ecx, dword [ebp + 8]
push str.params.txt
push ecx
lea edx, [ebp - 0x104]
push str._s_s
push edx
call edi
add esp, 0x20
push 1
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004034d0
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ebx + 0x10]
cmp ecx, 0x1c
jb 0x402c09
cmp dword [ebx], 0x80000001
jne 0x402c09
cmp dword [ebx + 4], 0
push esi
mov dword [ebp - 4], 0
ja 0x402afa
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp + 8], eax
cmp ecx, eax
jbe 0x402b11
cmp byte [eax + ebx], 0
je 0x402b11
inc eax
mov dword [ebp + 8], eax
cmp ecx, eax
ja 0x402b03
mov edx, dword [edi + 4]
add edx, dword [edi + 8]
cmp ecx, edx
jb 0x402bf8
cmp ecx, eax
je 0x402bf8
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x1004], 0
test eax, eax
je 0x402b70
cmp byte [eax], 0
je 0x402b70
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x1004]
cmp byte [eax + edx - 1], 0x5c
je 0x402b70
push 0x40a3f4
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [edi]
add ecx, ebx
push ecx
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bf8
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
add eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402bf1
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 8]
jne 0x402bf1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc eax
add edi, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 4]
jb 0x402af7
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret