joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10066930
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1009500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.100667d0
cmp byte [ebp - 0x84], 0
jne 0x10066a81
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x100669c5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x10096620
call fcn.100667d0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.100667d0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x10066a34
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10066880
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10066ac3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10066ab9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10066ab9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100674c0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b99
mov esp, ebp
pop ebp
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
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x49c368a2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x591e787f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40fe60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x4d517b
call fcn.00403062
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
jmp 0x40ff13
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x44]
jae 0x40ff69
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0xdc]
cmp dword [ebp - 0x20], ecx
ja 0x40ff35
jmp 0x40ff0a
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00403a67
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x40ff67
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x74], ecx
jmp 0x40ff69
jmp 0x40ff0a
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x2c]
jb 0x40ff83
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
cmp dword [ebp - 0x74], eax
jae 0x40ff83
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.0040311b
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x18e3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.018e378f
jae 0x18e370e
xor ecx, ecx
call fcn.018e378f
jae 0x18e373d
xor eax, eax
call fcn.018e378f
jae 0x18e374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.018e378f
adc al, al
jae 0x18e372f
jne 0x18e3779
stosb byte es:[edi], al
jmp 0x18e3711
call fcn.018e379b
sub ecx, ebx
jne 0x18e3756
call fcn.018e3799
jmp 0x18e3775
lodsb al, byte [esi]
shr eax, 1
je 0x18e3783
adc ecx, ecx
jmp 0x18e3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.018e3799
cmp eax, 0x7d00
jae 0x18e3772
cmp ah, 5
jae 0x18e3773
cmp eax, 0x7f
ja 0x18e3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18e3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xb37210
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb37360
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb37236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb37222
add dl, dl
jne 0xb37241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb37294
xor eax, eax
add dl, dl
jne 0xb3724e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb37335
add dl, dl
jne 0xb3725d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb37268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb37273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3727e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb3728a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb3722d
mov eax, 1
add dl, dl
jne 0xb372a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb372ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb37299
sub eax, ebx
mov ebx, 1
jne 0xb372e0
mov ecx, 1
add dl, dl
jne 0xb372c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb372d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb372bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3722d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb372f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb37302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb372ee
cmp eax, 0x7d00
jae 0xb37325
cmp eax, 0x500
jb 0xb37320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3722d
cmp eax, 0x7f
ja 0xb37328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3722d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb37356
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb3722d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x48a160
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x48a17d
mov eax, dword [esi]
test eax, eax
je 0x48a2a1
cmp word [eax], 0
je 0x48a2a1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48a2a1
test al, 0x10
jne 0x48a2a1
cmp dword [esi + 0x14], 8
jb 0x48a1af
mov esi, dword [esi]
push 0x4a9878
push esi
call fcn.00433ab3
mov esi, eax
add esp, 8
test esi, esi
je 0x48a2a1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.0043b74b
push 2
push 0
push esi
call fcn.0043add2
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0043b74b
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0043bbcc
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x48a298
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.0043a3bb
add esp, 0x10
test eax, eax
je 0x48a298
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x48a298
cmp dword [esp + 0x20], 0x48535844
jne 0x48a298
cmp dword [esp + 0x24], 0x28
jne 0x48a298
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00433ef1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x417470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x417492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417488
mov eax, 1
add ebx, ebx
jne 0x4174ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4174bc
jne 0x4174cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4174cc
dec eax
add ebx, ebx
jne 0x4174c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4174a0
xor ecx, ecx
sub eax, 3
jb 0x4174e4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417556
sar eax, 1
mov ebp, eax
jmp 0x4174ef
add ebx, ebx
jne 0x4174ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4174fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417520
inc ecx
add ebx, ebx
jne 0x41750c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417501
jne 0x41751d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417501
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417540
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417531
jmp 0x41748e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417540
add edi, ecx
jmp 0x41748e
pop esi
mov edi, esi
mov ecx, 0xe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41755e
cmp byte [edi], 3
jne 0x41755e
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 eax, ebx
loop 0x417563
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x4175db
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c978]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c9b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417590
mov ecx, edi
jns 0x4175bf
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c9b8]
or eax, eax
je 0x4175d5
mov dword [ebx], eax
add ebx, 4
jmp 0x4175ad
call dword [esi + 0x1c9bc]
popal
jmp 0x4011a0
Function at 0x401380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5389b2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x57506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.00467349
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x401414
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401130
push eax
push esi
call fcn.004676a9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x406290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538daf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x560f28
call fcn.00469ca4
mov esi, eax
mov dword [ebp - 0x10], esi
push 1
mov dword [ebp - 4], 0
call fcn.004675a6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
push esi
lea esi, [ebx + 8]
push edi
mov ecx, dword [eax + 4]
push 0xa
add ecx, esi
call fcn.00406590
movzx eax, al
mov ecx, esi
push eax
call fcn.00410300
mov ecx, esi
call fcn.004048e0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00404d70
mov eax, dword [0x58bc48]
test eax, eax
je 0x40f53e
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x40f623
cmp dword [ebx], 2
jl 0x40f57f
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.004b3236
add esp, 4
push eax
push 1
push esi
push edi
call fcn.004b41f5
push 2
call fcn.004b3236
add esp, 0x14
push eax
call fcn.004b36dd
add esp, 4
lea esi, [ebx + 8]
call fcn.0040f340
test al, al
je 0x40f5ae
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x58bc4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x40f623
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x40f5e2
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004abe20
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0041a210
add esp, 4
cmp dword [0x58bc54], 0
je 0x40f619
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00404d70
push eax
call dword [0x58bc54]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00402090
jmp 0x40f623
cmp byte [0x58bd78], 0
jne 0x40f65d
int3
lea ecx, [esp + 0x10]
call fcn.00402090
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 0x50]
call fcn.004021e0
lea ecx, [esi + 0x50]
call fcn.00402b90
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b50b4
int3
Function at 0x410540
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ec
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x5e8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
push ecx
lea ecx, [esp + 0x358]
call fcn.0041b670
lea eax, [esp + 0x318]
push eax
lea ecx, [esp + 0x34c]
call fcn.0041b820
cmp dword [esp + 0x328], ebx
je 0x4106e8
nop dword [eax + eax]
cmp byte [esp + 0x348], 0
jne 0x4105d8
test bl, 1
je 0x4105bf
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.0040f4c0
push 0x250
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.004ac860
add esp, 0xc
jmp 0x4105f1
mov ecx, 0x94
lea esi, [esp + 0x34c]
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc8]
mov cl, byte [ebp + 8]
test bl, 1
je 0x410634
test cl, cl
jne 0x41060d
mov eax, ebx
shr eax, 4
test al, 1
jne 0x410634
cmp dword [esp + 0x32c], 8
lea ecx, [esp + 0x318]
mov eax, ebx
cmovae ecx, dword [esp + 0x318]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x41067b
test cl, cl
je 0x4106a1
push 1
mov edx, esi
lea ecx, [esp + 0x31c]
call fcn.00410540
add esp, 4
test al, al
je 0x41075e
cmp dword [esp + 0x32c], 8
lea eax, [esp + 0x318]
cmovae eax, dword [esp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x410699
cmp dword [esp + 0x32c], 8
lea eax, [esp + 0x318]
cmovae eax, dword [esp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41075e
lea eax, [esp + 0x330]
push eax
lea ecx, [esp + 0x34c]
call fcn.0041b820
lea ecx, [esp + 0x318]
cmp ecx, eax
je 0x4106ca
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
lea ecx, [esp + 0x330]
call fcn.00401fe0
cmp dword [esp + 0x328], 0
mov ebx, dword [esp + 0x10]
jne 0x4105a0
lea ecx, [esp + 0x318]
call fcn.00401fe0
mov bl, 1
mov eax, dword [esp + 0x59c]
cmp eax, 0xffffffff
je 0x410709
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x5d8]
call fcn.0041bc90
push dword [esp + 0x5d8]
call fcn.0048ac22
add esp, 4
mov dword [esp + 0x5d8], 0
lea ecx, [esp + 0x5c0]
call fcn.00401fe0
lea ecx, [esp + 0x5a0]
call fcn.00401fe0
mov ecx, dword [esp + 0x5f4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x318]
call fcn.00401fe0
xor bl, bl
jmp 0x4106f6