joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48adf8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48af91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x48afa8
call fcn.0040420c
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404250
mov edx, dword [ebp - 0x14]
mov eax, 0x48afb4
call fcn.004047d8
test eax, eax
jg 0x48ae5d
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x48afc0
call fcn.004044e0
xor eax, eax
push ebp
push 0x48af66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x48afc8
call fcn.00439304
mov ebx, eax
test ebx, ebx
je 0x48af5c
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404694
push eax
push ebx
call fcn.0043930c
mov esi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, 0x194
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00402d44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x13
push esi
call fcn.004392f4
test eax, eax
je 0x48aefd
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.004043b0
mov eax, dword [ebp - 0x118]
call fcn.00408d18
mov edi, eax
cmp edi, 0x194
jae 0x48af4c
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00402d44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.004392f4
test eax, eax
je 0x48af4c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x114]
call fcn.004043b0
test esi, esi
je 0x48af56
push esi
call fcn.004392fc
push ebx
call fcn.004392fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48af70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48af98
lea eax, [ebp - 0x118]
call fcn.004041b8
lea eax, [ebp - 0x14]
call fcn.004041b8
ret

Function at 0x494d58
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b3ff8
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x494d7a
shr eax, 1
xor eax, 0xedb88320
jmp 0x494d7c
shr eax, 1
dec edx
jne 0x494d68
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x494d61
mov byte [0x4b43f8], 1
pop esi
pop ebx
ret

Function at 0x494d98
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b43f8], 0
jne 0x494daf
call fcn.00494d58
mov eax, edi
dec eax
test eax, eax
jl 0x494dd8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b3ff8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x494db9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x497328
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x497359
dec al
je 0x497395
dec al
je 0x4973d9
dec al
je 0x497444
jmp 0x4974ce
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4974ce
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x497369
jmp 0x4974ce
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4974ce
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4973a5
jmp 0x4974ce
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4974ce
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x497407
xor ebp, ebp
jmp 0x497418
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x497421
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4973e9
jmp 0x4974ce
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4974ce
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x49749c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00494de0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x497458
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d004]
jne 0x401010
repz ret
jmp fcn.00401734

Function at 0x407785
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404e66
and dword [ebp - 4], 0
cmp dword [0x46f17c], 0
mov ebx, eax
jne 0x407836
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4078e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4078e7
push eax
call fcn.00404df4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46f17c], eax
call esi
push eax
call fcn.00404df4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46f180], eax
call esi
push eax
call fcn.00404df4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46f184], eax
call esi
push eax
call fcn.00404df4
pop ecx
mov dword [0x46f18c], eax
test eax, eax
je 0x407836
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404df4
pop ecx
mov dword [0x46f188], eax
mov eax, dword [0x46f188]
cmp eax, ebx
je 0x40788e
cmp dword [0x46f18c], ebx
je 0x40788e
push eax
call fcn.00404e6f
push dword [0x46f18c]
mov esi, eax
call fcn.00404e6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40788e
test edi, edi
je 0x40788e
call esi
test eax, eax
je 0x407885
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407885
test byte [ebp - 0xc], 1
jne 0x40788e
or dword [ebp + 0x10], 0x200000
jmp 0x4078c7
mov eax, dword [0x46f180]
cmp eax, ebx
je 0x4078c7
push eax
call fcn.00404e6f
pop ecx
test eax, eax
je 0x4078c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078c7
mov eax, dword [0x46f184]
cmp eax, ebx
je 0x4078c7
push eax
call fcn.00404e6f
pop ecx
test eax, eax
je 0x4078c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46f17c]
call fcn.00404e6f
pop ecx
test eax, eax
je 0x4078e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4078e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000892e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f4e4]
jne 0x10008938
repz ret
jmp fcn.10008c19

Function at 0x1000c7ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10008f0e
and dword [ebp - 0x14], 0
cmp dword [0x10010c5c], 0
mov dword [ebp - 0x18], eax
jne 0x1000c89d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000c945
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000c945
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10010c5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10010c60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10010c64], eax
call edi
push eax
call esi
mov dword [0x10010c6c], eax
test eax, eax
je 0x1000c89d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10010c68], eax
mov eax, dword [0x10010c68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000c8f6
cmp dword [0x10010c6c], ecx
je 0x1000c8f6
push eax
call esi
push dword [0x10010c6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000c8f6
test ebx, ebx
je 0x1000c8f6
call edi
test eax, eax
je 0x1000c8ed
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000c8ed
test byte [ebp - 8], 1
jne 0x1000c8f6
or dword [ebp + 0x10], 0x200000
jmp 0x1000c929
mov eax, dword [0x10010c60]
cmp eax, dword [ebp - 0x18]
je 0x1000c929
push eax
call esi
test eax, eax
je 0x1000c929
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000c929
mov eax, dword [0x10010c64]
cmp eax, dword [ebp - 0x18]
je 0x1000c929
push eax
call esi
test eax, eax
je 0x1000c929
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10010c5c]
call esi
test eax, eax
je 0x1000c945
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000c947
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000892e
leave
ret
Function at 0x10008a80
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using chaskey
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hash data using murmur3
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x1000d0cf
push ebp
xchg ah, ah
mov ebp, esp
bt eax, 0xb2
push ebx
shld eax, ecx, 0x14
cmc
bt eax, 2
push edi
add al, dl
sub al, 0x23
nop
push esi
rol eax, cl
sub esp, 0x10c
bt ax, bx
mov eax, dword [0x10076e00]
test si, 0xba34
xor eax, ebp
jmp 0x100100b0
mov dword [ebp - 0x10], eax
and al, ah
dec ax
mov dword [ebp - 0x114], 0x2912b149
adc al, ah

Function at 0x1001b8c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b902
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b902
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b902
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b902
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b902
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001e57f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e61c
push ebx
push esi
call fcn.1001e548
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e4dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e5c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e61b
push edi
push eax
call fcn.1001f53a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e5e9
call fcn.1001d024
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e61a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e4dc
add esp, 0x20
test eax, eax
jne 0x1001e608
push edi
call fcn.1001d024
jmp 0x1001e610
push ebx
call fcn.1001d024
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001e889
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cc8
push 0x10026cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e7a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e8bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025150]
call esi
jmp 0x1001e8c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e907
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cd8
push 0x10026cd0
push str.FlsGetValue
push 0x21
call fcn.1001e7a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e93e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e946
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026ce0
push 0x10026cd8
push str.FlsSetValue
push 0x22
call fcn.1001e7a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e980
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10025150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10024000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002402d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002402d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10043d50
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10043f14
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x10043d7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10043d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10043d70
mov eax, 1
add ebx, ebx
jne 0x10043d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10043d88
jne 0x10043da4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10043d88
xor ecx, ecx
sub eax, 3
jb 0x10043db8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10043e2a
mov ebp, eax
add ebx, ebx
jne 0x10043dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10043dd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10043df4
inc ecx
add ebx, ebx
jne 0x10043de0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10043dd5
jne 0x10043df1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10043dd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10043e14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10043e05
jmp 0x10043d76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10043e14
add edi, ecx
jmp 0x10043d76
pop esi
mov edi, esi
mov ecx, 0x1381
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10043e32
cmp byte [edi], 7
jne 0x10043e32
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 0x10043e37
lea edi, [esi + 0x40000]
mov eax, dword [edi]
or eax, eax
je 0x10043ea6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4303c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10043e64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x43040]
or eax, eax
je 0x10043ea0
mov dword [ebx], eax
add ebx, 4
jmp 0x10043e81
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10043ed7
cmp al, 0xef
ja 0x10043eca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10043eac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10043eb9
mov ebp, dword [esi + 0x43044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x10043f0b
sub esp, 0xffffff80
jmp 0x100203c3
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401087
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x40109f
xor eax, eax
jmp 0x401178
push 0x106
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4010bd
xor eax, eax
jmp 0x401178
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401161
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40110c
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov edx, dword [eax]
push ecx
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x401178
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [edx]
push eax
call dword [ecx + 0x14]
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp ecx, 0x5c
je 0x40115f
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
jmp 0x401175
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4