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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x466ba8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x466ba8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466b17
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x466ba8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x466b40
mov eax, dword [0x501f5c]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x466b55
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x466b70
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
Function at 0x466bc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.00474bb0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00465bd0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x466c2a
mov al, byte [edi + ecx]
test al, al
je 0x466c2a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x466c11
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x466c4b
inc eax
sub ecx, 1
jne 0x466c40
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x466ca0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x466c95
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x466c94
mov bl, byte [edi + ecx]
test bl, bl
je 0x466c94
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x466c80
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.00474bb0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x502560
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x466d5a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x466d24
test cl, cl
je 0x466d20
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x466d24
add eax, 2
add esi, 2
test cl, cl
jne 0x466d04
xor eax, eax
jmp 0x466d29
sbb eax, eax
or eax, 1
test eax, eax
je 0x466d5a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466d36
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466d63
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x502560
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
Function at 0x469090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00467dd0
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x469123
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4690e3
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x469101
call fcn.00423ed0
mov esi, eax
test esi, esi
js 0x46911c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x46911a
call fcn.00423ed0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x469125
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x469125
xor esi, esi
test edi, edi
je 0x469130
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret
Function at 0x46c7d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebf36
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x46c8bd
test edi, edi
je 0x46c8e9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x46c915
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x46c941
cmp byte [ecx + 0x10], 0
je 0x46c96d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x46c999
jmp 0x46c895
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xc0]
push eax
call fcn.00474e47
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xcc]
push eax
call fcn.00474e47
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xd8]
push eax
call fcn.00474e47
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xe4]
push eax
call fcn.00474e47
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xf0]
push eax
call fcn.00474e47
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.0046ecb0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0046acd0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.0046a6f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.0046d3e0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0046a6f0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0046a6f0
add esp, 8
mov ecx, eax
push 0x46f850
call fcn.0046c0b0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.0046bdf0
push 0x50405c
push eax
call fcn.0046a6f0
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00470030
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046ecd0
push eax
lea ecx, [ebp - 0xfc]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xfc]
push eax
call fcn.00474e47
push 0
push 0
call fcn.00474e47
int3
Function at 0x46cdf0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebfb6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x46ced9
test esi, esi
je 0x46cf05
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x46cf31
cmp byte [ecx + 0x10], 0
je 0x46cf5d
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x46cf89
jmp 0x46ceb1
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xc0]
push eax
call fcn.00474e47
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xcc]
push eax
call fcn.00474e47
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xd8]
push eax
call fcn.00474e47
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xe4]
push eax
call fcn.00474e47
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.0046ecb0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.0046acd0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.0046a6f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.0046d3e0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0046a6f0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.0046a6f0
add esp, 8
mov ecx, eax
push 0x46f850
call fcn.0046c0b0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.0046bdf0
push 0x50405c
push eax
call fcn.0046a6f0
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00470030
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046ecd0
push eax
lea ecx, [ebp - 0xf0]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xf0]
push eax
call fcn.00474e47
push 0
push 0
call fcn.00474e47
int3
Function at 0x46d7f0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec058
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x52965c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x46d84a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x46d979
test ecx, ecx
je 0x46d994
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x46d879
cmp esi, 0x18
je 0x46d879
cmp esi, 0x20
jne 0x46d9af
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00474bb0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x46d8c0
cmp esi, 0x18
je 0x46d8b2
cmp esi, 0x20
jne 0x46d9ca
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x46d8cc
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x46d8cc
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00470330
add esp, 0x10
test eax, eax
jne 0x46d9e5
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x46da06
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x46da27
jmp 0x46d943
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x46d950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e5d8
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x58]
push eax
call fcn.00474e47
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x64]
push eax
call fcn.00474e47
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x70]
push eax
call fcn.00474e47
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x7c]
push eax
call fcn.00474e47
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x88]
push eax
call fcn.00474e47
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0x94]
push eax
call fcn.00474e47
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.0046b140
push 0x51f4e8
lea eax, [ebp - 0xa0]
push eax
call fcn.00474e47
push 0
push 0
call fcn.00474e47
int3
Function at 0x46f880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec228
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x52965c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0045ea5d
mov edi, eax
add esp, 4
test edi, edi
je 0x46f924
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004c1947
add esp, 4
mov dword [edi + 4], eax
jmp 0x46f926
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0046a9a0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x46f987
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x46f987
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x46f9aa
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x46f9cd
cmp byte [ebp + 0xc], 0
je 0x46f9b9
push esi
call fcn.004c2a94
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x46f9d9
mov esi, str.ios_base::badbit_set
jmp 0x46f9e9
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0046fa10
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0046b510
push 0x51f46c
lea eax, [ebp - 0x30]
push eax
call fcn.00474e47
int3
Function at 0x472390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004729a0
add esp, 8
test al, al
je 0x4723b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4723b5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4729a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x473e10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x473e3b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4adf3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adb41

Function at 0x4adf47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adcc2

Function at 0x4b28a9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b2083

Function at 0x4b28b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b22be

Function at 0x4b33fa
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b3181
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x46cf40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x45000]
lea eax, [edi + 0x55100]
push dword [eax]
mov dword [eax], 0x2d6e0f57
push eax
push edi
or ebp, 0xffffffff
jmp 0x46cf72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cf68
mov eax, 1
add ebx, ebx
jne 0x46cf8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46cf9c
jne 0x46cfbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cfbb
dec eax
add ebx, ebx
jne 0x46cfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46cf80
add ebx, ebx
jne 0x46cfb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46d00d
xor ecx, ecx
sub eax, 3
jb 0x46cfd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46d042
sar eax, 1
mov ebp, eax
jmp 0x46cfde
add ebx, ebx
jne 0x46cfde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cfac
inc ecx
add ebx, ebx
jne 0x46cfec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46cfac
add ebx, ebx
jne 0x46cff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46cfee
jne 0x46d00a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46cfee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46d02c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46d01e
jmp 0x46cf6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46d02c
add edi, ecx
jmp 0x46cf6e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x190a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46d04e
cmp byte [edi], 0x13
jne 0x46d04e
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 0x46d053
lea edi, [esi + 0x68000]
mov eax, dword [edi]
or eax, eax
je 0x46d0cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x76220]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x76278]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46d080
mov ecx, edi
jns 0x46d0af
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 + 0x76280]
or eax, eax
je 0x46d0c5
mov dword [ebx], eax
add ebx, 4
jmp 0x46d09d
call dword [esi + 0x7627c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46d0fc
cmp al, 0xef
ja 0x46d0ef
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46d0d1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46d0de
mov ebp, dword [esi + 0x76284]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x46d130
sub esp, 0xffffff80
jmp 0x4265d0