joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41997b
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.00418e72
xor ebx, ebx
mov edi, 0x104
push edi
lea eax, [ebp + 0x95]
push ebx
push eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov byte [ebp + 0x94], bl
call fcn.00429d40
add esp, 0xc
push edi
lea eax, [ebp + 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [ebp + 0x2a1]
push ebx
push eax
mov byte [ebp + 0x2a0], bl
call fcn.00429d40
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp + 0x2a0]
push eax
call fcn.0040eff6
add esp, 0x14
lea eax, [ebp + 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
dec edi
push edi
lea eax, [ebp + 0x19d]
push ebx
push eax
mov byte [ebp + 0x19c], bl
call fcn.00429d40
lea eax, [ebp + 0x2a0]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0040f016
lea eax, [ebp + 0x2a0]
push str._console_
push eax
call fcn.0040f036
lea eax, [ebp + 0x19c]
push str._log_
push eax
call fcn.0040f056
add esp, 0x24
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x419a7a
mov dword [esi + 0x8c], 1
lea eax, [ebp + 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x419a9a
mov dword [esi + 0x88], 1
jmp 0x419b94
cmp dword [esi + 0x8c], ebx
je 0x419b94
push edi
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00429d40
xor eax, eax
mov word [ebp - 0x80], ax
lea edi, [ebp - 0x7e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x70]
push str._slog.txt
push eax
call fcn.0040f076
add esp, 0xc
push 0x40
push 0xa
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
mov ecx, esi
call fcn.004154f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._n________
push esi
call fcn.00418ffa
pop ecx
pop ecx
push 0x45e4a8
push dword [ebp - 0x74]
mov eax, 0x45e4a4
push eax
push dword [ebp - 0x76]
mov ecx, esi
push eax
push dword [ebp - 0x78]
mov eax, 0x45e4a0
push 0x45e49c
push dword [ebp - 0x7a]
push eax
push dword [ebp - 0x7e]
push eax
push dword [ebp - 0x80]
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, eax
call fcn.0041975a
push eax
call fcn.00418ffa
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3a8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x3ac
leave
ret
Function at 0x419bae
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x419c9b
push 1
push 3
lea ecx, [ebp - 0x3c]
call fcn.00418eba
movzx eax, word [ebp + 0x70]
dec eax
je 0x419c12
dec eax
je 0x419c0b
dec eax
dec eax
lea eax, [ebp - 0x34]
je 0x419c04
push 0x45e508
push dword [ebp + 0x70]
push 0x45e504
push eax
call fcn.00419195
pop ecx
pop ecx
mov ecx, eax
call fcn.00419503
jmp 0x419c1a
push str._INFO_
jmp 0x419c1a
push str._WARN_
jmp 0x419c17
push str._ERR_
lea eax, [ebp - 0x34]
push eax
call fcn.00419195
pop ecx
pop ecx
push dword [ebp + 0x78]
lea eax, [ebp - 0x34]
push eax
call fcn.00419195
cmp dword [esi + 0x88], 0
pop ecx
pop ecx
lea eax, [ebp + 0x4c]
lea ecx, [ebp - 0x30]
push eax
je 0x419c66
call fcn.00413851
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x419c51
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 1
lea ecx, [ebp + 0x4c]
call fcn.004017e8
jmp 0x419c93
call fcn.00413851
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x419c77
lea eax, [ebp + 0x50]
push eax
push esi
call fcn.00418ffa
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x4c]
call fcn.004017e8
mov ecx, esi
call fcn.00417717
lea ecx, [ebp - 0x3c]
call fcn.0041176c
xor eax, eax
inc eax
pop esi
add ebp, 0x68
leave
ret 0x10
Function at 0x41a1ee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str._PID:
push 4
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.00418f08
mov ecx, eax
call fcn.004192d4
mov esi, eax
push edi
lea ecx, [esi + 0x10]
call fcn.00419426
push str.___0x
mov ecx, esi
call fcn.004192d4
mov esi, eax
lea edi, [esi + 0x10]
push 0x40dd0e
mov ecx, edi
call fcn.0040f096
push ebx
mov ecx, edi
call fcn.00419426
push 0x45e5c8
mov ecx, esi
call fcn.004192ec
mov esi, eax
push 0x40dcf7
lea ecx, [esi + 0x10]
call fcn.0040f096
push 0x45e5c4
push str.CRavDowner::CheckRsConflict
mov ecx, esi
call fcn.0041934c
mov ecx, eax
call fcn.0041931c
mov esi, eax
push 0x56b
lea ecx, [esi + 0x10]
call fcn.004195e2
push 0x45e5a4
mov ecx, esi
call fcn.00419334
lea ecx, [ebp - 0xa8]
call fcn.0041a14a
xor ebx, ebx
push 0x46d5d8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040537a
push 0x2001f
push str.SOFTWARERisingRSE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.0040a8a2
test eax, eax
jne 0x41a380
lea eax, [ebp - 8]
push eax
push ebx
mov esi, str.installpath
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], ebx
call fcn.0040dd25
test eax, eax
jne 0x41a380
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x41a380
lea ecx, [ebp - 8]
push ecx
dec eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00412171
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040dd25
test eax, eax
jne 0x41a380
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], ebx
je 0x41a380
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0xc]
call fcn.004056b5
cmp al, 0x5c
je 0x41a349
push 0x45d730
lea ecx, [ebp - 0xc]
call fcn.00405c24
push str.rccb.exe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004125e6
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 8]
cmp eax, 0xffffffff
setne byte [ebp - 1]
add ecx, 0xfffffff0
call fcn.00404f7d
cmp byte [ebp - 1], bl
je 0x41a380
push 2
pop ebx
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00404f7d
lea ecx, [ebp - 0x14]
call fcn.0040a82d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41b233
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x68], eax
test eax, eax
je 0x41b26d
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x41b225
push 0
push 0
call fcn.00430e42
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x64], eax
mov eax, ecx
jmp 0x41b272
call fcn.0041b200
pop esi
pop ebp
ret 8

Function at 0x41b8c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x16
push 0
push ebx
call fcn.00429d40
push 0x45e98c
push dword [ebp + 8]
call fcn.0042ac8a
mov edi, eax
add esp, 0x14
mov dword [ebp + 8], edi
test edi, edi
jne 0x41b8f4
or eax, 0xffffffff
jmp 0x41b933
push esi
push 2
push 0
push edi
call fcn.0043099a
push edi
call fcn.00431369
mov esi, eax
push 0
lea eax, [esi - 0x16]
push eax
push edi
call fcn.0043099a
push edi
push 1
push 0x16
push ebx
call fcn.004311af
add esp, 0x2c
cmp dword [ebx], 0x6054b50
jne 0x41b939
push edi
call fcn.0042a9b7
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, 0x10015
cmp esi, eax
jbe 0x41b944
mov esi, eax
push esi
call fcn.00429ad5
mov ebx, eax
mov eax, esi
push 2
neg eax
push eax
push edi
call fcn.0043099a
push edi
push 1
push esi
push ebx
call fcn.004311af
lea edx, [ebx + esi - 0x16]
add esp, 0x20
mov eax, ebx
cmp ebx, edx
ja 0x41b99b
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp byte [eax], 0x50
jne 0x41b993
cmp byte [eax + 1], 0x4b
jne 0x41b993
cmp byte [eax + 2], 5
jne 0x41b993
cmp byte [eax + 3], 6
je 0x41b9a0
inc eax
cmp eax, edx
jbe 0x41b970
mov edi, dword [ebp + 8]
or esi, 0xffffffff
jmp 0x41b9b1
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 8]
xor esi, esi
push ebx
call fcn.0042892c
push edi
call fcn.0042a9b7
pop ecx
pop ecx
mov eax, esi
jmp 0x41b932

Function at 0x41b9c6
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x45e98c
push dword [esp + 0x10]
mov esi, ecx
call fcn.0042ac8a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ba5f
push 0
push dword [esi + 0x2c0]
push edi
call fcn.0043099a
mov eax, dword [esi + 0x2d4]
add esp, 0xc
test eax, eax
je 0x41ba09
push eax
call fcn.0042892c
and dword [esi + 0x2d4], 0
pop ecx
mov eax, dword [esi + 0x2bc]
test eax, eax
ja 0x41ba1b
push edi
call fcn.0042a9b7
jmp 0x41ba5e
push eax
call fcn.00429ad5
push edi
push 1
push dword [esi + 0x2bc]
mov dword [esi + 0x2d4], eax
push eax
call fcn.004311af
push edi
call fcn.0042a9b7
mov eax, dword [esi + 0x2d4]
add esp, 0x18
cmp dword [eax], 0x2014b50
jne 0x41ba51
xor eax, eax
jmp 0x41ba62
push eax
call fcn.0042892c
and dword [esi + 0x2d4], 0
pop ecx
or eax, 0xffffffff
pop edi
pop esi
ret 4
Function at 0x41c30a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x9f94]
mov eax, 0xa014
call fcn.0042e6d0
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x9f90], eax
push esi
mov esi, dword [ebp + 0x9f9c]
push edi
push esi
call fcn.00431369
mov eax, dword [ebp + 0x9fa0]
mov edi, dword [ebp + 0x9fa4]
push 2
push 0
push esi
mov dword [ebp - 0x74], eax
call fcn.0043099a
push esi
call fcn.00431369
push 0
push dword [ebp + 0x9fa0]
mov dword [ebp - 0x78], eax
push esi
call fcn.0043099a
mov eax, dword [ebp - 0x78]
add esp, 0x20
cmp dword [ebp + 0x9fa0], eax
jae 0x41c3d2
push esi
push 0xa000
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004311af
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x41c3d2
add dword [ebp - 0x74], eax
push esi
call fcn.00431369
push 0
push edi
push esi
mov dword [ebp - 0x80], eax
call fcn.0043099a
push esi
push 1
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00430820
push esi
call fcn.00431369
push 0
push dword [ebp - 0x80]
mov edi, eax
push esi
call fcn.0043099a
mov eax, dword [ebp - 0x78]
add esp, 0x30
cmp dword [ebp - 0x74], eax
jb 0x41c375
mov ecx, dword [ebp + 0x9f90]
pop edi
xor ecx, ebp
pop esi
call fcn.00429649
add ebp, 0x9f94
leave
ret 0xc
Function at 0x41c68a
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x13fc8]
mov eax, 0x14048
call fcn.0042e6d0
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x13fc4], eax
mov eax, dword [ebp + 0x13fd0]
push esi
mov esi, dword [ebp + 0x13fdc]
push 0
push dword [ebp + 0x13fd4]
mov dword [ebp - 0x48], eax
push eax
mov dword [ebp - 0x44], esi
call fcn.0043099a
push 0x45e9a4
push esi
call fcn.0042ac8a
add esp, 0x14
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x41c6e6
xor al, al
jmp 0x41c849
push ebx
push edi
push 0x38
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00429d40
push 0x38
push 0x45e990
lea eax, [ebp - 0x80]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x5c], 0x41ba7d
mov dword [ebp - 0x60], 0x41ba6c
call fcn.00457160
mov edi, dword [ebp + 0x13fd8]
xor ebx, ebx
add esp, 0x1c
mov esi, 0xa000
inc ebx
jmp 0x41c7ce
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
cmp edi, esi
jbe 0x41c738
push esi
jmp 0x41c739
push edi
push ebx
push eax
call fcn.004311af
add esp, 0x10
test eax, eax
je 0x41c861
and dword [ebp - 0x50], 0
and dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x80], ecx
sub edi, eax
lea ecx, [ebp + 0x9fc4]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], esi
test eax, eax
jbe 0x41c7b3
cmp dword [ebp - 0x70], 0
jne 0x41c794
push dword [ebp - 0x40]
lea eax, [ebp + 0x9fc4]
push esi
push ebx
push eax
call fcn.00430820
lea eax, [ebp + 0x9fc4]
add esp, 0x10
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00457290
pop ecx
pop ecx
test eax, eax
jl 0x41c86b
cmp eax, ebx
je 0x41c7b3
cmp dword [ebp - 0x7c], 0
ja 0x41c76e
mov eax, esi
sub eax, dword [ebp - 0x70]
je 0x41c7ce
push dword [ebp - 0x40]
push ebx
push eax
lea eax, [ebp + 0x9fc4]
push eax
call fcn.00430820
add esp, 0x10
test edi, edi
ja 0x41c72b
lea eax, [ebp + 0x9fc4]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x70], 0
jne 0x41c808
push dword [ebp - 0x40]
lea eax, [ebp + 0x9fc4]
push esi
push ebx
push eax
call fcn.00430820
lea eax, [ebp + 0x9fc4]
add esp, 0x10
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push 4
push eax
call fcn.00457290
pop ecx
pop ecx
test eax, eax
je 0x41c7e2
sub esi, dword [ebp - 0x70]
je 0x41c832
push dword [ebp - 0x40]
lea eax, [ebp + 0x9fc4]
push ebx
push esi
push eax
call fcn.00430820
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call fcn.00457110
push dword [ebp - 0x40]
call fcn.0042a9b7
pop ecx
pop ecx
mov al, bl
pop edi
pop ebx
mov ecx, dword [ebp + 0x13fc4]
xor ecx, ebp
pop esi
call fcn.00429649
add ebp, 0x13fc8
leave
ret 0x10
push dword [ebp - 0x40]
call fcn.0042a9b7
jmp 0x41c87d
lea eax, [ebp - 0x80]
push eax
call fcn.00457110
push dword [ebp - 0x40]
call fcn.0042a9b7
pop ecx
pop ecx
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x41c847
Function at 0x41caac
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0xac], eax
push esi
push dword [ebp + 0xb8]
lea eax, [ebp - 0x80]
push eax
call fcn.0041c42e
lea eax, [ebp - 0x80]
push 0x5c
push eax
call fcn.0042df84
add esp, 0x10
jmp 0x41cb21
lea eax, [ebp + 0xac]
cmp esi, eax
jae 0x41cb27
lea eax, [ebp - 0x80]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cb13
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41cb42
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0042df84
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x41cae7
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.00429649
add ebp, 0xb0
leave
ret 4
xor eax, eax
jmp 0x41cb2a
Function at 0x41dac3
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x9c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, 0x103
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x77]
push 0
push eax
mov dword [ebp - 0x7c], 1
mov byte [ebp - 0x78], 0
call fcn.00429d40
add esp, 0xc
test edi, edi
je 0x41db32
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
test eax, eax
jle 0x41db32
push edi
call ebx
cmp eax, 0x104
jbe 0x41db4c
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x90
leave
ret
push esi
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41db80
push 0x5c
push eax
call fcn.0042df84
pop ecx
pop ecx
mov esi, eax
jmp 0x41db82
xor esi, esi
lea eax, [ebp - 0x78]
push eax
test esi, esi
je 0x41dbdf
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x41db98
test al, 0x10
jne 0x41dbd7
test al, 0x10
jne 0x41dbb1
push 0x80
lea eax, [ebp - 0x78]
push eax
call ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and dword [ebp - 0x7c], eax
jne 0x41dbd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41dbd7
mov dword [ebp - 0x7c], 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x41db6e
call edi
cmp eax, 0xffffffff
je 0x41dbea
test al, 0x10
jne 0x41dc29
test al, 0x10
jne 0x41dc03
push 0x80
lea eax, [ebp - 0x78]
push eax
call ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and dword [ebp - 0x7c], eax
jne 0x41dc29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41dc29
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x7c]
jmp 0x41db34
Function at 0x41ddea
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00429d40
push edi
call fcn.00428940
add esp, 0x10
cmp eax, esi
jbe 0x41de35
push 0x6f
jmp 0x41deea
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00431aaa
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0042e530
add esp, 0x14
test eax, eax
je 0x41dee8
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jge 0x41de83
push 0x45d730
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
call esi
test eax, eax
jne 0x41de94
push 2
jmp 0x41deea
cmp dword [ebp + 0x14], 0
je 0x41deb2
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0041dac3
pop ecx
pop ecx
test eax, eax
jne 0x41deb2
push 0x52
jmp 0x41deea
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41dec7
push 0x80
push edi
call esi
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
test ebx, ebx
je 0x41dee4
cmp dword [ebp + 0x18], 0
je 0x41dee4
push dword [ebp + 0x18]
push edi
call esi
mov eax, ebx
jmp 0x41def2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
leave
ret
Function at 0x41eaf6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00429d40
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x41ecb7
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x588
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x504], eax
mov eax, dword [ebp + 0x510]
push ebx
push esi
xor ebx, ebx
push str.Kernel32.dll
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41ed0a
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41ed0a
lea ecx, [ebp - 0x6c]
push ecx
call eax
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x2f5]
push ebx
push eax
mov byte [ebp + 0x2f4], bl
call fcn.00429d40
add esp, 0xc
push esi
lea eax, [ebp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0xe5]
push ebx
push eax
mov byte [ebp + 0xe4], bl
call fcn.00429d40
add esp, 0xc
push esi
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xe4]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x2f4]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], eax
push esi
lea eax, [ebp + 0x1ed]
push ebx
push eax
mov byte [ebp + 0x1ec], bl
call fcn.00429d40
push dword [ebp - 0x74]
lea eax, [ebp + 0x1ec]
push dword [ebp - 0x60]
push str._sTasks_s.
push eax
call edi
push 0x13c
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00429d40
add esp, 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x41ee3f
push esi
lea eax, [ebp + 0x3fd]
push ebx
push eax
mov byte [ebp + 0x3fc], bl
call fcn.00429d40
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x60]
lea eax, [ebp + 0x3fc]
push str._sTasks_s
push eax
call edi
add esp, 0x1c
push 0x80
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41edd7
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp - 0x60], eax
cmp eax, ebx
jne 0x41ed81
mov esi, dword [ebp - 0x6c]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop edi
cmp eax, ebx
je 0x41ee7a
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41ee7a
push esi
call eax
mov ecx, dword [ebp + 0x504]
mov eax, dword [ebp - 0x64]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x508
leave
ret
Function at 0x41fc28
Capabilities:
Get file size

Disassembly:
push ebx
xor ebx, ebx
push esi
cmp byte [ecx + 0x38], bl
je 0x41fc73
cmp dword [ecx + 0x34], 0x10
jb 0x41fc3c
mov ecx, dword [ecx + 0x20]
jmp 0x41fc3f
add ecx, 0x20
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x41fc8a
cmp dword [ecx + 0x3c], ebx
je 0x41fc85
mov ecx, dword [ecx + 0x40]
lea esi, [ecx + 0x1800]
cmp ecx, ebx
jne 0x41fc8a
mov esi, 0x2000
mov eax, esi
pop esi
pop ebx
ret
Function at 0x42001b
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x18
mov eax, 0x45cae3
call fcn.0042968b
mov dword [ebp - 0x14], ecx
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x42004e
mov dword [ebp - 0x1c], str.connection_failed...
push 0x4664c0
lea eax, [ebp - 0x1c]
push eax
call fcn.0042917e
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x420074
mov dword [ebp - 0x20], str.response_failed...
push 0x4664c0
lea eax, [ebp - 0x20]
jmp 0x420048
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.00429730
ret 8