joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102e0a60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.100aa0d0
mov eax, dword [0x104230a4]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
sub eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], ebx
jae 0x102e0ac0
push 0x4d6
push 0x1040c584
push str.assertion_failed:_rec__orig_len___md_size
call fcn.10239550
add esp, 0xc
cmp ebx, 0x40
jbe 0x102e0adc
push 0x4d7
push 0x1040c584
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.10239550
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
neg eax
mov dword [esp + 0x20], ecx
and eax, 0x3f
lea edi, [esp + 0x34]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x2c], edi
cmp ecx, eax
jbe 0x102e0b0a
mov ebp, ecx
sub ebp, ebx
sub ebp, 0x100
push ebx
xor esi, esi
mov dword [esp + 0x18], 0
push esi
push edi
call fcn.101fd960
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ebp, dword [esp + 0x20]
jae 0x102e0bbd
mov eax, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
mov edx, ecx
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ebp
xor eax, dword [esp + 0x10]
neg edi
or edx, eax
mov eax, dword [esp + 0x28]
xor edx, ebp
shr edx, 0x1f
neg edx
mov cl, byte [eax + ebp]
mov eax, edi
or eax, dword [esp + 0x14]
inc ebp
and eax, edx
mov edx, dword [esp + 0x18]
and edi, edx
mov dword [esp + 0x14], eax
and al, cl
or esi, edi
mov edi, dword [esp + 0x2c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x20]
jb 0x102e0b45
xor edx, edx
test ebx, ebx
je 0x102e0bf1
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x102e0bc7
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a9f90
add esp, 0xa8
ret
Function at 0x102e1760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.100aa0d0
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x102e17ad
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x102e179d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x102e17b2
cmp edi, dword [esi + 8]
ja 0x102e1794
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.10288bf0
push eax
call fcn.10258080
add esp, 8
test eax, 0x200000
je 0x102e17f8
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x102e1884
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x2c]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x102e1840
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov dword [esi + 8], edx
mov dword [esp + 0x2c], ecx
not ecx
pop ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x40c65178
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0xeb6213a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402efe
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f75
cmp dword [ebp + 0x10], ebx
jne 0x402f67
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402efe
test eax, eax
jne 0x402f75
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x402f8a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4033ab
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033d8
mov ecx, dword [0x44ba98]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4213cc], eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004034d6
cmp eax, edi
jl 0x4034cf
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a594]
call ebx
test eax, eax
je 0x4034cc
cmp dword [ebp - 4], esi
jne 0x4034cc
push dword [ebp + 8]
add dword [0x4213cc], esi
call fcn.004034d6
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034cf
cmp dword [ebp + 0x10], edi
jne 0x40349b
cmp dword [ebp + 8], edi
jle 0x4034c7
mov esi, 0x41d388
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40344b
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a594]
call ebx
test eax, eax
je 0x4034cc
cmp edi, dword [ebp - 4]
jne 0x4034cc
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403497
cmp dword [ebp + 0x14], edi
jne 0x403497
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4213cc], eax
cmp dword [ebp + 8], 0
jg 0x40343e
jmp 0x4034c7
push 0xfffffffffffffffe
jmp 0x4034ce
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4034a6
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a594]
call ebx
test eax, eax
je 0x4034cc
mov eax, dword [ebp - 4]
add dword [0x4213cc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034cf
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4034d6
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4213cc]
mov ebx, eax
sub esi, dword [0x4152fc]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x4036d4
push dword [0x4293d8]
call fcn.00403717
push edi
push edi
push dword [0x4152fc]
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4293d4], esi
mov dword [0x4213c8], edi
mov eax, dword [0x4213d0]
mov ebp, 0x4000
sub eax, dword [0x4293d8]
cmp eax, ebp
jg 0x40354a
mov ebp, eax
mov esi, 0x41d388
push ebp
push esi
call fcn.004036e5
test eax, eax
je 0x403695
add dword [0x4293d8], ebp
mov dword [0x415318], esi
mov dword [0x41531c], ebp
cmp dword [0x44ba48], edi
je 0x403608
cmp dword [0x44bae0], edi
jne 0x403608
cmp dword [esp + 0x10], edi
je 0x4035d5
mov eax, dword [0x4293d4]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x4213cc]
push 1
push edi
push edi
sub eax, dword [esp + 0x44]
push edi
add eax, dword [0x4152fc]
mov dword [0x4213c8], eax
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
je 0x403608
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
jmp 0x4035b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403608
mov eax, dword [0x44ba44]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402fdb
push edi
push 0x6f
push dword [0x44ba40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x415300
mov dword [0x415320], 0x415388
mov dword [0x415324], 0x8000
call fcn.004065d0
test eax, eax
jl 0x4036e0
mov esi, dword [0x415320]
mov eax, 0x415388
sub esi, eax
je 0x40366f
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40369a
cmp esi, dword [esp + 0x14]
jne 0x40369a
add dword [0x4152fc], esi
cmp dword [0x41531c], edi
jne 0x403570
jmp 0x40367b
cmp dword [0x41531c], edi
jne 0x4036e0
cmp ebp, edi
je 0x4036e0
mov eax, dword [0x4213cc]
mov ecx, eax
sub ecx, dword [0x4152fc]
add ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x40369e
jmp 0x403534
or eax, 0xffffffff
jmp 0x4036d6
push 0xfffffffffffffffe
jmp 0x4036e2
push edi
push edi
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x4036d4
mov eax, dword [0x4293d4]
push edi
push edi
push 0x113
push esi
mov dword [0x4213c8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4036d6
Function at 0x403df4
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov ebp, 0x47c000
je 0x403e14
push ebp
call fcn.004060b0
jmp 0x403e1a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x44ba84]
mov eax, edi
dec edi
test eax, eax
je 0x403e76
mov eax, dword [0x44ba48]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x44ba80]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403e5e
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403e42
jmp 0x403e76
mov eax, dword [esi + 2]
mov dword [0x447a20], eax
mov eax, dword [esi + 6]
mov dword [0x44bae8], eax
lea eax, [esi + 0xa]
mov dword [0x447a1c], eax
cmp dword [0x447a1c], 0
jne 0x403e91
cmp bx, 0xffff
jne 0x403e8d
mov ebx, 0x3ff
jmp 0x403e20
xor ebx, ebx
jmp 0x403e20
movzx eax, word [esi]
push eax
push ebp
call fcn.00406097
push 0xfffffffffffffffe
push 0x447a40
call fcn.00406158
push eax
push dword [0x4353ec]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba6c]
mov esi, dword [0x44ba68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403ee5
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403ede
push eax
push ebx
call fcn.00406158
add esi, edi
add ebx, edi
dec ebp
jne 0x403ed1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405952
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43a418], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405976
test al, 0x10
jne 0x405979
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43a418
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4059a4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405a33
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405d19
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405a67
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bac8], eax
jmp 0x405c30
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405a85
test eax, eax
je 0x405bb4
test byte [ebp + 0xc], 2
je 0x405bb4
mov esi, 0x436418
push edi
push esi
call fcn.0040613a
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405aa5
push str..
push esi
call ebx
jmp 0x405aab
push edi
call fcn.00405c7e
push 0x40a228
push edi
call ebx
push edi
call fcn.0040614b
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405baa
cmp byte [ebp - 0x118], 0x2e
jne 0x405af9
cmp byte [ebp - 0x117], 0x2e
je 0x405b8d
cmp byte [ebp - 0x117], 0
je 0x405b8d
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.0040613a
test byte [ebp - 0x144], 0x10
je 0x405b24
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b8d
push dword [ebp + 0xc]
push edi
call fcn.00405a33
jmp 0x405b8d
push edi
push str.Delete:_DeleteFile___s__
call fcn.004064de
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405b85
test byte [ebp + 0xc], 4
push edi
je 0x405b71
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004064de
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040542d
push 0
push edi
call fcn.00405e76
jmp 0x405b8d
push str.Delete:_DeleteFile_failed___s__
call fcn.004064de
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405b8d
push edi
push 0xfffffffffffffff2
call fcn.0040542d
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ad6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405bb4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405c30
cmp dword [ebp - 4], esi
push edi
jne 0x405bd6
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004064de
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405c30
call fcn.004064fa
test eax, eax
je 0x405c30
push edi
call fcn.00405c36
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004064de
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405c28
test byte [ebp + 0xc], 4
push edi
je 0x405c21
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004064de
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040542d
push esi
push edi
call fcn.00405e76
jmp 0x405c30
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405bc7
push edi
push 0xffffffffffffffe5
call fcn.0040542d
pop edi
pop esi
leave
ret 8
Function at 0x405d19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438418
push esi
call fcn.0040613a
push esi
call fcn.00405cca
test eax, eax
jne 0x405d38
xor eax, eax
jmp 0x405d87
test byte [0x44ba50], 0x80
je 0x405d4c
mov cl, byte [eax]
test cl, cl
je 0x405d34
cmp cl, 0x5c
je 0x405d34
mov edi, eax
sub edi, esi
push esi
call fcn.0040614b
cmp eax, edi
push esi
jle 0x405d71
call fcn.004064fa
test eax, eax
je 0x405d69
test byte [eax], 0x10
je 0x405d34
push esi
call fcn.00405c7e
jmp 0x405d50
call fcn.00405c36
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dfe
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405e2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e72
mov eax, edi
dec edi
test eax, eax
jne 0x405e38
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e6c
Function at 0x405e76
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405eae
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405eae
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405ff3
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ada0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43ada0
je 0x405ef2
push 1
push 0
push esi
call fcn.00405dfe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405ff9
cmp eax, edi
jg 0x405ff9
mov esi, 0x43a9a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405ff9
cmp eax, edi
jg 0x405ff9
push esi
push ebp
push str._s_s_r_n
push 0x43a5a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405ff3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405fdb
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405fcf
push str._Rename__r_n
push edi
call fcn.00405d8c
test eax, eax
jne 0x406000
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.0040613a
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x43a5a0
push eax
call fcn.00405dd8
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44bad0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9d8
push eax
call fcn.00405d8c
test eax, eax
je 0x405fb6
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406029
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x40601c
sub eax, edi
jmp 0x405fb8
Function at 0x40602d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406091
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406080
cmp dword [ebp + 0x14], 1
je 0x406082
cmp dword [ebp + 0x14], 2
je 0x406082
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406465
mov eax, dword [0x40a8d4]
cmp eax, 0xffffffff
je 0x40645c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8d4], 0xffffffff
jmp 0x4064d9
cmp dword [0x43b9a0], ebx
je 0x4064d9
cmp byte [0x43b5a0], bl
je 0x4064a4
cmp dword [0x40a8d4], 0xffffffff
jne 0x4064ad
push 4
push 0x40000000
push 0x43b5a0
call fcn.00405dfe
cmp eax, 0xffffffff
mov dword [0x40a8d4], eax
je 0x4064d9
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8d4], 0xffffffff
je 0x4064d9
push esi
mov esi, 0x43f9e0
push 0x40aaa8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040614b
push eax
push esi
push dword [0x40a8d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406538
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1a4], esi
push edi
jne 0x406572
mov ecx, 0x43b1a0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40654e
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5a0
jl 0x406549
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4065a7
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1a0]
xor eax, esi
inc ecx
dec edx
jne 0x40658a
pop edi
pop esi
not eax
ret 0xc
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x69a067b2
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..tls
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2ad76f18
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219