joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b61e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x5b6d10
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret
Function at 0x5e6dc6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x61ffb8
call fcn.005ea638
push 8
call fcn.005e9ae1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x72932c], esi
jne 0x5e6dfa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x729328], esi
mov al, byte [ebp + 0x10]
mov byte [0x729324], al
cmp dword [ebp + 0xc], edi
jne 0x5e6e44
cmp dword [0x72ac4c], edi
je 0x5e6e34
mov eax, dword [0x72ac48]
sub eax, 4
mov dword [0x72ac48], eax
cmp eax, dword [0x72ac4c]
jb 0x5e6e34
mov eax, dword [eax]
cmp eax, edi
je 0x5e6e15
call eax
jmp 0x5e6e15
push 0x62440c
mov eax, 0x624400
call fcn.005e6d44
pop ecx
push 0x624418
mov eax, 0x624410
call fcn.005e6d44
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x5e6e75
cmp dword [ebp + 0x10], edi
jne 0x5e6e83
mov dword [0x72932c], esi
push dword [ebp + 8]
call fcn.005e6d02
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x5e6e82
push 8
call fcn.005e9a2c
pop ecx
ret
call fcn.005ea673
ret

Function at 0x5eca3f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x638560]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x638870]
je 0x5eca76
inc eax
cmp eax, 0x13
jb 0x5eca67
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x638870]
jne 0x5ecb99
mov eax, dword [0x7292e0]
cmp eax, 1
je 0x5ecb74
cmp eax, edx
jne 0x5ecaa6
cmp dword [0x638134], 1
je 0x5ecb74
cmp ecx, 0xfc
je 0x5ecb99
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5ecadc
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.005ee980
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.005eb380
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5ecb10
mov eax, edi
push eax
call fcn.005eb380
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x620c9c
push edi
call fcn.005e7550
add esp, 0x10
push edi
call fcn.005eb380
push dword [esi + 0x638874]
mov ebx, eax
call fcn.005eb380
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005e6090
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005ee980
push edi
push ebx
call fcn.005ee990
push 0x5faba4
push ebx
call fcn.005ee990
push dword [esi + 0x638874]
push ebx
call fcn.005ee990
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005f1b13
add esp, 0x2c
jmp 0x5ecb99
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x638874]
push dword [esi]
call fcn.005eb380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.005eb4cc
add ebp, 0x90
leave
ret
Function at 0x5eeb59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5eed2f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x729b00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5eed2f
test cl, 0x48
je 0x5eebc4
cmp byte [eax + 5], 0xa
je 0x5eebc4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5eec16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5eebfe
call fcn.005eba09
mov dword [eax], 9
call fcn.005eba12
mov dword [eax], esi
jmp 0x5eec0e
cmp eax, 0x6d
je 0x5eed2f
push eax
call fcn.005eba1b
pop ecx
or eax, 0xffffffff
jmp 0x5eed31
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5eed2a
test eax, eax
je 0x5eec3d
cmp byte [ebx], 0xa
jne 0x5eec3d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5eec46
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5eed24
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5eed14
cmp al, 0xd
je 0x5eec78
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5eed06
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5eec92
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5eec8d
add dword [ebp + 0x10], 2
jmp 0x5eece6
mov dword [ebp + 0x10], eax
jmp 0x5eed02
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5eecba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5eed02
cmp dword [ebp - 0xc], 0
je 0x5eed02
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5eecdb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5eece6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5eed05
cmp ebx, dword [ebp + 0xc]
jne 0x5eeceb
cmp byte [ebp - 1], 0xa
jne 0x5eeceb
mov byte [ebx], 0xa
jmp 0x5eed05
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005f2979
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5eed06
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5eec5c
jmp 0x5eed24
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5eed24
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5eed31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5eede1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x638560]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x5eee1d
xor eax, eax
jmp 0x5eef87
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x729b00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5eee5b
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.005f2979
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5eeef5
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x5eef58
jmp 0x5eee7f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x5eeeba
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5eeeab
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x5eee8b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5eef19
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x5eef22
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x5eee7d
jmp 0x5eef22
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5eef19
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x5eef22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x5eef82
cmp dword [ebp - 0x68], eax
je 0x5eef55
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x5eef4a
call fcn.005eba09
mov dword [eax], 9
call fcn.005eba12
mov dword [eax], esi
jmp 0x5eef7d
push dword [ebp - 0x68]
call fcn.005eba1b
pop ecx
jmp 0x5eef7d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5eef6a
cmp byte [edi], 0x1a
jne 0x5eef6a
xor eax, eax
jmp 0x5eef85
call fcn.005eba09
mov dword [eax], 0x1c
call fcn.005eba12
and dword [eax], 0
or eax, 0xffffffff
jmp 0x5eef85
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.005eb4cc
add ebp, 0x3a4
leave
ret
Function at 0x5ef59d
Capabilities:
Parse pe header

Disassembly:
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 0x5ef5cb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5ef5d2
cmp ebx, dword [eax + 4]
jae 0x5ef5d2
xor eax, eax
jmp 0x5ef7c2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5ef5e3
xor eax, eax
inc eax
jmp 0x5ef7c1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5ef5f9
cmp ecx, edx
jae 0x5ef73e
cmp dword [eax + 4], 0
je 0x5ef602
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5ef5ea
cmp dword [ebp + 8], 0
je 0x5ef624
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5ef73e
cmp eax, esi
jae 0x5ef73e
mov eax, dword [0x729750]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5ef649
cmp dword [esi*4 + 0x729758], edi
je 0x5ef742
inc esi
cmp esi, eax
jl 0x5ef637
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5ef7be
cmp dword [ebp - 8], 0x1000000
jne 0x5ef7be
test byte [ebp - 0xc], 0xcc
je 0x5ef6c7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5ef7be
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5ef7be
cmp word [eax + 0x18], 0x10b
jne 0x5ef7be
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5ef7be
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5ef6c7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5ef6c7
test byte [ecx + 0x27], 0x80
jne 0x5ef73e
push 1
push 0x729798
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5ef5db
mov ecx, dword [0x729750]
test ecx, ecx
mov edx, ecx
jle 0x5ef6fb
lea eax, [ecx*4 + 0x729754]
cmp dword [eax], edi
je 0x5ef6fb
dec edx
sub eax, 4
test edx, edx
jg 0x5ef6ef
test edx, edx
jne 0x5ef72c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5ef708
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5ef720
lea eax, [edx*4 + 0x729758]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5ef70e
cmp ecx, 0x10
jge 0x5ef72c
inc ecx
mov dword [0x729750], ecx
push 0
push 0x729798
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5ef5db
xor eax, eax
jmp 0x5ef7c1
test esi, esi
jle 0x5ef5db
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x729798
call ebx
test eax, eax
jne 0x5ef5db
cmp dword [esi*4 + 0x729758], edi
je 0x5ef798
mov eax, dword [0x729750]
lea esi, [eax - 1]
test esi, esi
jl 0x5ef786
cmp dword [esi*4 + 0x729758], edi
je 0x5ef782
dec esi
jns 0x5ef776
test esi, esi
jge 0x5ef796
cmp eax, 0x10
jge 0x5ef791
inc eax
mov dword [0x729750], eax
lea esi, [eax - 1]
jmp 0x5ef798
je 0x5ef7b0
xor ecx, ecx
test esi, esi
jl 0x5ef7b0
lea eax, [ecx*4 + 0x729758]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5ef79e
push 0
push 0x729798
call ebx
jmp 0x5ef5db
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ef830
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.005e6090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5ef8cb
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x7292ec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x5ef8cb
cmp eax, 1
je 0x5ef8ec
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5ef8cb
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5ef898
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5ef8c7
xor eax, eax
inc eax
jmp 0x5ef90b
cmp edi, eax
jae 0x5ef8cf
xor eax, eax
jmp 0x5ef90b
cmp eax, esi
jae 0x5ef8d6
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x7292ec]
jmp 0x5ef8ef
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f0f29
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x5f0f42
or eax, 0xffffffff
jmp 0x5f0fa3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x5f0f9f
push 0x3d
push esi
call fcn.005f2a8f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x5f0f9f
cmp esi, eax
je 0x5f0f9f
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x72930c]
sete cl
cmp eax, dword [0x729310]
mov dword [ebp - 4], ecx
jne 0x5f0f85
mov edi, eax
call fcn.005f0ec8
mov dword [0x72930c], eax
cmp eax, ebx
jne 0x5f0fde
cmp dword [ebp + 0xc], ebx
je 0x5f0fa7
cmp dword [0x729314], ebx
je 0x5f0fa7
call fcn.005eb40b
test eax, eax
je 0x5f0fde
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x5f0fb0
xor eax, eax
jmp 0x5f0fa2
push 4
call fcn.005e6012
cmp eax, ebx
pop ecx
mov dword [0x72930c], eax
je 0x5f0f9f
mov dword [eax], ebx
cmp dword [0x729314], ebx
jne 0x5f0fde
push 4
call fcn.005e6012
cmp eax, ebx
pop ecx
mov dword [0x729314], eax
je 0x5f0f9f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x72930c]
sub edi, esi
push esi
call fcn.005f0e7b
mov edi, eax
test edi, edi
pop ecx
jl 0x5f1045
cmp dword [ebx], 0
je 0x5f1045
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005e5efa
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x5f1025
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x5f1086
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x5f101c
mov eax, edi
shl eax, 2
push eax
push dword [0x72930c]
call fcn.005e7fc3
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x5f1086
jmp 0x5f1081
cmp dword [ebp - 4], 0
jne 0x5f10ed
test edi, edi
jge 0x5f1055
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x72930c]
call fcn.005e7fc3
test eax, eax
pop ecx
pop ecx
je 0x5f0f9f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x72930c], eax
cmp dword [ebp + 0xc], 0
je 0x5f10d8
push esi
call fcn.005eb380
inc eax
inc eax
push eax
call fcn.005e6012
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x5f10d8
push esi
push edi
call fcn.005ee980
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5f10d1
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.005e5efa
pop ecx
cmp dword [ebp - 4], 0
je 0x5f10e5
push esi
call fcn.005e5efa
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x5f0fa2
push esi
call fcn.005e5efa
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x5f0fac
Function at 0x5f2b0a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005e6090
mov eax, dword [0x638560]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.005ef47e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5f2c3f
push 2
push esi
push dword [ebp + 8]
call fcn.005ef47e
add esp, 0xc
cmp eax, ebx
je 0x5f2c3f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5f2bdf
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.005ef7d0
push 0x8000
push dword [ebp + 8]
call fcn.005e8886
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5f2b95
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005eede1
add esp, 0xc
cmp eax, 0xffffffff
je 0x5f2bb5
sub edi, eax
test edi, edi
jg 0x5f2b8d
jmp 0x5f2bcd
call fcn.005eba12
cmp dword [eax], 5
jne 0x5f2bca
call fcn.005eba09
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.005e8886
pop ecx
pop ecx
jmp 0x5f2c27
jge 0x5f2c27
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005ef47e
push dword [ebp + 8]
call fcn.005ef1ff
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x5f2c27
call fcn.005eba09
mov dword [eax], 0xd
call fcn.005eba12
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.005ef47e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5f2c41
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005eb4cc
leave
ret
Function at 0x5f433c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5f4392
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5f8416
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f4385
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5f4394
xor eax, eax
pop esi
leave
ret 4

Function at 0x5f4f98
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5f4fc6
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x5f4fcb
cmp eax, 1
je 0x5f4fcb
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5f4fcf
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x638560]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x5f5061
push ebx
call fcn.005f4f98
test eax, eax
pop ecx
jne 0x5f5036
call fcn.005eba12
mov dword [eax], 0xf
call fcn.005eba09
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.005eb4cc
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x5f5070
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5f501d
inc eax
cmp eax, 0x104
ja 0x5f501d
test edi, edi
mov ecx, edi
jne 0x5f50ad
cmp eax, dword [ebp + 0xa0]
jg 0x5f5090
mov eax, dword [ebp + 0xa0]
push eax
call fcn.005e6012
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5f50c5
call fcn.005eba09
mov dword [eax], 0xc
jmp 0x5f501d
cmp eax, dword [ebp + 0xa0]
jle 0x5f50c5
call fcn.005eba09
mov dword [eax], 0x22
jmp 0x5f501d
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.005ee980
pop ecx
pop ecx
jmp 0x5f501f
Function at 0x100284a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a020]
cmp eax, 0xffffffff
je 0x1002905
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x314
push esi
push 0x100a5a0
push dword [0x100a020]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028f9
cmp dword [ebp - 4], esi
jne 0x10028f9
cmp dword [0x100a5a0], 0x6e776453
jne 0x10028f9
test dword [0x100a5a8], 0x80000000
jne 0x1002903
or dword [0x100a5a8], 0x40000000
push 0x100a7b0
push 0x103
push 0x100a9e0
mov byte [0x100a7af], bl
mov byte [0x100a8b3], bl
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
cmp dword [0x100a5a4], 0x10000
jne 0x1002903
test dword [0x100a5a8], 0x3fffffec
jne 0x1002903
and dword [0x100a5a8], 0xbfffffff
jmp 0x1002903
or dword [0x100a5a8], 0x80000000
pop esi
pop ebx
leave
ret

Function at 0x1002907
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 8], ebx
call esi
mov dword [ebp - 0xc], eax
or eax, 1
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [ebp - 4], ebx
xor edx, edx
mov ecx, 0xf4240
mov eax, edi
div ecx
mov ecx, eax
imul ecx, ecx, 0xf4240
mov eax, edi
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x10021fc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push ebx
lea eax, [ebp - 0x110]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1002993
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10029bb
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3e8
jl 0x1002935
jmp 0x10029bb
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10029b4
push 4
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 8], 1
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4