joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
push 0x415c38
call fcn.00404310
pop ecx
pop ecx
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x40111b
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408fc0
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00408fc0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x41be70
mov ebx, edi
cmp word [ebx], 0
je 0x4010ac
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004054b3
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00405522
add esp, 0x18
add ebx, 0x118
cmp ebx, 0x41c3e8
jl 0x401081
cmp word [edi], 0
je 0x4010d3
push 1
push dword [ebp + 8]
push 0x415c38
push edi
call fcn.00404f70
add esp, 0x10
add edi, 0x118
cmp edi, 0x41c3e8
jl 0x4010ba
push 0x41cc40
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00405522
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x401115
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054a4
leave
ret
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.004054a4
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x41b070
call fcn.004026d0
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401d50
test eax, eax
je 0x40143b
call fcn.004031e0
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.00403f90
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.00404040
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push edi
push eax
call fcn.00408fc0
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.00405522
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.00408fc0
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00408fc0
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.004054a4
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.00408fc0
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.004054b3
add esp, 0xc
push 0x415f20
push 0x10
push 0x41c8c6
call fcn.004054b3
add esp, 0xc
push 0x415f2c
push 0x40
push 0x41c8e6
call fcn.004054b3
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.004037a0
lea eax, [ebp - 0x210]
push eax
call fcn.00403690
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.004038c0
pop ecx
mov dword [0x41c6c8], eax
call fcn.00401795
push ebx
push ebx
push ebx
push 0x403e40
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.004054a4
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.00408fc0
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.00405522
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.00405522
and dword [ebp - 0x7c], 0
push 0x415f80
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405805
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.00405af8
push dword [ebp - 0x7c]
call fcn.00405b8c
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.004054a4
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.00408fc0
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.00405522
push 0x415fa0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00405805
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.00405d6a
push dword [ebp - 0x80]
call fcn.00405b8c
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004054a4
add ebp, 0x190
leave
ret
Function at 0x40254b
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.00408fc0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00408fc0
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c12
pop ecx
test eax, eax
je 0x402659
xor eax, eax
movzx ecx, word [eax + 0x415f2c]
mov word [eax + 0x41c4f8], cx
inc eax
inc eax
cmp cx, si
jne 0x4025ab
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x41c3f0], cx
inc eax
inc eax
cmp cx, si
jne 0x4025c2
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x41c470], cx
inc eax
inc eax
cmp cx, si
jne 0x4025da
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 0x402628
push 1
jmp 0x402629
push esi
call fcn.00402ff0
pop ecx
pop ecx
push 0x415f88
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00405522
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.004054a4
leave
ret

Function at 0x4026d0
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.00408fc0
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 0x402792
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 0x40276c
cmp dword [ebp - 4], 2
jae 0x402763
cmp dword [ebp - 4], 1
jne 0x40276c
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x402792
cmp dword [ebp - 4], 0
jne 0x402783
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x402792
cmp dword [ebp - 4], 1
jne 0x402792
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004054a4
mov esp, ebp
pop ebp
ret
Function at 0x4027a0
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.00408fc0
add esp, 0xc
cmp dword [0x41b070], 3
jne 0x402808
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.00405522
add esp, 0xc
jmp 0x40281a
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.004054a4
mov esp, ebp
pop ebp
ret

Function at 0x402ae0
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.00408fc0
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.00402d40
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00402e60
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x402b8a
xor eax, eax
jmp 0x402b9d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402920
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054a4
mov esp, ebp
pop ebp
ret

Function at 0x402cb0
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 0x402ce3
jmp 0x402d34
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.0040d1e0
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 0x402ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40300a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40302f
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.00405522
add esp, 0xc
pop ebp
ret

Function at 0x403040
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.00405805
add esp, 0xc
test eax, eax
je 0x403074
xor eax, eax
jmp 0x403155
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00406382
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.004065a4
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406382
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.0040616c
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.00405af8
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405b8c
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.00403160
add esp, 8
push 0x41821c
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405805
add esp, 0xc
test eax, eax
je 0x40310e
xor eax, eax
jmp 0x403155
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.00405d6a
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405b8c
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x403152
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00406236
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403b20
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 0x403ba7
mov dword [ebp - 0x10], 0xffffffff
jmp 0x403c9e
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 0x403be1
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 0x403bf6
cmp dword [ebp - 0x1c], 3
jb 0x403b7a
cmp dword [ebp - 0x2c], 0
jne 0x403c8c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x403c8a
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x34], 6
jne 0x403c7c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x403c7c
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 0x403c8a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
jmp 0x403c06
jmp 0x403c97
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x403c9e
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x403cb7
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 0x404140
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.00404310
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x404188
mov eax, dword [ebp - 0x41c]
jmp 0x4042f8
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00408fc0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00408fc0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x4041f3
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x404258
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x41be70]
test eax, eax
jne 0x404215
jmp 0x4041e4
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004054b3
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.00405522
add esp, 0xc
jmp 0x4041e4
mov dword [ebp - 0x424], 0
jmp 0x404273
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x4042bd
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x41be70]
test ecx, ecx
jne 0x404295
jmp 0x404264
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.00404f70
add esp, 0x10
jmp 0x404264
push 0x41cc40
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00405522
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4042f2
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054a4
mov esp, ebp
pop ebp
ret