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

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

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x21444
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 6]
and dword [ebp - 8], 0
push ebx
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x14]
push esi
push edi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jb 0x214b3
mov edi, dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0x3c]
mov ebx, dword [esi + 0x10]
lea eax, [eax + edi - 1]
dec edi
not edi
and eax, edi
lea edi, [ebx + edx - 1]
dec edx
not edx
and edi, edx
cmp edi, eax
jbe 0x21497
mov eax, dword [ecx + 0x3c]
lea edx, [eax + ebx - 1]
jmp 0x214a1
mov eax, dword [ecx + 0x38]
mov edx, dword [esi + 8]
lea edx, [eax + edx - 1]
dec eax
not eax
and edx, eax
mov eax, dword [esi + 0xc]
add eax, edx
cmp dword [ebp + 8], eax
jae 0x214b3
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
add esi, 0x28
dec dword [ebp - 4]
test eax, eax
jne 0x214c5
cmp dword [ebp - 4], eax
jne 0x21464
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x21dc4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x26ed8
Capabilities:
Self delete

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [0x2b034]
lea eax, [eax + eax + 0x4e]
push eax
call fcn.00021066
mov esi, eax
test esi, esi
je 0x26f1e
push dword [esp + 0xc]
push 5
push 0x2db4c
push esi
call dword [0x2b120]
add esp, 0x10
push esi
push 0x2da9c
call fcn.000264ab
push esi
mov edi, eax
call fcn.00027ebc
jmp 0x26f21
push 8
pop edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x284f3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov cl, byte [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov byte [edi], cl
lea ecx, [edi + 1]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.00024386
test eax, eax
je 0x28628
call fcn.00024386
test eax, eax
je 0x285a2
call fcn.00024386
xor esi, esi
test eax, eax
je 0x2856c
push 4
pop edi
lea ecx, [ebp - 0x18]
call fcn.00024386
dec edi
lea esi, [eax + esi*2]
jne 0x2853e
test esi, esi
mov eax, dword [ebp - 0x14]
je 0x2855e
mov ecx, dword [ebp - 0x14]
sub eax, esi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x28561
mov byte [eax], 0
inc dword [ebp - 0x14]
mov edi, dword [ebp + 8]
jmp 0x28638
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
inc dword [ebp - 0x18]
inc esi
mov eax, ecx
and eax, esi
inc eax
inc eax
shr ecx, 1
je 0x28598
test eax, eax
je 0x2859b
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
sub edx, ecx
mov dl, byte [edx]
inc dword [ebp - 0x14]
dec eax
mov byte [ebx], dl
jne 0x28584
jmp 0x2859b
mov dword [ebp - 8], esi
mov ebx, ecx
jmp 0x2863a
call fcn.0002603f
test esi, esi
jne 0x285d5
cmp eax, 2
jne 0x285d0
lea ecx, [ebp - 0x18]
call fcn.0002603f
test eax, eax
je 0x28623
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, ebx
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x285bc
jmp 0x28623
sub eax, 3
jmp 0x285d7
dec eax
dec eax
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0002603f
cmp esi, 0x7d00
jb 0x285f8
inc eax
cmp esi, 0x500
jb 0x28601
inc eax
cmp esi, 0x80
jae 0x2860b
inc eax
inc eax
test eax, eax
je 0x28621
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, esi
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x2860f
mov ebx, esi
xor esi, esi
inc esi
jmp 0x2863a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov al, byte [eax]
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov byte [ecx], al
xor esi, esi
cmp dword [ebp - 8], 0
je 0x28517
mov eax, dword [ebp - 0x14]
sub eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x2a331
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x2a362
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x2a369
cmp ebx, dword [ebp + 8]
jae 0x2a369
xor eax, eax
jmp 0x2a54f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x2a37a
xor eax, eax
inc eax
jmp 0x2a54e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x2a38c
cmp ecx, edx
jae 0x2a3f0
cmp dword [eax + 4], 0
je 0x2a395
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x2a381
cmp dword [ebp + 8], 0
je 0x2a3af
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x2a3f0
cmp eax, esi
jae 0x2a3f0
mov ecx, dword [0x2c208]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x2a3d1
cmp dword [eax*4 + 0x2c210], esi
je 0x2a3f7
inc eax
cmp eax, ecx
jl 0x2a3c3
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.00028e4e
test eax, eax
jl 0x2a467
mov eax, dword [ebp + 8]
jmp 0x2a469
xor eax, eax
jmp 0x2a54e
test eax, eax
jle 0x2a372
xor edx, edx
mov ebx, 0x2c250
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x2a372
cmp dword [eax*4 + 0x2c210], esi
je 0x2a446
lea eax, [ecx - 1]
test eax, eax
jl 0x2a433
cmp dword [eax*4 + 0x2c210], esi
je 0x2a42f
dec eax
jns 0x2a423
test eax, eax
jge 0x2a444
cmp ecx, 0x10
jge 0x2a43f
inc ecx
mov dword [0x2c208], ecx
lea eax, [ecx - 1]
jmp 0x2a446
je 0x2a45e
xor edx, edx
test eax, eax
jl 0x2a45e
lea ecx, [edx*4 + 0x2c210]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x2a44c
xor eax, eax
xchg dword [ebx], eax
jmp 0x2a372
xor eax, eax
test eax, eax
je 0x2a54c
cmp dword [ebp - 8], 0x1000000
jne 0x2a54c
test byte [ebp - 0xc], 0xcc
je 0x2a4de
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x2a54c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x2a54c
cmp word [eax + 0x18], 0x10b
jne 0x2a54c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x2a54c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x2a4de
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x2a4de
test byte [ecx + 0x27], 0x80
jne 0x2a3f0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x2c250
xchg dword [edx], ecx
test ecx, ecx
jne 0x2a54e
mov ecx, dword [0x2c208]
test ecx, ecx
mov edx, ecx
jle 0x2a50d
lea eax, [ecx*4 + 0x2c20c]
cmp dword [eax], esi
je 0x2a50d
dec edx
sub eax, 4
test edx, edx
jg 0x2a501
test edx, edx
jne 0x2a53e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x2a51a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x2a532
lea eax, [edx*4 + 0x2c210]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x2a520
cmp ecx, 0x10
jge 0x2a53e
inc ecx
mov dword [0x2c208], ecx
xor eax, eax
mov ecx, 0x2c250
xchg dword [ecx], eax
jmp 0x2a372
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a69
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.004060b1
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x424010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x424010], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x402f4b
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 0x402f78
mov ecx, dword [0x423fb8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417104], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403076
cmp eax, edi
jl 0x40306f
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
cmp dword [ebp - 4], esi
jne 0x40306c
push dword [ebp + 8]
add dword [0x417104], esi
call fcn.00403076
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40306f
cmp dword [ebp + 0x10], edi
jne 0x40303b
cmp dword [ebp + 8], edi
jle 0x403067
mov esi, 0x413100
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402feb
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
cmp edi, dword [ebp - 4]
jne 0x40306c
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403037
cmp dword [ebp + 0x14], edi
jne 0x403037
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417104], eax
cmp dword [ebp + 8], 0
jg 0x402fde
jmp 0x403067
push 0xfffffffffffffffe
jmp 0x40306e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403046
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
mov eax, dword [ebp - 4]
add dword [0x417104], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40306f
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403076
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417104]
sub esi, dword [0x40b070]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f6c], eax
jle 0x4031e0
push dword [0x41f114]
call fcn.00403224
push ebx
push ebx
push dword [0x40b070]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f110], esi
mov dword [0x417100], ebx
mov ebp, 0x40b100
mov eax, dword [0x417108]
mov edi, 0x4000
sub eax, dword [0x41f114]
cmp eax, edi
jg 0x4030eb
mov edi, eax
mov esi, 0x413100
push edi
push esi
call fcn.004031f2
test eax, eax
je 0x4031d2
add dword [0x41f114], edi
mov dword [0x40b090], esi
mov dword [0x40b094], edi
cmp dword [0x423f70], ebx
je 0x403142
cmp dword [0x424000], ebx
jne 0x403142
mov eax, dword [0x41f110]
push ebx
sub eax, dword [0x417104]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b070]
mov dword [0x417100], eax
call fcn.00402c06
pop ecx
mov ecx, 0x40b078
mov dword [0x40b098], ebp
mov dword [0x40b09c], 0x8000
call fcn.004061ae
test eax, eax
jl 0x4031db
mov esi, dword [0x40b098]
sub esi, ebp
je 0x40319c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031d7
cmp esi, dword [esp + 0x10]
jne 0x4031d7
add dword [0x40b070], esi
cmp dword [0x40b094], ebx
jne 0x403111
jmp 0x4031a8
cmp dword [0x40b094], ebx
jne 0x4031db
cmp edi, ebx
je 0x4031db
mov eax, dword [0x417104]
mov ecx, eax
sub ecx, dword [0x40b070]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030d5
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031e0
or eax, 0xffffffff
jmp 0x4031ea
push 0xfffffffffffffffe
jmp 0x4031dd
push 0xfffffffffffffffd
pop eax
jmp 0x4031ea
push 1
call fcn.00402c06
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4054cf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40735c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40734c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405520
xor eax, eax
jmp 0x405547
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405547
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40551c
call esi
pop esi
leave
ret 4

Function at 0x405581
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422568], 0x44
push eax
xor eax, eax
push 0x422568
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4055bc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405646
Capabilities:
Delete directory
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.004058f5
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40567a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fe8], eax
jmp 0x40580e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405698
test eax, eax
je 0x4057b9
test byte [ebp + 0xc], 2
je 0x4057b9
mov esi, 0x421568
push edi
push esi
call fcn.00405d21
test ebx, ebx
je 0x4056b5
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4056bb
push edi
call fcn.0040585b
cmp byte [edi], 0
jne 0x4056c9
cmp byte [0x421568], 0x5c
jne 0x4056d4
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4057af
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040583f
cmp byte [eax], 0
je 0x40571a
cmp byte [ebp - 0x18], 0
je 0x40571a
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405730
mov al, byte [esi + 1]
test al, al
je 0x40578e
cmp al, 0x2e
jne 0x405730
cmp byte [esi + 2], 0
je 0x40578e
push esi
push ebx
call fcn.00405d21
test byte [ebp - 0x148], 0x10
je 0x405755
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40578e
push dword [ebp + 0xc]
push edi
call fcn.00405646
jmp 0x40578e
push edi
call fcn.004059d9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405786
test byte [ebp + 0xc], 4
je 0x40577e
push edi
push 0xfffffffffffffff1
call fcn.0040500d
push 0
push edi
call fcn.00405a6f
jmp 0x40578e
inc dword [0x423fe8]
jmp 0x40578e
push edi
push 0xfffffffffffffff2
call fcn.0040500d
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056f8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4057b9
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40580e
cmp dword [ebp - 8], esi
jne 0x4057ce
inc dword [0x423fe8]
jmp 0x40580e
push edi
call fcn.0040601c
test eax, eax
je 0x40580e
push edi
call fcn.00405814
push edi
call fcn.004059d9
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405806
test byte [ebp + 0xc], 4
je 0x4057c6
push edi
push 0xfffffffffffffff1
call fcn.0040500d
push esi
push edi
call fcn.00405a6f
jmp 0x40580e
push edi
push 0xffffffffffffffe5
call fcn.0040500d
pop edi
pop esi
leave
ret 8
Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a6b
test edi, edi
jne 0x405a32
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a65
Function at 0x405a6f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.004060b1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a93
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405bcc
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226f0
je 0x405ad7
push 1
push 0
push esi
call fcn.004059f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
mov esi, 0x422168
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
push esi
push ebp
push str._s_s_r_n
push 0x421d68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d43
push 4
push 0xc0000000
push esi
call fcn.004059f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405bcc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bc5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405bc5
cmp edi, dword [esp + 0x18]
jne 0x405bc5
push str._Rename__r_n
push esi
call fcn.0040596d
test eax, eax
jne 0x405bd9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405d21
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d68
push eax
call fcn.004059b9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423ff0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.0040596d
test eax, eax
je 0x405b90
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405c00
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405bf5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b92
Function at 0x405c08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c79
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c68
cmp dword [ebp + 0x14], 1
je 0x405c6a
cmp dword [ebp + 0x14], 2
je 0x405c6a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406043
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406067
xor eax, eax
test eax, eax
je 0x406079
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406079
xor ecx, ecx
jmp 0x40607c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
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 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
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 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc