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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x17bc
call fcn.00413d20
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x17b8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
lea esi, [esp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004027b4
or dword [esp + 0xa34], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0xa38], edi
mov dword [esp + 0xabc], edi
mov dword [esp + 0xb40], edi
mov dword [esp + 0xb44], edi
mov dword [esp + 0xb48], edi
mov dword [esp + 0xb4c], edi
mov dword [esp + 0xbd0], edi
mov dword [esp + 0xa2c], 5
mov dword [esp + 0xa30], 1
call fcn.00402844
xor eax, eax
push 0x206
mov word [esp + 0x15bc], ax
lea eax, [esp + 0x15be]
push edi
push eax
call fcn.0040c310
add esp, 0xc
mov esi, 0x423060
call fcn.00402960
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xbd8]
call fcn.00401000
lea ecx, [esp + 0xbd8]
call fcn.00401565
test eax, eax
je 0x40234a
call fcn.004033d0
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4240e0
push 0x67
push ebx
call esi
push 0x64
push 0x424018
push 0x6d
push ebx
call esi
mov eax, ebx
call fcn.00402498
push edi
push ebx
push edi
push edi
push edi
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x4240e0
push 0x424018
push edi
mov dword [0x4241a8], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4023a5
call fcn.00402509
cmp eax, edi
jne 0x4023be
mov ecx, dword [esp + 0x17c4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00409038
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov eax, dword [0x424828]
cmp eax, edi
jbe 0x4023f1
cmp word [0x42482c], di
jbe 0x4023f1
push eax
mov esi, 0x42306c
call fcn.00403c10
mov ax, word [0x42482c]
pop ecx
mov word [0x42307c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x424da0
div ecx
push edx
push 0x41e094
push ebx
call fcn.00402799
add esp, 0xc
call fcn.00403cf0
lea esi, [esp + 0x15b8]
call fcn.00403c90
push 0x41dcdc
mov esi, 0x104
lea eax, [esp + 0x15bc]
push esi
push eax
call fcn.00409047
add esp, 0xc
push ebx
lea eax, [esp + 0x15bc]
push esi
push eax
call fcn.00409047
add esp, 0xc
lea eax, [esp + 0x15b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40248e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
push 0x41dce8
lea eax, [esp + 0x15c4]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00401fdf
jmp 0x402343
Function at 0x402509
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.0040c310
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4249a0
call fcn.00402a70
push 2
pop ebx
test eax, eax
jne 0x402621
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.0040c310
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.00403660
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x424b48], cx
add eax, ebx
cmp cx, si
jne 0x402583
push 0x41ddd0
push 0x40
push 0x4249a4
call fcn.00409771
add esp, 0xc
push 0x41ddec
push 0x10
push 0x424a26
call fcn.00409771
add esp, 0xc
push 0x41ddb4
push 0x40
push 0x424a46
call fcn.00409771
add esp, 0xc
push 0x51
pop eax
mov word [0x424a24], ax
mov eax, 0x2b70
mov word [0x424ac6], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x424b28], cx
add eax, ebx
cmp cx, si
jne 0x4025e8
mov edi, 0x424b28
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x402602
mov esi, 0x41e0ac
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x424b68], 5
xor esi, esi
call fcn.00403700
lea edi, [ebp - 0x248]
call fcn.00403660
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x424960], cx
add eax, ebx
cmp cx, si
jne 0x402633
mov edi, 0x424960
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x40266a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4026af
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402666
push 0x41ddb4
call fcn.004037b0
pop ecx
mov ebx, 0x424ba0
mov dword [0x424828], eax
call fcn.00401eaf
mov eax, dword [0x424b6c]
push esi
push esi
push esi
push 0x403b50
push esi
push esi
mov dword [0x424ba8], eax
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.00409038
leave
ret

Function at 0x4027b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
mov ecx, 0x41dce8
mov eax, ecx
lea edx, [eax + 2]
push edi
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4027c9
sub eax, edx
sar eax, 1
jne 0x4027dd
xor eax, eax
jmp 0x402841
push 0x41dcec
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0040918a
add esp, 0xc
test eax, eax
jne 0x4027d9
push dword [ebp - 4]
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x4d42
mov word [ebp - 0x18], ax
mov eax, dword [esi + 4]
add eax, 0xe
push 1
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x18]
push 0xe
push eax
mov dword [ebp - 0xe], 0x36
call fcn.004096ef
push dword [ebp - 4]
push 1
push dword [esi + 4]
push dword [esi]
call fcn.004096ef
push dword [ebp - 4]
call fcn.00409511
xor eax, eax
add esp, 0x24
inc eax
pop edi
leave
ret
Function at 0x402844
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov esi, ecx
mov dword [ebp - 0x80], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x402886
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4028ed
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0040c310
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4028d8
xor edi, edi
cmp dword [esi], edi
jle 0x4028cc
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409e2e
pop ecx
pop ecx
test eax, eax
je 0x402907
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x4028b4
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x4028ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x80]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409038
add ebp, 0x1b8
leave
ret
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 0xa14]
push 0x40
push eax
mov dword [ebp - 0x80], 1
mov dword [esi + 0xa0c], edi
call fcn.00409771
mov eax, dword [ebp - 0x70]
mov dword [esi + 0xa10], eax
mov eax, dword [esi + 0xa0c]
shl eax, 7
lea eax, [eax + esi + 0x504]
push eax
push 0x40
add esi, 0xa98
push esi
call fcn.00409771
add esp, 0x18
jmp 0x4028e3

Function at 0x402960
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esi], 0
call fcn.0040c310
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402a5a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402a27
mov eax, dword [esp + 8]
test eax, eax
jne 0x4029e3
cmp word [esp + 0x114], 4
jb 0x402a5a
mov dword [esi], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409038
add esp, 0x120
ret
cmp eax, 2
jne 0x402a05
mov dword [esi], eax
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409038
add esp, 0x120
ret
jae 0x402a0c
cmp eax, 1
jne 0x402a5a
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409038
add esp, 0x120
ret
cmp eax, 6
jne 0x402a5a
mov eax, dword [esp + 8]
test eax, eax
jne 0x402a4f
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409038
add esp, 0x120
ret
cmp eax, 1
jne 0x402a5a
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409038
add esp, 0x120
ret
Function at 0x402b20
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c310
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402bef
mov eax, 0x41ff6c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402b65
sub eax, edx
sar eax, 1
je 0x402bef
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ff6c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00409047
push 0x420274
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040918a
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402bef
push eax
push 1
push 0x200
push esi
call fcn.0040947d
mov eax, dword [esp + 0x14]
push eax
call fcn.00409511
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00409038
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00409038
add esp, 0x214
ret

Function at 0x402ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040c310
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402f30
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403040
cmp eax, 0xffffffff
jne 0x402d62
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00409038
add esp, 0x218
ret
push esi
call fcn.00402c10
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00409038
add esp, 0x218
ret
Function at 0x402d90
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x402eae
push 0xc00
call fcn.00409c31
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402ea1
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x402e09
jg 0x402dfd
test ecx, ecx
jbe 0x402e09
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x402e0d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x402e37
jg 0x402e23
cmp ecx, edx
jbe 0x402e37
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x402e61
jg 0x402e4d
cmp ecx, edx
jbe 0x402e61
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x402e8b
jg 0x402e77
cmp ecx, edx
jbe 0x402e8b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00417140
mov dword [esp + 0x10], eax
test esi, esi
je 0x402eae
push esi
call fcn.00409875
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402ed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402f21
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.004097f2
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x420428]
fadd qword [0x420440]
call fcn.00417090
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4032a0
call fcn.004097f2
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x420428]
fmul qword [0x420438]
fadd qword [0x420430]
call fcn.00417090
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403288
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403279
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403270
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403237
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
push ecx
push 0x420344
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040918a
add esp, 0xc
test eax, eax
je 0x4032d4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040ab72
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040aa7a
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040ab72
lea ebp, [esi + 0x32]
push ebp
call fcn.00409afd
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0040947d
mov eax, dword [esp + 0x40]
push eax
call fcn.00409511
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403380
mov ecx, dword [esp + 0x4c]
push 0x42034c
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040918a
add esp, 0x40
test eax, eax
je 0x403352
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.004096ef
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409511
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4033d0
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [0x420354]
mov ecx, dword [0x420358]
mov edx, dword [0x42035c]
push 0x103
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ax, word [0x420360]
lea ecx, [esp + 0x15]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1c], 0
call fcn.0040c310
push 0x103
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.0040c310
push 0x103
lea eax, [esp + 0x235]
push 0
push eax
mov byte [esp + 0x23c], 0
call fcn.0040c310
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403475
push esi
push edi
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403488
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.0040a6a7
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.0040a8b0
add esp, 0x14
test eax, eax
je 0x4034e2
mov byte [eax], 0
lea eax, [esp + 0x11c]
push 0x420364
push eax
call fcn.0040a690
mov esi, eax
add esp, 8
test esi, esi
je 0x403644
push esi
push 1
push 9
push 0x420368
call fcn.004096ef
push esi
push 1
push 5
push 0x420374
call fcn.004096ef
lea eax, [esp + 0x38]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403530
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004096ef
push esi
push 1
push 2
push 0x42037c
call fcn.004096ef
push esi
push 1
push 0xa
push 0x420380
call fcn.004096ef
lea eax, [esp + 0x48]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403570
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004096ef
push esi
push 1
push 0xf
push 0x42038c
call fcn.004096ef
push esi
push 1
push 7
push 0x42039c
call fcn.004096ef
lea eax, [esp + 0x250]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4035b2
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.004096ef
push esi
push 1
push 3
push 0x4203a4
call fcn.004096ef
push esi
push 1
push 5
push 0x4203a8
call fcn.004096ef
lea eax, [esp + 0x14c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035f7
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.004096ef
push esi
push 1
push 1
push 0x4203b0
call fcn.004096ef
push esi
call fcn.00409511
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x128]
push edx
push 0x4203b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
call fcn.00409038
add esp, 0x320
ret
Function at 0x403950
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4039c9
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.dll_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4039a1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4039d2
cmp ebx, 3
jb 0x403965
mov edi, 0xfffffffd
test esi, esi
je 0x4039c1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x4039ac
mov eax, esi
test esi, esi
je 0x403a3e
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4039ec
cmp dword [eax + 0x1c], 0
jne 0x4039f7
mov eax, dword [eax + 8]
test eax, eax
jne 0x4039e1
xor edi, edi
jmp 0x4039b1
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x4039b1

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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403ee0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403ebd
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040c310
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.0040c310
add esp, 0xc
lea esi, [esp + 8]
call fcn.00403c90
push 0x42040c
mov ecx, esi
push 0x104
push ecx
call fcn.00409047
add esp, 0xc
mov esi, 0x4241b0
cmp word [esi], 0
je 0x403e5c
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00409771
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00409047
add esp, 0xc
add esi, 0x118
cmp esi, 0x424728
jl 0x403e26
mov esi, 0x4241b0
nop
cmp word [esi], 0
je 0x403e81
push ebx
push edi
push esi
call fcn.00404740
add esp, 0xc
add esi, 0x118
cmp esi, 0x424728
jl 0x403e70
push 0x424da0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00409047
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403ebb
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.00409038
add esp, 0x41c
ret