joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45701c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x457054]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457035
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457044
or bl, 4
test esi, 0x20000000
je 0x45704f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45c0d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x45c178
mov ax, word [esi + 4]
sub ax, 9
je 0x45c0ff
add eax, 0xffffffe4
sub ax, 4
jb 0x45c131
jmp 0x45c178
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x45c178
push 1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
setge cl
mov edx, dword [ebx + 0x220]
mov eax, ebx
call fcn.00446310
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x220]
test eax, eax
je 0x45c181
cmp dword [ebx + 0xc], 0x115c
je 0x45c181
cmp dword [eax + 0xc], 0x115c
je 0x45c181
push 0
mov dx, word [esi + 4]
cmp dx, 0x27
je 0x45c163
cmp dx, 0x28
je 0x45c163
xor ecx, ecx
jmp 0x45c165
mov cl, 1
mov edx, dword [eax + 0x30]
xchg edx, eax
call fcn.00446310
mov dword [esi + 0xc], 1
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.004452a4
pop esi
pop ebx
ret
Function at 0x45d810
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45d822
add esp, 0xfffffff0
call fcn.00403858
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004220a0
mov eax, dword [0x48b2e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45dbb4
mov eax, dword [0x48b2f4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45dbc0
mov eax, ebx
call fcn.0045dbcc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417a70]
call fcn.004034c4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417a70]
call fcn.004034c4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417a70]
call fcn.004034c4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417a70]
call fcn.004034c4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417a70]
call fcn.004034c4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x459fe4
push eax
push 0
push 0
mov eax, dword [0x48b43c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423aec]
call fcn.00425200
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423aec]
call fcn.00425200
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423aec]
call fcn.00425200
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045e034
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45df10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45df10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45df10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d95f
call fcn.004038b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45dcf4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45de9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45de80
mov dl, 1
mov eax, dword [0x4180d4]
call fcn.004034c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404284
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45de6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044a9a4
test al, al
je 0x45de62
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45deb0
lea eax, [ebp - 0x254]
call fcn.00409858
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45de62
xor eax, eax
push ebp
push 0x45de5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45dee8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45de44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45de44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45dd65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c684
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dea6
lea eax, [ebp - 0x260]
call fcn.00404284
ret

Function at 0x45e7d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48cc38]
cmp byte [eax + 0xa5], 0
jne 0x45e845
cmp dword [0x48cc50], 0
jne 0x45e806
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45e790
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48cc50], eax
cmp dword [0x48cc4c], 0
jne 0x45e821
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48cc4c], eax
cmp dword [0x48cc54], 0
jne 0x45e845
push esp
push 0
push 0
push 0x45e734
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48cc54], eax
pop edx
ret
Function at 0x45f010
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48cc38]
cmp dword [eax + 0x30], 0
je 0x45f0ba
cmp dword [ebx + 0x94], 0
jne 0x45f0b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45efa0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f0b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f07a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f0b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a2a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f089
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45fb80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45fbb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404374
jmp 0x45fbc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460a6c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460aad
mov eax, esi
call fcn.004460e0
test al, al
je 0x460aad
mov eax, dword [ebx + 0x84]
call fcn.00445ddc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460aad
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445ddc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x464a9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x464b00
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408dc4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464b07
lea eax, [ebp - 0xc]
call fcn.00404284
ret
Function at 0x464b7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x464bd8
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x464ba7
call fcn.0040cc84
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004028fc
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x464bd8
call fcn.0040cc84
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x46dd04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46dddc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48d024], 0
jne 0x46ddc0
lea eax, [ebp - 4]
mov edx, 0x46ddf4
call fcn.0040431c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404744
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46ddc0
mov eax, ebx
call fcn.00402720
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46ddb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46dda3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46de04
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46dda3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x48d024], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ddc0
mov eax, dword [ebp - 0xc]
call fcn.00402740
ret
mov ebx, dword [0x48d024]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dde3
lea eax, [ebp - 4]
call fcn.00404284
ret

Function at 0x47d254
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404284
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47d2a3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402768
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402748
xor eax, eax
push ebp
push 0x402741
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402784
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402748
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403c40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403df8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403ca1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403e14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d0e
xor eax, eax
push ebp
push 0x403d07
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403cf0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403e34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d0e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403def
cmp byte [ebp - 0xd], 0
jne 0x403d50
cmp byte [ebp - 0x12], 0
je 0x403def
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403d69
dec ebx
cmp byte [ebx], 0x2e
je 0x403d78
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403d68
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403def
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403da5
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403def
cmp byte [ebp - 0xd], 0
je 0x403def
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403def
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405d3a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405c83
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030ec
jmp 0x405d21
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405be4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405c04
mov ebx, eax
test esi, esi
je 0x405cab
dec esi
test esi, esi
jl 0x405cab
cmp edi, ebx
jne 0x405c8a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.0040312c
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403368
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403174
cmp eax, 2
jl 0x405d21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405d21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403174
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405d21
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403174
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d41
lea eax, [ebp - 0x110]
call fcn.00403008
ret

Function at 0x405d98
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405e30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x405de5
mov eax, dword [ebx + 0x19]
call fcn.00403328
push eax
push esi
mov eax, edi
call fcn.00403328
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403328
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x405e1a
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403328
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00405a7c
mov eax, dword [ebp - 8]
call fcn.00403328
push eax
mov eax, edi
call fcn.00403328
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403328
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e37
lea eax, [ebp - 8]
call fcn.00403008
ret
Function at 0x40744c
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40745b
mov edx, dword [edx + 0x36]
jmp fcn.0040312c
mov ecx, dword [edx + 0x18]
jecxz 0x407453
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.00403438
pop edx
mov ecx, dword [ebx]
jecxz 0x407483
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x4074f4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x407500
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x40751c
push eax
je 0x40751d
call dword [0x41112c]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41112c]
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00416c10
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4010d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4010a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40107e
cmp word [esp + 0x118], 4
jb 0x4010d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 2
jae 0x401088
cmp eax, 1
jne 0x4010d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 6
jne 0x4010d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4010cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 1
jne 0x4010d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
Function at 0x401c80
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d4f
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401cc5
sub eax, edx
sar eax, 1
je 0x401d4f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041483b
push 0x42c880
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414d8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d4f
push eax
push 1
push 0x200
push esi
call fcn.0041507e
mov eax, dword [esp + 0x14]
push eax
call fcn.00415112
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret

Function at 0x401d70
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401e75
mov eax, str.golfset.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401db5
sub eax, edx
sar eax, 1
je 0x401e75
cmp dword [0x433fbc], 3
jne 0x401dfc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42c888
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
jmp 0x401e0c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfset.ini
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0041483b
push 0x42c880
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414d8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e75
push eax
push 1
push 0x200
push esi
call fcn.0041507e
mov edx, dword [esp + 0x14]
push edx
call fcn.00415112
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
Function at 0x401e90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x432c20]
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.00416c10
add esp, 0xc
cmp dword [0x433fbc], 3
jne 0x401ef0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42c888
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
jmp 0x401eff
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42c88c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0041482c
add esp, 0x20c
ret

Function at 0x4020d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x254
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x258]
push ebx
push esi
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x5a]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x5c], cx
call fcn.00416c10
add esp, 0xc
push 0x104
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx ecx, word [esp + 0x50]
sub ecx, 0x41
push ecx
lea ebx, [esp + 0x10]
call fcn.004023a0
xor eax, eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x10]
mov ecx, 9
mov esi, str..PHYSICALDRIVE
lea edi, [esp + 0x2c]
xor edx, edx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x4c], 0
mov word [esp + 0x14], dx
test eax, eax
jl 0x4021b9
push 0xa
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00415e98
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.0041483b
add esp, 0x1c
push 0
push 0
push 3
push 0
push 3
push connect
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x4021d3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0041482c
add esp, 0x254
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.00402000
mov ecx, dword [esp + 0x260]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041482c
add esp, 0x254
ret