joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aae6
Capabilities:
Parse pe header

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

Function at 0x417f2c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c67c
push 0x42c674
push str.FlsAlloc
push 0x1e
call fcn.00417d59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417f60
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a8]
call esi
jmp 0x417f66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417faa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c68c
push 0x42c684
push str.FlsGetValue
push 0x20
call fcn.00417d59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417fe1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ab75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a817

Function at 0x41ab80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a9a6
Function at 0x41bdba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ae80
mov eax, dword [0x464900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041952a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bdfc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bf58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040a2d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x466fb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c1e0
mov ecx, dword [esi*4 + 0x466fb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bf51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bf51
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bf51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c1e0
add esp, 0x14
test edx, edx
jl 0x41bf51
jg 0x41bec7
test eax, eax
jb 0x41bf51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bf51
jl 0x41bee1
cmp dword [ebp - 0x1008], eax
ja 0x41bf51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41beff
test ebx, ebx
je 0x41bf38
cmp ecx, edi
jae 0x41bf38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bf19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bf25
cmp byte [ecx + 1], 0xa
jne 0x41bf25
inc ecx
jmp 0x41bf25
movzx eax, al
movsx eax, byte [eax + 0x465230]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41beff
cmp edx, ebx
jne 0x41beff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bf56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a2bf
leave
ret
Function at 0x41edad
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 0x41ee4a
push ebx
push esi
call fcn.0041ed76
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.0041d9fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41edf7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee49
push edi
push eax
call fcn.004185c8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ee17
call fcn.0041771b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee48
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d9fb
add esp, 0x20
test eax, eax
jne 0x41ee36
push edi
call fcn.0041771b
jmp 0x41ee3e
push ebx
call fcn.0041771b
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 0x423996
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x466fb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4239d6
cmp byte [ebx], 0xa
jne 0x4239d6
or byte [eax + edi + 0x28], 4
jmp 0x4239db
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423ad9
mov al, byte [edx]
cmp al, 0x1a
je 0x423abb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423a0a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423a2f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423a39
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4239ec
jmp 0x423ad9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423ab6
cmp dword [ebp - 0xc], 0
je 0x423ab6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x466fb8]
test byte [eax + edi + 0x28], 0x48
je 0x423a90
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423a7b
mov byte [esi], dl
jmp 0x423a8c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466fb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423ad9
cmp byte [ebp - 1], 0xa
jne 0x423a9f
cmp esi, ebx
jne 0x423a9f
mov byte [esi], 0xa
jmp 0x423ad8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c1fe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423ad9
mov byte [esi], 0xd
jmp 0x423ad8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x466fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423ad5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423ad9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423ae2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x466fb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423b25
cmp word [esi], dx
jne 0x423b25
or byte [edi + eax + 0x28], 4
jmp 0x423b2a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x423c7d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x423c5d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423b6c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423ba2
cmp eax, edx
jae 0x423bae
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423b44
jmp 0x423c7d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c59
cmp dword [ebp - 0x14], 0
je 0x423c59
mov eax, dword [ebx*4 + 0x466fb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423c31
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x423bfa
mov word [esi], cx
jmp 0x423c2d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x466fb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x466fb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x466fb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423c7d
pop ebx
cmp word [ebp - 4], bx
jne 0x423c42
cmp esi, dword [ebp + 0xc]
jne 0x423c42
mov word [esi], bx
jmp 0x423c7a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c1fe
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423c7d
push 0xd
jmp 0x423c76
mov ecx, dword [ebx*4 + 0x466fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c74
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c7d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x426690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4266bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4266bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4dad08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
xor ecx, ecx
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da4
xor eax, eax
push ebp
push 0x4dae57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409914
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004029a0
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409914
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403264
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x30d]
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4dadf8
mov dword [ebp - 8], 0xffffffff
push 0
push 0x4dae68
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x368]
call fcn.0040c354
mov eax, dword [ebp - 0x368]
call fcn.00404db4
push eax
mov eax, dword [0x4de924]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4dae2e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dae5e
lea eax, [ebp - 0x368]
call fcn.00404904
lea eax, [ebp - 0xc]
call fcn.00404904
lea eax, [ebp - 4]
call fcn.00404904
ret
Function at 0x40337c
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 0x4033a9
mov ecx, dword [0x426358]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41889c], eax
push dword [0x40a674]
call dword [0x408130]
push 4
pop esi
push esi
call fcn.004034a7
cmp eax, edi
jl 0x4034a0
lea eax, [ebp - 4]
mov ebx, dword [0x40812c]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
cmp dword [ebp - 4], esi
jne 0x40349d
push dword [ebp + 8]
add dword [0x41889c], esi
call fcn.004034a7
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034a0
cmp dword [ebp + 0x10], edi
jne 0x40346c
cmp dword [ebp + 8], edi
jle 0x403498
mov esi, 0x414898
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40341c
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
cmp edi, dword [ebp - 4]
jne 0x40349d
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [0x408128]
test eax, eax
je 0x403468
cmp dword [ebp + 0x14], edi
jne 0x403468
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41889c], eax
cmp dword [ebp + 8], 0
jg 0x40340f
jmp 0x403498
push 0xfffffffffffffffe
jmp 0x40349f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403477
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a674]
call ebx
test eax, eax
je 0x40349d
mov eax, dword [ebp - 4]
add dword [0x41889c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034a0
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4034a7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41889c]
sub esi, dword [0x40c808]
push edi
add esi, dword [esp + 0x18]
call dword [0x40808c]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42630c], eax
jle 0x403611
push dword [0x4208ac]
call fcn.00403655
push ebx
push ebx
push dword [0x40c808]
push dword [0x40a674]
call dword [0x408130]
mov dword [0x4208a8], esi
mov dword [0x418898], ebx
mov ebp, 0x40c898
mov eax, dword [0x4188a0]
mov edi, 0x4000
sub eax, dword [0x4208ac]
cmp eax, edi
jg 0x40351c
mov edi, eax
mov esi, 0x414898
push edi
push esi
call fcn.00403623
test eax, eax
je 0x403603
add dword [0x4208ac], edi
mov dword [0x40c828], esi
mov dword [0x40c82c], edi
cmp dword [0x426310], ebx
je 0x403573
cmp dword [0x4263a0], ebx
jne 0x403573
mov eax, dword [0x4208a8]
push ebx
sub eax, dword [0x41889c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40c808]
mov dword [0x418898], eax
call fcn.00403037
pop ecx
mov ecx, 0x40c810
mov dword [0x40c830], ebp
mov dword [0x40c834], 0x8000
call fcn.004066cb
test eax, eax
jl 0x40360c
mov esi, dword [0x40c830]
sub esi, ebp
je 0x4035cd
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a674]
call dword [0x408128]
test eax, eax
je 0x403608
cmp esi, dword [esp + 0x10]
jne 0x403608
add dword [0x40c808], esi
cmp dword [0x40c82c], ebx
jne 0x403542
jmp 0x4035d9
cmp dword [0x40c82c], ebx
jne 0x40360c
cmp edi, ebx
je 0x40360c
mov eax, dword [0x41889c]
mov ecx, eax
sub ecx, dword [0x40c808]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403506
push ebx
push ebx
push eax
push dword [0x40a674]
call dword [0x408130]
jmp 0x403611
or eax, 0xffffffff
jmp 0x40361b
push 0xfffffffffffffffe
jmp 0x40360e
push 0xfffffffffffffffd
pop eax
jmp 0x40361b
push 1
call fcn.00403037
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4059ce
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405cd6
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405a02
push edi
call dword [0x408144]
neg eax
sbb eax, eax
inc eax
add dword [0x426388], eax
jmp 0x405bef
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405a20
test eax, eax
je 0x405b6e
test byte [ebp + 0xc], 2
je 0x405b6e
mov esi, 0x422cf8
push edi
push esi
call fcn.00406102
test ebx, ebx
je 0x405a3d
push 0x40aaf0
push esi
call fcn.0040611e
jmp 0x405a43
push edi
call fcn.00405c3c
cmp byte [edi], 0
jne 0x405a51
cmp byte [0x422cf8], 0x5c
jne 0x405a5c
push 0x40a28c
push edi
call fcn.0040611e
push edi
call fcn.00406118
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [0x408140]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405b64
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405c20
cmp byte [eax], 0
je 0x405aa2
cmp byte [ebp - 0x18], 0
je 0x405aa2
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ac0
mov al, byte [esi + 1]
test al, al
je 0x405b43
cmp al, 0x2e
jne 0x405ac0
cmp byte [esi + 2], 0
je 0x405b43
push esi
push ebx
call fcn.00406102
test byte [ebp - 0x148], 0x10
je 0x405ae5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b43
push dword [ebp + 0xc]
push edi
call fcn.004059ce
jmp 0x405b43
push edi
push 0x40aad4
call fcn.0040657c
pop ecx
pop ecx
push edi
call fcn.00405dba
push edi
call dword [0x408144]
test eax, eax
push edi
jne 0x405b3c
test byte [ebp + 0xc], 4
je 0x405b28
push 0x40aab0
call fcn.0040657c
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405412
push 0
push edi
call fcn.00405e50
jmp 0x405b43
push 0x40aa90
call fcn.0040657c
inc dword [0x426388]
pop ecx
pop ecx
jmp 0x405b43
push 0xfffffffffffffff2
call fcn.00405412
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [0x40813c]
test eax, eax
jne 0x405a80
push dword [ebp + 8]
call dword [0x408138]
cmp dword [ebp - 4], 0
je 0x405b6e
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405bef
cmp dword [ebp - 8], esi
push edi
jne 0x405b90
push 0x40aa64
call fcn.0040657c
inc dword [0x426388]
pop ecx
pop ecx
jmp 0x405bef
call fcn.004065aa
test eax, eax
je 0x405bef
push edi
call fcn.00405bf5
push edi
push 0x40aa44
call fcn.0040657c
pop ecx
pop ecx
push edi
call fcn.00405dba
push edi
call dword [0x4080d4]
test eax, eax
push edi
jne 0x405be8
test byte [ebp + 0xc], 4
je 0x405be1
push 0x40aa1c
call fcn.0040657c
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405412
push esi
push edi
call fcn.00405e50
jmp 0x405bef
push 0x40a9f8
jmp 0x405b81
push 0xffffffffffffffe5
call fcn.00405412
pop edi
pop esi
leave
ret 8
Function at 0x405e50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004065d1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e74
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405fad
mov ebx, dword [0x408068]
mov dword [0x423e80], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e80
je 0x405eb8
push 1
push 0
push esi
call fcn.00405dd9
push eax
call dword [0x4080ec]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
mov esi, 0x4238f8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
push esi
push ebp
push 0x40aafc
push 0x4234f8
call dword [0x40820c]
mov ebx, eax
mov eax, dword [0x426310]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406124
push 4
push 0xc0000000
push esi
call fcn.00405dd9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405fad
push 0
push ebp
call dword [0x408094]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [0x408100]
mov esi, eax
test esi, esi
je 0x405fa6
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [0x40812c]
test eax, eax
je 0x405fa6
cmp edi, dword [esp + 0x18]
jne 0x405fa6
push str._Rename__r_n
push esi
call fcn.00405d4e
test eax, eax
jne 0x405fba
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406102
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234f8
push eax
call fcn.00405d9a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [0x408130]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [0x408128]
push esi
call dword [0x4080fc]
push ebp
call dword [0x4080ec]
inc dword [0x426390]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aaf8
push eax
call fcn.00405d4e
test eax, eax
je 0x405f71
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fe1
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405fd6
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f73

Function at 0x4063fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406422
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x406419
push eax
call dword [0x4080ec]
or dword [0x40a8c8], 0xffffffff
jmp 0x406495
cmp dword [0x424a80], ebx
je 0x406495
cmp byte [0x424680], bl
je 0x406461
cmp dword [0x40a8c8], 0xffffffff
jne 0x40646a
push 4
push 0x40000000
push 0x424680
call fcn.00405dd9
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406495
push 2
push ebx
push ebx
push eax
call dword [0x408130]
cmp dword [0x40a8c8], 0xffffffff
je 0x406495
push esi
mov esi, 0x4252a0
push 0x40ab10
push esi
call fcn.0040611e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00406118
push eax
push esi
push dword [0x40a8c8]
call dword [0x408128]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40663d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424284], 0
push esi
jne 0x406674
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 0x40664e
mov dword [ecx*4 + 0x424280], eax
inc ecx
cmp ecx, 0x100
jl 0x406649
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066a5
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 + 0x424280]
xor eax, esi
inc ecx
dec edx
jne 0x406687
pop edi
not eax
pop esi
ret 0xc
Function at 0x40b8fb
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x40b91d
mov eax, 0xfffffffd
jmp 0x40b995
mov ebx, dword [0x4bd21c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40b963
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x4bd21c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40b98b
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40b995
mov esp, ebp
pop ebp
ret 4

Function at 0x40e32f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret