joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d5d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e6c18]
cmp dword [eax + 0x30], 0
je 0x48d67e
cmp dword [ebx + 0x94], 0
jne 0x48d678
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48d564
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48d678
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 0x48d63e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48d678
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.0041dbf4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48d64d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48e1dc
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 0x48e211
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.004046ec
jmp 0x48e21e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404650
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48f330
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48f371
mov eax, esi
call fcn.00475574
test al, al
je 0x48f371
mov eax, dword [ebx + 0x84]
call fcn.00475270
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48f371
push 0
mov eax, dword [ebx + 0x84]
call fcn.00475270
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4aca2c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4aca51
cmp dword [esp + 4], 5
jb 0x4aca51
mov al, 1
jmp 0x4aca53
xor eax, eax
add esp, 0x94
ret
Function at 0x4bda30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bdc90
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4bda93
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004bd4f8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d8e8
cmp al, 1
jne 0x4bda93
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004bd810
test al, al
je 0x4bdc1f
cmp dword [ebp - 8], 0
jge 0x4bdab1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004bd4f8
mov eax, dword [ebp - 0x210]
call fcn.004048bc
cmp ebx, eax
jge 0x4bdafb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004bd4f8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e5024]
and eax, 0xff
bt dword [edx], eax
jae 0x4bdafb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4bdb0f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004bda0c
cmp ebx, dword [ebp - 8]
je 0x4bdc11
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4bdb3b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e498c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4bdbfe
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e498c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00475270
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e498c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00475270
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdc05
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4bdc72
cmp dword [ebp - 8], 0
jge 0x4bdc2a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004bd4f8
mov eax, dword [ebp - 0x218]
call fcn.004048bc
cmp eax, dword [ebp - 8]
jg 0x4bdc64
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004bd4f8
mov eax, dword [ebp - 0x21c]
call fcn.004048bc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004bda0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdc97
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404620
ret
Function at 0x4e02cc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe28
mov edi, edx
lea eax, [esp + 0x48]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, edi
call fcn.004045fc
push 0x40
lea eax, [esp + 0xc]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 8]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp], eax
cmp dword [esp], 0
je 0x4e0339
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
xor ebx, ebx
jmp 0x4e0329
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, edi
call fcn.00409a8c
inc ebx
mov eax, dword [esp + 4]
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x4e031a
call sub.wsock32.dll_WSACleanup
add esp, 0x1d8
pop edi
pop esi
pop ebx
ret
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, 0x214
mov eax, dword [0x42cc20]
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 0x430b50
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x430a88
push ebx
push 0x6d
push esi
call edi
mov eax, esi
call fcn.0040116c
xor edi, edi
push edi
push esi
push edi
push edi
push edi
mov eax, connect
push eax
push edi
push eax
push 0xcf0000
push 0x430b50
push ebx
push edi
mov dword [0x430c18], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40108a
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040e5e6
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
call fcn.00402698
call fcn.00401ddb
test eax, eax
je 0x4010ba
call fcn.00402d99
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040124e
test eax, eax
je 0x401071
call fcn.004013ae
mov ecx, dword [0x4314b8]
cmp ecx, edi
jbe 0x4010f1
cmp word [0x4314bc], di
jbe 0x4010f1
mov esi, 0x42df9c
call fcn.00403426
mov ax, word [0x4314bc]
mov word [0x42dfac], ax
xor eax, eax
movzx ecx, word [eax + 0x4277ac]
mov word [eax + 0x4319f0], cx
inc eax
inc eax
cmp cx, di
jne 0x4010f3
call fcn.0040348a
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push edi
push eax
call fcn.00410670
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4319f0
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
push 0x1f4
call ebx
push 1
push edi
push 0x4277c4
lea eax, [esp + 0x1c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4010b3
Function at 0x40124e
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00410670
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00402fe3
xor eax, eax
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x430c20], cx
inc eax
inc eax
cmp cx, bx
jne 0x401285
mov esi, 0x430c20
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x4012bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40139f
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4012b5
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4315f0
call fcn.00401b01
pop ecx
mov esi, 0x427800
test eax, eax
jne 0x401376
movzx ecx, word [eax + 0x4277c8]
mov word [eax + 0x431798], cx
inc eax
inc eax
cmp cx, bx
jne 0x4012f4
push 0x4277d4
push 0x40
push 0x4315f4
call fcn.0040e672
add esp, 0xc
push 0x4277f4
push 0x10
push 0x431676
call fcn.0040e672
add esp, 0xc
push esi
push 0x40
push 0x431696
call fcn.0040e672
add esp, 0xc
push 0x51
pop eax
mov word [0x431674], ax
mov eax, 0x2b8e
mov word [0x431716], ax
xor eax, eax
movzx ecx, word [eax + 0x427820]
mov word [eax + 0x431778], cx
inc eax
inc eax
cmp cx, bx
jne 0x401357
mov dword [0x4317b8], 5
call fcn.00403071
push esi
call fcn.004030fa
pop ecx
mov dword [0x4314b8], eax
call fcn.004017cc
push ebx
push ebx
push ebx
push 0x401607
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.0040e5e6
leave
ret
Function at 0x4016a2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ecx, 0x4278d4
call fcn.00403654
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x4017bd
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00410670
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00410670
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x430c60
mov ebx, edi
cmp word [ebx], 0
je 0x401753
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e672
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x4311d8
jl 0x401725
cmp word [edi], 0
je 0x401778
push dword [ebp + 8]
mov ecx, edi
push 0x4278d4
call fcn.00403e36
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4311d8
jl 0x401761
push 0x4319f0
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4017b7
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
leave
ret
Function at 0x4018e9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x42cc20]
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.00410670
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00410670
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 0x4278e8
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x42792c
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 0x40198d
mov dword [ebp - 0x80], 1
push 0x427938
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 0x4019b5
or dword [ebp - 0x80], 2
push 0x427980
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 0x4019dd
or dword [ebp - 0x80], 4
push 0x4279d0
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 0x401a08
or dword [ebp - 0x80], 0x100
push 0x427a28
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 0x401a33
or dword [ebp - 0x80], 0x200
push 0x427a80
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 0x401a61
or dword [ebp - 0x80], 0x400
mov ecx, dword [ebp + 0x394]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
or eax, 0x2000000
call fcn.0040e5e6
add ebp, 0x398
leave
ret
Function at 0x401b93
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x401c84
cmp edi, esi
je 0x401c84
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401bc9
sub eax, edx
sar eax, 1
je 0x401c84
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00410670
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x401c2a
cmp dword [0x42df90], 3
jne 0x401c2a
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427b40
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
jmp 0x401c3a
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.0040e5f5
and dword [ebp - 0x7c], 0
push 0x427b44
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040e947
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x401c84
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040ec3a
push dword [ebp - 0x7c]
call fcn.0040ecce
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.0040e5e6
add ebp, 0x194
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x42cc20]
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.00410670
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x401dc3
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x427b24
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040e5f5
push 0x427b64
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040e947
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x401dc3
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.0040eeac
push dword [ebp - 0x80]
call fcn.0040ecce
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e5e6
add ebp, 0x190
leave
ret
Function at 0x402560
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42cc20]
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.00410670
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00410670
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c9d
pop ecx
test eax, eax
je 0x402689
xor eax, eax
movzx ecx, word [eax + 0x427800]
mov word [eax + 0x4312e8], cx
inc eax
inc eax
cmp cx, si
jne 0x4025c0
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x4311e0], cx
inc eax
inc eax
cmp cx, si
jne 0x4025d7
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x431260], cx
inc eax
inc eax
cmp cx, si
jne 0x4025ef
cmp dword [0x42df90], 3
mov ax, word [ebp - 0x38c]
mov word [0x4312e0], ax
mov ax, word [ebp - 0x2ea]
mov word [0x431368], ax
mov dword [0x43136c], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x402647
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402664
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427b40
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
push 0x427b4c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040e5f5
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.0040e5e6
leave
ret

Function at 0x402698
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x42df90], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00410670
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 0x402722
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x402701
cmp eax, 2
jae 0x4026f7
cmp eax, 1
jne 0x402722
mov dword [0x42df90], 3
cmp dword [ebp - 0x7c], 6
jne 0x402722
test eax, eax
jne 0x402717
mov dword [0x42df90], 4
jmp 0x402722
cmp eax, 1
jne 0x402722
mov dword [0x42df90], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040e5e6
add ebp, 0xa0
leave
ret

Function at 0x402737
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42cc20]
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.00410670
add esp, 0xc
cmp dword [0x42df90], 3
lea eax, [ebp - 0x20c]
jne 0x40279d
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427b40
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
pop esi
jmp 0x4027a9
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x427bb0
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040e5e6
leave
ret
Function at 0x40292f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42cc20]
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.00410670
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.00402ab7
push dword [ebp - 0x214]
call fcn.00402ba4
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4029a7
xor eax, eax
jmp 0x4029ae
push esi
call fcn.00402867
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e5e6
leave
ret

Function at 0x402a6a
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 0x402ab2
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 0x402c9b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x427b44
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040e947
add esp, 0xc
test eax, eax
je 0x402cc8
xor eax, eax
jmp 0x402d53
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040f4ee
push dword [ebp - 4]
call fcn.0040f710
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040f4ee
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040f30c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040ec3a
push dword [ebp - 4]
call fcn.0040ecce
push ebx
lea ebx, [edi + esi]
call fcn.00402d57
push 0x427b64
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040e947
add esp, 0x44
pop esi
test eax, eax
jne 0x402cc1
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0040eeac
push dword [ebp - 4]
call fcn.0040ecce
add esp, 0x14
test edi, edi
je 0x402d50
push edi
call fcn.0040f3d6
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x403258
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 0x4032d7
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 0x4032ad
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 0x4032dc
cmp dword [ebp - 8], 3
jb 0x403273
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4032d0
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 0x4032d0
cmp edi, esi
jne 0x4032bb
mov eax, dword [ebp - 4]
jmp 0x4032f3
cmp dword [eax + 0x34], 6
jne 0x4032f0
cmp dword [eax + 0x1c], esi
jne 0x4032f9
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4032e5
jmp 0x403336
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 0x4032be