joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad3f8
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4ad4f2
xor eax, eax
push ebp
push 0x4ad4eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp dword [ebp - 0xc], 0
jne 0x4ad46f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x424
jne 0x4ad46f
mov ecx, 0x4ad504
mov dl, 1
mov eax, dword [0x408490]
call fcn.0040de0c
cmp dword [ebp - 0xc], 0
je 0x4ad4d4
xor eax, eax
push ebp
push 0x4ad4cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4ad4b6
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x420
jne 0x4ad4b6
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad4d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad4f2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad52c
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4ad60b
xor eax, eax
push ebp
push 0x4ad604
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp dword [ebp - 0xc], 0
jne 0x4ad5a3
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x424
jne 0x4ad5a3
mov ecx, 0x4ad61c
mov dl, 1
mov eax, dword [0x408490]
call fcn.0040de0c
cmp dword [ebp - 0xc], 0
je 0x4ad5ed
xor eax, eax
push ebp
push 0x4ad5e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad5ed
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad60b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad644
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov dword [ebp - 4], 1
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ad6f2
xor eax, eax
push ebp
push 0x4ad6eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ad6d4
xor eax, eax
push ebp
push 0x4ad6cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad6d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad6f2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4adb04
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4adbc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404e28
lea eax, [ebp - 0xc]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004052b0
mov eax, dword [ebp - 0xc]
call fcn.00405050
dec eax
jg 0x4adb69
lea eax, [ebp - 0xc]
mov edx, 0x4adbe4
call fcn.00405058
lea eax, [ebp - 0x2c]
mov ecx, 0x4adbf0
mov edx, dword [ebp - 0xc]
call fcn.0040509c
mov eax, dword [ebp - 0x2c]
call fcn.00409f6c
test al, al
je 0x4adbab
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405250
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adbd0
lea eax, [ebp - 0x2c]
call fcn.00404d90
lea eax, [ebp - 0xc]
call fcn.00404d90
ret
Function at 0x4adbf4
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4add49
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00403030
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040eb64
mov eax, dword [ebp - 8]
call fcn.00405050
mov ebx, 0xfa
sub ebx, eax
test ebx, ebx
jbe 0x4adc6a
mov eax, 0x1a
call fcn.00403690
mov edx, eax
add dl, 0x41
lea eax, [ebp - 0x260]
call fcn.00404f78
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 8]
call fcn.00405058
dec ebx
jne 0x4adc3f
mov eax, dword [ebp - 8]
call fcn.00409f5c
test al, al
jne 0x4adc21
mov bl, 1
xor eax, eax
push ebp
push 0x4adcb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x154]
call fcn.004033cc
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.004037b4
call fcn.00402c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4adcbf
test bl, bl
je 0x4adce3
lea eax, [ebp - 0x154]
call fcn.00403494
call fcn.00402c74
lea eax, [ebp - 0x154]
call fcn.00403638
call fcn.00402c74
test bl, bl
jne 0x4add28
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e28
lea eax, [ebp - 0x259]
push eax
push 0
push 0x4add5c
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4add26
lea eax, [ebp - 0x259]
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4add28
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4add50
lea eax, [ebp - 0x260]
call fcn.00404d90
lea eax, [ebp - 8]
call fcn.00404d90
ret

Function at 0x4adf6c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405240
mov eax, dword [ebp - 8]
call fcn.00405240
xor eax, eax
push ebp
push 0x4ae050
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004adf00
test al, al
je 0x4ae02d
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040a3b0
mov eax, dword [ebp - 0x10]
call fcn.00409f90
mov byte [ebp - 9], 0
mov edi, 0xb
push 0
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
mov eax, dword [ebp - 4]
call fcn.00405250
mov ebx, eax
push ebx
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ae00a
push 0
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
push ebx
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4ae01e
mov byte [ebp - 9], 1
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004adf00
jmp 0x4ae02d
mov edx, 0x12c
mov eax, esi
call fcn.004aa050
dec edi
jne 0x4adfce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae057
lea eax, [ebp - 0x10]
call fcn.00404d90
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404db4
ret
Function at 0x4ae064
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405240
mov eax, dword [ebp - 8]
call fcn.00405240
xor eax, eax
push ebp
push 0x4ae126
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004adf00
test al, al
je 0x4ae10b
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0040a3b0
mov eax, dword [ebp - 0xc]
call fcn.00409f90
push 0x64
mov ecx, 0xa
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004ae138
xor ebx, ebx
mov edi, 0xb
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
mov eax, dword [ebp - 4]
call fcn.00405250
push eax
call sub.kernel32.dll_MoveFileA
test eax, eax
je 0x4ae0fc
mov bl, 1
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004adf00
jmp 0x4ae10b
mov edx, 0x12c
mov eax, esi
call fcn.004aa050
dec edi
jne 0x4ae0d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae12d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404db4
ret

Function at 0x4ae138
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405240
xor eax, eax
push ebp
push 0x4ae1b1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409f5c
test al, al
jne 0x4ae170
mov bl, 1
jmp 0x4ae19b
dec esi
test esi, esi
jl 0x4ae19b
inc esi
mov eax, dword [ebp - 4]
call fcn.00405250
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4ae19b
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.004aa050
dec esi
jne 0x4ae176
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae1b8
lea eax, [ebp - 4]
call fcn.00404d90
ret
Function at 0x4ae1c4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405240
lea eax, [ebp - 0x168]
mov edx, dword [0x408470]
call fcn.004057c8
xor eax, eax
push ebp
push 0x4ae424
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418cd4]
call fcn.00403f50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ae3db
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 8]
call fcn.0040eb50
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 8]
call fcn.00404e28
lea eax, [ebp - 0x170]
mov ecx, 0x4ae440
mov edx, dword [ebp - 8]
call fcn.0040509c
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.0040a1c8
mov ebx, eax
test ebx, ebx
jne 0x4ae384
test byte [ebp - 0x160], 0x10
jne 0x4ae2fa
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x15c]
call fcn.004091f0
mov edx, dword [ebp - 0x174]
mov eax, 0x4ae44c
call fcn.00405394
test eax, eax
jg 0x4ae340
push 0x64
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.0040509c
mov edx, dword [ebp - 0x178]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004ae138
mov eax, dword [0x4da5d4]
mov eax, dword [eax]
call fcn.00463f2c
jmp 0x4ae340
mov eax, dword [ebp - 0x15c]
mov edx, 0x4ae460
call fcn.0040519c
je 0x4ae340
mov eax, dword [ebp - 0x15c]
mov edx, 0x4ae46c
call fcn.0040519c
je 0x4ae340
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.0040509c
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 8]
push dword [ebp - 0x15c]
push 0x4ae478
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00405110
mov eax, dword [ebp - 0x180]
call fcn.00405250
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x168]
call fcn.0040a218
mov ebx, eax
test ebx, ebx
je 0x4ae295
lea eax, [ebp - 0x168]
call fcn.0040a23c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4ae3c3
inc ebx
xor esi, esi
lea ecx, [ebp - 0x184]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 4]
call fcn.004ae1c4
inc esi
dec ebx
jne 0x4ae3a1
mov eax, dword [ebp - 8]
call fcn.00405250
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ae3e5
lea eax, [ebp - 0x10]
call fcn.0040fbd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae42b
lea eax, [ebp - 0x184]
mov edx, 7
call fcn.00404db4
lea eax, [ebp - 0x168]
mov edx, dword [0x408470]
call fcn.00405898
lea eax, [ebp - 8]
call fcn.00404d90
ret
Function at 0x4afb28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x4d965c]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4d965c]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4d965c]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4d965c]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x4d91e0]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4afb53
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x415b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x415c64
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00417ae0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4b4e84
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x415c70
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x415c60
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x415c60
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x415cb0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x415c22
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x415c22
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x415c22
mov eax, esi
jmp 0x415c22
mov esp, ebx
jmp 0x415c64

Function at 0x417e60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x417e90
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x417eb8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41f2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b0b1c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x4b0b1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4a826a
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41f388
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b2cd9
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a8265
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4a8265
mov dword [esp], ebx
call sym._fputs
jmp 0x41f34c
Function at 0x402ca5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402cb4
pop dword [ebp - 0x24]
mov eax, 0x402cb4
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x8484fed5
add dword [ebp - 0x34], 0xc9cd4676
mov dword [ebp - 0x30], 0x5d4ee945
add dword [ebp - 0x30], 0xd4e46300
mov dword [ebp - 0x2c], 0x622ede9d
add dword [ebp - 0x2c], 0xea1d6591
mov dword [ebp - 0x28], 0x9f80085f
sub dword [ebp - 0x28], 0x9f80085f
lea eax, [ebp - 0x34]
push eax
mov eax, 0x3ed2be6c
sub eax, 0x3e924d28
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x3f50f9be
add dword [ebp - 0x34], 0x35216f98
mov dword [ebp - 0x30], 0x27ccee69
sub dword [ebp - 0x30], 0xe6608cf4
mov dword [ebp - 0x2c], 0xd5cb3a81
sub dword [ebp - 0x2c], 0x725bce15
mov dword [ebp - 0x28], 0x521ff8e1
add dword [ebp - 0x28], 0xade0071f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x891974e2
add eax, 0x7726fc2e
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3e157
push 0
call eax
mov ecx, 0xb11c49ce
sub ecx, 0xb11be55c
xor ebx, ebx
add ebx, eax
mov edi, 0x956f61eb
sub edi, 0x952c01eb
add edi, dword [ebp - 0x24]
mov edx, 0x4f88f924
sub edx, 0xba27526e
xor dword [ebp - 0x10], 0xd4899521
mov esi, dword [edi]
xor dword [ebp - 0x20], 0x2ada6768
xor esi, edx
xor dword [ebp - 0x20], edx
mov dword [ebx], esi
sub dword [ebp - 8], 0x7976f042
add ebx, 0xcde104b7
sub ebx, 0xcde104b3
add edi, 0x836e39db
sub edi, 0x836e39d7
loop 0x402dd3
add eax, 0x1849b
xor ebx, ebx
add ebx, eax
add eax, 0x51ad108b
sub eax, 0x51ad1086
mov ecx, 0xa7564120
sub ecx, 0xa7164120
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x405a6f
Capabilities:
Get file size
Read file on windows
Write file on windows

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

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x62a57d36
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x10fa7822
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219