joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce04a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0xffc6d4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4ce0ab
push esi
push dword [0xffc6d0]
push 8
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0xffc6d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0xffc6cc]
jmp 0x4ce09b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4ce099
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4ce089
push edi
push 0x4cdfe8
call fcn.0055a801
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4ce0b5
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4ce0cb
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0xffc6d0]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4ce104
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0xf81440]
mov dword [0xffc6d4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xffc6d4]
call ebx
mov esi, dword [0xffc6d0]
lea eax, [edi + esi]
push eax
push dword [0xffc6d4]
mov dword [0xffc6d0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0xffc6d4]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x4ce143
test ebx, ebx
je 0x4ce164
push 0x14
push 0xffc6cc
call fcn.004ce9bf
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x4ce164
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4ceac0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x4ceaf9
push ecx
push dword [0xffccb4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4ceb08
push ecx
push 0
push dword [0xffccb4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004ceef0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4ceb30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x4cebf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret
Function at 0x4cecf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4ced0e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x4ced32
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4ced4d
cmp edx, 0x100000
jle 0x4ced60
cmp ecx, 0x100000
jge 0x4ced47
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0xffccb4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x4ced80
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x4ceea0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4ceec7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4ceec7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4ceed0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x4cef30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x4cf0c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cdf8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x4fe480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4fe4bd
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0xf7d2c8]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x4fe4a0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x4fe56c
sub ecx, 1
je 0x4fe550
sub ecx, 1
je 0x4fe528
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x55a801
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xffc744], 0
push ebx
push esi
mov esi, 0xffc74c
jne 0x55a82d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0xffc764], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xffc744], 1
push dword [0xffc764]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x55a8ca
push 0x14
push 8
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x55a8f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xffc748]
test eax, eax
je 0x55a86f
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0xffc748], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x55a8f9
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0xffc764]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x55a8f4
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x55b050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55b07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55b07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x572fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xf7c410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5d5f38
push esi
call fcn.0045c399
pop ecx
pop ecx
test eax, eax
jne 0x572fe7
xor al, al
jmp 0x573064
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00572c4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x573021
push dword [ebp - 0x210]
call fcn.0055b72e
xor al, al
jmp 0x573062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x573027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x573047
push edx
call fcn.00572ef0
pop ecx
test al, al
je 0x573012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x573055
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055b72e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045030f
leave
ret
Function at 0x574e11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055af10
mov eax, dword [0xf7c410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004626e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x574e53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x574faf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055b1a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xf82820]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004653b8
mov ecx, dword [esi*4 + 0xf82820]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x574fa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x574fa8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x574fa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004653b8
add esp, 0x14
test edx, edx
jl 0x574fa8
jg 0x574f1e
test eax, eax
jb 0x574fa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x574fa8
jl 0x574f38
cmp dword [ebp - 0x1008], eax
ja 0x574fa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x574f56
test ebx, ebx
je 0x574f8f
cmp ecx, edi
jae 0x574f8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x574f70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x574f7c
cmp byte [ecx + 1], 0xa
jne 0x574f7c
inc ecx
jmp 0x574f7c
movzx eax, al
movsx eax, byte [eax + 0xf7cb68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x574f56
cmp edx, ebx
jne 0x574f56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x574fad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045030f
leave
ret
Function at 0x58ee80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf7c410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x58eec3
call fcn.00456cbf
mov dword [eax], 0xf
call fcn.00456cd2
mov dword [eax], 0xd
call fcn.0045568d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045030f
leave
ret
test eax, eax
jne 0x58eeca
inc eax
jmp 0x58eeb7
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x58eeb5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x58eeb7

Function at 0x59259f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0xf81440]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xffcb94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xffcb98], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00595559
mov dword [esi + 0x58], 0x593582
mov eax, esi
mov dword [esi + 0x5c], 0x5935ce
mov dword [esi + 0x10], fcn.005930ba
mov dword [esi + 0x30], 0x592e95
mov dword [esi + 0x64], 0x593663
mov dword [esi + 0x60], 0x593617
mov dword [esi + 0x34], 0x592960
mov dword [esi + 0x24], 0x592937
mov dword [esi + 0x28], 0x59290c
mov dword [esi + 0x2c], 0x592860
mov dword [esi + 0x44], 0x593352
mov dword [esi + 0x68], 0x592660
mov dword [esi + 0x6c], 0x593865
pop esi
ret 4
Function at 0x4012c0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 1
push 0x104
xor edi, edi
call fcn.00405b57
mov esi, eax
add esp, 8
test esi, esi
je 0x401306
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
mov edi, eax
call fcn.004059f3
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x401310
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x40fa80]
push esi
xor esi, esi
push eax
push esi
push 0x40c03c
call fcn.004012c0
mov eax, dword [0x40fa80]
add esp, 0xc
cmp byte [eax], 0
je 0x40135f
push eax
call fcn.00405c08
mov ecx, dword [0x40fa80]
add esp, 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40135f
mov edx, dword [0x40fa80]
push edx
call fcn.00401000
add esp, 4
mov eax, esi
pop esi
ret
mov eax, 4
pop esi
ret

Function at 0x401370
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x10
push ebx
push ebp
push 1
push 0x140
call fcn.00405b57
mov ebx, eax
push 1
push 0x104
mov dword [esp + 0x18], ebx
call fcn.00405b57
add esp, 0x10
mov ebp, eax
test ebx, ebx
je 0x401494
test ebp, ebp
je 0x401494
mov eax, dword [esp + 0x1c]
push esi
mov esi, ebp
sub esi, eax
mov dword [esp + 0x18], esi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4013b5
push edi
push ebp
call fcn.00401000
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
add ecx, ebp
push ebx
mov dword [esp + 0x1c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40c048]
push ebp
mov dword [edi - 1], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x401474
add ebx, 0x2c
mov edi, 0x40c044
mov esi, ebx
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40144d
mov edi, 0x40c040
mov esi, ebx
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40144d
mov edx, dword [esp + 0x18]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40142a
mov ecx, dword [esp + 0x10]
push ebp
test byte [ecx], 0x10
je 0x401445
call fcn.00401370
jmp 0x40144a
call fcn.00405c08
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4013fe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
pop edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401479
push ebp
call fcn.00401040
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
push ebp
call fcn.004059f3
push ebx
call fcn.004059f3
add esp, 8
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401e90
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
pop esi
neg eax
sbb eax, eax
add eax, 0x40000002
ret 0xc
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x401ed9
mov eax, 0x40000001
pop esi
ret 0xc
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000002
ret 0xc

Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
pop esi
neg eax
sbb eax, eax
add eax, 0x40000004
ret 0xc
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000004
ret 0xc
Function at 0x407edd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f6b0
cmp edx, dword [eax]
je 0x407eff
add eax, 8
inc ecx
cmp eax, 0x40f740
jl 0x407ef0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f6b0]
jne 0x40802d
mov eax, dword [0x40faf8]
cmp eax, 1
je 0x408007
test eax, eax
jne 0x407f30
cmp dword [0x40d474], 1
je 0x408007
cmp edx, 0xfc
je 0x40802d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407f67
lea eax, [ebp - 0x1a4]
push 0x40b7ac
push eax
call fcn.00409930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407faa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b7a8
push edi
call fcn.00409b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x40b78c
push eax
call fcn.00409930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409940
lea eax, [ebp - 0xa0]
push 0x40b788
push eax
call fcn.00409940
push dword [esi + 0x40f6b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x40b760
push eax
call fcn.00409a9b
add esp, 0x2c
pop edi
jmp 0x40802d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f6b4]
push 0
push eax
push dword [esi]
call fcn.00409a20
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]
pop esi
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5eb8d7
Capabilities:
Encode data using xor

Disassembly:
dec ebp
les eax, [ebx]
mov eax, dword [0x39df0d33]
mov edx, 0xfdf26746
add edi, ebx
inc esi
mov eax, 0x47ad41e6
sub bl, 1
xor edi, esp
inc ebx
jl 0x5eb918
or eax, 0xf974b8df
fimul word [esp + edi*4]
mov dh, 0xde
cmp dword [ebx], esi
js 0x5eb8f6
xor dword [edx + 0x7cb2d74d], edi
xlatb
mov dl, 0x7c
int1
pop ecx
jns 0x5eb938
and byte [esi - 0x44], 0x46
add esi, 0xb60d3339
jbe 0x5eb94c
cld
push esi
test byte [ebx], dh
or eax, 0x92bf0cdf
fidivr word [ecx]
xor ebp, dword [eax]
add byte [0x39567946], al
mov edi, 0x3339de92
sub byte [eax], al
add eax, 0x39567946
inc esi
jns 0x5eb971
cmp dword [ebx], esi
or eax, 0x78ef7656
xor ecx, dword [0x78ef7656]
jbe 0x5eb910
js 0x5eb941
push ds
xor eax, 0xb2cf4632
jl 0x5eb91f
int1
mov al, 0x94
cli
push edi
pop esi
test dword [eax + 0x58], 0xf54eb76
invalid
mov esi, 0x4d776126
pop ebp
ja 0x5eb8c8
or al, 0xec
in al, dx
insd dword es:[edi], dx
pop esp
mov esp, 0x95b5ddcd
add bl, bh
cmp dword [edx + 0x240633ac], esi
adc ebx, edi
or al, 0xbf
mov dl, 0xac
xor eax, dword [esi]
and al, 0x13
fisttp word [edi + edi*4]
dec ebp
fistp qword [ecx]
xor eax, dword [eax + 0x1e46b62d]
mov cl, 0x39
inc esi
adc dword [ecx + 0x560d3339], 0xaeecef76
shr dword [ebp - 0xa], 1
insd dword es:[edi], dx
mov esp, 0xb5ddcdbc
adc byte [0x46c439df], cl
int 0xdd
mov ch, 0x10
or eax, 0x46c439df
dec ecx
div byte [esi + 0x53]
mov esp, 0xeeb98ece
dec esp
les eax, [ebp - 0x4a]
inc esi
push ds
mov cl, 0x39
xor ecx, dword [0x60bef4df]
bound esi, qword [edi + 0x4d]
add bl, bh
cmp dword [ebx], esi
in al, dx
sal dword [ecx], cl
fcmovnb st(0), st(0)
push ecx
mov esp, 0x39c5daf6
xor ecx, dword [0xdeb7682]
fistp qword [ecx]
xor edi, dword [eax + 3]
mov eax, dword [0x39b2c3f8]