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

Disassembly:
push ebp
push esp
pop ebp
nop
push 6
nop
pop ecx
push 0
push 0
dec ecx
jne 0x444400
push ecx
push ebx
push esi
push edi
mov esi, eax
sub eax, eax
push ebp
push 0x444629
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push esi
call sub.kernel32.dll_GlobalFindAtomA
mov word [0x44bd90], ax
cmp word [0x44bd90], 0
jne 0x4445f0
call fcn.00402ab0
mov eax, dword [0x449d04]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
call fcn.00402ca8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov eax, dword [0x449d04]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.0043d6d4
push dword [ebp - 0x18]
push 0x444644
lea eax, [ebp - 4]
push 3
pop edx
push edi
pop edi
call fcn.004043a4
mov eax, dword [ebp - 4]
call fcn.00408198
test al, al
jne 0x44449f
lea eax, [ebp - 4]
mov edx, dword [0x44a050]
mov edx, dword [edx]
call fcn.004040bc
lea edx, [ebp - 0xc]
mov eax, dword [0x44a11c]
mov eax, dword [eax]
call fcn.004080b0
mov eax, dword [ebp - 0xc]
call fcn.004042e4
cmp eax, 0x13
jle 0x4444c8
lea edx, [ebp - 0xc]
mov eax, 0x444650
call fcn.0043e5bc
mov al, byte [0x44465c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x444668
mov edx, 0x444678
mov eax, dword [ebp - 0xc]
call fcn.0040cbc0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004040bc
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404330
push 0
mov eax, dword [ebp - 8]
call fcn.004044e4
push eax
pop edi
push edi
mov eax, dword [0x44a11c]
mov eax, dword [eax]
call fcn.004044e4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4445b8
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0043fa6c
push esi
call sub.kernel32.dll_GlobalAddAtomA
mov word [0x44bd90], ax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040807c
mov eax, dword [ebp - 0x20]
call fcn.004044e4
push eax
mov eax, edi
xor edx, edx
pop ecx
call fcn.0043eb08
test al, al
je 0x444580
nop
nop
push 1
pop ebx
lea edx, [ebp - 0x24]
mov eax, 0x444688
call fcn.0043e5bc
mov eax, dword [ebp - 0x24]
call fcn.0043e750
call fcn.00403e90
jmp 0x444601
lea edx, [ebp - 0x28]
mov eax, 0x4446a4
call fcn.0043e5bc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
call fcn.0043e3a8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.004042ec
mov eax, dword [ebp - 0x28]
call fcn.0043e750
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x444601
lea edx, [ebp - 0x30]
mov eax, 0x4446bc
call fcn.0043e5bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
call fcn.0043e3a8
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004042ec
mov eax, dword [ebp - 0x30]
call fcn.0043e750
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x444601
mov ax, word [0x44bd90]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
mov ebx, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444630
lea eax, [ebp - 0x34]
push 9
pop edx
pushal
popal
call fcn.00404048
lea eax, [ebp - 0xc]
push 3
pop edx
nop
nop
call fcn.00404048
ret
Function at 0xa37b80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa37bbf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa50131
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a4fdae

Function at 0xa567d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a5664b

Function at 0x4ca278
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
pop ecx
push esi
mov edx, dword [esp]
add esp, 4
call fcn.004ca2b3
sub esi, esi
xor dword [edi], ecx
sub edx, 0x9e2c3710
inc edi
add edx, 0x4f167fe5
cmp edi, eax
jne fcn.004ca278
or edx, esi
sub esi, edx
sub edx, 0x20514abc
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x40ed52
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x40eae0
call fcn.0040ed79
xor dword [ebx], edx
sub esp, 4
mov dword [esp], esi
mov edi, dword [esp]
add esp, 4
or esi, esi
inc ebx
dec edi
cmp ebx, ecx
jne fcn.0040ed52
add esi, 0x54fbf803
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3f
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x7b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xbf
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x29
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x76
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x86
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb4
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x57
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd6
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x63
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x2b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf1
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x62
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4057b8
Capabilities:
Parse pe header

Disassembly:
jmp 0x44095f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44099e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44099e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44099e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44099e
cmp dword [ecx + 0x74], 0xe
jbe 0x44099e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406582
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x4133a0
sub esp, 0x3c
mov eax, dword [0x504c34]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x413543
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413411
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0040549d
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4134f1
cmp dword [esp + 0x54], 3
jbe 0x4134f1
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov edi, edx
mov ebp, edx
xor edi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae eax, ebx
shr ebp, 2
xor esi, esi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x413499
mov ebx, eax
nop dword [eax]
imul ecx, dword [ebx + esi*4], 0x5bd1e991
inc esi
imul edi, edi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor edi, ecx
cmp esi, ebp
jl 0x413470
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and edx, 3
lea esi, [eax + ebp*4]
xor ecx, ecx
sub edx, 1
je 0x4134c0
sub edx, 1
je 0x4134b7
sub edx, 1
jne 0x4134cd
movsx ecx, byte [esi + 2]
shl ecx, 0x10
movsx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4134e9
cmp ecx, dword [esp + 0x54]
je 0x41355c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x413534
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x413526
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4133f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403044
add esp, 0x3c
ret
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x413543
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4135a5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
add esp, 8
jmp 0x413543
call fcn.004047b9
int3
Function at 0x4912a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x504c34]
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.00405e57
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4912e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x491441
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fab
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 + 0x5088c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x5088c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49143a
cmp eax, dword [edi + ecx + 0x24]
jne 0x49143a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49143a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x49143a
jg 0x4913b0
test eax, eax
jb 0x49143a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49143a
jl 0x4913ca
cmp dword [ebp - 0x1008], eax
ja 0x49143a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4913e8
test ebx, ebx
je 0x491421
cmp ecx, edi
jae 0x491421
mov al, byte [ecx]
cmp al, 0xd
jne 0x491402
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49140e
cmp byte [ecx + 1], 0xa
jne 0x49140e
inc ecx
jmp 0x49140e
movzx eax, al
movsx eax, byte [eax + 0x504f68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4913e8
cmp edx, ebx
jne 0x4913e8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49143f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x491b80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5088c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x491bc0
cmp byte [ebx], 0xa
jne 0x491bc0
or byte [eax + edi + 0x28], 4
jmp 0x491bc5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x491cc3
mov al, byte [edx]
cmp al, 0x1a
je 0x491ca5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x491bf4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x491c19
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x491c23
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x491bd6
jmp 0x491cc3
push 0
lea eax, [ebp - 0xc]
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 0x491ca0
cmp dword [ebp - 0xc], 0
je 0x491ca0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5088c0]
test byte [eax + edi + 0x28], 0x48
je 0x491c7a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x491c65
mov byte [esi], dl
jmp 0x491c76
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5088c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x491cc3
cmp byte [ebp - 1], 0xa
jne 0x491c89
cmp esi, ebx
jne 0x491c89
mov byte [esi], 0xa
jmp 0x491cc2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x491cc3
mov byte [esi], 0xd
jmp 0x491cc2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5088c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491cbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491cc3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x491d1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5088c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x491d62
cmp word [esi], dx
jne 0x491d62
or byte [edi + eax + 0x28], 4
jmp 0x491d67
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x491eba
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x491e9a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491da9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491ddf
cmp eax, edx
jae 0x491deb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x491d81
jmp 0x491eba
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491e96
cmp dword [ebp - 0x14], 0
je 0x491e96
mov eax, dword [ebx*4 + 0x5088c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x491e6e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x491e37
mov word [esi], cx
jmp 0x491e6a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5088c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5088c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5088c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491eba
pop ebx
cmp word [ebp - 4], bx
jne 0x491e7f
cmp esi, dword [ebp + 0xc]
jne 0x491e7f
mov word [esi], bx
jmp 0x491eb7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491eba
push 0xd
jmp 0x491eb3
mov ecx, dword [ebx*4 + 0x5088c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491eb1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491eba
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4995f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x504c34]
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 0x49963c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499ab3
test al, al
jne 0x499636
sub edx, 2
cmp edx, edi
jne 0x49961c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49965e
lea eax, [edi + 2]
cmp edx, eax
je 0x49965e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004991ea
add esp, 0x10
jmp 0x499758
push esi
lea ecx, [ebp - 0x255]
call fcn.00499ab3
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 0x4996a1
push dword [ebp - 0x25c]
jmp 0x49964e
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 0x4996de
cmp word [ebp - 0x226], 0
je 0x4996ff
cmp word [ebp - 0x226], ax
jne 0x4996de
cmp word [ebp - 0x224], 0
je 0x4996ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004991ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49974b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4996b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499733
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499758
push 0x498bd2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405542
add esp, 0x10
jmp 0x499728
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.00403044
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x417b50
Capabilities:
Copy file
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x417c23
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x2b64cc4], 0x319
jne 0x417c0b
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push 0x401410
push 0x401430
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004171af
add ebx, 8
dec dword [ebp - 0xc]
jne 0x417b6b
pop edi
pop ebx
pop esi
leave
ret 4