joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae1c
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x42066d
call fcn.00418d44
xor ebx, ebx
cmp byte [0x42b8e8], bl
jne 0x40ae61
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00409ac3
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00409cd9
pop ecx
cmp esi, ebx
je 0x40ae6f
mov al, 1
call fcn.00418e1c
ret 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40ae55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ae80
xor al, al
jmp 0x40ae59
lea ecx, [ebp - 0x50]
call fcn.0040b64d
lea ecx, [ebp - 0x28]
call fcn.00409610
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b723
test al, al
jne 0x40aeaf
push dword [ebp - 0x28]
call fcn.00409cd9
pop ecx
mov al, bl
jmp 0x40ae59
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x40aea2

Function at 0x40b66e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42b8e8], 0
jne 0x40b6a2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409ac3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00409cd9
pop ecx
mov eax, esi
pop esi
jmp 0x40b6b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b6b2
or eax, eax
leave
ret 4

Function at 0x40bba7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bbcd
xor al, al
jmp 0x40bbe2
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x411eb6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x411ed6
xor eax, eax
jmp 0x411feb
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x411ef8
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x411efd
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x411eef
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x411fd4
cmp ecx, 2
jbe 0x411f54
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x411f72
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp - 4]
add dword [ebp - 4], 5
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
cmp dword [ebp + 0x18], 0
je 0x411f7f
add eax, edi
jmp 0x411f81
shr esi, cl
test esi, esi
je 0x411f1a
cmp esi, 4
ja 0x411f72
cmp esi, 3
je 0x411f72
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x411f1a
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x411ee7
sub eax, edi
test esi, esi
je 0x411fb2
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x411fad
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x411fab
add eax, edi
jmp 0x411fad
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x411ee7
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0x14
Function at 0x41235f
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x42ab20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
push eax
mov dword [ebp - 0x368], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41239f
cmp dword [ebp - 0x364], 6
jne 0x41239f
cmp dword [ebp - 0x360], 0
je 0x4123c9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4123c9
push 0xc00
call eax
test eax, eax
jne 0x41245e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41245e
cmp eax, 0x104
ja 0x41245e
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x41240a
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [0x422e88], 0
push esi
mov esi, 0x422e88
je 0x41245d
push edi
lea edi, [ebp + eax*2 - 0x2d4]
mov ecx, edi
mov al, byte [esi]
movsx dx, al
mov word [ecx], dx
inc esi
add ecx, 2
test al, al
jne 0x412423
push 0x422ed8
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x412421
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d35
leave
ret
Function at 0x416673
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
or dword [edi + 0x90], 0xffffffff
or dword [edi + 0x94], 0xffffffff
inc eax
push 0x20
mov dword [edi + 0x30], eax
mov dword [edi + 0x44], eax
mov eax, dword [edi + 4]
pop ecx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
cmp eax, ecx
jbe 0x4166dc
mov eax, ecx
mov dword [edi + 0x54], eax
mov eax, dword [edi]
push esi
mov dword [edi + 0x58], ebx
cmp eax, dword [edi + 0x20]
je 0x41671d
lea esi, [edi + 0xc8]
mov dword [ebp + 8], ecx
cmp dword [esi + 8], ebx
je 0x4166fe
push esi
call fcn.004159db
add esi, 0x28
dec dword [ebp + 8]
jne 0x4166f3
mov ecx, dword [edi + 0x5c]
cmp ecx, ebx
je 0x416718
mov eax, dword [edi + 0x14]
push ecx
push eax
call dword [eax + 4]
mov dword [edi + 0x5c], ebx
mov eax, dword [edi]
mov dword [edi + 0x20], eax
push dword [edi + 0x10]
lea eax, [edi + 0x98]
push eax
call fcn.004158cd
mov eax, dword [edi + 0x58]
lea esi, [eax + 5]
imul esi, esi, 0x28
add esi, edi
inc eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x58], eax
call fcn.0041598c
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x416784
lea eax, [esi + 0x20]
push eax
call fcn.0041686a
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x416784
lea eax, [esi + 0x1c]
push eax
call fcn.0041686a
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x416784
push esi
call fcn.00416418
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x416784
mov eax, edi
mov dword [edi + 0x44], ebx
call fcn.00415a46
mov ecx, dword [ebp + 8]
pop esi
cmp ecx, ebx
jle 0x416797
movzx ecx, cx
or ecx, 0x80070000
cmp ecx, ebx
je 0x41679c
mov dword [edi + 0x40], ecx
cmp dword [edi + 0x38], ebx
jne 0x4167ae
cmp dword [edi + 0x40], ebx
jne 0x4167ae
cmp dword [edi + 0x3c], ebx
jne 0x4167ae
mov dword [edi + 0x44], ebx
mov eax, dword [edi + 0x44]
neg eax
sbb eax, eax
not eax
pop edi
and eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x416819
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041af51
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004167cb
pop ebp
ret 0xc
Function at 0x417033
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x420ecd
call fcn.00418d44
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00416fb7
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0040e67a
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040cbc7
push dword [ebp - 0x18]
call fcn.00409cd9
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00418e1c
ret 8
Function at 0x418d35
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ab20]
jne 0x418d3f
repz ret
jmp fcn.0041ca8c

Function at 0x41e310
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ab20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c487
and dword [ebp - 0x14], 0
cmp dword [0x42c558], 0
mov dword [ebp - 0x18], eax
jne 0x41e3c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e46b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424724
push ebx
call edi
test eax, eax
je 0x41e46b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42c560], eax
call edi
push eax
call esi
mov dword [0x42c568], eax
test eax, eax
je 0x41e3c3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c564], eax
mov eax, dword [0x42c564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e41c
cmp dword [0x42c568], ecx
je 0x41e41c
push eax
call esi
push dword [0x42c568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e41c
test ebx, ebx
je 0x41e41c
call edi
test eax, eax
je 0x41e413
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e413
test byte [ebp - 8], 1
jne 0x41e41c
or dword [ebp + 0x10], 0x200000
jmp 0x41e44f
mov eax, dword [0x42c55c]
cmp eax, dword [ebp - 0x18]
je 0x41e44f
push eax
call esi
test eax, eax
je 0x41e44f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e44f
mov eax, dword [0x42c560]
cmp eax, dword [ebp - 0x18]
je 0x41e44f
push eax
call esi
test eax, eax
je 0x41e44f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c558]
call esi
test eax, eax
je 0x41e46b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e46d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d35
leave
ret
Function at 0x50cbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.MIZwSMcb
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50cbd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50cbd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cbc8
mov eax, 1
add ebx, ebx
jne 0x50cbeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50cbe0
jne 0x50cbfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cbe0
xor ecx, ecx
sub eax, 3
jb 0x50cc10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cc82
mov ebp, eax
add ebx, ebx
jne 0x50cc1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cc28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50cc4c
inc ecx
add ebx, ebx
jne 0x50cc38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cc2d
jne 0x50cc49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cc2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cc6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cc5d
jmp 0x50cbce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cc6c
add edi, ecx
jmp 0x50cbce
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cccb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cc89
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50ccc5
mov dword [ebx], eax
add ebx, 4
jmp 0x50cca6
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50ccff
sub esp, 0xffffff80
jmp section.ukiwGhLB

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4f0289
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004f0308
jae 0x4f0295
xor ecx, ecx
call fcn.004f0308
jae 0x4f02bf
xor eax, eax
call fcn.004f0308
jae 0x4f02d0
mov al, 0x10
call fcn.004f0308
adc al, al
jae 0x4f02b1
jne 0x4f02fd
stosb byte es:[edi], al
jmp 0x4f0296
call fcn.004f0314
dec ecx
loop 0x4f02dc
mov eax, ebp
call fcn.004f0312
jmp 0x4f02fe
lodsb al, byte [esi]
shr eax, 1
je 0x4f0324
adc ecx, 2
mov ebp, eax
jmp 0x4f02fe
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004f0312
cmp eax, 0x7d00
jae 0x4f02fc
cmp eax, 0x500
jae 0x4f02fd
cmp eax, 0x7f
ja 0x4f02fe
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f0296
pop ebp
ret 8
Function at 0x406a06
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 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
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 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
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 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
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 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x4121da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x412214
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x4121f2
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x401014
Capabilities:
Decrypt data using tea

Disassembly:
jmp 0x4012f0
sub esp, 0x1c
shr edx, 3
mov dword [esp + 0x18], edx
mov dword [esp], 0
test edx, edx
je 0x4013da
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
jmp 0x401324
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0x1ca
jae 0x401336
push 0
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov ebx, 0xc6ef3720
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
xor ebp, ebp
cmp ebp, 0x246f
jae 0x401371
push 0
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x18]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x1c]
lea edx, [ebx + edi]
xor eax, ecx
xor eax, edx
sub esi, eax
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x20]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x24]
lea edx, [ebx + esi]
xor eax, ecx
xor eax, edx
inc ebp
sub edi, eax
add ebx, 0x61c88647
cmp ebp, 0x20
jb 0x401361
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x28]
jb 0x401320
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x4051d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4241e8]
jne 0x4051e0
repz ret
jmp fcn.0040cbc1
Function at 0x40e26c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004051e5
and dword [ebp - 0x14], 0
cmp dword [0xe5ac1c], 0
mov dword [ebp - 0x18], eax
jne 0x40e31f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e3c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e3c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xe5ac1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xe5ac20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xe5ac24], eax
call edi
push eax
call esi
mov dword [0xe5ac2c], eax
test eax, eax
je 0x40e31f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xe5ac28], eax
mov eax, dword [0xe5ac28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e378
cmp dword [0xe5ac2c], ecx
je 0x40e378
push eax
call esi
push dword [0xe5ac2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e378
test ebx, ebx
je 0x40e378
call edi
test eax, eax
je 0x40e36f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e36f
test byte [ebp - 8], 1
jne 0x40e378
or dword [ebp + 0x10], 0x200000
jmp 0x40e3ab
mov eax, dword [0xe5ac20]
cmp eax, dword [ebp - 0x18]
je 0x40e3ab
push eax
call esi
test eax, eax
je 0x40e3ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e3ab
mov eax, dword [0xe5ac24]
cmp eax, dword [ebp - 0x18]
je 0x40e3ab
push eax
call esi
test eax, eax
je 0x40e3ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xe5ac1c]
call esi
test eax, eax
je 0x40e3c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e3c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051d6
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret