joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c43c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c453
add esp, 0xfffffff0
call fcn.00403458
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004194c0
mov eax, dword [0x4630f4]
cmp word [eax + 2], 0
jne 0x45c47b
mov eax, dword [0x4630f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045db14
mov eax, dword [0x4631b4]
cmp word [eax + 2], 0
jne 0x45c495
mov eax, dword [0x4631b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dd0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403104
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403104
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ba24]
call fcn.00422e90
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c61c
mov eax, dword [0x463014]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423260
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e2ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463014]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c1a8
test eax, eax
je 0x45c58a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408440
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1d0
test eax, eax
je 0x45c59e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040f4
mov eax, dword [0x462ef4]
cmp byte [eax], 0
jne 0x45c5d2
mov eax, ebx
call fcn.0045c744
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045e488
mov eax, ebx
call fcn.0045ee4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c612
call fcn.004034b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c9c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464be4]
cmp dword [eax + 0x30], 0
je 0x45ca6e
cmp dword [ebx + 0x94], 0
jne 0x45ca68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c954
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ca68
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45ca2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ca68
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413ac8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ca3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d5d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45d605
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f74
jmp 0x45d612
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ed8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e664
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e6a5
mov eax, esi
call fcn.00444dc4
test al, al
je 0x45e6a5
mov eax, dword [ebx + 0x84]
call fcn.00444ac0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e6a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444ac0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45f504
Capabilities:
Create thread
Inject thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
lea edx, [ebp - 0xc]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 4
push 0x1000
push 0x1000
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
push edi
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 4
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0x1000
push esi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
mov eax, dword [ebp + 8]
push eax
push edi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x418d20
push 0x67
push esi
call edi
push 0x64
push 0x418c58
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401190
push 0
push esi
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x418d20
push 0x418c58
push 0
mov dword [0x418de8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401092
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404563
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402a93
call fcn.00402060
test eax, eax
je 0x4010c3
call fcn.00403194
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004012e0
test eax, eax
je 0x40107a
call fcn.00401490
mov ecx, dword [0x419688]
test ecx, ecx
jbe 0x4010fb
cmp word [0x41968c], 0
jbe 0x4010fb
mov esi, 0x41807c
call fcn.00403821
mov ax, word [0x41968c]
mov word [0x41808c], ax
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x414c38]
mov word [eax + 0x419bc0], cx
add eax, 2
test cx, cx
jne 0x401100
call fcn.00403885
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00408090
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x419bc0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x414c50
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4012e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x1d4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.00408090
add esp, 0xc
lea edi, [esp + 0x198]
call fcn.004033de
xor eax, eax
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x418df0], cx
add eax, 2
test cx, cx
jne 0x401321
push 0x418df0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40136e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.00404563
add esp, 0x1dc
ret
push 0x418df0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401355
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x4197c0
call fcn.00401d20
test eax, eax
jne 0x401440
jmp 0x4013b0
movzx ecx, word [eax + 0x414c54]
mov word [eax + 0x419968], cx
add eax, 2
test cx, cx
jne 0x4013b0
push 0x414c60
push 0x40
push 0x4197c4
call fcn.004045ef
add esp, 0xc
push 0x414c80
push 0x10
push 0x419846
call fcn.004045ef
add esp, 0xc
push 0x414c8c
push 0x40
push 0x419866
call fcn.004045ef
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x419844], ax
mov word [0x4198e6], cx
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + 0x414cac]
mov word [eax + 0x419948], cx
add eax, 2
test cx, cx
jne 0x401420
mov dword [0x419988], 5
call fcn.0040346c
push 0x414c8c
call fcn.004034f5
add esp, 4
mov dword [0x419688], eax
call fcn.00401940
push 0
push 0
push 0
push 0x401740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1dc]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00404563
add esp, 0x1dc
ret
Function at 0x401800
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov ecx, 0x414d64
call fcn.00403a4f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401922
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00408090
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x418e30
jmp 0x401880
cmp word [esi], 0
je 0x4018b6
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004045ef
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x401880
mov esi, 0x418e30
lea esp, [esp]
cmp word [esi], 0
je 0x4018e6
push edi
push 0x414d64
mov ecx, esi
call fcn.00404231
add esp, 8
add esi, 0x118
cmp esi, 0x4193a8
jl 0x4018d0
push 0x419bc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00404572
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401920
mov ebx, 2
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x41c
ret
Function at 0x401ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00408090
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00408090
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x414d78
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x414dbc
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b66
mov ebx, 1
push 0x414dc8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414dbc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b91
or ebx, 2
push 0x414e10
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414dbc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bbc
or ebx, 4
push 0x414e60
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414dbc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bea
or ebx, 0x100
push 0x414eb8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414dbc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c18
or ebx, 0x200
push 0x414f10
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414dbc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c46
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00404563
add esp, 0x414
ret
Function at 0x401dc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401ed3
cmp esi, ebx
je 0x401ed3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401df0
sub eax, edx
sar eax, 1
je 0x401ed3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401e5a
cmp dword [0x418070], 3
jne 0x401e5a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
jmp 0x401e6a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404572
push 0x414fd4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.004048c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401ed3
push eax
push 1
push 0x200
push edi
call fcn.00404bb7
mov eax, dword [esp + 0x14]
push eax
call fcn.00404c4b
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00408090
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402042
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x414fb4
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404572
push 0x414ff4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004048c4
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402027
push eax
push 1
push 0x200
push esi
call fcn.00404e29
mov eax, dword [esp + 0x14]
push eax
call fcn.00404c4b
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00404563
add esp, 0x210
ret
Function at 0x402910
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00408090
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00408090
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401ef0
test eax, eax
je 0x402a7a
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x414c8c]
mov word [eax + 0x4194b8], cx
add eax, 2
test cx, cx
jne 0x402970
xor eax, eax
jmp 0x402990
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x4193b0], cx
add eax, 2
test cx, cx
jne 0x402990
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x419430], cx
add eax, 2
test cx, cx
jne 0x4029b0
cmp dword [0x418070], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x4194b0], ax
mov word [0x419538], cx
mov dword [0x41953c], 5
je 0x402a09
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402a36
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.00404572
add esp, 0xc
push 0x414fdc
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.00404572
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00404563
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00404563
add esp, 0x414
ret

Function at 0x402a93
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x418070], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408090
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 0x402b1d
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x402afc
cmp eax, 2
jae 0x402af2
cmp eax, 1
jne 0x402b1d
mov dword [0x418070], 3
cmp dword [ebp - 0x7c], 6
jne 0x402b1d
test eax, eax
jne 0x402b12
mov dword [0x418070], 4
jmp 0x402b1d
cmp eax, 1
jne 0x402b1d
mov dword [0x418070], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00404563
add ebp, 0xa0
leave
ret
Function at 0x402b32
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41704c]
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.00408090
add esp, 0xc
cmp dword [0x418070], 3
lea eax, [ebp - 0x20c]
jne 0x402b98
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404572
add esp, 0xc
pop esi
jmp 0x402ba4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x415040
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404563
leave
ret

Function at 0x402d2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402eb2
push dword [ebp - 0x214]
call fcn.00402f9f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402da2
xor eax, eax
jmp 0x402da9
push esi
call fcn.00402c62
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404563
leave
ret

Function at 0x402e65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
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], edx
je 0x402ead
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x403096
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x414fd4
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004048c4
add esp, 0xc
test eax, eax
je 0x4030c3
xor eax, eax
jmp 0x40314e
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040540e
push dword [ebp - 4]
call fcn.00405630
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040540e
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040522c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404bb7
push dword [ebp - 4]
call fcn.00404c4b
push ebx
lea ebx, [edi + esi]
call fcn.00403152
push 0x414ff4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004048c4
add esp, 0x44
pop esi
test eax, eax
jne 0x4030bc
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404e29
push dword [ebp - 4]
call fcn.00404c4b
add esp, 0x14
test edi, edi
je 0x40314b
push edi
call fcn.004052f6
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x403653
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4036d2
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4036a8
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x4036d7
cmp dword [ebp - 8], 3
jb 0x40366e
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4036cb
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4036cb
cmp edi, esi
jne 0x4036b6
mov eax, dword [ebp - 4]
jmp 0x4036ee
cmp dword [eax + 0x34], 6
jne 0x4036eb
cmp dword [eax + 0x1c], esi
jne 0x4036f4
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4036e0
jmp 0x403731
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4036b9