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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x5663a8]
cmp eax, dword [edx]
jne 0x524a27
mov ebx, dword [0x565b6c]
mov ebx, dword [ebx]
jmp 0x524a29
xor ebx, ebx
test ebx, ebx
je 0x524a35
cmp ebx, 0x103
jne 0x524a57
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
je 0x524a4b
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ebx, dword [eax]
jmp 0x524a57
mov eax, 0x1f
call fcn.00408788
mov ebx, eax
test ebx, ebx
je 0x524a63
cmp ebx, 0x103
jne 0x524a6f
mov eax, 0x1f
call fcn.00408788
mov ebx, eax
xor eax, eax
push ebp
push 0x524aca
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x5663a8]
cmp eax, dword [edx]
jne 0x524aa1
xor eax, eax
call fcn.00447098
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x524ac0
xor eax, eax
call fcn.004a7a70
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
call fcn.004a811c
push ebx
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524adc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52693c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x526aca
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00403148
mov ebx, eax
call fcn.00403168
mov esi, eax
mov eax, dword [0x5661ec]
xor edx, edx
mov dword [eax], edx
mov eax, esi
call fcn.0040e49c
test al, al
je 0x526992
mov eax, ebx
call fcn.0040e49c
test al, al
je 0x526992
mov eax, ebx
call fcn.0040eb9c
test al, al
jne 0x5269a9
call fcn.00403188
test eax, eax
je 0x526ab4
call fcn.004031bc
jmp 0x526ab4
mov eax, dword [0x565b6c]
xor edx, edx
mov dword [eax], edx
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00529c44
test al, al
jne 0x526a0b
mov eax, ebx
mov edx, dword [0x426e1c]
call fcn.00404198
test al, al
je 0x526a0b
cmp dword [ebx + 4], 0
je 0x526a0b
push 0
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.00403eec
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.00405290
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov ecx, 0x2010
call fcn.0041bb6c
mov eax, dword [0x565b6c]
cmp dword [eax], 0
je 0x526a22
mov eax, dword [0x565b6c]
cmp dword [eax], 0x103
jne 0x526aa1
mov eax, ebx
mov edx, dword [0x426fe8]
call fcn.00404198
test al, al
je 0x526a48
cmp dword [ebx + 0xc], 0
je 0x526a48
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov edx, dword [0x565b6c]
mov dword [edx], eax
jmp 0x526a7f
mov eax, ebx
mov edx, dword [0x4277b0]
call fcn.00404198
test al, al
je 0x526a74
mov eax, dword [ebx + 0xc]
test eax, eax
jns 0x526a65
call fcn.00403edc
call fcn.00408788
mov edx, dword [0x565b6c]
mov dword [edx], eax
jmp 0x526a7f
mov eax, dword [0x565b6c]
mov dword [eax], 0xeedfade
mov eax, dword [0x565b6c]
cmp dword [eax], 0
je 0x526a96
mov eax, dword [0x565b6c]
cmp dword [eax], 0x103
jne 0x526aa1
mov eax, dword [0x565b6c]
mov dword [eax], 0x1f
mov eax, dword [0x565b6c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x526ad1
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x5273ac
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x527489
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00415d7c
call fcn.00424c00
mov eax, 0x527498
call fcn.0041a7fc
mov eax, 0x527498
call fcn.00425240
test bl, bl
je 0x527458
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405224
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.004038b8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, edi
call fcn.0040550c
push eax
push 0
push 0x200
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
lea edx, [ebp - 0x5c]
xor eax, eax
call fcn.0040f260
mov eax, dword [ebp - 0x5c]
call fcn.0040550c
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527490
lea eax, [ebp - 0x5c]
call fcn.0040502c
lea eax, [ebp - 4]
call fcn.0040502c
ret

Function at 0x52a910
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.004aa864
mov edi, eax
dec edi
test edi, edi
jl 0x52a986
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.004aa86c
mov byte [eax + 0x58], 0
mov edx, ebx
mov eax, esi
call fcn.004aa86c
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 4]
je 0x52a982
push ebp
mov edx, ebx
mov eax, esi
call fcn.004aa86c
call fcn.0052a88c
pop ecx
test al, al
je 0x52a982
mov edx, ebx
mov eax, esi
call fcn.004aa86c
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x52a982
mov edx, ebx
mov eax, esi
call fcn.004aa86c
mov byte [eax + 0x58], 1
inc ebx
dec edi
jne 0x52a929
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x52a994
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.004aa864
mov esi, eax
dec esi
test esi, esi
jl 0x52a9e2
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, edi
call fcn.004aa86c
call fcn.0052a98c
test al, al
je 0x52a9de
mov edx, ebx
mov eax, edi
call fcn.004aa86c
mov byte [eax + 0x58], 0
mov edx, ebx
mov eax, edi
call fcn.004aa86c
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_ResumeThread
inc ebx
dec esi
jne 0x52a9ad
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52d08c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x52d134
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040ed60
mov ebx, eax
test bl, bl
jne 0x52d119
mov bl, 1
push 4
lea eax, [ebp - 4]
push eax
push 0x52d144
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x52d119
push 4
lea eax, [ebp - 4]
push eax
push 0x52d15c
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x52d119
call fcn.00403544
mov esi, eax
test esi, esi
jle 0x52d117
mov dword [ebp - 4], 1
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004035a4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00427c80
mov eax, dword [ebp - 8]
mov edx, 0x52d178
call fcn.00405458
je 0x52d119
inc dword [ebp - 4]
dec esi
jne 0x52d0ec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d13b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405050
ret

Function at 0x52d260
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
call fcn.0040f7d8
test al, al
jne 0x52d2d8
cmp dword [0x66bbc4], 0
je 0x52d2d8
mov eax, dword [0x66bbc4]
call fcn.00444d28
mov eax, dword [0x5697f8]
call fcn.0041bdec
test al, al
jne 0x52d2b7
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x5663a8]
cmp eax, dword [edx]
jne 0x52d2ab
mov eax, dword [0x66bbc4]
mov eax, dword [eax + 4]
call fcn.0052d204
jmp 0x52d2ce
mov eax, dword [0x66bbc4]
call fcn.00444d30
jmp 0x52d2ce
push 0x64
call sub.kernel32.dll_Sleep_2
push 1
mov eax, dword [0x66bbc4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, 0x66bbc4
call fcn.0040f80c
pop ebp
ret

Function at 0x530d78
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x530e36
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052d404
call fcn.00488ed4
test al, al
je 0x530e1b
call fcn.0040f4fc
lea edx, [ebp - 4]
call fcn.0040f260
mov eax, dword [ebp - 4]
call fcn.00457e1c
test al, al
je 0x530ddc
call fcn.0040f4fc
cmp eax, dword [0x5697f8]
je 0x530e1b
lea edx, [ebp - 8]
mov eax, dword [0x5697f8]
call fcn.0040f260
mov eax, dword [ebp - 8]
call fcn.00457e1c
test al, al
jne 0x530e1b
push 0
call fcn.0052d404
lea ecx, [ebp - 0xc]
mov dl, 2
call fcn.00489928
mov eax, dword [ebp - 0xc]
push eax
call fcn.0052d404
lea ecx, [ebp - 0x10]
mov dl, 0x99
call fcn.00489928
mov eax, dword [ebp - 0x10]
mov ecx, 0x10
pop edx
call fcn.0041bb6c
push 0xb
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x530e3d
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405050
ret
Function at 0x401110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
xor esi, esi
mov eax, 0xfa
mov ecx, 0x6297
mov dword [ebp - 8], esi
mov edx, 0x486
mov dword [ebp - 4], 0x23
cmp eax, 0x23
cmovg eax, dword [ebp - 4]
dec edx
jne 0x401138
mov eax, dword [ebp + 8]
test eax, eax
je 0x401290
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401290
cmp eax, edx
jae 0x401290
mov ecx, 0x4f0c
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401165
mov ecx, 0x596c
nop
mov eax, 0xa16b312f
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401180
inc ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4011a4
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4011a7
inc ebx
cmp ebx, 0x2e92
jl 0x401195
mov ebx, dword [ebp + 8]
sub dword [ebp + 0xc], ebx
mov esi, 0x75ad
lea ebx, [ebx]
mov eax, 0x30c30c31
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011c0
inc edi
mov eax, edi
and eax, 0x80000003
jns 0x4011e2
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4011e5
inc edi
cmp edi, 0x41e1
jl 0x4011d3
mov esi, 0x187b
mov eax, 0x4d4873ed
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011f2
mov ecx, 0x5eb7
lea ebx, [ebx]
mov eax, 0xb11fd3b9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401210
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40123e
lea esp, [esp]
mov al, byte [ecx + ebx + 1]
add al, 0x1b
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edx
jb 0x401230
mov esi, 0x1ef2
mov eax, 0x6bca1af3
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401243
mov esi, dword [ebp - 8]
lea esp, [esp]
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x40127b
inc esi
cmp esi, 0x4599
jl 0x401260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x44d72045
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x838
jmp 0x403180
mov eax, 0xcb8727c1
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403180
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], eax
jbe 0x403245
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x8d
mov edi, edi
add eax, dword [ebp + 0xc]
mov ecx, 0x53e4
mov dword [ebp - 0xc], eax
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, 0x1d
lea ebx, [eax + 0x34]
jmp 0x4031d0
cmp eax, 0x8d
cmovl eax, esi
dec ecx
jne 0x4031d0
inc byte [edx + 5]
movzx edi, byte [edx + 5]
movzx eax, byte [edx + 4]
add edi, 6
add edi, edx
lea esi, [edx + 6]
movzx ecx, byte [edi]
add eax, ecx
mov byte [edx + 4], al
movzx eax, al
add esi, eax
push esi
push edi
call fcn.004035f0
mov cl, byte [esi]
add esp, 8
add cl, byte [edi]
mov eax, 0x16a8
mov edx, 0x42
cmp ebx, edx
cmovg ebx, edx
dec eax
jne 0x403213
mov edx, dword [ebp + 8]
movzx eax, cl
mov ecx, dword [ebp - 0xc]
mov al, byte [eax + edx + 6]
xor al, byte [ebp - 1]
mov esi, 0x8d
mov byte [ecx], al
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x4031b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
push str.SoftwareMidnight_OilFreeWheelTempFiles
push 0x80000001
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40110b
push ebx
push edi
push 4
lea eax, [ebp - 0x10]
pop edi
mov ebx, str.Count
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
mov dword [ebp - 0x14], esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call esi
push 1
pop eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
jb 0x4010ee
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push 0x407030
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x11c]
push 0
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4010df
lea eax, [ebp - 0x220]
push eax
call fcn.0040179d
test eax, eax
pop ecx
je 0x4010cf
cmp dword [0x407c18], 2
je 0x4010cf
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x4010df
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jbe 0x401066
lea eax, [ebp - 0x18]
push edi
push eax
push edi
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40110e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jne 0x401189
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401172
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040110e
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x401172
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x401147
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4011bb
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4011fd
lea eax, [ebp - 4]
push eax
push 7
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4011fd
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x401238
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.004011bb
pop ecx
test eax, eax
pop ecx
je 0x401288
lea eax, [ebp - 0x104]
push 0x4070e4
push eax
lea eax, [ebp - 0x208]
push str._s_s.lnk
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
leave
ret
xor eax, eax
leave
ret
Function at 0x40128c
Capabilities:
Create process on windows
Get common file path
Resume thread
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
push ebx
push esi
lea eax, [ebp - 0x160]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp + eax - 0x161], 0x5c
je 0x4012bd
mov byte [ebp + eax - 0x160], 0x5c
inc eax
lea eax, [ebp + eax - 0x160]
push str.DelExe.bat
push eax
call fcn.00401860
pop ecx
xor ebx, ebx
pop ecx
lea eax, [ebp - 0x160]
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401463
push edi
lea eax, [ebp - 0x264]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x368]
push 0x5c
push eax
call fcn.00401830
mov byte [eax], bl
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x264]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x958]
push str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_nrmdir___s__r_ndel___s__r_n
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x958]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x958]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004017d0
add esp, 0xc
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
push esi
push eax
mov word [ebp - 0x2c], 7
mov dword [ebp - 0x50], str.Deleting_Uninstaller...
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
not eax
test eax, 0x80000000
mov eax, str.cmd.exe
jne 0x4013df
mov eax, str.command.com
lea ecx, [ebp - 0x160]
push ecx
push eax
lea eax, [ebp - 0x570]
push str._s__c__s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x46c]
push eax
push ebx
push 0x44
push ebx
push ebx
lea eax, [ebp - 0x570]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401463
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x10]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret
Function at 0x401467
Capabilities:
Delete file

Disassembly:
sub esp, 0x124
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
push edi
mov ebp, str.Remove_FreeWheel
push 0x31
push ebp
xor edi, edi
push str.Are_you_sure_you_want_to_remove_FreeWheel_from_your_system_
push edi
call ebx
cmp eax, 1
jne 0x40154c
push 0x4070e4
push str.FreeWheelWndClass
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x4014b0
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
lea eax, [esp + 0x30]
push 0x104
push eax
push str.FreeWheel.exe
call fcn.00401556
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0x1f4
push eax
call fcn.004015ab
add esp, 0x10
test eax, eax
je 0x401530
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [esp + 0x10], edi
jle 0x401530
push 1
push edi
push edi
lea eax, [esp + 0x20]
push edi
push eax
call esi
test eax, eax
je 0x401512
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4014ea
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.004015ab
test eax, eax
pop ecx
jne 0x4014e4
push str.readme.txt
call fcn.004015be
pop ecx
call fcn.00401213
push 0x40
push ebp
push str.FreeWheel_has_been_successfully_removed_from_your_system.
push edi
call ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x124
ret

Function at 0x4015be
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 8]
call fcn.00401556
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
leave
ret

Function at 0x4051a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4051c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401bde
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4051e7
test byte [esp + 8], 2
je 0x4051e7
mov dword [0x407c18], 0xd
mov dword [0x407c1c], 5
jmp 0x4051c2
xor eax, eax
ret
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40645d
pop dword [ebp - 0x24]
mov eax, 0x40645d
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x91518f6
sub dword [ebp - 0x34], 0xbac2d3ab
mov dword [ebp - 0x30], 0x11617792
sub dword [ebp - 0x30], 0xdf2e2b4d
mov dword [ebp - 0x2c], 0xb4039fdf
sub dword [ebp - 0x2c], 0x67b75bb1
mov dword [ebp - 0x28], 0x1f3a70aa
sub dword [ebp - 0x28], 0x1f3a70aa
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x81148d66
sub dword [ebp - 0x34], 0xca22410
mov dword [ebp - 0x30], 0x8160f5b7
add dword [ebp - 0x30], 0xc00b6bbe
mov dword [ebp - 0x2c], 0x83fd4202
add dword [ebp - 0x2c], 0xdf722a6a
mov dword [ebp - 0x28], 0x8def689b
add dword [ebp - 0x28], 0x72109765
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xec1f76c4
add eax, 0x142109b8
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x314db
push 0
call eax
mov ecx, 0x9b046065
add ecx, 0x64fbd09c
xor esi, esi
add esi, eax
mov edi, 0x451400
add edi, dword [ebp - 0x24]
mov edx, 0x8ad099fd
sub edx, 0x5644b3b8
xor dword [ebp - 0x1c], esi
mov ebx, dword [edi]
xor dword [ebp - 4], esi
sub ebx, edx
xor dword [ebp - 0xc], esi
mov dword [esi], ebx
sub dword [ebp - 0x10], edx
add esi, 4
add edi, 0x80c5d3d7
sub edi, 0x80c5d3d3
loop 0x406571
add eax, 0x2649707c
sub eax, 0x2648b9a5
mov ebx, eax
add eax, 5
mov ecx, 0xade5f0b5
add ecx, 0x525a0f4b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
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 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
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 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc