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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30088888
push 0x30069f34
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x3002223c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x30078980
cmp dword [ebp + 8], 0xffffffff
je 0x30078980
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x30078960
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
jne 0x30078926
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x3007892f
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x3007892f
mov dword [ebp - 0x1c], 0
jmp 0x30078960
cmp dword [ebp + 0xc], 0
je 0x30078960
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x30078953
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.30078685
jmp 0x30078960
mov ecx, 0x42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xfffffffe
jmp 0x30078980
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x30078997
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x300789c2
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x300789fa
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x300789ef
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x300789ef
mov eax, dword [ebp - 4]
jmp 0x300789fc
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x300789b9
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3007dcdd
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x3007dd1c
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x3007dcf7
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x3007dd38
dec edi
je 0x3007dd31
dec edi
jne 0x3007dd3d
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc
Function at 0x3007f144
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], di
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edi
mov esi, 0x8000
jne 0x3007f194
push esi
push eax
add eax, esi
push eax
call fcn.30069ecf
add esp, 0xc
mov word [ebx + 0x2c], di
mov dword [ebx + 0x30], edi
call fcn.3007eb9e
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], edi
push 2
mov word [ebx + 0x3c], si
mov dword [ebx + 0x34], esi
add eax, esi
pop ecx
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x3007f1b2
cmp byte [ebp + 0x24], cl
je 0x3007f1d8
mov edi, ebx
call fcn.3007e9fb
jmp 0x3007f1e9
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x3007f1dc
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.3007de41
push 0x4b
pop edx
call fcn.3007de41
call fcn.3007eeca
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x3007f227
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call fcn.30069ecf
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x4c6f71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ce378
cmp edx, dword [eax]
je 0x4c6f93
add eax, 8
inc ecx
cmp eax, 0x4ce408
jl 0x4c6f84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ce378]
jne 0x4c70c1
mov eax, dword [0x4d3da0]
cmp eax, 1
je 0x4c709b
test eax, eax
jne 0x4c6fc4
cmp dword [0x4ce2a4], 1
je 0x4c709b
cmp edx, 0xfc
je 0x4c70c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6ffb
lea eax, [ebp - 0x1a4]
push 0x4cc6c0
push eax
call fcn.004c7950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7de0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c703e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7de0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cc6bc
push edi
call fcn.004c9cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cc6a0
push eax
call fcn.004c7950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7960
lea eax, [ebp - 0xa0]
push 0x4cc69c
push eax
call fcn.004c7960
push dword [esi + 0x4ce37c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7960
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cc674
push eax
call fcn.004c9c24
add esp, 0x2c
pop edi
jmp 0x4c70c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4ce37c]
push 0
push eax
push dword [esi]
call fcn.004c7de0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x51e9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc8000]
push edi
jmp 0x51ea0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51ea11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea00
mov eax, 1
add ebx, ebx
jne 0x51ea23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51ea34
jne 0x51ea53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea53
dec eax
add ebx, ebx
jne 0x51ea40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51ea18
add ebx, ebx
jne 0x51ea4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51eaa5
xor ecx, ecx
sub eax, 3
jb 0x51ea6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51eada
sar eax, 1
mov ebp, eax
jmp 0x51ea76
add ebx, ebx
jne 0x51ea76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea44
inc ecx
add ebx, ebx
jne 0x51ea84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea44
add ebx, ebx
jne 0x51ea91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51ea86
jne 0x51eaa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51ea86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51eac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51eab6
jmp 0x51ea06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51eac4
add edi, ecx
jmp 0x51ea06
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51eae2
cmp byte [edi], 0x11
jne 0x51eae2
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 0x51eae7
lea edi, [esi + 0x117000]
mov eax, dword [edi]
or eax, eax
je 0x51eb5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1649bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x164b38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51eb14
mov ecx, edi
jns 0x51eb43
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 + 0x164b3c]
or eax, eax
je 0x51eb59
mov dword [ebx], eax
add ebx, 4
jmp 0x51eb31
call dword [esi + 0x164b4c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51eb90
cmp al, 0xef
ja 0x51eb83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51eb65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51eb72
mov ebp, dword [esi + 0x164b40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x51ebc4
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x401e70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
inc eax
cmp word [ebx + eax*2], 0
jne 0x401e82
mov dword [ebp - 0x258], eax
lea edx, [ebx + eax*2]
xor ecx, ecx
mov ax, word [ecx + 0x415ac6]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x401e95
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x258]
mov word [ebx + eax*2], 0
cmp dword [ebp - 0x254], 0xffffffff
je 0x402010
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x224]
xor ecx, ecx
mov ax, word [edx + ecx]
cmp ax, word [ecx + 0x415ac2]
jne 0x401f00
add ecx, 2
test ax, ax
jne 0x401ee7
xor eax, eax
jmp 0x401f05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fa6
lea edx, [ebp - 0x224]
xor ecx, ecx
mov ax, word [edx + ecx]
cmp ax, word [ecx + 0x415abc]
jne 0x401f2e
add ecx, 2
test ax, ax
jne 0x401f15
xor eax, eax
jmp 0x401f33
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fa6
mov eax, dword [ebp - 0x258]
lea edx, [ebx + eax*2]
lea esi, [ebp - 0x224]
xor ecx, ecx
mov ax, word [esi + ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x401f48
test byte [ebp - 0x250], 0x10
je 0x401f7d
push 0x415c0e
push ebx
call fcn.0040e040
add esp, 8
push ebx
call fcn.00401e70
mov dword [ebp - 0x25c], eax
jmp 0x401f9d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401f9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
jne 0x401fdc
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
cmp eax, 0x12
jne 0x401fdc
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x258]
mov word [ebx + eax*2], 0
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
jne 0x402008
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
mov eax, dword [ebp - 0x25c]
jmp 0x402024
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402ac0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040cb30
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x41d608
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
je 0x402c88
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c8c
cmp word [ebp - 0x1008], 0x5a4d
jne 0x402c9c
mov eax, dword [ebp - 0xfcc]
cmp eax, 0xf08
jae 0x402c9c
lea eax, [ebp + eax - 0x1008]
mov dword [ebp - 0x1014], eax
cmp dword [eax], 0x4550
jne 0x402c9c
mov eax, dword [ebp - 0x1014]
add eax, 0xf8
lea edx, [ebp - 8]
cmp eax, edx
jae 0x402c9c
mov edx, dword [ebp - 0x1014]
cmp word [edx + 6], 0
jbe 0x402bcb
xor edx, edx
xor ecx, ecx
cmp dword [eax + 0x14], edx
ja 0x402ba7
mov ebx, edx
jmp 0x402bb7
mov esi, dword [eax + 0x14]
add esi, dword [eax + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [edi], esi
mov esi, dword [eax + 0x14]
mov ebx, esi
mov edx, ebx
add eax, 0x28
inc ecx
mov ebx, dword [ebp - 0x1014]
movzx ebx, word [ebx + 6]
cmp ecx, ebx
jl 0x402b9e
push 0
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 2
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402c9c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x100c]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c8c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 0x100c], 8
jb 0x402c8c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x100c]
push eax
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c8c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 0x100c], 8
jb 0x402c8c
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x402caa
xor eax, eax
jmp 0x402caa
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402caa
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
shr edx, 1
mov ecx, eax
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x41e280], ecx
inc eax
cmp eax, 0x100
jb 0x403692
mov eax, 0x100
mov edx, dword [eax*4 + 0x41de80]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e280]
shr edx, 8
xor ecx, edx
mov dword [eax*4 + 0x41e280], ecx
inc eax
cmp eax, 0x800
jb 0x403734
mov dword [0x420284], 0x407310
mov dword [0x420280], 0x407310
mov dword [0x420288], 0x4073d0
call fcn.004075c0
test eax, eax
jne 0x40378f
mov dword [0x420280], 0x4073d0
ret

Function at 0x403910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40392d
mov dword [esi], 0
jmp 0x403931
xor eax, eax
jmp 0x403978
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0x400000
cmp edi, 0x400000
cmovbe eax, edi
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
add ebx, edx
sub edi, edx
add dword [esi], edx
test eax, eax
je 0x403972
cmp dword [ebp - 4], 0
je 0x40392d
test edi, edi
jne 0x403931
jmp 0x40392d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x4039ad
mov dword [esi], 0
jmp 0x4039b1
xor eax, eax
jmp 0x4039f8
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0x400000
cmp edi, 0x400000
cmovbe eax, edi
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
add ebx, edx
sub edi, edx
add dword [esi], edx
test eax, eax
je 0x4039f2
cmp dword [ebp - 4], 0
je 0x4039ad
test edi, edi
jne 0x4039b1
jmp 0x4039ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ab0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403aee
mov edx, dword [ebp - 4]
xor eax, eax
xor edi, edi
add eax, esi
adc edx, edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403bf0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x403c3d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403c3d
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
mov ebx, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x407255
lea eax, [ebp - 0x410]
push eax
call fcn.00414740
push ebx
lea eax, [ebp - 0x410]
push eax
push str._ls_ls
push 0x30e
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040e570
add esp, 0x14
jmp 0x40726a
push 0x30e
push ebx
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040e600
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, eax
cmp dword [ebp - 0x90], 5
setae al
movzx eax, al
xor ecx, ecx
test edx, edx
cmove eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x40cd20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162b8
push 0x40e298
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.0040fc20
pop ecx
mov dword [0x42028c], eax
call fcn.0040e750
test eax, eax
je 0x40ce1c
mov dword [ebp - 4], 0
call fcn.0040e970
call fcn.0040ead0
call fcn.0040ebb0
call fcn.0040eeb0
call fcn.0040ef60
mov ebx, 0x417564
jmp 0x40cd8f
call dword [ebx]
add ebx, 4
cmp ebx, 0x417564
jb 0x40cd8a
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
call fcn.0040f010
movzx edx, word [ebp - 0x30]
mov ecx, 0xa
test dword [ebp - 0x34], 1
cmovne ecx, edx
push ecx
push eax
push 0
push ebx
call fcn.00401e50
mov ebx, eax
mov esi, 0x417564
jmp 0x40cde2
call dword [esi]
add esi, 4
cmp esi, 0x417564
jb 0x40cddd
push ebx
call fcn.0040f050
or dword [ebp - 4], 0xffffffff
jmp 0x40ce29
push 0xfffffffffffffffe
call fcn.0040f120
pop ecx
jmp 0x40cd63
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eeb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x40eee3
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x104]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push esi
call fcn.0040ed40
add esp, 0x14
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x10c]
lea eax, [edx + eax*4]
push eax
call fcn.0040d640
pop ecx
mov edi, eax
test edi, edi
je 0x40ef4b
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
mov ebx, dword [ebp - 0x108]
lea eax, [edi + ebx*4]
push eax
push edi
push esi
call fcn.0040ed40
add esp, 0x14
dec ebx
mov dword [0x4202c8], ebx
mov dword [0x4202cc], edi
jmp 0x40ef53
push 0xfffffffffffffffc
call fcn.0040f120
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret