joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401630
Capabilities:
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x425008]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
push 0x420b40
push ecx
mov dword [esp + 0x14], edx
call fcn.0040abe2
mov esi, eax
add esp, 8
test esi, esi
jne 0x40167a
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.0040aaf2
push esi
call fcn.00406c4d
push 0
push 0
push esi
mov edi, eax
call fcn.0040aaf2
push edi
call fcn.004030e6
push esi
push edi
push 1
push eax
mov dword [esp + 0x38], eax
call fcn.0040add2
add esp, 0x30
cmp eax, edi
jne 0x4017bb
push esi
call fcn.0040a7d9
push 0x48
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00404790
xorps xmm0, xmm0
mov dword [esp + 0x70], 0x6a09e667
xor ecx, ecx
movaps xmmword [esp + 0x90], xmm0
add esp, 0x10
movaps xmmword [esp + 0x90], xmm0
xor esi, esi
mov dword [esp + 0x50], ecx
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x64], 0xbb67ae85
mov dword [esp + 0x68], 0x3c6ef372
mov dword [esp + 0x6c], 0xa54ff53a
mov dword [esp + 0x70], 0x510e527f
mov dword [esp + 0x74], 0x9b05688c
mov dword [esp + 0x78], 0x1f83d9ab
mov dword [esp + 0x7c], 0x5be0cd19
test edi, edi
je 0x40176d
mov eax, dword [esp + 8]
mov al, byte [esi + eax]
mov byte [esp + ecx + 0x10], al
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
cmp ecx, 0x40
jne 0x401768
lea edx, [esp + 0x10]
mov ecx, edx
call fcn.004017e0
add dword [esp + 0x58], 0x200
adc dword [esp + 0x5c], 0
xor ecx, ecx
mov dword [esp + 0x50], ecx
inc esi
cmp esi, edi
jb 0x401731
lea edx, [esp + 0x80]
lea ecx, [esp + 0x10]
call fcn.00401980
push dword [esp + 8]
call fcn.004030e1
mov esi, dword [esp + 0x10]
add esp, 4
xor edx, edx
nop
movzx ecx, byte [esp + edx + 0x80]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi + edx*2], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov byte [esi + edx*2 + 1], al
inc edx
cmp edx, 0x20
jl 0x401790
mov ecx, dword [esp + 0xac]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
lea esi, [edx + 2]
xor edi, edi
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx eax, byte [esi - 5]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x128], edx
inc edi
cmp edi, 0x10
jb 0x4017f4
lea eax, [ebp - 0xf0]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
ror edx, 0x12
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x401830
mov ebx, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebx + 0x50]
mov edi, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov esi, ebx
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror esi, 0x19
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
ror eax, 0xd
add esi, dword [edx + 0x420b60]
add esi, dword [ebp + edx - 0x128]
mov edx, edi
add esi, dword [ebp - 0x1c]
ror edx, 0x16
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x4018a7
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
add dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Create process on windows
Create process suspended
Create thread
Inject thread
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x425008]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
mov esi, ecx
call fcn.00404790
add esp, 0xc
lea eax, [esp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401da0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
push 4
push 0x3000
push 0x2c
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x401dd3
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2c]
push ecx
push 0x2a
push str.openinputlagpatch.dll
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401df3
lea esi, [eax - 3]
jmp 0x401e5c
push 0
push 0
push dword [esp + 0x14]
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x401e1a
lea esi, [eax - 4]
jmp 0x401e5c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401e50
cmp dword [esp + 0x28], 0
je 0x401e50
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
jmp 0x401e55
mov esi, 0xfffffffb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
lea eax, [esp + 0x14]
push dword [eax]
lea eax, [esp + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004030d3
mov esp, ebp
pop ebp
ret
Function at 0x403bbf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403bfe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403bfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403bfe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403bfe
cmp dword [ecx + 0x74], 0xe
jbe 0x403bfe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4069e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a260
mov eax, dword [0x425008]
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.0040ccee
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x406a25
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x406b81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a1b0
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 + 0x4261c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040cefd
mov ecx, dword [esi*4 + 0x4261c0]
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 0x406b7a
cmp eax, dword [ecx + edi + 0x24]
jne 0x406b7a
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 0x406b7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040cefd
add esp, 0x14
test edx, edx
jl 0x406b7a
jg 0x406af0
test eax, eax
jb 0x406b7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x406b7a
jl 0x406b0a
cmp dword [ebp - 0x1008], eax
ja 0x406b7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x406b28
test ebx, ebx
je 0x406b61
cmp ecx, edi
jae 0x406b61
mov al, byte [ecx]
cmp al, 0xd
jne 0x406b42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x406b4e
cmp byte [ecx + 1], 0xa
jne 0x406b4e
inc ecx
jmp 0x406b4e
movzx eax, al
movsx eax, byte [eax + 0x4251d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x406b28
cmp edx, ebx
jne 0x406b28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x406b7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030d3
leave
ret
Function at 0x40d5a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4261c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d5e3
cmp byte [ebx], 0xa
jne 0x40d5e3
or byte [edi + eax + 0x28], 4
jmp 0x40d5e8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40d6e7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40d6ca
inc eax
cmp dl, 0xd
je 0x40d614
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40d63a
cmp eax, ecx
jae 0x40d648
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40d5fc
jmp 0x40d6e7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d6c5
cmp dword [ebp - 0x10], 0
je 0x40d6c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4261c0]
test byte [eax + edi + 0x28], 0x48
je 0x40d69f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40d68a
mov byte [esi], dl
jmp 0x40d69b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4261c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40d6e7
cmp byte [ebp - 1], 0xa
jne 0x40d6ae
cmp esi, ebx
jne 0x40d6ae
mov byte [esi], 0xa
jmp 0x40d6e6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040cf1b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40d6e7
mov byte [esi], 0xd
jmp 0x40d6e6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4261c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40d6e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40d6e7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40d6f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4261c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d736
cmp word [ebx], dx
jne 0x40d736
or byte [eax + edi + 0x28], 4
jmp 0x40d73b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40d89e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40d87e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40d77c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40d7b2
cmp eax, edx
jae 0x40d7c0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40d757
jmp 0x40d89e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d879
cmp dword [ebp - 0x18], 0
je 0x40d879
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4261c0]
test byte [eax + edi + 0x28], 0x48
je 0x40d84f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40d813
mov word [esi], cx
jmp 0x40d84a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4261c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4261c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4261c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40d89e
pop eax
cmp word [ebp - 4], ax
jne 0x40d85f
cmp esi, ebx
jne 0x40d85f
mov word [esi], ax
jmp 0x40d89b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040cf1b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40d89e
push 0xd
pop eax
jmp 0x40d85a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4261c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40d898
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40d89e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41048f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cbe4
push 0x41cbdc
push str.FlsAlloc
push 0x1f
call fcn.0041036d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4104c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b144]
call esi
jmp 0x4104c9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41050d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cbf4
push 0x41cbec
push str.FlsGetValue
push 0x21
call fcn.0041036d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410544
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41054c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cbfc
push 0x41cbf4
push str.FlsSetValue
push 0x22
call fcn.0041036d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410586
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410cf8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x410d43
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00410e93
test al, al
jne 0x410d3d
sub edx, 2
cmp edx, edi
jne 0x410d23
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x410d65
lea eax, [edi + 2]
cmp edx, eax
je 0x410d65
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00410c44
add esp, 0x10
jmp 0x410e5f
push esi
lea ecx, [ebp - 0x255]
call fcn.00410e93
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410da8
push dword [ebp - 0x25c]
jmp 0x410d55
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x410de5
cmp word [ebp - 0x226], 0
je 0x410e06
cmp word [ebp - 0x226], ax
jne 0x410de5
cmp word [ebp - 0x224], 0
je 0x410e06
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00410c44
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x410e52
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x410dbf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x410e3a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x410e5f
push 0x410a74
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00416e60
add esp, 0x10
jmp 0x410e2f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030d3
leave
ret

Function at 0x41197e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41198f
pop esi
ret
push ebx
push edi
push esi
call fcn.00411947
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040e14f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4119b7
push ebx
push esi
push edi
call fcn.00405c30
add esp, 0xc
push 0
call fcn.0040e115
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x411d87
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004119cc
Function at 0x418515
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418491
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418684
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418684
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x418639
jg 0x418571
test eax, eax
je 0x41862f
push 1
push 0x1000
call fcn.004101f7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418594
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418626
push 0x8000
push ebx
call fcn.0040c7fb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4185bd
jg 0x4185b8
cmp ecx, 0x1000
jb 0x4185bd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416081
add esp, 0x10
cmp eax, 0xffffffff
je 0x418602
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4185b8
jl 0x4185e9
test ecx, ecx
jne 0x4185aa
push dword [ebp - 0xc]
push ebx
call fcn.0040c7fb
push esi
call fcn.0040e115
add esp, 0xc
xor ebx, ebx
jmp 0x418692
cmp byte [edi + 0x24], 0
je 0x418619
cmp dword [edi + 0x20], 5
jne 0x418619
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x418624
mov ebx, dword [edi + 0x18]
jmp 0x418626
xor ebx, ebx
push esi
call fcn.0040e115
pop ecx
jmp 0x418692
test ecx, ecx
jg 0x4185fb
jl 0x418639
test eax, eax
jae 0x4185fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040cf1b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418659
cmp byte [edi + 0x1c], 0
je 0x4185fb
jmp 0x41868a
push ebx
call fcn.0041265f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4185fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418692
cmp byte [edi + 0x1c], 0
je 0x41868f
mov ebx, dword [edi + 0x18]
jmp 0x418692
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040cf1b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a12d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a12d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2e4c6638
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x57514b3d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219