joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x44335c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
xor eax, eax
push esi
push 0x40e
push eax
mov word [ebp - 0x414], ax
mov esi, ecx
lea eax, [ebp - 0x412]
push eax
call fcn.00418540
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401bca
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.0041284d
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418039
mov esp, ebp
pop ebp
ret
call fcn.00412501
push eax
call fcn.00412c77
int3

Function at 0x401c62
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa97
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.0042b090
mov eax, dword [0x44335c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x2024], ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push ebx
push eax
call fcn.00418540
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0x1000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
setne al
test al, al
jne 0x401d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x90
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x2020]
call fcn.00412d2a
lea eax, [ebp - 0x2020]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00402671
mov ecx, dword [ebp - 0x2018]
add ecx, 0xfffffff0
call fcn.00412d0e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
jmp 0x401d6d
lea eax, [ebp - 0x2010]
mov ecx, esi
push eax
call fcn.00412822
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00412bcd
push eax
lea ecx, [edi + 8]
call fcn.0040f03e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418039
mov esp, ebp
pop ebp
ret
Function at 0x401eac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x20
mov eax, 0x42facf
call fcn.0041bab3
mov esi, edx
mov edi, ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401f0b
call fcn.00412501
push 0xc7
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x2c]
call fcn.00412d2a
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00402671
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x401f91
test al, 1
jne 0x401f17
mov dword [edi], 1
jmp 0x401f80
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
jne 0x401f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xcd
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x20]
call fcn.00412d2a
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00402671
mov ecx, dword [ebp - 0x18]
jmp 0x401efe
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00412bcd
push eax
lea ecx, [edi + 8]
call fcn.0040f03e
mov eax, edi
call fcn.0041ba81
ret
Function at 0x401fc5
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x268
mov eax, 0x42fb13
call fcn.0041bae6
mov ebx, ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x401ffb
test ebx, ebx
je 0x401ff1
push 0x439c58
call fcn.00412822
mov edi, 0x80070057
jmp 0x4021cb
push 0x4389b0
lea edx, [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x26c]
call fcn.0040e275
pop ecx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x402166
mov esi, eax
push 0x439c58
lea edx, [ebp + 8]
lea ecx, [ebp - 0x270]
call fcn.0040e275
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.0040e275
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test byte [ebp - 0x260], 0x10
je 0x4020e3
lea eax, [ebp - 0x234]
push eax
push 0x4389b8
call fcn.004186db
pop ecx
pop ecx
test eax, eax
je 0x402137
lea eax, [ebp - 0x234]
push eax
push 0x4389c0
call fcn.004186db
pop ecx
pop ecx
test eax, eax
je 0x402137
push ecx
mov ecx, dword [ebp - 0x264]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00412c8f
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00401fc5
mov esi, dword [ebp - 0x268]
pop ecx
test eax, eax
jns 0x402137
mov edi, eax
jmp 0x402137
mov ecx, dword [ebp - 0x264]
call fcn.00401f99
test eax, eax
jne 0x402137
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x402120
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x402125
mov edi, 0x80004005
test ebx, ebx
je 0x402137
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.004124b3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402039
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test edi, edi
js 0x4021cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4021cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x4021b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x4021bc
mov edi, 0x80004005
test ebx, ebx
je 0x4021cb
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004124b3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412d0e
mov eax, edi
call fcn.0041ba95
ret
Function at 0x402a46
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x42fce2
call fcn.0041bab3
mov dword [ebp - 0x14], edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
push edi
push edi
push 2
push edi
push edi
push 2
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x402b67
test esi, esi
je 0x402b67
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
push eax
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test al, al
jne 0x402b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2d3
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x28]
call fcn.00412d2a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x402bac
cmp dword [ebp - 0x10], edi
sete al
test al, al
jne 0x402b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2d4
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x28]
call fcn.00412d2a
mov byte [ebp - 4], 4
jmp 0x402ae9
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
jmp 0x402bac
call fcn.00412501
push 0x2d0
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov edx, 0x4389e8
call fcn.0040e2da
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00412d2a
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402671
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp esi, 0xffffffff
je 0x402bb3
test esi, esi
je 0x402bb3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
call fcn.0041ba81
ret
Function at 0x402ca3
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
mov eax, 0x42fd78
call fcn.0041bab3
mov dword [ebp - 0x10], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x18], eax
push eax
push eax
push 3
push eax
push 1
push 1
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x402e8f
test esi, esi
je 0x402e8f
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
setne al
test al, al
jne 0x402d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x2fd
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x402ed4
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x24]
je 0x402d95
cmp dword [ebp - 0x20], 0
jl 0x402d95
jg 0x402d6d
cmp edi, dword [ebp + 0xc]
jbe 0x402d95
push 0x302
push 0x80004005
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 4
jmp 0x402d3c
push ecx
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004122da
test al, al
jne 0x402dce
push 0x30b
push 0x8007000e
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 5
jmp 0x402d3f
test edi, edi
jne 0x402dec
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
jmp 0x402ed4
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040f8fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
jne 0x402e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x312
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 6
jmp 0x402d3c
cmp dword [ebp - 0x14], edi
sete al
test al, al
jne 0x402dd2
push 0x313
push 0x80004005
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 7
jmp 0x402d3c
call fcn.00412501
push 0x2f7
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov edx, str.Error_opening_file:
call fcn.0040e2da
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00412d2a
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402671
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp esi, 0xffffffff
je 0x402edb
test esi, esi
je 0x402edb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
call fcn.0041ba81
ret
Function at 0x402eee
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
mov eax, 0x42fdcb
call fcn.0041bab3
mov dword [ebp - 0x10], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x18], eax
push eax
push eax
push 3
push eax
push 1
push 1
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4030a5
test esi, esi
je 0x4030a5
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
setne al
test al, al
jne 0x402fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x332
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x4030ea
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x24]
je 0x402fe0
cmp dword [ebp - 0x20], 0
jl 0x402fe0
jg 0x402fb8
cmp edi, dword [ebp + 0xc]
jbe 0x402fe0
push 0x337
push 0x80004005
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 4
jmp 0x402f87
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040e551
test edi, edi
jne 0x403007
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
jmp 0x4030ea
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp - 0x10]
push edi
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
jne 0x40306c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x344
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 5
jmp 0x402f87
cmp dword [ebp - 0x14], edi
sete al
test al, al
jne 0x402fed
push 0x345
push 0x80004005
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x30]
call fcn.00412d2a
mov byte [ebp - 4], 6
jmp 0x402f87
call fcn.00412501
push 0x32c
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov edx, str.Error_opening_file:
call fcn.0040e2da
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00412d2a
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402671
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp esi, 0xffffffff
je 0x4030f1
test esi, esi
je 0x4030f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
call fcn.0041ba81
ret
Function at 0x4035d5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x42fed2
call fcn.0041bb1c
mov eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
xor esi, esi
lea edx, [ebp - 0x18]
push edx
push esi
lea edx, [ebp - 0x14]
mov dword [ebp - 4], esi
push edx
push esi
push eax
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403627
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
jmp 0x4036d4
cmp dword [ebp - 0x14], 1
je 0x40363d
cmp dword [ebp - 0x14], 2
je 0x40363d
mov eax, 0x80004005
jmp 0x4036d4
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x403653
mov ecx, dword [ebp + 8]
call fcn.00412761
xor eax, eax
jmp 0x4036d4
cmp edi, 1
je 0x403633
mov ebx, dword [ebp + 8]
mov ecx, ebx
shr edi, 1
lea eax, [edi + 1]
push eax
call fcn.004129b0
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea eax, [edi + 1]
push eax
call fcn.00412891
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4036a5
push esi
mov ecx, ebx
call fcn.00412891
mov eax, dword [ebp - 0x24]
jmp 0x40360a
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [ebx]
test eax, eax
je 0x4036c1
push dword [eax - 8]
push eax
call fcn.00418676
pop ecx
pop ecx
mov esi, eax
push esi
mov ecx, ebx
call fcn.00412891
jmp 0x40364c
call fcn.0041ba81
ret
Function at 0x4037ef
Capabilities:
Timestomp file

Disassembly:
push 0x20
mov eax, 0x42ff40
call fcn.0041bab3
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
push edi
push edi
push 3
push edi
push 7
push 0x100
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4038c7
test esi, esi
je 0x4038c7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
setne al
test al, al
jne 0x4038b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x622
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x2c]
call fcn.00412d2a
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x40390a
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
jmp 0x40390a
call fcn.00412501
push 0x61d
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x2c]
call fcn.00412d2a
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402671
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp esi, 0xffffffff
je 0x403911
test esi, esi
je 0x403911
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
call fcn.0041ba81
ret

Function at 0x403924
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x10
mov eax, 0x42ff63
call fcn.0041bab3
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40396d
test al, 0x10
jne 0x40396d
test al, 1
je 0x403965
mov edx, dword [esi]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401eac
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00412d0e
call fcn.0041ba81
ret
Function at 0x403df0
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc58
mov eax, 0x430063
call fcn.0041bae6
mov esi, edx
mov ebx, ecx
xor eax, eax
push 0xc2f
push eax
mov dword [ebp - 0xc58], eax
mov byte [ebp - 0xc40], al
lea eax, [ebp - 0xc3f]
push eax
call fcn.00418540
add esp, 0xc
mov dword [ebp - 0xc54], 0xc30
lea eax, [ebp - 0xc54]
xor edi, edi
push eax
lea eax, [ebp - 0xc40]
push eax
push edi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov dword [ebp - 0xc50], eax
mov dword [ebp - 0xc4c], edi
call fcn.00412bcd
push eax
lea ecx, [ebp - 0xc48]
call fcn.0040f03e
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc50], edi
jge 0x403ed1
cmp dword [ebp - 0xc4c], edi
mov edi, dword [ebp - 0xc48]
push 0x60
pop eax
cmovne eax, dword [ebp - 0xc4c]
push eax
push dword [ebp - 0xc50]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.00412c8f
add eax, 0x10
lea ecx, [ebp - 0xc64]
mov dword [esi], eax
call fcn.00412d2a
lea eax, [ebp - 0xc64]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0xc5c]
add ecx, 0xfffffff0
call fcn.00412d0e
lea ecx, [edi - 0x10]
call fcn.00412d0e
jmp 0x403f29
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc48]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xc44]
call fcn.00411f61
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004124b3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc44]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
mov eax, ebx
call fcn.0041ba95
ret
Function at 0x406bd0
Capabilities:
Get hostname

Disassembly:
push 0x54
mov eax, 0x430651
call fcn.0041bae6
mov dword [ebp - 0x44], edx
mov ebx, ecx
and dword [ebp - 0x60], 0
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x34]
call fcn.0040f03e
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push 1
push eax
push str.MachineGuid
push str.SOFTWAREMicrosoftCryptography
mov edx, 0x80000002
lea ecx, [ebp - 0x40]
call fcn.004036da
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0
jge 0x406c78
cmp dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x38]
push 0x15
pop eax
cmovne eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.00412c8f
add eax, 0x10
lea ecx, [ebp - 0x54]
mov dword [esi], eax
call fcn.00412d2a
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00412d0e
lea ecx, [edi - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
jmp 0x406dc6
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
xor eax, eax
mov dword [ebp - 0x5c], 0x10
push 7
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
setne al
test al, al
jne 0x406d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x18
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x54]
call fcn.00412d2a
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x4c]
jmp 0x406db8
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.0040e275
mov byte [ebp - 4], 4
mov esi, esp
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00412c8f
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
add eax, 0x10
mov dword [esi], eax
call fcn.00406a01
pop ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x40], 0
jge 0x406d91
cmp dword [ebp - 0x3c], 0
push 0x1a
pop eax
cmovne eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x38]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00412c8f
add eax, 0x10
lea ecx, [ebp - 0x54]
mov dword [esi], eax
call fcn.00412d2a
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x406db5
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.00412bcd
push eax
lea ecx, [ebx + 8]
call fcn.0040f03e
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
call fcn.0041ba95
ret