joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b29
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x59e120], 0x400
push edi
jne 0x403b82
push esi
push esi
call fcn.00403e16
push esi
push esi
call fcn.00403e16
push esi
call fcn.00403fe0
add esp, 0x14
push esi
push esi
push esi
call fcn.00404a9e
pop ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403542
fstp st(0)
push esi
call fcn.00404b23
pop ecx
push esi
call fcn.004048b5
pop ecx
mov eax, dword [0x42ab44]
mov dword [0x59e120], eax
mov eax, dword [0x42ab1c]
mov dword [0x59e124], eax
call fcn.00403816
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403be9
cmp dword [esp + 0x18], 0x785074d5
jne 0x403bf7
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403ba4
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4033b0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4033fc
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403c26
cmp dword [esp + 0x18], 0x785074d5
jne 0x403c2f
inc edi
cmp edi, 0x11915
jl 0x403bf9
mov eax, dword [0x59d074]
mov dword [0x59d6b4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ab95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4296c4]
jne 0x40ab9f
repz ret
jmp fcn.0040ef58
Function at 0x40ed30
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.00407288
and dword [ebp - 4], 0
cmp dword [0x42b478], 0
mov ebx, eax
jne 0x40ede1
push 0x402cd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ee92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402cc8
push edi
call esi
test eax, eax
je 0x40ee92
push eax
call fcn.00407216
mov dword [esp], 0x402cb8
push edi
mov dword [0x42b478], eax
call esi
push eax
call fcn.00407216
mov dword [esp], 0x402ca4
push edi
mov dword [0x42b47c], eax
call esi
push eax
call fcn.00407216
mov dword [esp], 0x402c88
push edi
mov dword [0x42b480], eax
call esi
push eax
call fcn.00407216
pop ecx
mov dword [0x42b488], eax
test eax, eax
je 0x40ede1
push 0x402c70
push edi
call esi
push eax
call fcn.00407216
pop ecx
mov dword [0x42b484], eax
mov eax, dword [0x42b484]
cmp eax, ebx
je 0x40ee39
cmp dword [0x42b488], ebx
je 0x40ee39
push eax
call fcn.00407291
push dword [0x42b488]
mov esi, eax
call fcn.00407291
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ee39
test edi, edi
je 0x40ee39
call esi
test eax, eax
je 0x40ee30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ee30
test byte [ebp - 0xc], 1
jne 0x40ee39
or dword [ebp + 0x10], 0x200000
jmp 0x40ee72
mov eax, dword [0x42b47c]
cmp eax, ebx
je 0x40ee72
push eax
call fcn.00407291
pop ecx
test eax, eax
je 0x40ee72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ee72
mov eax, dword [0x42b480]
cmp eax, ebx
je 0x40ee72
push eax
call fcn.00407291
pop ecx
test eax, eax
je 0x40ee72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b478]
call fcn.00407291
pop ecx
test eax, eax
je 0x40ee92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ee94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7c3f52d5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x61ac050e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402e98
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ece
lea esi, [edi + 4]
test esi, esi
je 0x402ece
call fcn.00402dfa
test al, al
je 0x402ece
mov ecx, edi
call fcn.00402dfa
test al, al
je 0x402ece
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ed0
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x40618e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x40620f
mov byte [esi + 8], 1
call main
cmp dword [esi + 0x10], 0
je 0x40620f
test al, al
je 0x4061ae
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406869
test al, al
jne 0x4061d5
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f32
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call main
cmp dword [esi + 0x18], 0
jne 0x4061fc
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00406f32
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x40620f
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop esi
ret

Function at 0x406869
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406876
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x4068af
cmp eax, 0x80
je 0x4068af
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f32
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406872
mov al, 1
pop esi
ret

Function at 0x407545
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4075b4
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x407590
push ebx
push edi
push eax
call fcn.0040bee0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4075ab
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x405b32
pop dword [ebp - 0x1c]
mov eax, 0x405b32
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2f60133c
add dword [ebp - 0x2c], 0x1ef2320f
mov dword [ebp - 0x28], 0x5d917b68
sub dword [ebp - 0x28], 0x2b5e2f23
mov dword [ebp - 0x24], 0x92435133
add dword [ebp - 0x24], 0xba08f2fb
mov dword [ebp - 0x20], 0x3a257b91
sub dword [ebp - 0x20], 0x3a257b91
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x95e71105
add eax, 0x6a596f73
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x89bc32f4
add dword [ebp - 0x2c], 0xeab63662
mov dword [ebp - 0x28], 0x19f6997a
sub dword [ebp - 0x28], 0xd88a3805
mov dword [ebp - 0x24], 0x697d2d93
add dword [ebp - 0x24], 0xf9f23ed9
mov dword [ebp - 0x20], 0x6a2e4f86
sub dword [ebp - 0x20], 0x6a2e4f86
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x387c09ee
sub eax, 0x383b8972
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x353c8
push 0
call eax
mov ecx, 0x4e3950c2
sub ecx, 0x4e390fda
xor edx, edx
add edx, eax
mov ebx, 0x392004b
sub ebx, 0x34c6e4b
add ebx, dword [ebp - 0x1c]
mov esi, 0x9cda8ee3
add esi, 0xe1526422
xor dword [ebp - 8], ecx
mov edi, dword [ebx]
add dword [ebp - 8], 0xa1c65e7f
add edi, esi
sub dword [ebp - 4], esi
mov dword [edx], edi
add dword [ebp - 8], 0xd49e7def
add edx, 0x31041cc7
add edx, 0xcefbe33d
add ebx, 0x31e32fd3
add ebx, 0xce1cd031
loop 0x405c51
add eax, 0xee8f2c71
add eax, 0x1171ca02
mov ebx, eax
add eax, 5
mov ecx, 0x993d8827
sub ecx, 0x98fd8827
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x405f07
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x40605d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4060b3
push 1
push 0
push esi
call fcn.00405f07
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.user32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f14]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b23
push 4
push 0xc0000000
push esi
call fcn.00405f07
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d2
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cb
push edi
push esi
push ebp
call fcn.00405b23
test eax, eax
je 0x4061cb
push str._Rename__r_n
push esi
call fcn.00405b23
test eax, eax
jne 0x406169
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40619e
add eax, 0xa
push 0x40a580
push eax
call fcn.00405b23
mov ebp, eax
test ebp, ebp
je 0x40619a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406185
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405ec2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405b23
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061d7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4061fa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605d
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
or eax, eax
dec eax
call fcn.00408962
inc eax
and eax, edx
xor dword [ebx], ecx
inc ebx
cmp ebx, edi
jne fcn.00408939
add edx, 0x87a95ac0
ret
Function at 0x4035ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4035fc
pop dword [ebp - 0x30]
mov eax, 0x71f7e503
sub eax, 0x71b7af07
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x7a36e9ab
add dword [ebp - 0x40], 0xd41b5ba0
mov dword [ebp - 0x3c], 0x3a8563c3
add dword [ebp - 0x3c], 0xf7ade882
mov dword [ebp - 0x38], 0x635085d9
sub dword [ebp - 0x38], 0x170441ab
mov dword [ebp - 0x34], 0xb39efef4
add dword [ebp - 0x34], 0x4c61010c
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xa075cc66
add dword [ebp - 0x40], 0xd3fc9cf0
mov dword [ebp - 0x3c], 0x8c1571d4
sub dword [ebp - 0x3c], 0x4aa9105f
mov dword [ebp - 0x38], 0x2eb3210a
sub dword [ebp - 0x38], 0xcb43b49e
mov dword [ebp - 0x34], 0x8ff3b4e1
sub dword [ebp - 0x34], 0x8ff3b4e1
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x80749ef9
add eax, 0x7fcbd127
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a399
push 0
call eax
mov ecx, 0x5226
xor ebx, ebx
add ebx, eax
mov edx, 0x40c800
add edx, dword [ebp - 0x30]
mov edi, 0xa745f0fe
xor dword [ebp - 4], 0x284e5467
mov esi, dword [edx]
add dword [ebp - 0x28], 0xb6240e04
xor esi, edi
mov dword [ebp - 0x14], 0x959b027b
mov dword [ebx], esi
mov dword [ebp - 0x10], 0xb60f38e5
add ebx, 4
add edx, 0xa9965bc0
add edx, 0x5669a444
loop 0x403709
add eax, 0x13b6b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3b44fcf
add ecx, 0xfc8bb031
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004035ed
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004035ed
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret