joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b92d
Capabilities:
Get graphical window text

Disassembly:
push 0x680
mov eax, 0x43a578
call fcn.00438b4c
mov esi, ecx
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x66c], edx
mov dword [ebp - 0x668], eax
mov byte [edx], bl
mov dword [ebp - 0x664], esi
cmp ecx, 5
je 0x40bb63
cmp ecx, 6
je 0x40bb5c
cmp ecx, 7
je 0x40bb55
cmp ecx, 0xb
je 0x40b9b0
lea eax, [ecx - 0xc]
cmp eax, 3
ja 0x40bb73
push ecx
mov byte [edx], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x40b99d
push ebx
jmp 0x40b99f
push 1
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x40bb73
push 7
pop ecx
xor eax, eax
mov byte [edx], 1
lea edi, [ebp - 0x688]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push 0x20a
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x430]
push ebx
push eax
call fcn.00420070
add esp, 0xc
mov dword [ebp - 0x680], 0x4488d0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x67c], 0x58
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x68c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
mov dword [ebp - 0x660], edi
test edi, edi
je 0x40bb73
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x640]
push 0x105
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00420070
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x640]
lea eax, [ebp - 0x220]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ba91
test dx, dx
je 0x40ba8d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ba91
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ba6b
xor eax, eax
jmp 0x40ba96
sbb eax, eax
or eax, 1
test eax, eax
lea edi, [esi + 0x158]
setne al
mov byte [esi + 0x155], al
lea eax, [ebp - 0x220]
push eax
call fcn.00403808
pop ecx
push eax
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004040f9
add esi, 0x48
cmp dword [esi + 0x10], 0
sete al
test al, al
je 0x40bae3
cmp dword [edi + 0x14], 8
jb 0x40bad9
mov edi, dword [edi]
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40bb11
push esi
mov edx, edi
lea ecx, [ebp - 0x658]
call fcn.00406830
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40bafa
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
lea ecx, [ebp - 0x658]
call fcn.004040a2
and dword [ebp - 0x65c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x65c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x40bb3f
mov eax, dword [ebp - 0x65c]
push dword [ebp - 0x660]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x40bb73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40bb73
push str.auto
jmp 0x40bb68
push str.default
jmp 0x40bb68
push str.firewall
lea ecx, [ebp - 0x66c]
call fcn.0040bb7d
xor eax, eax
call fcn.00438b07
ret 0xc
Function at 0x40bd00
Capabilities:
Create directory
Hide graphical window

Disassembly:
push 0x8c
mov eax, 0x43a5b0
call fcn.00438b4c
mov esi, ecx
mov eax, dword [esi + 0x120]
xor ebx, ebx
sub eax, ebx
je 0x40bd36
dec eax
sub eax, 1
je 0x40bee1
sub eax, 1
jne 0x40bedb
push ebx
call fcn.0040bffb
xor edx, edx
inc edx
cmp byte [esi + 0x155], bl
jne 0x40bddc
lea ecx, [esi + 0x48]
cmp dword [ecx + 0x10], ebx
sete al
test al, al
jne 0x40bddc
push ecx
lea ecx, [ebp - 0x64]
call fcn.004074fc
mov edi, 0x448294
mov dword [ebp - 4], ebx
push edi
call fcn.00403808
pop ecx
push eax
push ecx
push edi
lea ecx, [ebp - 0x64]
call fcn.00407524
push ebx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040d3e4
lea ecx, [ebp - 0x7c]
call fcn.00406247
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x94]
call fcn.00406830
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40bda9
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.004040a2
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004040a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
push ebx
push 1
call fcn.004040a2
xor edx, edx
inc edx
push edx
push ebx
push dword [esi + 4]
mov dword [esi + 0x120], edx
call dword [sym.imp.USER32.dll_InvalidateRect]
call dword [sym.imp.USER32.dll_ReleaseCapture]
movaps xmm0, xmmword [0x44b200]
lea edi, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
push 0xf
movaps xmm0, xmmword [0x44b210]
movups xmmword [ebp - 0x3c], xmm0
pop eax
movaps xmm0, xmmword [0x44b220]
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x18], 0x13
mov dword [ebp - 0x14], 8
movups xmmword [ebp - 0x2c], xmm0
test eax, eax
je 0x40be50
push 0
push dword [edi]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
lea edi, [edi + 4]
cmp ebx, 0xf
jne 0x40be33
mov edi, 0x44892c
push edi
call fcn.00403808
pop ecx
push eax
push edi
lea ecx, [esi + 0x124]
call fcn.004040f9
xor eax, eax
mov dword [ebp - 0x98], 0x14
xor ebx, ebx
lea edi, [ebp - 0x98]
add eax, 1
je 0x40bea1
push 5
push dword [edi]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
lea edi, [edi + 4]
inc ebx
inc eax
cmp ebx, eax
jne 0x40be82
lea ecx, [ebp - 0x7c]
call fcn.00406082
mov ecx, eax
call fcn.004061b9
mov bl, al
lea ecx, [ebp - 0x7c]
xor eax, eax
push 0
inc eax
push eax
call fcn.004040a2
test bl, bl
je 0x40bed0
mov eax, dword [esi + 0x13c]
mov dword [eax], 2
mov ecx, dword [esi + 0x13c]
call fcn.00412c32
call fcn.00438b07
ret
call fcn.0040c3e4
jmp 0x40bedb
Function at 0x40bee8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x45100c]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x44b200]
push ebx
push esi
push edi
movups xmmword [ebp - 0x40], xmm0
lea esi, [ebp - 0x40]
mov ebx, ecx
movaps xmm0, xmmword [0x44b210]
xor edi, edi
push 0xf
movups xmmword [ebp - 0x30], xmm0
pop eax
movaps xmm0, xmmword [0x44b220]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], 0x13
mov dword [ebp - 8], 8
movups xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x40bf5f
push 0
push dword [esi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc edi
lea esi, [esi + 4]
cmp edi, 0xf
jne 0x40bf42
push 5
mov ecx, ebx
call fcn.0040bffb
lea ecx, [ebx + 0xa0]
mov esi, ecx
lea edi, [ebp - 0x50]
push 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x50]
sub eax, dword [ebp - 0x50]
mov esi, ecx
mov dword [ebp - 0x58], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x44]
sub ebx, dword [ebp - 0x4c]
call fcn.0040378d
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
push 0x14
mov esi, dword [esi + 0x24]
sub esi, eax
sub esi, edi
call fcn.0040378d
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x50], esi
push 1
push 0
mov ecx, dword [edx + 0x28]
push dword [edx + 4]
sub ecx, eax
mov dword [edx + 0x120], 3
lea eax, [esi + edi]
sub ecx, ebx
mov dword [ebp - 0x48], eax
lea edi, [edx + 0xa0]
mov dword [ebp - 0x4c], ecx
lea esi, [ebp - 0x50]
lea eax, [ecx + ebx]
mov dword [ebp - 0x44], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b97b
mov esp, ebp
pop ebp
ret
Function at 0x40c22d
Capabilities:
Hide graphical window

Disassembly:
push 0x244
mov eax, 0x43a630
call fcn.00438b4c
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov eax, dword [ebx + 0x90]
push 0
push 0x14
push dword [ebx + 4]
mov byte [ebx + 0x154], 1
mov dword [ebx + 0x98], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x448a8c
mov dword [ebx + 0x120], 2
push esi
call fcn.00403808
pop ecx
push eax
push esi
lea ecx, [ebx + 0x124]
call fcn.004040f9
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea esi, [ebx + 0xa0]
lea edi, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
push 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040378d
mov ebx, dword [ebx + 0x24]
lea edi, [ebp - 0x224]
mov esi, dword [ebp - 0x250]
sub ebx, eax
sub ebx, dword [ebp - 0x21c]
add ebx, dword [ebp - 0x224]
push 0x14
lea esi, [esi + 0xa0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040378d
mov esi, dword [ebp - 0x250]
lea edi, [ebp - 0x224]
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0xa0]
sub ecx, eax
mov esi, edx
sub ecx, dword [ebp - 0x218]
add ecx, dword [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x218]
lea edi, [ebp - 0x234]
sub eax, dword [ebp - 0x220]
mov esi, edx
add eax, ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x234]
add eax, ebx
push eax
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [ebp - 0x250]
mov ecx, ebx
call fcn.0040cdee
test al, al
je 0x40c368
cmp dword [ebx + 0x5c], 8
jb 0x40c358
mov eax, dword [ebx + 0x48]
jmp 0x40c35b
lea eax, [ebx + 0x48]
push eax
mov eax, 0x448ab0
mov edx, 0x448be0
jmp 0x40c381
cmp dword [ebx + 0x5c], 8
jb 0x40c373
mov eax, dword [ebx + 0x48]
jmp 0x40c376
lea eax, [ebx + 0x48]
push eax
mov eax, 0x448d10
mov edx, 0x448e40
cmp dword [ebx + 0x58], 0x2e
cmovae eax, edx
push eax
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.004081e9
add esp, 0x10
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00404015
xor esi, esi
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 0xec]
add ecx, 0x18
cmp ecx, eax
je 0x40c3d0
push 0xffffffffffffffff
push esi
push eax
call fcn.004046a9
push esi
push 1
lea ecx, [ebp - 0x24c]
call fcn.004040a2
call fcn.00438b07
ret
Function at 0x40f0e4
Capabilities:
Encode data using xor

Disassembly:
push 0x44
mov eax, 0x43ab12
call fcn.00438b4c
mov ebx, edx
mov dword [ebp - 0x48], ebx
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
and dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
test ebx, ebx
je 0x40f265
test edi, edi
jne 0x40f11f
cmp ecx, 0x11
jb 0x40f265
movzx eax, byte [ebx + 0x10]
cdq
mov dword [ebp - 0x2c], 3
idiv dword [ebp - 0x2c]
mov eax, edx
mov edx, ecx
add eax, dword [ebp - 0x2c]
add edx, 0xffffffef
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
adc edi, 0xffffffff
cdq
cmp edi, edx
ja 0x40f155
jb 0x40f265
cmp dword [ebp - 0x30], eax
jb 0x40f265
mov eax, dword [ebp - 0x2c]
mov edi, ecx
sub edi, eax
sub edi, 0x15
test edi, edi
jle 0x40f265
add eax, 0x11
mov dword [ebp - 0x14], 0xf
add eax, ebx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0040421d
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push dword [ebp - 0x2c]
call fcn.0040f279
mov eax, dword [ebp - 0x2c]
lea edx, [ebx + 0x11]
add eax, edx
lea ecx, [ebp - 0x40]
push eax
push edx
call fcn.0040f3b1
and dword [ebp - 0x30], 0
test edi, edi
jle 0x40f1f0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp - 0x34]
add edx, dword [ebp - 0x40]
mov cl, byte [ebx + eax]
lea eax, [ebp - 0x28]
xor cl, byte [edx]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], cl
inc ebx
mov byte [edx], cl
cmp ebx, edi
jl 0x40f1c5
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
push ecx
lea ecx, [ebx + 0xc]
lea edx, [edi - 0x10]
call fcn.00405eeb
pop ecx
mov cl, byte [edi + ebx - 4]
mov byte [ebp - 0x2c], cl
mov cl, byte [edi + ebx - 3]
mov byte [ebp - 0x2b], cl
mov cl, byte [edi + ebx - 2]
mov byte [ebp - 0x2a], cl
mov cl, byte [edi + ebx - 1]
mov byte [ebp - 0x29], cl
mov ecx, esi
cmp eax, dword [ebp - 0x2c]
je 0x40f243
push 0x447b78
call fcn.00404073
lea ecx, [ebp - 0x40]
call fcn.0040cf44
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004041c8
jmp 0x40f271
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.004043b9
lea ecx, [ebp - 0x40]
call fcn.0040cf44
push ebx
jmp 0x40f237
push 0x447b78
mov ecx, esi
call fcn.00404073
mov eax, esi
call fcn.00438b07
ret
Function at 0x410fec
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x184
mov eax, 0x43aca5
call fcn.00438b4c
mov dword [ebp - 0x30], edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404015
lea ecx, [ebp - 0x28]
call fcn.004061b9
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
mov bl, al
call fcn.004040a2
test bl, bl
je 0x41102b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411084
push ecx
push ecx
lea ecx, [ebp - 0xe0]
call fcn.0040d74d
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], esi
test eax, eax
je 0x411072
mov edx, str.Cant_create_file.
lea ecx, [ebp - 0xd0]
call fcn.004076fa
lea ecx, [ebp - 0xe0]
call fcn.0040d4e2
xor al, al
jmp 0x41112b
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 8]
push eax
push esi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
cmp esi, dword [ebp - 0x2c]
je 0x4110cb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push ecx
lea ecx, [ebp - 0xe0]
call fcn.0040d74d
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 1
test eax, eax
je 0x411072
mov edx, str.Cant_write_into_file
jmp 0x411067
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x411129
mov ecx, edi
call fcn.00405830
push edi
test al, al
jne 0x411123
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
push ecx
lea ecx, [ebp - 0x190]
call fcn.0040d74d
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 2
test eax, eax
je 0x411118
mov edx, str.cant_unzip
lea ecx, [ebp - 0x180]
call fcn.004076fa
lea ecx, [ebp - 0x190]
jmp 0x411078
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
call fcn.00438b07
ret

Function at 0x4115f3
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x43ad96
call fcn.00438b18
mov edi, ecx
cmp byte [ebp + 0x14], 0
je 0x41161c
push 0
push 0x20002
mov edx, 0x7e8
call fcn.00410f86
pop ecx
pop ecx
jmp 0x411671
push 0x3c
call fcn.0041be5b
mov esi, eax
pop ecx
mov dword [ebp + 0x14], esi
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
mov dword [esi], 2
call fcn.004074fc
push dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
call fcn.004074fc
push ebx
push ebx
push esi
push 0x4115b3
push ebx
push ebx
mov dword [esi + 0x34], 0x7e8
mov dword [esi + 0x38], edi
call fcn.00425274
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.00438af2
ret
Function at 0x412e13
Capabilities:
Create process on windows
Move file

Disassembly:
push 0x54
mov eax, 0x43b160
call fcn.00438b4c
mov edi, ecx
mov dword [ebp - 0x60], edi
xor ebx, ebx
cmp dword [edi], 2
je 0x412e32
xor esi, esi
inc esi
mov dword [edi], esi
jmp 0x412e60
lea ecx, [ebp - 0x2c]
call fcn.00406082
cmp dword [eax + 0x14], 8
jb 0x412e42
mov eax, dword [eax]
push 5
push ebx
push str.__start
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor esi, esi
lea ecx, [ebp - 0x2c]
push ebx
inc esi
push esi
call fcn.004040a2
add edi, 0x14
cmp dword [edi + 0x10], ebx
sete al
test al, al
je 0x412ed1
lea ecx, [ebp - 0x2c]
call fcn.00406b6a
push 0
push esi
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x10], ebx
sete al
test al, al
sete bl
call fcn.004040a2
test bl, bl
je 0x412efb
lea ecx, [ebp - 0x44]
call fcn.00406c6c
mov edi, eax
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00406be7
cmp dword [edi + 0x14], 8
jb 0x412eae
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x412eb6
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004040a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
jmp 0x412ef4
lea ecx, [ebp - 0x5c]
call fcn.00406be7
cmp dword [edi + 0x14], 8
jb 0x412ee1
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x412ee9
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x5c]
push ebx
push esi
call fcn.004040a2
mov ecx, dword [ebp - 0x60]
push str.fir
mov ecx, dword [ecx + 8]
call fcn.00405a91
call fcn.00438b07
ret
Function at 0x40eff8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
test dl, dl
je 0x40f00d
add esp, 0xfffffff0
call fcn.00402090
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
call fcn.00401e68
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0xc], eax
lea eax, [edi + 0x10]
mov edx, dword [0x40eabc]
call fcn.00403980
lea eax, [edi + 0x14]
mov edx, dword [0x40eb64]
call fcn.00403980
lea eax, [edi + 0x18]
mov edx, dword [0x40ebb4]
call fcn.00403980
lea eax, [edi + 0x1c]
mov edx, dword [0x40ea68]
call fcn.00403980
xor eax, eax
mov dword [edi + 0x20], eax
mov edx, ebx
mov eax, esi
call fcn.00405f98
mov dword [ebp - 8], eax
cmp byte [ebp + 8], 0
je 0x40f0a0
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x3c]
mov al, 0x21
test ebx, ebx
jle 0x40f0a0
mov dword [ebp - 0xc], ebx
mov dl, byte [esi]
mov ecx, eax
xor cl, dl
shl eax, 3
sub cl, al
mov byte [esi], cl
lea eax, [edx + 0x6f]
xor al, 0xaa
inc esi
dec dword [ebp - 0xc]
jne 0x40f088
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040fecc
mov eax, dword [ebp - 8]
call fcn.00406d14
mov eax, edi
cmp byte [ebp - 1], 0
je 0x40f0c9
call fcn.004020e8
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f34c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405b44
cmp edx, 0
jne 0x40f370
cmp eax, 0
jbe 0x40f4ad
jmp 0x40f376
jle 0x40f4ad
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.00401980
push 0
push 0x40
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405b78
cmp edx, 0
jne 0x40f3ad
cmp eax, 0x40
jne 0x40f4ad
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x40f4ad
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x100]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor edx, edx
call fcn.00405ba0
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x100]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x40f3f8
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40f4ad
push 0
push 4
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405b78
cmp edx, 0
jne 0x40f423
cmp eax, 4
jne 0x40f4ad
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x40f4ad
push 0
push 0x14
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405b78
cmp edx, 0
jne 0x40f45b
cmp eax, 0x14
jne 0x40f4ad
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x40f4ad
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xe8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405b78
push edx
push eax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xe8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x40f4a7
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40f4ad
mov bl, 1
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x40fac0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
mov ax, word [eax - 0xf6]
test ax, ax
jbe 0x40fba0
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x40fb9e
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x40fb36
test eax, 0x40000000
je 0x40fb22
test eax, 0x80000000
je 0x40fb1d
or edx, 0x40
jmp 0x40fb5d
or edx, 0x20
jmp 0x40fb5d
test eax, 0x80000000
je 0x40fb31
or edx, 0x80
jmp 0x40fb5d
or edx, 0x10
jmp 0x40fb5d
test eax, 0x40000000
je 0x40fb4e
test eax, 0x80000000
je 0x40fb49
or edx, 4
jmp 0x40fb5d
or edx, 2
jmp 0x40fb5d
test eax, 0x80000000
je 0x40fb5a
or edx, 8
jmp 0x40fb5d
or edx, 1
test eax, 0x4000000
je 0x40fb6a
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call fcn.004040cc
inc ebx
dec dword [ebp - 4]
jne 0x40faf0
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000c455
pop dword [ebp - 0x1c]
mov eax, 0x1000c455
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3d6a1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x59c1
mov edx, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x1c]
mov esi, 0x5a57f7d0
sub esi, 0x1dea4c92
mov dword [ebp - 0x10], 0x3f59f68e
mov ebx, dword [edi]
mov dword [ebp - 0x10], 0x256b0f9f
sub ebx, esi
xor dword [ebp - 0xc], 0xadcddc25
mov dword [edx], ebx
sub dword [ebp - 0x10], 0x466ebc2e
add edx, 0xadd441de
add edx, 0x522bbe26
add edi, 0x4d6bc6ea
add edi, 0xb294391a
loop 0x1000c49e
add eax, 0x159d7
xor ebx, ebx
add ebx, eax
add eax, 0x4fed7184
add eax, 0xb0128e81
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret