joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dcf0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c510
cmp dword [0x22fc25c], 0x37
jne 0x49ddaf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403298
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403364
push 0x403394
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033b4
push 0x4033bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x22fc260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4bf3ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x49dde0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x4b6f44]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x4b6f40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x4b6f48]
mov dword [esp + 0x20], edx
mov edx, dword [0x4b6f4c]
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov ebp, 0x20
jmp 0x49de34
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x18]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x1c]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x22f220c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
cmp dword [0x22fc25c], 0x1be
lea ebx, [edi + esi]
jne 0x49de89
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x24]
mov dword [0x22f2210], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x10], eax
mov dword [0x22f2214], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add edi, 0x61c88647
dec ebp
jne 0x49de30
cmp dword [0x22fc25c], 0x8d4
jne 0x49deef
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push str._Y_rmM
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040c280
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401084
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40106e
test eax, eax
jne 0x40105d
cmp word [ebp + 0x94], 4
jb 0x401084
inc esi
cmp eax, 2
jne 0x401064
push eax
pop esi
jae 0x40106b
cmp eax, 1
jne 0x401084
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x401084
test eax, eax
jne 0x40107c
push 4
jmp 0x401083
cmp eax, 1
jne 0x401084
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004089dc
add ebp, 0xa0
leave
ret
Function at 0x401a81
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040c280
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401b33
push edi
mov edi, 0x41bd24
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401acc
sub eax, edx
sar eax, 1
je 0x401b32
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.004089eb
push 0x41bd40
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00408f3b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401b32
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040922e
push dword [ebp - 0x78]
call fcn.004092c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.004089dc
add ebp, 0x198
leave
ret

Function at 0x401b4c
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040c280
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401c27
push edi
mov edi, 0x41bc70
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b9b
sub eax, edx
sar eax, 1
je 0x401c26
cmp dword [0x42006c], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401bd8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41bd48
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.004089eb
add esp, 0xc
jmp 0x401be0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.004089eb
push 0x41bd40
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00408f3b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c26
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040922e
push dword [ebp - 0x78]
call fcn.004092c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.004089dc
add ebp, 0x198
leave
ret
Function at 0x401c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040c280
add esp, 0xc
cmp dword [0x42006c], 3
lea eax, [ebp - 0x20c]
jne 0x401ca6
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41bd48
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004089eb
add esp, 0xc
pop esi
jmp 0x401cb2
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41bd4c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004089dc
leave
ret

Function at 0x401e36
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x254], eax
xor eax, eax
push 0x206
mov word [ebp - 0x24c], ax
xor ebx, ebx
lea eax, [ebp - 0x24a]
push ebx
push eax
call fcn.0040c280
add esp, 0xc
push 0x104
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x250]
push eax
movzx eax, word [ebp - 0x24c]
sub eax, 0x41
push eax
call fcn.00402034
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 0x250], ebx
push 9
pop ecx
mov esi, 0x41bd68
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jl 0x401f0e
push 0xa
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x250]
call fcn.0040a128
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push 0x14
push eax
call fcn.004089eb
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push connect
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401f12
xor eax, eax
jmp 0x401f1e
push dword [ebp - 0x254]
call fcn.00401d70
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089dc
leave
ret
Function at 0x401f2d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x401fd6
mov ebx, 0xb69
push ebx
call fcn.00409409
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401fc7
mov eax, dword [ebp - 4]
push 4
add eax, 0x30
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x401fa9
jg 0x401f9d
cmp ecx, dword [ebp - 0x18]
jbe 0x401fa9
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x89
dec ebx
jne 0x401f8c
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004157d0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401fd6
push dword [ebp - 4]
call fcn.0040946e
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fe6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x40202f
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.0040c280
add esp, 0xc
test edi, edi
je 0x402363
and dword [ebp - 0x7c], esi
mov ecx, 0x41bc20
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4022e8
sub eax, esi
sar eax, 1
je 0x40230c
push 0x41bdbc
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.00408f3b
add esp, 0xc
jmp 0x402340
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41bd24
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004089eb
push 0x41bdbc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00408f3b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x402363
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.004095db
push dword [ebp - 0x7c]
call fcn.004092c2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004089dc
add ebp, 0x194
leave
ret
Function at 0x40237b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x41bd40
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00408f3b
add esp, 0xc
test eax, eax
je 0x4023a5
xor eax, eax
jmp 0x402428
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.004096e7
push dword [ebp - 4]
call fcn.00409909
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.004096e7
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.004099c6
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040922e
push dword [ebp - 4]
call fcn.004092c2
push 0x32
lea ebx, [edi + esi]
call fcn.0040242b
push 0x41bdbc
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00408f3b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x40239e
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.004095db
push dword [ebp - 4]
call fcn.004092c2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x40246d
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41bdc4
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0040a2f4
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00409a90
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00409b00
add esp, 0x14
cmp eax, ebx
je 0x4024eb
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4025cf
mov eax, 0x4200f8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40251b
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x402530
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402542
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00409409
push esi
mov edi, eax
push ebx
push edi
call fcn.0040c280
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push 0x4200f8
push esi
push edi
call fcn.00409b2d
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40258b
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push 0x41bdd0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4025ce
push edi
call fcn.0040946e
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.004089dc
add ebp, 0x298
leave
ret
Function at 0x4025e6
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x41f044]
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.0040c280
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x421970
call fcn.004019f5
pop ecx
push 2
pop ebx
test eax, eax
jne 0x402701
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.0040c280
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.00402793
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x421b18], cx
add eax, ebx
cmp cx, si
jne 0x402663
push 0x41bc88
push 0x40
push 0x421974
call fcn.00408a68
add esp, 0xc
push 0x51
pop eax
push 0x41bca4
push 0x10
push 0x4219f6
mov word [0x4219f4], ax
call fcn.00408a68
add esp, 0xc
push 0x41bc54
push 0x40
push 0x421a16
call fcn.00408a68
mov eax, 0x2b66
add esp, 0xc
mov word [0x421a96], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x421af8], cx
add eax, ebx
cmp cx, si
jne 0x4026c8
mov edi, 0x421af8
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x4026e2
mov esi, 0x41bdd8
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x421b38], 5
xor esi, esi
call fcn.00402821
lea edi, [ebp - 0x248]
call fcn.00402793
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x421da8], cx
add eax, ebx
cmp cx, si
jne 0x402713
mov edi, 0x421da8
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x40274a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402784
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402746
mov ebx, 0x421e28
call fcn.00402a08
mov eax, dword [0x421b3c]
push esi
push esi
push esi
push 0x402e7e
push esi
push esi
mov dword [0x421e30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4200e8], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089dc
leave
ret
Function at 0x402bff
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.004099c6
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402c70
push dword [ebp - 0x28]
call fcn.00409f27
push dword [ebp - 0x34]
call fcn.004099c6
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402d2a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x402d2a
jmp 0x402c97
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x402caa
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x402d19
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402cbc
sub eax, ecx
cmp eax, 0x10
jle 0x402ccd
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402ced
cmp ecx, eax
jne 0x402cde
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402cd5
lea eax, [ebp - 0x24]
push eax
call fcn.004028aa
pop ecx
test eax, eax
je 0x402d0f
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00408a68
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402cb4
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x402d2a
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402c94
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402d41
push dword [ebp - 0x28]
call fcn.00409f27
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004089dc
leave
ret
Function at 0x403096
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x430], ecx
call fcn.00403207
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x4031fb
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.0040c280
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.0040c280
lea edi, [ebp - 0x220]
call fcn.00402f7d
push 0x41bd48
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.004089eb
mov byte [ebp - 0x18], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x421058
cmp word [ebx], 0
je 0x403188
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00408a68
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.004089eb
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x18]
call fcn.004054a1
add esp, 0x1c
test eax, eax
je 0x403188
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x403188
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x4215d0
jl 0x403130
mov edi, 0x421058
cmp word [edi], 0
je 0x4031b3
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.0040398b
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4215d0
jl 0x40319b
push 0x422028
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004089eb
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x4031f5
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004089dc
leave
ret