joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424045
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00423fc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4241b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4241b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424169
jg 0x4240a1
test eax, eax
je 0x42415f
push 1
push 0x1000
call fcn.0041aaa8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4240c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424156
push 0x8000
push ebx
call fcn.004165cb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4240ed
jg 0x4240e8
cmp ecx, 0x1000
jb 0x4240ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419326
add esp, 0x10
cmp eax, 0xffffffff
je 0x424132
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4240e8
jl 0x424119
test ecx, ecx
jne 0x4240da
push dword [ebp - 0xc]
push ebx
call fcn.004165cb
push esi
call fcn.004170ad
add esp, 0xc
xor ebx, ebx
jmp 0x4241c2
cmp byte [edi + 0x24], 0
je 0x424149
cmp dword [edi + 0x20], 5
jne 0x424149
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424154
mov ebx, dword [edi + 0x18]
jmp 0x424156
xor ebx, ebx
push esi
call fcn.004170ad
pop ecx
jmp 0x4241c2
test ecx, ecx
jg 0x42412b
jl 0x424169
test eax, eax
jae 0x42412b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004187ea
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424189
cmp byte [edi + 0x1c], 0
je 0x42412b
jmp 0x4241ba
push ebx
call fcn.004152e5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42412b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4241c2
cmp byte [edi + 0x1c], 0
je 0x4241bf
mov ebx, dword [edi + 0x18]
jmp 0x4241c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004187ea
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425e5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425e5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3677774b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x209f7e77
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b295
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427668
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427668]
xor cx, word [edx*2 + 0x427668]
inc edx
mov word [edi + edx*2 + 0x427666], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b295
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40211e
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426c88
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426c88]
xor cx, word [edx*2 + 0x426c88]
inc edx
mov word [edi + edx*2 + 0x426c86], cx
cmp edx, dword [ebp + 0xc]
jl 0x4020fe
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x402128
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x76
call fcn.0040b295
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40216a
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x4273e0
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x4273e0]
xor cx, word [edx*2 + 0x4273e0]
inc edx
mov word [edi + edx*2 + 0x4273de], cx
cmp edx, dword [ebp + 0xc]
jl 0x40214a
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4025cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push edi
push 0xa
push eax
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
jle 0x402629
push eax
call fcn.0040b295
push dword [esi]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ecx], eax
push eax
call fcn.0040ea80
add esp, 0x10
inc bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov al, bl
pop ebx
leave
ret 0xc
Function at 0x40263a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push str._a1uG_r9uJ
mov ebx, ecx
mov esi, edx
mov byte [ebp - 0x821], 1
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x85c], 0x8040
call fcn.004020dc
push 8
mov dword [ebp - 0x854], eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jb 0x402698
mov edx, dword [esi]
mov dword [ebp - 0x850], edx
jmp 0x40269e
mov dword [ebp - 0x850], esi
cmp dword [edi + 0x14], ecx
jb 0x4026ad
mov edx, dword [edi]
mov dword [ebp - 0x84c], edx
jmp 0x4026b3
mov dword [ebp - 0x84c], edi
cmp dword [ebx + 0x14], ecx
jb 0x4026c2
mov edx, dword [ebx]
mov dword [ebp - 0x848], edx
jmp 0x4026c8
mov dword [ebp - 0x848], ebx
and dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0x1d
cmp dword [edi + 0x14], ecx
jb 0x4026e0
mov edi, dword [edi]
cmp eax, ecx
jb 0x4026e6
mov esi, dword [esi]
push edi
push esi
push 0xe
push 0x4265f0
call fcn.004020dc
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.0040145d
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4027ef
cmp dword [ebp - 0x828], ebx
je 0x4027ab
push dword [ebp - 0x828]
push 0x15
push 0x42660c
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40283d
push 0x42292c
push 0x19
push 0x426638
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
lea esi, [ebp - 0x820]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
jmp 0x40283d
mov byte [ebp - 0x821], bl
cmp byte [0x4289ad], bl
je 0x40283d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push str._r9uJ
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020dc
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x821]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040be9b
leave
ret 4
Function at 0x40465e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x404689
xor eax, eax
jmp 0x4047f1
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4046b6
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4046b6
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x4047f1
cmp dword [edi + 0x54], 0
jne 0x4046c3
mov eax, ebx
jmp 0x4047f1
mov eax, edi
call fcn.00405cf9
cmp dword [edi + 0x44], 0
jne 0x4046e9
push dword [edi + 0x54]
push esi
call fcn.0040c6ea
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x4047f1
jmp 0x4046bc
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004054ac
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404796
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4047e1
cmp eax, 1
jg 0x40479e
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404745
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x40476b
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404758
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040ddf3
add esp, 0x10
cmp esi, eax
jne 0x4047e1
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4047d0
cmp esi, ebx
ja 0x4046f7
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4047e2
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004054f0
jmp 0x4046f7
mov edx, dword [ebp - 0x20]
jmp 0x404709
cmp eax, 3
jne 0x4047e1
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c6ea
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4047c0
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004055e0
jmp 0x4046ae
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004055e0
mov ax, word [ebp + 8]
jmp 0x4047f1
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004055e0
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040be9b
leave
ret 4
Function at 0x405c01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405cea
cmp byte [edi + 0x4a], 0
je 0x405cea
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405c3f
xor al, al
jmp 0x405cec
lea esi, [ebp - 0x20]
call fcn.004054ac
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c8c
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405c91
dec eax
je 0x405c95
dec eax
dec eax
je 0x405ce6
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004055e0
mov al, bl
pop ebx
jmp 0x405cec
mov edx, dword [ebp - 0x20]
jmp 0x405c56
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405ca1
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405cc7
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405cb4
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040ddf3
add esp, 0x10
cmp esi, eax
jne 0x405c79
cmp byte [edi + 0x4a], 0
je 0x405ce6
test esi, esi
jne 0x405c48
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004054f0
jmp 0x405c48
mov bl, 1
jmp 0x405c7b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040be9b
leave
ret
Function at 0x40691e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x406954
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406a6d
push 0x4228d0
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x40699d
mov eax, dword [esi]
jmp 0x40699f
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406a6d
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x4069ee
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406a6d
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406a03
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406a6d
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push str._I64u
push 0x40
push eax
call fcn.00406902
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.0040145d
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040be9b
leave
ret 4

Function at 0x406a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040b295
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406ac2
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426560
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426560]
xor cx, word [edx*2 + 0x426560]
inc edx
mov word [edi + edx*2 + 0x42655e], cx
cmp edx, dword [ebp + 0xc]
jl 0x406aa2
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x40732d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4228b0
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x40737b
mov eax, dword [edi]
jmp 0x40737d
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x407440
push ebx
call fcn.0040b295
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x4073aa
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407434
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228b4
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407434
cmp dword [ebp - 0x390], esi
je 0x407434
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x407434
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push 0x42654c
call fcn.00406a80
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040d962
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040be9b
leave
ret

Function at 0x407610
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b0a0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x407682
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x407680
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x407672
push eax
push ebx
call fcn.00407694
test al, al
je 0x407679
inc edi
cmp edi, esi
jb 0x40765c
jmp 0x407680
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040be9b
leave
ret
Function at 0x407996
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x40799e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4079b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4079b9
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e5bf
push eax
call fcn.0040e58c
pop ecx
pop ecx
call fcn.0040e59e
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407a16
mov eax, dword [esi]
jmp 0x407a18
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x426190
call fcn.00406a80
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040145d
cmp dword [edi + 0x14], 8
jb 0x407a6e
mov eax, dword [edi]
jmp 0x407a70
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a94
shr eax, 4
and al, 1
je 0x407a94
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407a0c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040be9b
leave
ret
Function at 0x407aa4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.0040446e
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x407ae4
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407b1d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.0040145d
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040be9b
leave
ret 4
push 0x4228c8
lea esi, [ebp - 0x284]
call fcn.004012ca
push 0x4228cc
lea esi, [ebp - 0x268]
call fcn.004012ca
test byte [ebp - 0x4d4], 0x10
je 0x407b9c
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.0040664c
test eax, eax
je 0x407c06
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.0040664c
test eax, eax
je 0x407c06
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.00407aa4
jmp 0x407bf7
cmp dword [edi + 0x14], 8
jb 0x407ba6
mov eax, dword [edi]
jmp 0x407ba8
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
push 5
push 0x42619c
call fcn.00406a80
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x407bf0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0040145d
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407b3d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407c2b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.0040145d
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.0040145d
mov bl, 1
jmp 0x407afb