joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ce4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449118]
jne 0x406cee
repz ret
jmp fcn.0040746b

Function at 0x40a4db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407edd
and dword [ebp - 0x14], 0
cmp dword [0x44abe8], 0
mov dword [ebp - 0x18], eax
jne 0x40a58e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a636
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a636
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44abe8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44abec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44abf0], eax
call edi
push eax
call esi
mov dword [0x44abf8], eax
test eax, eax
je 0x40a58e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44abf4], eax
mov eax, dword [0x44abf4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a5e7
cmp dword [0x44abf8], ecx
je 0x40a5e7
push eax
call esi
push dword [0x44abf8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a5e7
test ebx, ebx
je 0x40a5e7
call edi
test eax, eax
je 0x40a5de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a5de
test byte [ebp - 8], 1
jne 0x40a5e7
or dword [ebp + 0x10], 0x200000
jmp 0x40a61a
mov eax, dword [0x44abec]
cmp eax, dword [ebp - 0x18]
je 0x40a61a
push eax
call esi
test eax, eax
je 0x40a61a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a61a
mov eax, dword [0x44abf0]
cmp eax, dword [ebp - 0x18]
je 0x40a61a
push eax
call esi
test eax, eax
je 0x40a61a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44abe8]
call esi
test eax, eax
je 0x40a636
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a638
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce4
leave
ret
Function at 0x587138
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
cmp dword [0x10045efc], 0
push ebx
push ebp
push esi
push edi
mov eax, 1
jne 0x5871df
cmp dword [0x10045f00], 0
mov dword [0x10045efc], eax
jne 0x587164
mov dword [0x10045f00], eax
cmp dword [0x10045f04], 0
jne 0x587177
call fcn.0058b406
mov dword [0x10045f04], eax
cmp dword [0x10045f08], 0
jne 0x58718d
call fcn.0058b406
add eax, 0x20
mov dword [0x10045f08], eax
mov ebx, dword [0x10045ef4]
test ebx, ebx
je 0x5871a5
mov eax, dword [0x10045eec]
cmp dword [ebx + eax*4], 0
lea esi, [ebx + eax*4]
jne 0x5871c6
call fcn.005886a8
mov ecx, dword [0x10045ef4]
mov edx, dword [0x10045eec]
lea esi, [ecx + edx*4]
call fcn.00588558
mov ebx, dword [0x10045ef4]
mov dword [esi], eax
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [0x10045f04], edx
mov dl, byte [ecx]
mov dword [0x10045e5c], eax
jmp 0x5871f8
mov dl, byte [0x1003f991]
mov ecx, dword [0x10045ef8]
mov ebx, dword [0x10045ef4]
lea esp, [esp]
mov esi, dword [0x10045f00]
mov edi, ecx
mov byte [ecx], dl
mov dword [esp + 0x14], ecx
mov edi, edi
movzx eax, byte [edi]
mov dl, byte [eax*4 + 0x1002b330]
lea eax, [esi + esi]
cmp word [eax + 0x1002a7f8], 0
je 0x58722b
mov dword [0x10045e68], esi
mov dword [0x10045e58], edi
movsx ebp, word [eax + 0x1002b808]
movzx ecx, dl
add ebp, ecx
movsx ebp, word [ebp*2 + 0x10030fe8]
cmp ebp, esi
je 0x587279
jmp 0x587248
movsx esi, word [eax + 0x1002c6d8]
cmp esi, 0x59a
jl 0x58725e
mov dl, byte [ecx*4 + 0x1002b730]
lea eax, [esi + esi]
movsx ebp, word [eax + 0x1002b808]
movzx ecx, dl
add ebp, ecx
movsx ebp, word [ebp*2 + 0x10030fe8]
cmp ebp, esi
jne 0x587248
movsx ecx, word [esi*2 + 0x1002b808]
movzx edx, dl
add ecx, edx
movsx esi, word [ecx*2 + 0x1002d5a8]
add edi, 1
cmp word [esi*2 + 0x1002b808], 0x1ce9
jne 0x587208
lea esp, [esp]
mov ecx, dword [0x10045e68]
mov edx, dword [0x10045e58]
lea esp, [esp]
movsx eax, word [esi*2 + 0x1002a7f8]
test eax, eax
jne 0x5872ce
movsx eax, word [ecx*2 + 0x1002a7f8]
mov edi, edx
mov ebp, dword [esp + 0x14]
mov dl, byte [edi]
mov ecx, edi
sub ecx, ebp
mov dword [0x100470a8], ecx
mov dword [0x100470a4], ebp
mov byte [0x1003f991], dl
mov byte [edi], 0
mov ecx, edi
cmp eax, 0x92
mov dword [0x10045ef8], ecx
ja 0x587d41
jmp dword [eax*4 + 0x10019034]
mov eax, 0x1003a5b0
jmp 0x588808

Function at 0x588558
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [0x10045f04]
push 0x30
call fcn.0058a0a4
mov esi, eax
add esp, 4
test esi, esi
jne 0x58857a
mov eax, 0x1003a698
jmp 0x588808
push 0x4002
mov dword [esi + 0xc], 0x4000
call fcn.0058a0a4
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x58859f
mov eax, 0x1003a698
jmp 0x588808
mov dword [esi + 0x14], 1
call fcn.005885b8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5886a8
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10045ef4]
test eax, eax
jne 0x5886e9
push 4
call fcn.0058a0a4
add esp, 4
test eax, eax
mov dword [0x10045ef4], eax
jne 0x5886ce
mov eax, 0x1003a6c8
jmp 0x588808
mov dword [eax], 0
mov dword [0x10045ef0], 1
mov dword [0x10045eec], 0
ret
push esi
mov esi, dword [0x10045ef0]
lea ecx, [esi - 1]
cmp dword [0x10045eec], ecx
jb 0x58874b
push edi
lea edi, [esi + 8]
lea edx, [edi*4]
push edx
push eax
call fcn.0058c977
add esp, 8
test eax, eax
mov dword [0x10045ef4], eax
jne 0x588723
mov eax, 0x1003a6c8
jmp 0x588808
xor ecx, ecx
mov dword [eax + esi*4], ecx
mov dword [eax + esi*4 + 4], ecx
mov dword [eax + esi*4 + 8], ecx
mov dword [eax + esi*4 + 0xc], ecx
mov dword [eax + esi*4 + 0x10], ecx
mov dword [eax + esi*4 + 0x14], ecx
mov dword [eax + esi*4 + 0x18], ecx
mov dword [0x10045ef0], edi
mov dword [eax + esi*4 + 0x1c], ecx
pop edi
pop esi
ret

Function at 0x588758
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebp, [esi + 2]
push ebp
call fcn.0058a0a4
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x58877c
mov eax, 0x1003a72c
jmp 0x588808
cmp esi, ebx
jle 0x588797
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov edx, esi
mov bl, byte [ecx + eax]
mov byte [eax], bl
add eax, 1
sub edx, 1
jne 0x588788
xor ebx, ebx
cmp ebp, 2
mov byte [edi + esi + 1], bl
mov byte [edi + esi], bl
jb 0x5887fd
cmp byte [edi + ebp - 2], bl
jne 0x5887fd
cmp byte [edi + ebp - 1], bl
jne 0x5887fd
push 0x30
call fcn.0058a0a4
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5887c9
mov eax, 0x1003a6fc
jmp 0x588808
lea eax, [ebp - 2]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov edi, 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.005884d8
mov dword [esi + 0x14], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov eax, 0x1003a758
jmp 0x588808
push eax
push 0x1003a77c
call fcn.0058b406
add eax, 0x40
push eax
call fcn.0058b6dd
add esp, 0xc
push 2
call fcn.0058cf4c
int3
Function at 0x58c6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x58c6fd
cmp dword [ebp + 0x14], edi
je 0x58c6fd
cmp ecx, edi
jne 0x58c704
call fcn.0058a1a2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0058e032
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x58c718
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x58c739
cmp ebx, 0xffffffff
je 0x58c728
push ebx
push edi
push ecx
call fcn.0058e6d8
add esp, 0xc
cmp esi, edi
je 0x58c6e5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x58c6e5
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x58c755
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x58c75c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x58c84d
test word [esi + 0xc], 0x10c
je 0x58c7b0
mov eax, dword [esi + 4]
test eax, eax
je 0x58c7b0
jl 0x58c8ae
cmp ebx, eax
mov edi, ebx
jb 0x58c781
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x58c855
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00593899
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x58c845
cmp ebx, dword [ebp - 0xc]
jb 0x58c81d
cmp dword [ebp - 0xc], 0
je 0x58c7da
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x58c7cf
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x58c7d6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x58c7e5
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x58c7e5
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x58c881
push eax
push dword [ebp - 8]
push esi
call fcn.0058b82c
pop ecx
push eax
call fcn.0059379c
add esp, 0xc
test eax, eax
je 0x58c8c0
cmp eax, 0xffffffff
je 0x58c8ae
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x58c845
push esi
call fcn.0058fbd3
cmp eax, 0xffffffff
pop ecx
je 0x58c8b2
cmp dword [ebp - 4], 0
je 0x58c881
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x58c764
mov eax, dword [ebp + 0x14]
jmp 0x58c6ff
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x58c86c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0058e6d8
add esp, 0xc
call fcn.0058a1a2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x58c6f5
cmp dword [ebp + 0xc], 0xffffffff
je 0x58c897
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0058e6d8
add esp, 0xc
call fcn.0058a1a2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x58c6f5
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x58c6ff
or dword [esi + 0xc], 0x10
jmp 0x58c8b2
Function at 0x4078cd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0xf2d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4078d7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x40791d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x4078fc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40793c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00437510
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4079cc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x407982
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x407998
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x4079bf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x407971
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47b390]
or eax, 8
push eax
sub ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.advapi32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
or eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
or eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 2
call fcn.00405bbf
cmp eax, ebx
je 0x401533
push ebx
push dword [0x47b390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x47b390], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
or eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x4056ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x45fdd0
sub eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x45fdd0], 0x44
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
or eax, eax
je 0x405727
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058fb
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
ret 4

Function at 0x4058fe
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
pop ecx
inc ecx
push 0
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_CreateFileW]
ret 0xc

Function at 0x40592d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088c4]
mov dword [ebp - 8], eax
mov eax, dword [0x4088c8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
pop ecx
sub edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
or eax, eax
jne 0x40597d
or edi, edi
jne 0x40593a
mov word [esi], ax
pop edi
pop esi
leave
ret 8
push esi
pop eax
jmp 0x405977

Function at 0x405981
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
sub eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
or eax, eax
jne 0x4059fa
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
or eax, eax
jne 0x4059e3
cmp dword [ebp + 0x14], 1
je 0x4059e8
cmp dword [ebp + 0x14], 2
je 0x4059e8
sub eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
sub eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406042
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45fe18
push esi
call fcn.00405ab8
push esi
call fcn.00405807
push eax
pop edi
or edi, edi
jne 0x406063
sub eax, eax
jmp 0x4060c1
push edi
call fcn.00405ae7
test byte [0x47b308], 0x80
je 0x406080
movzx eax, word [edi]
test ax, ax
je 0x40605f
cmp ax, 0x5c
je 0x40605f
sbb edi, esi
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrlenW]
sar edi, 1
jmp 0x4060a2
push esi
call fcn.00405b98
or eax, eax
je 0x40609c
test byte [eax], 0x10
je 0x4060c6
push esi
call fcn.00406015
push esi
call ebx
cmp eax, edi
jg 0x40608d
push esi
call fcn.00405fe6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
pop eax
pop ebx
pop edi
pop esi
ret 4
sub eax, eax
jmp 0x4060c0
Function at 0x40635b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089ac
mov ebx, 0x463e20
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4063a9
push 1
push ebp
push edi
call fcn.004058fe
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406520
cmp eax, esi
jg 0x406520
push esi
mov edi, 0x469478
push edi
push dword [esp + 0x20]
call dword [sym.imp.kernel32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406520
cmp eax, esi
jg 0x406520
push ebp
push ebp
push esi
push 0x464620
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
or eax, eax
je 0x406520
push ebp
push ebp
push esi
mov esi, 0x464c70
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
or eax, eax
je 0x406520
push esi
push 0x464620
push str.9hlg6_r_n
push 0x465070
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
push eax
pop ebx
mov eax, dword [0x47b2bc]
push dword [eax + 0x128]
push edi
call fcn.004060ca
push 4
push 0xc0000000
push edi
call fcn.004058fe
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406520
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
pop edi
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
push eax
pop esi
cmp esi, ebp
je 0x406516
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
je 0x406516
cmp edi, dword [esp + 0x10]
jne 0x406516
push str._Rename__r_n
push esi
call fcn.00405864
cmp eax, ebp
jne 0x4064ad
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
sub edi, 0xfffffff6
jmp 0x4064de
push 0x4089a0
add eax, 0xa
push eax
call fcn.00405864
mov ebp, eax
test ebp, ebp
je 0x4064dc
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4064cf
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4064c9
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4064e0
xor ebp, ebp
push edi
pop eax
push ebx
push 0x465070
add eax, esi
push eax
call fcn.004058ba
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406559
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406042
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40658e
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47b368], eax
jmp 0x406734
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4065a9
or eax, eax
je 0x4066df
test cl, 2
je 0x4066df
push edi
push ebx
mov esi, 0x465470
push esi
call fcn.00405ab8
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.kernel32.dll_lstrcatW]
je 0x4065cc
push str..
push esi
call edi
jmp 0x4065d2
push ebx
call fcn.00406015
cmp word [ebx], 0
jne 0x4065e2
cmp word [0x465470], 0x5c
jne 0x4065ea
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4066ce
lea esi, [ebp - 0x230]
push 0x3f
push esi
pop eax
push eax
call fcn.004057b3
sub edi, edi
cmp word [eax], di
je 0x406631
cmp word [ebp - 0x28], di
je 0x406631
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x40664c
movzx eax, word [esi + 2]
cmp ax, di
je 0x4066ab
cmp ax, 0x2e
jne 0x40664c
cmp word [esi + 4], di
je 0x4066ab
push esi
push dword [ebp - 4]
call fcn.00405ab8
test byte [ebp - 0x25c], 0x10
je 0x406673
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4066ab
push dword [ebp + 0xc]
push ebx
call fcn.00406559
jmp 0x4066ab
push ebx
call fcn.004058de
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
or eax, eax
jne 0x4066a3
test byte [ebp + 0xc], 4
je 0x40669b
push ebx
push 0xfffffffffffffff1
call fcn.00404a73
push edi
push ebx
call fcn.00406526
jmp 0x4066ab
inc dword [0x47b368]
jmp 0x4066ab
push ebx
push 0xfffffffffffffff2
call fcn.00404a73
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FindNextFileW]
or eax, eax
jne 0x406611
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x4066d0
sub edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4066df
mov ecx, dword [ebp - 4]
sub eax, eax
mov word [ecx - 2], ax
sub esi, esi
cmp dword [ebp + 8], esi
je 0x406733
cmp dword [ebp - 0xc], esi
je 0x406723
push ebx
call fcn.00405b98
or eax, eax
je 0x406733
push ebx
call fcn.00405fe6
push ebx
call fcn.004058de
push ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
or eax, eax
jne 0x40672b
test byte [ebp + 0xc], 4
je 0x406723
push ebx
push 0xfffffffffffffff1
call fcn.00404a73
push esi
push ebx
call fcn.00406526
jmp 0x406733
inc dword [0x47b368]
jmp 0x406733
push ebx
push 0xffffffffffffffe5
call fcn.00404a73
pop esi
pop ebx
leave
ret 8
Function at 0x406739
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x406777
sub ecx, ecx
push esi
push 8
push ecx
pop eax
pop esi
push eax
pop edx
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
sub eax, edx
dec esi
jne 0x40674d
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x406748
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067a4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
sub edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406785
not eax
pop ebp
ret 0xc
Function at 0x610370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x61038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x639074
push ecx
mov edi, eax
call fcn.00624198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6103cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0062402e
push esi
call fcn.00623fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret