joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ede
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040be76
and dword [ebp - 0x14], 0
cmp dword [0x4313d8], 0
mov dword [ebp - 0x18], eax
jne 0x412f91
push 0x404070
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413039
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404064
push ebx
call edi
test eax, eax
je 0x413039
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404054
push ebx
mov dword [0x4313d8], eax
call edi
push eax
call esi
push 0x404040
push ebx
mov dword [0x4313dc], eax
call edi
push eax
call esi
push 0x404024
push ebx
mov dword [0x4313e0], eax
call edi
push eax
call esi
mov dword [0x4313e8], eax
test eax, eax
je 0x412f91
push 0x40400c
push ebx
call edi
push eax
call esi
mov dword [0x4313e4], eax
mov eax, dword [0x4313e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412fea
cmp dword [0x4313e8], ecx
je 0x412fea
push eax
call esi
push dword [0x4313e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412fea
test ebx, ebx
je 0x412fea
call edi
test eax, eax
je 0x412fe1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412fe1
test byte [ebp - 8], 1
jne 0x412fea
or dword [ebp + 0x10], 0x200000
jmp 0x41301d
mov eax, dword [0x4313dc]
cmp eax, dword [ebp - 0x18]
je 0x41301d
push eax
call esi
test eax, eax
je 0x41301d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41301d
mov eax, dword [0x4313e0]
cmp eax, dword [ebp - 0x18]
je 0x41301d
push eax
call esi
test eax, eax
je 0x41301d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4313d8]
call esi
test eax, eax
je 0x413039
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41303b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088a1
leave
ret
Function at 0x429300
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b6120], 0x37
jne 0x4293a6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404118
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404160
push 0x4041a4
push 0x4041d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b6124]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x436184]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x4295c0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b6120]
sub esp, 0x484
push ebx
mov ebx, dword [0x436184]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4297b6
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x4295f6
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0x7b6120], 0x1c
jne 0x42960d
lea eax, [esp + 0x44]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [ebx + 4]
mov edx, dword [str._vkS]
mov eax, dword [0x42f70c]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x42f710]
mov dword [esp + 0x34], edx
mov edx, dword [0x42f714]
mov ebx, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x20
jmp 0x429652
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x38]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0x7b50a4], esi
mov eax, dword [esp + 0x1c]
add dword [0x7b50a4], eax
mov eax, dword [0x7b50a4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x40]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0x7b6120], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x4296e6
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7b6120], 0x979
mov dword [0x7b50a8], 0xff6b3619
mov dword [0x7b50ac], 0xffffffff
jne 0x42973a
mov edx, dword [esp + 0x3c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea eax, [esp + 0x94]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x429650
cmp dword [0x7b6120], 0x8d4
jne 0x42976f
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], edx
cmp dword [0x7b6120], 0x17
jne 0x4297a5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x4295f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x484
ret
Function at 0x4090f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, 0xf4564519
mov fs, word [edx - 0x5b]

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x412d20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x412d3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d30
mov eax, 1
add ebx, ebx
jne 0x412d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412d48
jne 0x412d64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412d48
xor ecx, ecx
sub eax, 3
jb 0x412d78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412dea
mov ebp, eax
add ebx, ebx
jne 0x412d83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412d90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412db4
inc ecx
add ebx, ebx
jne 0x412da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412d95
jne 0x412db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412d95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412dd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412dc5
jmp 0x412d36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412dd4
add edi, ecx
jmp 0x412d36
pop esi
mov edi, esi
mov ecx, 0x32f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412df2
cmp byte [edi], 0
jne 0x412df2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412df7
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412e66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12198]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1219c]
or eax, eax
je 0x412e60
mov dword [ebx], eax
add ebx, 4
jmp 0x412e41
call dword [esi + 0x121ac]
mov ebp, dword [esi + 0x121a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412e9a
sub esp, 0xffffff80
jmp 0x4082e0
Function at 0x4368d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x4368f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4368f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4368e8
mov eax, 1
add ebx, ebx
jne 0x43690b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436900
jne 0x43691c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436900
xor ecx, ecx
sub eax, 3
jb 0x436930
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4369a2
mov ebp, eax
add ebx, ebx
jne 0x43693b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43696c
inc ecx
add ebx, ebx
jne 0x436958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43694d
jne 0x436969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43694d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43698c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43697d
jmp 0x4368ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43698c
add edi, ecx
jmp 0x4368ee
pop esi
mov edi, esi
mov ecx, 0x4fa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4369aa
cmp byte [edi], 0xae
jne 0x4369aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4369af
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436a1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3aa00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3aa3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4369dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3aa44]
or eax, eax
je 0x436a18
mov dword [ebx], eax
add ebx, 4
jmp 0x4369f9
call dword [esi + 0x3aa40]
mov ebp, dword [esi + 0x3aa48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436a52
sub esp, 0xffffff80
jmp 0x405120
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.00416cb0
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.004148cc
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.004148cc
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.004148cc
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.004148cc
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.00416cb0
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.004148db
push 0x42c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414e2b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d4f
push eax
push 1
push 0x200
push esi
call fcn.0041511e
mov eax, dword [esp + 0x14]
push eax
call fcn.004151b2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148cc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148cc
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.00416cb0
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 [0x433fc0], 3
jne 0x401dfc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004148db
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.004148db
push 0x42c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414e2b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e75
push eax
push 1
push 0x200
push esi
call fcn.0041511e
mov edx, dword [esp + 0x14]
push edx
call fcn.004151b2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148cc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148cc
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.00416cb0
add esp, 0xc
cmp dword [0x433fc0], 3
jne 0x401ef0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c8b8
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004148db
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 0x42c8bc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.004148cc
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.00416cb0
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.00415f38
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.004148db
add esp, 0x1c
push 0
push 0
push 3
push 0
push 3
push closesocket
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.004148cc
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.004148cc
add esp, 0x254
ret
Function at 0x402200
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x40231e
push 0xb69
call fcn.0040a491
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402311
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402279
jg 0x40226d
test ecx, ecx
jbe 0x402279
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x40227d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x4022a7
jg 0x402293
cmp ecx, edx
jbe 0x4022a7
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x4022d1
jg 0x4022bd
cmp ecx, edx
jbe 0x4022d1
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x4022fb
jg 0x4022e7
cmp ecx, edx
jbe 0x4022fb
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00418ac0
mov dword [esp + 0x10], eax
test esi, esi
je 0x40231e
push esi
call fcn.0040a49c
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402391
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x402530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.004149d9
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e498]
fadd qword [0x42e4b0]
call fcn.004189d0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402650
call fcn.004149d9
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e498]
fmul qword [0x42e4a8]
fadd qword [0x42e4a0]
call fcn.004189d0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402638
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402629
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402620
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4025e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cb0
add esp, 0xc
cmp edi, esi
je 0x4027d8
mov eax, 0x42c9b4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402735
sub eax, edx
sar eax, 1
je 0x40275f
push 0x42c924
lea edx, [esp + 8]
push 0x42c9b4
push edx
call fcn.00414e2b
add esp, 0xc
jmp 0x40279a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004148db
push 0x42c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00414e2b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x4027bd
push eax
push 1
push 0x200
push edi
call fcn.004153f1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004151b2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148cc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004148cc
add esp, 0x214
ret