joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027e0
Capabilities:
Clear file content

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push esi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x402829
push esi
push str.Error_truncating_File___s
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x18]
push eax
call sym.Sure_XLite.exe__xGetFileSize_4
mov ebx, eax
mov ebp, edx
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
test esi, esi
jl 0x4028da
jg 0x402851
test edi, edi
jb 0x4028da
cmp esi, ebp
jg 0x4028da
jl 0x40285f
cmp edi, ebx
jae 0x4028da
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call sym.Sure_XLite.exe__xFileSeek_12
mov ebx, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x18]
push edx
call ebx
test eax, eax
jne 0x4028bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.xTruncate_Error_ret_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
push 0x64
call sym.Sure_XLite.exe__xSleep_4
push esi
lea eax, [esp + 0x1c]
push edi
push eax
call sym.Sure_XLite.exe__xFileSeek_12
mov ecx, dword [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x4028c3
push str.2nd_try_Success_
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x4028ed
cmp esi, ebp
je 0x4028fe
push ebp
push ebx
push esi
push edi
push str.Invalid_Truncate_Marker_I64d__FileSize_I64d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0xc

Function at 0x402a10
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0xc]
shr eax, 0x14
add esp, 0x20
ret

Function at 0x402a50
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 6
push 0
push eax
push ecx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
cmp eax, 0x20
setg dl
dec edx
mov eax, edx
ret 8
Function at 0x402d70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x440
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x454]
push 0x41c2cc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x14]
push ecx
call fcn.0040de00
add esp, 8
test eax, eax
je 0x402dcc
lea edx, [esp + 0x350]
lea eax, [esp + 0x10]
push edx
push eax
call sym.Sure_XLite.exe__xStripFile_8
jmp 0x402e22
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x350]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c2e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
push eax
push str.xDelFiles_FileSpec_s
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
lea ecx, [esp + 0x210]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402f1a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x210], 0x10
jne 0x402f00
or ecx, 0xffffffff
lea edi, [esp + 0x350]
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c0cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sym.Sure_XLite.exe__xFileDelete_4
lea ecx, [esp + 0x210]
push ecx
push ebp
call ebx
test eax, eax
jne 0x402e58
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x440
ret 4

Function at 0x402f30
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 4

Function at 0x402f40
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8
Function at 0x4030f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x460158]
mov ecx, dword [0x46015c]
sub esp, 0x18
or eax, ecx
push esi
push edi
jne 0x40319d
lea ecx, [esp + 0x10]
mov dword [0x420120], 0
push ecx
mov dword [0x420124], 0x41f00000
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
lea eax, [esp + 8]
fmul qword [0x420120]
fild qword [esp + 0x18]
push eax
faddp st(1)
fmul qword [0x4192b8]
fstp qword [0x460168]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
fmul qword [0x420120]
fild qword [esp + 0x18]
faddp st(1)
fld st(0)
fdiv qword [0x460168]
call fcn.0040d084
mov edi, eax
mov esi, edx
mov dword [0x460158], edi
mov dword [0x46015c], esi
jmp 0x4031d4
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [0x46015c]
mov edi, dword [0x460158]
mov dword [esp + 0x18], eax
fmul qword [0x420120]
mov dword [esp + 0x1c], 0
fild qword [esp + 0x18]
faddp st(1)
fdiv qword [0x460168]
call fcn.0040d084
cmp edx, esi
jg 0x4031fe
jl 0x4031e9
cmp eax, edi
jae 0x4031fe
mov dword [0x460158], eax
mov dword [0x46015c], edx
xor eax, eax
pop edi
xor edx, edx
pop esi
add esp, 0x18
ret
sub eax, edi
pop edi
sbb edx, esi
pop esi
add esp, 0x18
ret

Function at 0x403470
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403493
xor al, al
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4034e0
xor al, al
pop esi
add esp, 0x14
ret
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x4034fb
xor al, al
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 4]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x2c], 0
call esi
mov al, 1
pop esi
add esp, 0x14
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403673
xor eax, eax
test al, 0x10
jne 0x4036a0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4036a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.xCreateDirectory_fail_on__s_Err_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
or eax, 0xffffffff
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x405af0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xb30
lea eax, [esp]
push ebx
push esi
push eax
xor ebx, ebx
call fcn.0040c91f
lea ecx, [esp + 0xc]
push ecx
call fcn.0040c7bf
push eax
push str._Y_m_d_H_M_S
lea edx, [esp + 0x24]
push 0x20
push edx
call fcn.0040dfea
mov al, byte [0xba81b2]
mov esi, dword [esp + 0xb54]
add esp, 0x18
cmp al, bl
lea eax, [esp + 0x14]
push eax
je 0x405b53
lea ecx, [esi + 0x38]
lea edx, [esp + 0x13c]
push ecx
push str.http:___s__s_FileX_EOT_SiteID777
push edx
call fcn.0040d799
add esp, 0x10
jmp 0x405b68
lea ecx, [esp + 0x13c]
push str.__s_FileX_EOT_SiteID777
push ecx
call fcn.0040d799
add esp, 0xc
mov eax, dword [esp + 0xb40]
lea edx, [esi + 0x38]
push edi
push edx
lea ecx, [esp + 0x140]
push eax
push ecx
lea edx, [esp + 0x348]
push str.HEAD__s_HTTP_1.1_r_nUser_Agent:_Sure_X_VOD_r_nETag:__d_r_nHost:__s_r_nAccept_Encoding:_gzip__deflate_r_n_r_n
push edx
call fcn.0040d799
lea edi, [esp + 0x350]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x344]
push eax
push ecx
call sub.WSOCK32.dll_send
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x40]
push ebx
push ecx
push 1
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
pop edi
je 0x405c1d
cmp eax, ebx
jne 0x405bfd
push str.DQ_Ret_Cfrm_Timeout
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
jmp 0x405c1d
mov eax, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x33c]
push 0x7ff
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x405c1d
cmp eax, ebx
jne 0x405c1f
mov bl, 1
mov ecx, dword [esi + 0x1c]
push ecx
call sub.WSOCK32.dll_closesocket
neg bl
sbb ebx, ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0xb30
ret
Function at 0x4086f0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
xor edi, edi
call sym.Sure_XLite.exe__WS_IsUrl_4
test al, al
push esi
je 0x408746
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40872d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
push edi
call sub.WSOCK32.dll_inet_ntoa
push eax
push esi
push str.DNS_IP_resolve__s_to__s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
call sub.WSOCK32.dll_WSAGetLastError
push esi
push eax
push str.WS_DNS_IP_Fail_ret_d_on__s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
call sub.WSOCK32.dll_inet_addr
pop edi
pop esi
ret
Function at 0x40a780
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x310
lea eax, [esp + 0x110]
push ebx
push ebp
mov ebp, dword [esp + 0x31c]
push esi
push edi
push eax
lea edi, [ebp + 0xa4]
push str.Content_Length:
push edi
call sym.Sure_XLite.exe__WS_HeadParse_12
lea ecx, [esp + 0x120]
push ecx
call fcn.0040dfdf
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x18]
add esp, 4
sub eax, edx
je 0x40a7de
mov ecx, eax
lea esi, [edx + ebp + 0xa4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x20], eax
mov al, byte [ebp + 1]
test al, al
mov byte [esp + 0x13], 0
mov ebx, 1
jne 0x40a8de
mov esi, 0xf
mov al, byte [0xba85c4]
test al, al
jne 0x40a8de
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
cmp eax, ecx
jge 0x40a87c
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x24]
push 0
push eax
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x40a89f
test eax, eax
je 0x40a8b4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
sub ecx, eax
push 0
lea edx, [eax + ebp + 0xa4]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
je 0x40a8c3
test eax, eax
je 0x40a8c3
mov ecx, dword [ebp + 0x20]
push ebx
add ecx, eax
mov dword [ebp + 0x20], ecx
call sym.Sure_XLite.exe__xSleep_4
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
cmp ecx, eax
jne 0x40a892
push ebp
call fcn.0040a910
add esp, 4
mov byte [ebp + 1], bl
mov al, byte [ebp + 1]
test al, al
je 0x40a7fb
jmp 0x40a8de
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.vMS_Post_Socket_Error___d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
jmp 0x40a8da
push str.vMS_Post_timeout
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
jmp 0x40a8da
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [ebp + 8]
push eax
push edx
push str.vMS_Post__d__recv_err_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
mov byte [esp + 0x13], bl
mov al, byte [esp + 0x13]
mov byte [ebp + 2], bl
test al, al
je 0x40a8fa
pop edi
mov byte [ebp + 2], bl
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x310
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret
Function at 0x40b270
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x1e0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1f0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebx, ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x6b]
mov cl, byte [esp + ecx + 0x6b]
cmp cl, 0x5c
jne 0x40b2c0
mov byte [eax], bl
mov edi, dword [esp + 0x1fc]
lea ecx, [esp + 0x6c]
push ecx
push edi
push str.U_MapDrive_State_d_Folder___s
call sym.Sure_XLite.exe_xLogMsg
mov al, byte [esp + 0x78]
add esp, 0xc
cmp al, 0x5c
jne 0x40b3ef
lea edx, [esp + 0x6e]
push 0x41c0cc
push edx
call fcn.0040de00
mov esi, eax
lea eax, [esp + 0x76]
sub esi, eax
lea ecx, [esp + 0x76]
push esi
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0040e9d0
add esp, 0x14
cmp edi, 1
mov byte [esp + esi + 0x2c], bl
jne 0x40b3d3
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1f4]
lea eax, [esp + 0x6c]
push 0x41c0cc
push edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
call fcn.0040de00
add esp, 8
test eax, eax
je 0x40b37c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x16c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40b397
lea ecx, [esp + 0x2c]
push edi
push ecx
lea edx, [esp + 0x174]
push str._s_s
push edx
call fcn.0040d799
add esp, 0x10
mov ecx, dword [esp + 0x1f8]
lea eax, [esp + 0x16c]
push 1
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
push esi
push str.Map_Drive_ret_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
cmp esi, ebx
je 0x40b3ef
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1e0
ret
push 1
lea eax, [esp + 0x70]
push 1
push eax
call sub.MPR.dll_WNetCancelConnection2A
push eax
push str.Cancel_Connection_ret_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1e0
ret
Function at 0x40b400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x1c]
xor eax, eax
xor ecx, ecx
test ebp, ebp
mov byte [esp + 4], 0x30
mov byte [esp + 5], 0x31
mov byte [esp + 6], 0x32
mov byte [esp + 7], 0x33
mov byte [esp + 8], 0x34
mov byte [esp + 9], 0x35
mov byte [esp + 0xa], 0x36
mov byte [esp + 0xb], 0x37
mov byte [esp + 0xc], 0x38
mov byte [esp + 0xd], 0x39
mov byte [esp + 0xe], 0x41
mov byte [esp + 0xf], 0x42
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x44
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x46
jle 0x40b4a7
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
xor edx, edx
mov dl, byte [ecx + edi]
shr edx, 4
inc eax
mov dl, byte [esp + edx + 0xc]
mov byte [eax + esi - 1], dl
xor edx, edx
mov dl, byte [ecx + edi]
and edx, 0x8000000f
jns 0x40b48d
dec edx
or edx, 0xfffffff0
inc edx
mov dl, byte [esp + edx + 0xc]
mov byte [eax + esi], dl
inc eax
inc ecx
cmp ecx, ebp
jl 0x40b46a
mov byte [eax + esi], 0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
pop ebp
mov byte [eax + ecx], 0
xor eax, eax
add esp, 0x10
ret
Function at 0x40bb00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41ea70
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], 0x41ed94
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x1c], 0x41ed90
and ecx, 3
mov dword [esp + 0x20], 0x41ed8c
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], 0x41ed88
push ecx
mov dword [esp + 0x2c], 0x41ed84
mov dword [esp + 0x30], 0x41ed80
mov dword [esp + 0x34], 0x41ed7c
mov dword [esp + 0x38], 0x41ed78
mov dword [esp + 0x3c], 0x41ed74
mov dword [esp + 0x40], 0x41ed70
mov dword [esp + 0x44], 0x41ed6c
mov dword [esp + 0x48], 0x41ed68
call fcn.0040dc44
add esp, 8
test eax, eax
jne 0x40bbb7
pop edi
pop esi
add esp, 0x104
ret 4
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.0040c91f
lea eax, [esp + 0x18]
push eax
call fcn.0040c7bf
mov ebx, dword [eax + 0x20]
push 0x41ea70
push 0
mov dword [esp + 0x78], ebx
call fcn.0040dc44
push eax
call fcn.0040dfdf
push 0x41ea70
push 0
mov dword [esp + 0x70], eax
call fcn.0040dc44
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x13], 0
xor esi, esi
lea edi, [esp + 0x18]
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0040eb50
add esp, 8
test eax, eax
je 0x40bc43
inc esi
add edi, 4
cmp esi, 0xc
jl 0x40bc26
push 0x41ea70
push 0
mov dword [esp + 0x60], esi
call fcn.0040dc44
push eax
call fcn.0040dfdf
sub eax, 0x76c
push 0x41ddc0
push 0
mov dword [esp + 0x70], eax
call fcn.0040dc44
push eax
call fcn.0040dfdf
push 0x41ddc0
push 0
mov dword [esp + 0x70], eax
call fcn.0040dc44
push eax
call fcn.0040dfdf
push 0x41ea70
push 0
mov dword [esp + 0x78], eax
call fcn.0040dc44
push eax
call fcn.0040dfdf
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
push eax
call fcn.0040d90c
lea ecx, [esp + 0x40]
mov esi, eax
push ecx
call fcn.0040c91f
lea edx, [esp + 0x44]
push edx
call fcn.0040dafe
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc8], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xbc], edx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xb8], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xac], edx
mov eax, dword [eax]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa8], eax
push ecx
call fcn.0040d90c
mov edx, dword [esp + 0x4c]
add esp, 0x40
push edx
push eax
call fcn.0040d8fb
add esp, 8
call fcn.0040d084
sub esi, eax
test ebx, ebx
pop ebx
je 0x40bd39
add esi, 0xe10
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x414425
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f9b8
cmp edx, dword [eax]
je 0x414447
add eax, 8
inc ecx
cmp eax, 0x41fa48
jl 0x414438
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f9b8]
jne 0x414575
mov eax, dword [0xba880c]
cmp eax, 1
je 0x41454f
test eax, eax
jne 0x414478
cmp dword [0x41eec4], 1
je 0x41454f
cmp edx, 0xfc
je 0x414575
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4144af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412d90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4144f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419870
push edi
call fcn.0040e9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412d90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412da0
lea eax, [ebp - 0xa0]
push 0x419850
push eax
call fcn.00412da0
push dword [esi + 0x41f9bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412da0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004169df
add esp, 0x2c
pop edi
jmp 0x414575
lea eax, [ebp + 8]
lea esi, [esi + 0x41f9bc]
push 0
push eax
push dword [esi]
call fcn.00410490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10004a85
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x218
mov eax, dword [ecx + 0x3c]
push ebx
push ebp
mov dword [esp + 0x14], edx
mov eax, dword [eax + ecx + 0x78]
push esi
push edi
mov dword [esp + 0x18], ecx
mov edx, dword [eax + ecx + 0x1c]
mov ebx, dword [eax + ecx + 0x20]
add edx, ecx
mov ebp, dword [eax + ecx + 0x24]
add ebx, ecx
mov dword [esp + 0x14], edx
add ebp, ecx
mov esi, dword [ebx]
mov edx, 0x208
add esi, ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x20]
call fcn.100054b5
mov ecx, esi
call fcn.10005305
test eax, eax
je 0x10004ae4
movsx cx, byte [eax + esi]
mov word [esp + eax*2 + 0x20], cx
sub eax, 1
jne 0x10004ad5
movsx cx, byte [eax + esi]
mov word [esp + eax*2 + 0x20], cx
lea ecx, [esp + 0x20]
call fcn.10005335
mov edi, eax
xor esi, esi
xor edx, edx
test edi, edi
je 0x10004b1e
mov eax, dword [esp + 0x22c]
mov ebx, dword [eax + 0x24]
movzx ecx, word [esp + edx*2 + 0x20]
inc edx
imul esi, ebx
add esi, ecx
cmp edx, edi
jb 0x10004b0b
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
movzx eax, word [ebp]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x18]
add eax, ecx
cmp dword [esp + 0x1c], esi
je 0x10004b40
add ebx, 4
add ebp, 2
jmp 0x10004ab4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4