joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418cf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461eb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x480164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], 0x4737cc
call fcn.0043c81d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043b3ca
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], 0x4740e4
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov edx, dword [0x48240c]
mov dword [ecx], 0
mov ecx, dword [0x482408]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x18], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x419020
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0xc], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00415590
mov ecx, dword [ebp - 0xc]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x418ff8
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
jb 0x418f11
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 4], 0x811c9dc5
test esi, esi
je 0x418f44
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x418f27
mov eax, dword [ebp - 8]
lea ebx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 4]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
cmp esi, ecx
jne 0x418f69
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x418fee
mov esi, dword [edx + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.0041da90
test al, al
jne 0x418fa3
mov ebx, dword [esi]
mov eax, dword [ebp - 8]
cmp ebx, edi
je 0x418f9b
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], edi
jmp 0x418feb
mov ebx, esi
cmp dword [ebp - 0x10], esi
je 0x418fcb
nop word [eax + eax]
mov esi, dword [esi + 4]
mov ebx, esi
lea eax, [ebx + 8]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041da90
test al, al
je 0x419001
cmp dword [ebp - 0x10], esi
jne 0x418fb0
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
mov edi, eax
cmp eax, ecx
jne 0x418ef5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x418feb
push str.invalid_hash_bucket_count
call fcn.0043b1f3
int3
Function at 0x424730
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d30
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x480164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
call fcn.0045f480
cvtsd2ss xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x4765b4]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push 0x474ecc
movsd qword [ebp - 0x58], xmm0
call fcn.00423a30
add esp, 0xc
mov dword [esi], 0
mov edi, eax
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push edi
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00424e30
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4247da
mov eax, dword [esi]
movsd xmm0, qword [ebp - 0x58]
lea ecx, [edi + 1]
sub esp, 8
movsd qword [esp], xmm0
push 0x474ecc
push ecx
push eax
call fcn.004239f0
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c625
mov esp, ebp
pop ebp
ret 4
Function at 0x427630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46329d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x480164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x100
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00422c70
push 0x100
push 0
push dword [ebp - 0x1c]
call fcn.0043e790
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x4276a0
mov dword [ebp - 0x20], 0
xor edi, edi
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov eax, edi
mov esi, dword [ebp - 0x1c]
cmovae ecx, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x18]
mov bl, byte [esi + edi]
movsx eax, byte [edx + ecx]
add eax, dword [ebp - 0x20]
movzx ecx, bl
add ecx, eax
and ecx, 0x800000ff
jns 0x4276eb
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esi + ecx]
mov byte [esi + edi], al
inc edi
mov dword [ebp - 0x20], ecx
mov byte [esi + ecx], bl
cmp edi, 0x100
jl 0x4276b7
mov esi, dword [ebp - 0x24]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x20], ebx
mov eax, dword [esi + 4]
sub eax, dword [esi]
je 0x427777
inc edi
and edi, 0x800000ff
jns 0x427722
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edi]
movzx eax, dl
add ebx, eax
and ebx, 0x800000ff
jns 0x42773d
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [ecx + ebx]
mov byte [ecx + edi], al
mov byte [ecx + ebx], dl
mov eax, dword [esi]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add esi, eax
movzx eax, byte [edx + ebx]
movzx ecx, byte [edx + edi]
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
movzx eax, byte [eax + edx]
xor byte [esi], al
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x427711
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4277bc
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x42779d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427808
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4277ec
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4277e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427808
push edx
push ecx
call fcn.0043cbb8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c625
mov esp, ebp
pop ebp
ret
call fcn.00447a18
int3
Function at 0x434810
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebx
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
mov dword [ebp - 0xc], ecx
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x43484c
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x434967
xor ebx, ebx
cmp edx, 7
jbe 0x4348b6
mov eax, 7
sub eax, edi
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add ecx, esi
add edi, 8
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add ecx, esi
cmp eax, edx
jb 0x434865
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x10], 0
cmp ebx, eax
jae 0x434929
sub eax, ebx
cmp eax, 2
jb 0x434915
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, ebx
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
sub edx, 1
jne 0x4348e3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jae 0x434921
movzx eax, byte [edi]
mov edx, dword [ebp - 8]
add esi, eax
add ecx, esi
inc edi
jmp 0x434924
movzx eax, byte [edi]
mov ebx, edx
add esi, eax
add ecx, esi
inc edi
jmp 0x434924
mov edx, dword [ebp - 8]
lea eax, [edx + ebx]
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
jne 0x434854
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x4349eb
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x476190]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x476190]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x476190]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x476190]
sub edi, 1
jne 0x434994
pop edi
test esi, esi
je 0x434a0a
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x476190]
sub esi, 1
jne 0x4349f0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4383b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00449659
mov esi, dword [ebp + 0x10]
add esp, 4
test esi, esi
jl 0x438404
mov ecx, dword [ebp + 0xc]
jg 0x4383d4
test ecx, ecx
jb 0x438404
cmp eax, ecx
jne 0x4383dc
cmp edx, esi
je 0x4383ed
push 0
push esi
push ecx
push edi
call fcn.00447826
add esp, 0x10
test eax, eax
jne 0x438404
push edi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x14]
call fcn.004474b0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44ee31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044eca7

Function at 0x458045
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457b98
Function at 0x408660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x408677
or eax, 0xffffffff
jmp 0x4086a9
cmp dword [ebp + 0xc], 0
jg 0x408682
or eax, 0xffffffff
jmp 0x4086a9
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4086a6
or eax, 0xffffffff
jmp 0x4086a9
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4086c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x4086db
cmp dword [ebp + 8], 0
jne 0x4086f9
movsx ecx, word [0x4240c8]
add ecx, 1
push ecx
push str.d:code_vendor_seeglekk_base_srckk_fileex.cpp
push str.m_hFile___NULL__buffer___NULL
call dword [sym.imp.MSVCRT.dll__assert]
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x408703
xor eax, eax
jmp 0x408735
cmp dword [ebp + 0xc], 0
jge 0x40870e
or eax, 0xffffffff
jmp 0x408735
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408732
or eax, 0xffffffff
jmp 0x408735
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4089a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4089c9
or eax, 0xffffffff
jmp 0x4089cc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b880
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b8b2
xor eax, eax
jmp 0x40b8ce
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1e0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41abcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40c3cc
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x154]
call fcn.0040ba30
mov dword [ebp - 4], 0
push 0x41d484
lea ecx, [ebp - 0x154]
call fcn.0040cb10
push 0x41d490
lea ecx, [ebp - 0x154]
call fcn.0040c410
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x154]
call fcn.0040bea0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
push 0x41d48c
lea ecx, [ebp - 0x154]
call fcn.0040cb10
mov dword [ebp - 0x158], 1
cmp dword [ebp - 0x158], 0
je 0x40c3a6
cmp dword [ebp - 0x10], 0xffffffff
je 0x40c3a6
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x40c3a1
cmp dword [ebp - 0x150], 0x10
jne 0x40c33f
push 0x41d488
lea edx, [ebp - 0x124]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x40c33d
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x164]
call fcn.0040ba30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.0040fb60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x164]
call fcn.0040ea20
lea ecx, [ebp - 0x15c]
call fcn.0040bea0
push eax
call fcn.0040c1e0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.0040ea20
jmp 0x40c3a1
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x168]
call fcn.0040ba30
mov byte [ebp - 4], 4
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.0040fb60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x168]
call fcn.0040ea20
lea ecx, [ebp - 0x160]
call fcn.0040bea0
push eax
call fcn.0040c640
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.0040ea20
jmp 0x40c27f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.0040ea20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c440
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ac1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40c62d
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00401d60
mov dword [ebp - 4], 0
push 0x41c7fc
lea ecx, [ebp - 0x264]
call fcn.004035a0
push str..
lea ecx, [ebp - 0x264]
call fcn.00403570
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x264]
call fcn.00401dd0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
push 0x41d498
lea ecx, [ebp - 0x264]
call fcn.004035a0
mov dword [ebp - 0x268], 1
cmp dword [ebp - 0x268], 0
je 0x40c607
cmp dword [ebp - 0x10], 0xffffffff
je 0x40c607
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x40c602
cmp dword [ebp - 0x260], 0x10
jne 0x40c5a0
push 0x41c7ec
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40c59e
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x274]
call fcn.00401d60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.00401f90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00401df0
lea ecx, [ebp - 0x26c]
call fcn.00401dd0
push eax
call fcn.0040c440
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00401df0
jmp 0x40c602
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x278]
call fcn.00401d60
mov byte [ebp - 4], 4
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00401f90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00401df0
lea ecx, [ebp - 0x270]
call fcn.00401dd0
push eax
call fcn.0040c680
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00401df0
jmp 0x40c4df
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00401df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c640
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x40c669
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c680
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
test eax, eax
je 0x40c6a9
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404638
test esi, esi
jne 0x402b4e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404728
jmp 0x402b6c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a2c
mov edi, eax
test esi, esi
je 0x402b6c
cmp dword [ebx], 0
je 0x402b6c
dec esi
jmp 0x402b55
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40376c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40374c
xor eax, eax
push ebp
push 0x403745
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403788
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404438
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b304c], 0
je 0x404499
cmp word [0x4b3220], 0xd7b2
jne 0x404461
cmp dword [0x4b3228], 0
jbe 0x404461
mov eax, 0x4b321c
call dword [0x4b3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4044c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x4044b5
push 0
push 0x4ac068
push 0x4ac070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027f0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4045b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc