joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40137c
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41bda0
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x41bcd8
push ebx
push 0x6d
push esi
call edi
mov eax, esi
call fcn.0040151e
xor edi, edi
push edi
push esi
push edi
push edi
push edi
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x41bda0
push ebx
push edi
mov dword [0x41be68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401406
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405404
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x41b070
call fcn.00402630
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401d50
test eax, eax
je 0x40143b
call fcn.00403140
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004018d0
test eax, eax
je 0x4013ed
test byte [0x41c3ec], 7
je 0x401452
call fcn.00401127
mov eax, dword [0x41c6c8]
cmp eax, edi
jbe 0x40147d
cmp word [0x41c6cc], di
jbe 0x40147d
push 0x41b07c
push eax
call fcn.00403ef0
mov ax, word [0x41c6cc]
pop ecx
pop ecx
mov word [0x41b08c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x41cc40
div ecx
push edx
push 0x415ce4
push ebx
call fcn.00401a5b
add esp, 0xc
call fcn.00403fa0
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push edi
push eax
call fcn.00408f20
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00405482
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401434
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
push 0x415ce0
lea eax, [esp + 0x1c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401434
Function at 0x401600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.00408f20
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00408f20
add esp, 0x18
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x78], ax
push 0x415d00
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x415d44
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4016a4
mov dword [ebp - 0x80], 1
push 0x415d50
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4016cc
or dword [ebp - 0x80], 2
push 0x415d98
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4016f4
or dword [ebp - 0x80], 4
push 0x415de8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40171f
or dword [ebp - 0x80], 0x100
push 0x415e40
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40174a
or dword [ebp - 0x80], 0x200
push 0x415e98
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x401778
or dword [ebp - 0x80], 0x400
mov ecx, dword [ebp + 0x394]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
or eax, 0x2000000
call fcn.00405404
add ebp, 0x398
leave
ret
Function at 0x4018d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00408f20
add esp, 0xc
lea eax, [ebp - 0x3a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41c840
call fcn.00401a76
pop ecx
test eax, eax
jne 0x4019cb
movzx ecx, word [eax + 0x415ef8]
mov word [eax + 0x41c9e8], cx
inc eax
inc eax
cmp cx, bx
jne 0x40192b
push 0x415f04
push 0x40
push 0x41c844
call fcn.00405413
add esp, 0xc
push 0x415f20
push 0x10
push 0x41c8c6
call fcn.00405413
add esp, 0xc
push 0x415f2c
push 0x40
push 0x41c8e6
call fcn.00405413
add esp, 0xc
push 0x51
pop eax
mov word [0x41c8c4], ax
mov eax, 0x2b70
mov word [0x41c966], ax
xor eax, eax
movzx ecx, word [eax + 0x415f48]
mov word [eax + 0x41c9c8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401992
mov edi, 0x41c9c8
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4019ae
mov esi, 0x415f58
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x41ca08], 5
call fcn.00403700
lea eax, [ebp - 0x210]
push eax
call fcn.004035f0
pop ecx
xor eax, eax
movzx ecx, word [ebp + eax - 0x210]
mov word [eax + 0x41c800], cx
inc eax
inc eax
cmp cx, bx
jne 0x4019df
mov esi, 0x41c800
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x401a16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401a4c
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401a12
push 0x415f2c
call fcn.00403820
pop ecx
mov dword [0x41c6c8], eax
call fcn.00401795
push ebx
push ebx
push ebx
push 0x403da0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405404
leave
ret
Function at 0x401b08
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x401bf9
cmp edi, esi
je 0x401bf9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b3e
sub eax, edx
sar eax, 1
je 0x401bf9
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00408f20
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x401b9f
cmp dword [0x41b070], 3
jne 0x401b9f
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415f7c
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00405482
add esp, 0xc
jmp 0x401baf
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00405482
and dword [ebp - 0x7c], 0
push 0x415f80
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405765
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x401bf9
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00405a58
push dword [ebp - 0x7c]
call fcn.00405aec
add esp, 0x14
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.00405404
add ebp, 0x194
leave
ret

Function at 0x401ca4
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.00408f20
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x401d38
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x415f60
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00405482
push 0x415fa0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00405765
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x401d38
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.00405cca
push dword [ebp - 0x80]
call fcn.00405aec
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405404
add ebp, 0x190
leave
ret
Function at 0x4024a9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00408f20
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00408f20
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c12
pop ecx
test eax, eax
je 0x4025b7
xor eax, eax
movzx ecx, word [eax + 0x415f2c]
mov word [eax + 0x41c4f8], cx
inc eax
inc eax
cmp cx, si
jne 0x402509
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x41c3f0], cx
inc eax
inc eax
cmp cx, si
jne 0x402520
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x41c470], cx
inc eax
inc eax
cmp cx, si
jne 0x402538
cmp dword [0x41b070], 3
mov ax, word [ebp - 0x38c]
mov word [0x41c4f0], ax
mov ax, word [ebp - 0x2ea]
mov word [0x41c578], ax
lea eax, [ebp - 0x210]
mov dword [0x41c57c], 5
push eax
je 0x402586
push 1
jmp 0x402587
push esi
call fcn.00402f50
pop ecx
pop ecx
push 0x415f88
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00405482
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405404
leave
ret

Function at 0x402630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x134], cx
push 0x11c
push 0
lea edx, [ebp - 0x130]
push edx
call fcn.00408f20
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4026f2
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 4], edx
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x134], ax
cmp dword [ebp - 8], 5
jne 0x4026cc
cmp dword [ebp - 4], 2
jae 0x4026c3
cmp dword [ebp - 4], 1
jne 0x4026cc
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x4026f2
cmp dword [ebp - 4], 0
jne 0x4026e3
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x4026f2
cmp dword [ebp - 4], 1
jne 0x4026f2
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00408f20
add esp, 0xc
cmp dword [0x41b070], 3
jne 0x402768
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x417eb4
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405482
add esp, 0xc
jmp 0x40277a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x41818c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret

Function at 0x402a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00408f20
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.00402ca0
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00402dc0
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x402aea
xor eax, eax
jmp 0x402afd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402880
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret

Function at 0x402c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x402c43
jmp 0x402c94
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x200
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040d140
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x402f6a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402f8f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418210
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405482
add esp, 0xc
pop ebp
ret

Function at 0x402fa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x418214
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405765
add esp, 0xc
test eax, eax
je 0x402fd4
xor eax, eax
jmp 0x4030b5
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.004062e2
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00406504
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004062e2
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.004060cc
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405a58
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405aec
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.004030c0
add esp, 8
push 0x41821c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405765
add esp, 0xc
test eax, eax
je 0x40306e
xor eax, eax
jmp 0x4030b5
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405cca
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405aec
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x4030b2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00406196
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403a80
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x3a98
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403b07
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403bfe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403b41
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x403b56
cmp dword [ebp - 0x1c], 3
jb 0x403ada
cmp dword [ebp - 0x2c], 0
jne 0x403bec
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x403bea
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x34], 6
jne 0x403bdc
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x403bdc
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 4]
mov byte [edx + 3], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ecx + 2], dl
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [edx + 6]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 7]
mov byte [edx], al
jmp 0x403bea
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
jmp 0x403b66
jmp 0x403bf7
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x403bfe
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x403c17
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4040a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404270
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x4040e8
mov eax, dword [ebp - 0x41c]
jmp 0x404258
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00408f20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00408f20
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x404153
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x4041b8
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x41be70]
test eax, eax
jne 0x404175
jmp 0x404144
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405413
add esp, 0xc
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
add eax, 0x41be70
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405482
add esp, 0xc
jmp 0x404144
mov dword [ebp - 0x424], 0
jmp 0x4041d3
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x40421d
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x41be70]
test ecx, ecx
jne 0x4041f5
jmp 0x4041c4
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
add ecx, 0x41be70
push ecx
call fcn.00404ed0
add esp, 0x10
jmp 0x4041c4
push 0x41cc40
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00405482
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404252
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret
Function at 0x404500
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c0
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x9c0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x9be]
push ecx
call fcn.00408f20
add esp, 0xc
lea edx, [ebp - 0x9c0]
mov dword [ebp - 0x19c], edx
cmp dword [ebp + 0x14], 0
je 0x40454d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x19c]
mov word [edx], cx
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404598
xor eax, eax
jmp 0x404689
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffff
jne 0x4045b8
xor eax, eax
jmp 0x404689
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x4045f8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1bc], eax
push 2
push 4
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x404605
jmp 0x40465d
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1a8], eax
mov ecx, 2
mov word [ebp - 0x1ac], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1aa], ax
push 0x10
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404653
jmp 0x40465d
mov dword [ebp - 0x1b8], 1
cmp dword [ebp - 0x1b8], 0
jne 0x404683
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x404683
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret