joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de233
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x539383
call fcn.00509264
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4de2cd
lea eax, [ebp - 0xa8]
push eax
call fcn.004dde48
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049bce3
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004a1107
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004d5267
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049b89b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00498936
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0049818e
test bl, bl
je 0x4de30a
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.004de379
test al, al
je 0x4de31d
push 0x546e4c
jmp 0x4de322
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.005085a0
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00509213
ret 4

Function at 0x4de8aa
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4de8d6
xor eax, eax
jmp 0x4de953
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00508bf0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4de8d2
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.005085a0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00504075
mov esp, ebp
pop ebp
ret
Function at 0x4dea50
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x539757
call fcn.00509264
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4deb0d
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4deae5
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004de62f
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049bce3
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004a1107
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004d5267
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049b89b
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00498936
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0049818e
test bl, bl
je 0x4deb49
call fcn.004de8aa
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00509213
ret 4

Function at 0x4e07c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bdfeb

Function at 0x4e07cd
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_324
Function at 0x4e1766
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x770], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x76c], ecx
mov dword [ebx + 0x774], eax
test ecx, ecx
jne 0x4e17ce
call fcn.004e1549
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4e17ce
call fcn.004e1549
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.004e1549
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x76c]
test ecx, ecx
jne 0x4e17eb
mov ecx, edi
jmp 0x4e17f2
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049bce3
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00498042
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a1107
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4e1835
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4e1830
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504075
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4e7557
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x4e75a5
cmp edi, 0x28
jbe 0x4e759f
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x4e75a5
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x4e75b1
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00508bf0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049808b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504075
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e78ab
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x539655
call fcn.00509264
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4e79bb
lea eax, [ebp - 0xa4]
push eax
call fcn.004e7041
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049bce3
push eax
mov ecx, ebx
call fcn.004a1107
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e79bb
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004d5267
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049b89b
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.004e7de6
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004e73a5
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.00498207
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0049818e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.00509213
ret 4
Function at 0x4ec980
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ec990

Function at 0x4ecc10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4ecc1c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004ecc30
Function at 0x527469
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x591700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005139b0
mov dword [ebp - 0x14], eax
cmp dword [0x5981b4], esi
jne 0x52755c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5274e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52763c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x52763c
push 0x562e80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52763c
push eax
call ebx
push 0x562e8c
push edi
mov dword [0x5981b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x562e9c
push edi
mov dword [0x5981b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5981bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5981c4], eax
test eax, eax
je 0x527559
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5981c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x527581
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x527574
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x527596
push 4
pop eax
jmp 0x52763e
cmp dword [ebp - 0x14], esi
je 0x527596
push dword [0x5981b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52757b
mov eax, dword [0x5981c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5275f4
cmp dword [0x5981c4], edi
je 0x5275f4
push eax
call ebx
push dword [0x5981c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5275f4
test eax, eax
je 0x5275f4
call ecx
test eax, eax
je 0x5275e9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5275e9
test byte [ebp - 8], 1
jne 0x5275f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x527624
mov eax, dword [0x5981b8]
cmp eax, edi
je 0x527621
push eax
call ebx
test eax, eax
je 0x527621
call eax
mov esi, eax
test esi, esi
je 0x527621
mov eax, dword [0x5981bc]
cmp eax, edi
je 0x527621
push eax
call ebx
test eax, eax
je 0x527621
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5981b4]
call ebx
test eax, eax
je 0x52763c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x52763e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504075
mov esp, ebp
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

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

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x139465ee
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x66474542
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x43539c
push dword [ebp + 8]
xor esi, esi
call fcn.00401a73
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40112a
push 2
push 0xffffffffffffffff
push 0xffffffffffffffd8
push edi
call fcn.00419e87
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push 1
push eax
call fcn.00419ae4
add esp, 0x20
cmp dword [ebp - 4], 0x534e4553
jne 0x401122
push dword [ebp + 8]
push str.error__file_already_encrypted:__s_n
call fcn.0040192c
pop ecx
pop ecx
mov esi, 0xa000000b
push edi
call fcn.004198af
jmp 0x40113d
push dword [ebp + 8]
push str.error__open_file_failed:__s_n
call fcn.0040192c
pop ecx
mov esi, 0xa0008009
pop ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401146
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x442344]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push esi
call fcn.004010c8
pop ecx
test eax, eax
jne 0x401334
push edi
push 0x43539c
push esi
call fcn.00401a73
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x401197
mov eax, 0xa0008009
jmp 0x401333
push ebp
push 2
push 0
push 0
push edi
call fcn.00419e87
push edi
call fcn.0041a4b8
mov ebp, eax
mov dword [esp + 0x24], edx
xor eax, eax
mov dword [esp + 0x28], ebp
push eax
push eax
push eax
push edi
call fcn.00419e87
add esp, 0x24
cmp dword [esp + 0x10], 0
jg 0x401207
jl 0x4011d0
cmp ebp, 4
ja 0x401207
push edi
call fcn.004198af
push 1
push ebx
push esi
call fcn.00403269
add esp, 0x10
test eax, eax
jne 0x4011f8
push esi
push str.warning:_file__s_is_not_encrypted_because_it_is_too_small_n
call fcn.0040192c
pop ecx
pop ecx
jmp 0x401330
push ebx
push str.error:_write_file_failed___s_n
call fcn.0040192c
pop ecx
pop ecx
jmp 0x40122e
push 0x435444
push ebx
call fcn.00401a73
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x401238
push edi
call fcn.004198af
push ebx
push str.error:_write_file_failed___s_n
call fcn.0040192c
add esp, 0xc
mov eax, 0xa000000d
jmp 0x401332
mov edx, dword [esp + 0x160]
xor ecx, ecx
mov al, byte [edx + ecx + 0xc]
xor al, 0xcc
mov byte [esp + ecx + 0x148], al
inc ecx
cmp ecx, 0x10
jl 0x401241
push 0x10
lea eax, [esp + 0x14c]
mov dword [esp + 0x1c], 0x534e4553
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00416200
mov esi, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ecx, esi
sub ecx, 1
mov edx, 0x1000
mov eax, ebx
mov dword [esp + 0x2c], edx
push 0
push edx
sbb eax, 0
push eax
push ecx
call fcn.00415060
add eax, 1
mov dword [esp + 0x38], esi
push 0x1000
adc edx, 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ebx
call fcn.0041ec48
push edi
mov ebx, eax
call fcn.004198df
pop ecx
pop ecx
jmp 0x401308
push edi
push 0x1000
push 1
push ebx
call fcn.00419ae4
mov esi, eax
lea eax, [esp + 0x158]
push 0x10
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00403562
push esi
push ebx
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.004035bb
push ebp
push esi
push 1
push ebx
call fcn.0041a7be
push edi
call fcn.004198df
add esp, 0x40
test eax, eax
je 0x4012c4
push ebp
push 0x28
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0041a7be
push ebx
call fcn.0041ec2d
push ebp
call fcn.004198af
push edi
call fcn.004198af
add esp, 0x1c
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x150]
pop esi
pop ebx
xor ecx, esp
call fcn.00415048
add esp, 0x14c
ret
Function at 0x401a73
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x442344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push esi
call fcn.0041fad0
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, 0xfde9
push 0
push ebx
call esi
add eax, eax
cmp eax, 0x400
jae 0x401b48
xor ecx, ecx
mov word [ebp + eax - 0x424], cx
lea eax, [ebp - 0x24]
push 0x10
push eax
push edi
call fcn.0041fad0
pop ecx
push eax
push edi
push 0
push ebx
call esi
pop edi
add eax, eax
pop esi
pop ebx
cmp eax, 0x20
jae 0x401b48
xor ecx, ecx
mov word [ebp + eax - 0x24], cx
lea eax, [ebp - 0x24]
push 0x77
push eax
call fcn.004170c3
pop ecx
pop ecx
test eax, eax
je 0x401b28
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401b28
test al, 1
je 0x401b28
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0041fc11
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415048
mov esp, ebp
pop ebp
ret
call fcn.00415497
int3
Function at 0x402acc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x442344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
mov esi, 0x208
push esi
push 0
push eax
call fcn.00416780
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00416780
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00422d43
lea eax, [ebp - 0x414]
push 0x4355fc
push eax
call fcn.00422cd2
add esp, 0x28
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402b4b
xor eax, eax
jmp 0x402c97
mov esi, dword [ebp - 0xa68]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0xa38]
push 0x435608
push eax
call fcn.00422d03
pop ecx
pop ecx
test eax, eax
je 0x402c55
lea eax, [ebp - 0xa38]
push 0x43560c
push eax
call fcn.00422d03
pop ecx
pop ecx
test eax, eax
je 0x402c55
test byte [ebp - 0xa64], 0x10
push edi
je 0x402bfe
lea eax, [ebp - 0x814]
push eax
call fcn.00422d43
push edi
call fcn.0041fad0
add esp, 0xc
cmp word [edi + eax*2 - 2], 0x5c
je 0x402bd6
push edi
call fcn.0041fad0
pop ecx
cmp word [edi + eax*2 - 2], 0x2f
je 0x402bd6
lea eax, [ebp - 0x814]
push 0x4355f8
push eax
call fcn.00422cd2
pop ecx
pop ecx
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00422cd2
lea eax, [ebp - 0x814]
push 1
push eax
call fcn.00402acc
add esp, 0x10
mov esi, eax
jmp 0x402c55
lea eax, [ebp - 0x20c]
push eax
call fcn.00422d43
lea eax, [ebp - 0x20c]
push 0x4355f8
push eax
call fcn.00422cd2
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00422cd2
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea eax, [ebp - 0xa64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x402c8a
cmp dword [ebp + 0xc], 0
je 0x402c87
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
jmp 0x402c8a
xor esi, esi
inc esi
test ebx, ebx
je 0x402c95
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415048
mov esp, ebp
pop ebp
ret