joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x41492d
xor eax, eax
pop ebx
ret
not bl
movzx eax, bl
shr eax, 4
and eax, 1
pop ebx
ret

Function at 0x414940
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [esp + 0x10]
push edi
call ebx
cmp eax, 0xffffffff
je 0x41495f
shr eax, 4
pop edi
and eax, 1
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov eax, edi
mov dword [esp + 0x10], 0
push 0x5c
push eax
call fcn.0041a276
mov esi, eax
add esp, 8
test esi, esi
je 0x414985
mov byte [esi], 0
push edi
call ebx
cmp eax, 0xffffffff
je 0x414991
test al, 0x10
jmp 0x414998
push 0
push edi
call ebp
test eax, eax
je 0x4149b8
test esi, esi
je 0x4149a6
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x414971
pop esi
pop ebp
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
pop edi
pop ebx
pop ecx
ret
test esi, esi
je 0x4149bf
mov byte [esi], 0x5c
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret

Function at 0x414a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414aac
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414aac
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x414aae
xor eax, eax
ret 0x10

Function at 0x414b70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414bb4
cmp dword [esp + 0x10], 3
jne 0x414bb4
cmp dword [esp + 0x14], esi
ja 0x414bb4
mov eax, 1
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

Function at 0x414bc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x414bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
neg eax
sbb eax, eax
inc eax
ret 0x10
Function at 0x414c20
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret 0x10

Function at 0x414c80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x120]
lea eax, [esp + 8]
push eax
push 0x10008
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x414cc0
xor eax, eax
jmp 0x414d26
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call esi
cmp eax, 0x103
je 0x414d0d
test eax, eax
jne 0x414d0d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00414c80
cmp eax, 1
je 0x414cc7
xor eax, eax
jmp 0x414d25
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [esp + 0x114]
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x110
ret 8

Function at 0x414d40
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cdq
and edx, 3
add eax, edx
mov edx, dword [ecx]
mov dword [esp], edx
mov edx, dword [ecx + 4]
sar eax, 2
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x414df0
mov eax, dword [esp + 0x18]
push ebx
push edi
mov ecx, dword [eax + esi*4]
mov edx, dword [eax + esi*4 + 4]
mov edi, 0x20
xor esi, esi
mov eax, edx
shr eax, 5
add eax, dword [esp + 0x28]
mov ebx, edx
shl ebx, 4
add ebx, dword [esp + 0xc]
sub esi, 0x61c88647
xor eax, ebx
lea ebx, [edx + esi]
xor eax, ebx
add ecx, eax
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0x14]
dec edi
xor eax, ebx
lea ebx, [ecx + esi]
xor eax, ebx
add edx, eax
test edi, edi
ja 0x414d91
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [eax + esi*4], ecx
mov dword [eax + esi*4 + 4], edx
add esi, 2
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x24], esi
jl 0x414d83
pop edi
pop ebx
pop esi
add esp, 0x10
ret 0xc
Function at 0x414e00
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cdq
and edx, 3
add eax, edx
mov edx, dword [ecx]
mov dword [esp + 8], edx
mov edx, dword [ecx + 4]
sar eax, 2
mov dword [esp + 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x414eb4
mov eax, dword [esp + 0x18]
push ebx
push edi
mov edx, dword [eax + esi*4]
mov ecx, dword [eax + esi*4 + 4]
mov edi, 0x20
mov esi, 0xc6ef3720
mov eax, edx
shr eax, 5
add eax, dword [esp + 0x28]
mov ebx, edx
shl ebx, 4
add ebx, dword [esp + 0xc]
dec edi
xor eax, ebx
lea ebx, [edx + esi]
xor eax, ebx
sub ecx, eax
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0x14]
xor eax, ebx
lea ebx, [ecx + esi]
xor eax, ebx
sub edx, eax
add esi, 0x61c88647
test edi, edi
ja 0x414e55
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [eax + esi*4], edx
mov dword [eax + esi*4 + 4], ecx
add esi, 2
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x24], esi
jl 0x414e44
pop edi
pop ebx
pop esi
add esp, 0x10
ret 0xc

Function at 0x415010
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.0041a140
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41506c
cmp dword [esp + 4], 6
jb 0x41506c
mov al, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00416a72
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor al, al
call fcn.00416a72
add esp, 0xa0
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x4150bc
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + section..data]
inc edx
sub esi, 1
jne 0x4150a1
pop esi
ret 0xc

Function at 0x416a72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f560]
jne 0x416a7c
repz ret
jmp fcn.0041aa3c
Function at 0x423c20
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.0041b5bc
and dword [ebp - 4], 0
cmp dword [0x432890], 0
mov ebx, eax
jne 0x423cd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423d82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4279a4
push edi
call esi
test eax, eax
je 0x423d82
push eax
call fcn.0041b54a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432890], eax
call esi
push eax
call fcn.0041b54a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432894], eax
call esi
push eax
call fcn.0041b54a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432898], eax
call esi
push eax
call fcn.0041b54a
pop ecx
mov dword [0x4328a0], eax
test eax, eax
je 0x423cd1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b54a
pop ecx
mov dword [0x43289c], eax
mov eax, dword [0x43289c]
cmp eax, ebx
je 0x423d29
cmp dword [0x4328a0], ebx
je 0x423d29
push eax
call fcn.0041b5c5
push dword [0x4328a0]
mov esi, eax
call fcn.0041b5c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423d29
test edi, edi
je 0x423d29
call esi
test eax, eax
je 0x423d20
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423d20
test byte [ebp - 0xc], 1
jne 0x423d29
or dword [ebp + 0x10], 0x200000
jmp 0x423d62
mov eax, dword [0x432894]
cmp eax, ebx
je 0x423d62
push eax
call fcn.0041b5c5
pop ecx
test eax, eax
je 0x423d62
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423d62
mov eax, dword [0x432898]
cmp eax, ebx
je 0x423d62
push eax
call fcn.0041b5c5
pop ecx
test eax, eax
je 0x423d62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432890]
call fcn.0041b5c5
pop ecx
test eax, eax
je 0x423d82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423d84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c83
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401c89
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00403000
push dword [esp]
call fcn.0040217d
push dword [esp + 4]
mov edx, 0x4060dc
pop ecx
call fcn.004030b0
je 0x401d53
cmp dword [0x406df4], 0
je 0x401d39
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00404505
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x401d37
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0xc]
call fcn.0040455f
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
mov eax, dword [0x406de4]
push eax
push dword [0x406df0]
push dword [esp + 0x1c]
call fcn.004045ca
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00404445
jmp 0x401d4e
mov eax, dword [0x406de4]
push eax
push dword [0x406df0]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x401ddc
lea eax, [esp + 0x18]
push eax
push dword [0x406df0]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x406df4], 0
je 0x401dc9
mov eax, str.Advapi32.dll
push eax
push 0xffffffff
call fcn.00404505
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x401dc7
push 0
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
mov eax, dword [0x406de4]
push eax
push dword [esp + 0x24]
mov eax, str.RegDeleteKeyExA
push eax
push dword [esp + 0x1c]
call fcn.004045e0
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00404445
jmp 0x401ddc
mov eax, dword [0x406de4]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x401deb
mov eax, 1
jmp 0x401ded
xor eax, eax
push dword [esp + 4]
call fcn.00404bc0
push dword [esp]
call fcn.00404bc0
add esp, 0x1c
pop ebx
ret 8
Function at 0x402509
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40250f
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.00403000
push dword [esp]
call fcn.0040217d
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4060dc
pop ecx
call fcn.004030b0
je 0x4025a5
cmp dword [0x406df4], 0
je 0x402589
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x4025a3
lea eax, [esp + 0x18]
push eax
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
jmp 0x40260a
lea eax, [esp + 0x20]
push eax
push dword [0x406df0]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x1c], eax
cmp dword [0x406df4], 0
je 0x4025f2
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x40260a
lea eax, [esp + 0x18]
push eax
push dword [0x406de4]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x4026a8
mov dword [esp + 0x24], 0xff
push dword [0x406e20]
push dword [0x406e20]
push 0xff
call fcn.004031e0
lea eax, [esp + 0xc]
push eax
call fcn.00404ae0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x40269a
push dword [0x406e20]
push dword [0x406e20]
push dword [esp + 0x2c]
push dword [esp + 0x14]
call fcn.00403230
lea eax, [esp + 0x2c]
push eax
call fcn.00404ae0
jmp 0x4026a8
mov edx, 0x406028
lea ecx, [esp + 0x28]
call fcn.00403008
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x406e20]
push edx
call fcn.00404b60
pop eax
add eax, dword [0x406598]
jmp 0x4026da
push dword [esp + 4]
call fcn.00404bc0
push dword [esp + 8]
call fcn.00404bc0
push dword [esp + 0x28]
call fcn.00404bc0
push dword [esp]
call fcn.00404bc0
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x403ca5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403cfa
push dword [esp + 0x10]
push 0x403c24
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x406e04]
test esi, esi
je 0x403d53
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x403cf2
cmp byte [esi + 0x10], 0
je 0x403cf2
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x403cce
jmp 0x403d53
mov esi, dword [0x406e04]
test esi, esi
je 0x403d53
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403d4c
cmp byte [esi + 0x11], 0
je 0x403d28
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403d3f
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x406e04
call fcn.00404a1d
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x403d07
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4046b0
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4047f8
xor ecx, ecx
cmp word [eax], cx
je 0x4047f8
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x404709
cmp eax, 3
jne 0x404743
cmp word [esp + 0xa], 0x3a
jne 0x404743
cmp eax, 2
jne 0x404727
lea eax, [esp + 8]
push 0x405060
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4047f8
push 0xfffffffffffffffe
pop edi
jmp 0x4047f8
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x404758
cmp ax, bx
jne 0x404762
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40474b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4047a1
test byte [esp + 0x21c], 0x10
je 0x404788
push 0xfffffffffffffffe
pop edi
jmp 0x404798
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4047f6
cmp word [esp + 0x10], bp
jne 0x4047af
cmp word [esp + 0x12], bp
je 0x4047ce
cmp word [esp + 0x10], bx
jne 0x4047bd
cmp word [esp + 0x12], bx
je 0x4047ce
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4047f6
cmp word [esp + 0x12], ax
jne 0x4047f6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4047e3
test al, 0x10
je 0x4047f6
jmp 0x4047f3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4047f6
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x4019b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x957008]
sub esp, 0x110
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x401b5d
cmp dword [0x95700c], 0
jne 0x401b49
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.004042c0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x401a00
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x401a10
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x401a45
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004042c0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401aa4
sub edx, esi
sar edx, 1
je 0x401b5d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x401ac0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x104
ja 0x401b5d
xor eax, eax
push ebx
test edx, edx
je 0x401af8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x401af8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x401ae1
xor eax, eax
test edx, edx
je 0x401b12
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x401b12
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401b00
xor eax, eax
test edx, edx
je 0x401b2f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x401b2f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401b20
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x957008]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x110
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret
Function at 0x402c50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x95714c]
sub esp, 0x11c
test eax, eax
jne 0x402d4c
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.004042c0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402ca0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402cb0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402ce5
lea edx, [esp + 0xc]
call fcn.004012e0
pop edi
pop esi
pop ebx
test eax, eax
je 0x402d47
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402d47
mov dword [0x95714c], eax
add esp, 0x11c
ret
mov eax, dword [0x95714c]
add esp, 0x11c
ret
Function at 0x403c70
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x957148
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403d99
cmp dword fs:[0xc0], eax
je 0x403c9b
mov dword [0x957144], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x95702c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x957030], eax
movzx edx, word [esi + 0xac]
mov dword [0x957034], edx
mov eax, dword [esi + 0xb0]
mov dword [0x957038], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403cfb
push 0x7f
push eax
push 0x95703c
call fcn.004042f0
mov edx, dword [0x957034]
add esp, 0xc
jmp 0x403d03
xor eax, eax
mov word [0x95703c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x95713c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x95713e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x957140], ax
mov ecx, eax
mov byte [0x957142], 0
cmp byte [0x7ffe0268], 0
je 0x403d4a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x957142], bl
cmp ebx, 1
pop ebx
jne 0x403d64
and ecx, 0xffef
mov word [0x957140], cx
test edx, edx
jne 0x403d99
call fcn.00403c70
cmp dword [0x95702c], 6
ja 0x403d99
jb 0x403d81
cmp dword [0x957030], 4
jae 0x403d99
call fcn.00403c70
cmp dword [0x95702c], 0xa
jae 0x403d99
mov dword [0x957034], 1
ret
Function at 0x41b0f2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret