joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406aa0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406ba5
mov eax, 0x42e840
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406ae5
sub eax, edx
sar eax, 1
je 0x406ba5
cmp dword [0x436f90], 3
jne 0x406b2c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e7e0
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004157b3
add esp, 0xc
jmp 0x406b3c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e840
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004157b3
push 0x42e7fc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004159c6
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406ba5
push eax
push 1
push 0x200
push esi
call fcn.00415fd3
mov edx, dword [esp + 0x14]
push edx
call fcn.00416067
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret

Function at 0x406bc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406c8f
mov eax, 0x42eb8c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406c05
sub eax, edx
sar eax, 1
je 0x406c8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42eb8c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004157b3
push 0x42e7fc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004159c6
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406c8f
push eax
push 1
push 0x200
push esi
call fcn.00415fd3
mov eax, dword [esp + 0x14]
push eax
call fcn.00416067
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret
Function at 0x406df0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x406e43
push esi
call edi
cmp eax, 0xffffffff
je 0x406e3e
test al, 1
je 0x406e0e
xor eax, 1
test al, 4
je 0x406e15
xor eax, 4
test al, 2
je 0x406e1c
xor eax, 2
test al, 0x20
je 0x406e23
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x406e43
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret
Function at 0x408d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408d57
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408e34
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4305a8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408d70
pop edi
test edx, edx
je 0x408e5b
jmp 0x408e40
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4305a8]
inc ecx
sub edx, 1
jne 0x408e40
not eax
pop esi
ret

Function at 0x408e60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4305a8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4305a8]
mov dword [edx + 8], ecx
ret

Function at 0x408eb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4305a8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4305a8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4095c0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4095f2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4095e8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x409605
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0041d170
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x409620
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x409653
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40964d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40967f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x409665
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041d170
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x409696
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x409690
cmp byte [esi + 8], 0
je 0x409690
or eax, 0xffffffff
add esp, 8
ret
Function at 0x409730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x409775
cmp byte [esi + 1], 0
je 0x40977d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x409792
cmp byte [esi + 1], 0
je 0x409784
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40979b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40974e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40979b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x4097af
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00415619
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4097cd
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4098e1
jmp 0x4097f0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x409801
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40981a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40983f
cmp byte [esi + 1], 0
je 0x4098e1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x409842
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40986a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409864
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x409890
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40987b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041d170
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4098e1
lea eax, [ebp - 3]
test eax, eax
jl 0x4098cc
dec eax
cmp byte [eax + ebx], 0x50
jne 0x4098bc
cmp byte [eax + ebx + 1], 0x4b
jne 0x4098bc
cmp byte [eax + ebx + 2], 5
jne 0x4098bc
cmp byte [eax + ebx + 3], 6
je 0x4098c2
test eax, eax
jge 0x4098a0
jmp 0x4098cc
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4098e1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4097e4
push ebx
call fcn.004156e3
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40a2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40a2ce
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40a2c2
cmp dword [edi + 0x7c], ebx
je 0x40a2dd
call fcn.0040a6a0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040a020
add esp, 0xc
test eax, eax
je 0x40a304
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00415619
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40a345
push 0x4000
call fcn.00415619
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40a352
push esi
call fcn.004156e3
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40a39a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00409170
test eax, eax
jne 0x40a39a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40a3c4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40a3cd
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x40a407
mov cl, byte [ebp]
cmp cl, bl
je 0x40a407
call fcn.00408e60
add ebp, 1
jne 0x40a3f6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40a800
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x40a8b3
cmp dword [esi + 4], 0xffffffff
jne 0x40a8b3
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a830
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a830
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40a869
cmp ax, 0x2f
je 0x40a869
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40a856
mov eax, dword [0x42e7e0]
mov dword [edi], eax
push 0x20
call fcn.0040b152
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00409900
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x4155bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435c24]
jne 0x4155c5
repz ret
jmp fcn.0041a0eb

Function at 0x423b1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d547
and dword [ebp - 4], 0
cmp dword [0x439fc8], 0
mov ebx, eax
jne 0x423bcb
push 0x42d6e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423c7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d6d8
push edi
call esi
test eax, eax
je 0x423c7c
push eax
call fcn.0041d4d5
mov dword [esp], 0x42d6c8
push edi
mov dword [0x439fc8], eax
call esi
push eax
call fcn.0041d4d5
mov dword [esp], 0x42d6b4
push edi
mov dword [0x439fcc], eax
call esi
push eax
call fcn.0041d4d5
mov dword [esp], 0x42d698
push edi
mov dword [0x439fd0], eax
call esi
push eax
call fcn.0041d4d5
pop ecx
mov dword [0x439fd8], eax
test eax, eax
je 0x423bcb
push 0x42d680
push edi
call esi
push eax
call fcn.0041d4d5
pop ecx
mov dword [0x439fd4], eax
mov eax, dword [0x439fd4]
cmp eax, ebx
je 0x423c23
cmp dword [0x439fd8], ebx
je 0x423c23
push eax
call fcn.0041d550
push dword [0x439fd8]
mov esi, eax
call fcn.0041d550
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423c23
test edi, edi
je 0x423c23
call esi
test eax, eax
je 0x423c1a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423c1a
test byte [ebp - 0xc], 1
jne 0x423c23
or dword [ebp + 0x10], 0x200000
jmp 0x423c5c
mov eax, dword [0x439fcc]
cmp eax, ebx
je 0x423c5c
push eax
call fcn.0041d550
pop ecx
test eax, eax
je 0x423c5c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423c5c
mov eax, dword [0x439fd0]
cmp eax, ebx
je 0x423c5c
push eax
call fcn.0041d550
pop ecx
test eax, eax
je 0x423c5c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439fc8]
call fcn.0041d550
pop ecx
test eax, eax
je 0x423c7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423c7e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x29b53407
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..reloc_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5cff60b7
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406f3d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406d8d
mov dword [esp + 0x14], eax
test bl, 8
je 0x406f7f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46f608], eax
jmp 0x407158
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406f9c
test eax, eax
je 0x4070e3
test bl, 2
je 0x4070eb
push esi
push 0x454270
call fcn.00407398
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406fbf
push str..
push 0x454270
call ebp
jmp 0x406fc5
push esi
call fcn.0040758d
xor eax, eax
cmp word [esi], ax
jne 0x406fd6
cmp word [0x454270], 0x5c
jne 0x406fde
push 0x4098b4
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x454270
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4070c8
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40702c
cmp word [esp + 0x4a], 0
je 0x4070aa
cmp word [esp + 0x4a], ax
jne 0x40702c
cmp word [esp + 0x4c], 0
je 0x4070aa
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00407398
test byte [esp + 0x1c], 0x10
je 0x407053
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4070aa
push ebx
push esi
call fcn.00406f3d
jmp 0x4070aa
push esi
push 0x40a224
call fcn.00406e0b
pop ecx
pop ecx
push edi
push esi
call fcn.00406cda
push esi
test eax, eax
jne 0x4070a3
test edi, edi
je 0x40708f
push 0x40a248
call fcn.00406e0b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040630c
xor eax, eax
push eax
push esi
call fcn.004067fa
jmp 0x4070aa
push str.Delete:
call fcn.00406e0b
inc dword [0x46f608]
pop ecx
pop ecx
jmp 0x4070aa
push 0xfffffffffffffff2
call fcn.0040630c
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40700a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x407157
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x4070eb
push esi
push 0x40a2a0
jmp 0x407141
push esi
call fcn.00406d24
test eax, eax
je 0x407157
push esi
call fcn.00406cab
push esi
push 0x40a2cc
call fcn.00406e0b
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406cda
push esi
test eax, eax
jne 0x407150
test edi, edi
je 0x40713c
push 0x40a2f0
call fcn.00406e0b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.0040630c
xor eax, eax
push eax
push esi
call fcn.004067fa
jmp 0x407157
push str.RMDir:
call fcn.00406e0b
inc dword [0x46f608]
pop ecx
pop ecx
jmp 0x407157
push 0xffffffffffffffe5
call fcn.0040630c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8
Function at 0x402290
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
and ebx, 3
push esi
mov esi, dword [esp + 0x18]
sub ecx, ebx
push edi
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
cmp eax, edi
jae 0x402316
push ebp
xor edx, edx
add eax, 4
mov dx, word [ecx]
add ecx, 4
mov ebp, edx
add ecx, 4
shl ebp, 0x10
or ebp, edx
xor edx, edx
xor ebp, esi
add ecx, 4
mov dword [eax - 4], ebp
mov dx, word [ecx - 8]
mov ebp, edx
add eax, 4
shl ebp, 0x10
or ebp, edx
xor edx, edx
xor ebp, esi
add ecx, 4
mov dword [eax - 4], ebp
mov dx, word [ecx - 8]
mov ebp, edx
add eax, 4
shl ebp, 0x10
or ebp, edx
xor edx, edx
xor ebp, esi
mov dword [eax - 4], ebp
mov dx, word [ecx - 4]
mov ebp, edx
add eax, 4
shl ebp, 0x10
or ebp, edx
xor ebp, esi
cmp eax, edi
mov dword [eax - 4], ebp
jb 0x4022b2
pop ebp
test bl, 1
je 0x402331
xor edx, edx
mov dx, word [ecx]
add ecx, 4
mov edi, edx
shl edi, 0x10
or edi, edx
xor edi, esi
mov dword [eax], edi
add eax, 4
test bl, 2
je 0x402358
xor edx, edx
mov dx, word [ecx]
mov edi, edx
shl edi, 0x10
or edi, edx
xor edx, edx
xor edi, esi
mov dword [eax], edi
mov dx, word [ecx + 4]
mov ecx, edx
shl ecx, 0x10
or ecx, edx
xor ecx, esi
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebx
ret
Function at 0x418b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 0x1f
sar ecx, 5
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
je 0x418c1d
mov ecx, dword [0x55c648]
push ebx
and ecx, 0xff
push ebp
push esi
push edi
shr ecx, 3
mov edi, ecx
mov esi, dword [0x55c668]
sar ecx, 1
mov edx, ecx
and ecx, 1
sar edx, 1
and edx, 1
and edi, 1
neg edx
neg ecx
mov al, byte [0x55c647]
and edx, 0xf
neg edi
and ecx, 0xf0
and edi, 0xf00
or edx, ecx
mov ebx, dword [0x55c66c]
or edi, edx
mov ebp, dword [0x4a8cf8]
mov edx, esi
and eax, 0x3f
and edx, 1
add eax, eax
mov ecx, edx
mov dword [esp + 0x10], eax
neg ecx
or ecx, edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x418bf2
mov ecx, esi
lea eax, [edx*4]
and ecx, 4
xor ebx, ebx
xor eax, ecx
shl eax, 0xf
or eax, esi
sar eax, 1
mov esi, eax
mov edx, esi
and edx, 1
mov ecx, edx
neg ecx
or ecx, edi
mov eax, dword [esp + 0x1c]
mov dword [ebp], ecx
add ebp, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x418bc5
mov eax, dword [esp + 0x14]
mov dword [0x55c668], esi
pop edi
mov dword [0x4a8cf8], ebp
pop esi
mov dword [0x55c66c], ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41be30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x4ba9dc]
sub esp, 8
test eax, eax
push esi
push edi
jne 0x41be89
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
fild qword [esp + 8]
fmul qword [0x425bd8]
fmul qword [0x425bf0]
fsin
fadd qword [0x425be0]
fmul qword [0x425be8]
call fcn.0041d324
mov dword [esi*4 + 0x4bac20], eax
inc esi
cmp esi, 0xb4
jb 0x41be40
mov dword [0x4ba9dc], 1
mov eax, dword [0x4ba9ec]
test eax, eax
jne 0x41beaf
mov eax, 0x4baf01
mov esi, eax
lea edi, [eax - 1]
add eax, 0x1a0
mov ecx, 0x19f
cmp eax, 0x4bc281
rep movsb byte es:[edi], byte [esi]
jl 0x41be97
cmp dword [0x4ba9d4], 0x10
jl 0x41bf77
push ebp
mov ebp, dword [0x4ba9e8]
xor edi, edi
xor esi, esi
mov dl, byte [ebp + 0x48d928]
mov dword [0x4ba9d4], 0
cmp dl, 0xff
jne 0x41bee8
mov dword [0x4ba9ec], 0x100
jmp 0x41bf5a
xor ecx, ecx
xor eax, eax
cmp dl, byte [eax + 0x48d9b8]
je 0x41bf01
add eax, 0xc
inc ecx
cmp eax, 0x258
jb 0x41beec
jmp 0x41bf13
lea eax, [ecx + ecx*2]
shl eax, 2
mov edi, dword [eax + 0x48d9bc]
mov esi, dword [eax + 0x48d9c0]
mov eax, esi
mov ecx, 0x4bb090
shl eax, 4
add eax, esi
lea eax, [eax + eax*2]
lea esi, [edi + eax*4]
shl esi, 4
add esi, 0x48b030
xor eax, eax
mov dl, byte [esi + eax]
neg dl
sbb dl, dl
and edx, 0xff
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jl 0x41bf30
add ecx, 0x1a0
add esi, 0x110
cmp ecx, 0x4bc410
jl 0x41bf2e
mov edi, 0x48d928
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 1]
div ecx
pop ebp
mov dword [0x4ba9e8], edx
mov eax, dword [0x4ba9ec]
test eax, eax
je 0x41bf88
dec eax
mov dword [0x4ba9ec], eax
jmp 0x41bf8e
inc dword [0x4ba9d4]
mov edx, 0x4baf10
mov eax, 0x4bc340
mov edi, eax
mov esi, edx
add eax, 0x140
mov ecx, 0x50
add edx, 0x1a0
cmp eax, 0x4bd240
rep movsd dword es:[edi], dword [esi]
jl 0x41bf98
mov eax, dword [0x4ba9d8]
xor edx, edx
inc eax
mov ecx, 0xb4
div ecx
pop edi
pop esi
mov dword [0x4ba9d8], edx
add esp, 8
ret