joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c204
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c308
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 2], 0
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046d0
lea eax, [ebp - 8]
call fcn.00404b48
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404af8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47c2f2
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47c2eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404af8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47c2d5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47c318
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47c2d5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
imul ax, word [ebp - 0x1a], 0x3e8
imul dx, word [ebp - 0x1c], 0x64
add ax, dx
mov dx, word [ebp - 0x1e]
add edx, edx
lea edx, [edx + edx*4]
add ax, dx
add ax, word [ebp - 0x20]
mov word [ebp - 2], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c2f2
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c30f
lea eax, [ebp - 8]
call fcn.00404638
ret

Function at 0x47c478
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c4e7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.004095a4
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x47c4fc
call fcn.00404944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c4ee
lea eax, [ebp - 0x108]
call fcn.00404638
ret

Function at 0x47c500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c56f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.004095a4
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x47c584
call fcn.00404944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c576
lea eax, [ebp - 0x108]
call fcn.00404638
ret
Function at 0x47c5cc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47c5d4
push ecx
xor eax, eax
push ebp
push 0x47c711
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0047c588
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409124
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x47c724
call fcn.00404944
cmp dword [ebp - 4], 0
je 0x47c64b
mov eax, dword [ebp - 4]
call fcn.00408eb8
test al, al
je 0x47c64b
mov eax, dword [ebp - 4]
call fcn.0047c204
cmp ax, 0x7d8
jb 0x47c64b
mov eax, dword [ebp - 8]
call fcn.00408eb8
test al, al
je 0x47c64b
mov eax, dword [ebp - 8]
call fcn.0047c204
cmp ax, 0x7d8
jae 0x47c6f6
mov eax, dword [ebp - 4]
call fcn.00408eb8
test al, al
je 0x47c681
push 0
push 0x47c738
push dword [ebp - 4]
push 0x47c754
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049b8
mov eax, dword [ebp - 0x10]
call fcn.00404af8
push eax
call sub.kernel32.dll_WinExec
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402ab4
mov eax, dword [ebp - 0x14]
mov edx, 0x47c760
call fcn.00404a44
jne 0x47c6ef
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402ab4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409240
mov eax, dword [ebp - 0x18]
mov edx, 0x47c770
call fcn.004085e0
test eax, eax
jne 0x47c6ef
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402ab4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409124
lea eax, [ebp - 0x20]
mov edx, 0x47c784
call fcn.00404900
mov eax, dword [ebp - 0x20]
call fcn.0047c9d4
jmp 0x47c6f6
xor eax, eax
call fcn.0047c9d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c718
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.0040465c
ret
Function at 0x48534c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x485354
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x485546
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48555c
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040468c
lea ecx, [ebp - 0x10]
mov edx, 0x485570
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040468c
lea ecx, [ebp - 0x14]
mov edx, 0x485588
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040468c
lea ecx, [ebp - 0x18]
mov edx, 0x4855a4
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040468c
lea ecx, [ebp - 0x1c]
mov edx, 0x4855c0
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040468c
lea ecx, [ebp - 0x24]
mov edx, 0x4855d8
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408768
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408b48
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4855f0
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x28]
call fcn.004821f4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x485600
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x2c]
call fcn.004821f4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x485618
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408b48
inc eax
je 0x4854e9
lea ecx, [ebp - 0x34]
mov edx, 0x485618
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x34]
call fcn.00408b0c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a3a0
fstp qword [ebp - 0x3c]
wait
call fcn.0040a704
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x485504
lea ecx, [ebp - 0x40]
mov edx, 0x485618
mov eax, esi
call fcn.004830dc
mov eax, dword [ebp - 0x40]
call fcn.004821f4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x485628
mov eax, esi
call fcn.004830dc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040468c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48554d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040465c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040465c
ret
Function at 0x4917e4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49183e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004917d4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00480e60
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00480a60
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491845
lea eax, [ebp - 4]
call fcn.00404638
ret
Function at 0x4950dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404ae8
mov eax, dword [ebp - 8]
call fcn.00404ae8
xor eax, eax
push ebp
push 0x4951f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408eb8
test al, al
je 0x495123
mov eax, dword [ebp - 8]
call fcn.00404af8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 8]
call fcn.00408eb8
test al, al
je 0x495145
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4133c8]
call fcn.00417f90
mov dword [ebp - 0x10], eax
jmp 0x49515c
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4133c8]
call fcn.00417f90
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x491ee8]
call fcn.004923d0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4951d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4951a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004924f8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4951b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4951d8
mov eax, dword [ebp - 0x10]
call fcn.00403844
mov eax, dword [ebp - 0x14]
call fcn.00403844
ret
Function at 0x405c73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405caa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c84
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405c7f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cbd
pop edi
not eax
pop esi
ret 0xc

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4028f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402901
pop dword [ebp - 0x2c]
mov eax, 0x3553d6b9
sub eax, 0x3513adb8
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x7a926db6
add dword [ebp - 0x3c], 0xd3bfd795
mov dword [ebp - 0x38], 0x2c24de54
add dword [ebp - 0x38], 0x60e6df1
mov dword [ebp - 0x34], 0x2827d7b4
add dword [ebp - 0x34], 0x24246c7a
mov dword [ebp - 0x30], 0xee10146e
add dword [ebp - 0x30], 0x11efeb92
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x8fab2c2c
add eax, 0x7095a420
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x623c81f4
add dword [ebp - 0x3c], 0x1235e762
mov dword [ebp - 0x38], 0x8e46e5c9
add dword [ebp - 0x38], 0xb3257bac
mov dword [ebp - 0x34], 0xcbd13170
add dword [ebp - 0x34], 0x979e3afc
mov dword [ebp - 0x30], 0xb12a8a9
add dword [ebp - 0x30], 0xf4ed5757
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d9f7
push 0
call eax
mov ecx, 0xce8edf73
add ecx, 0x3171793c
mov ebx, eax
mov edx, 0x12d16337
add edx, 0xed704cc9
add edx, dword [ebp - 0x2c]
mov edi, 0x8c844efc
mov dword [ebp - 0x14], 0x65fd4a4f
mov esi, dword [edx]
mov dword [ebp - 4], 0x57ee2867
sub esi, edi
xor dword [ebp - 0x14], edi
mov dword [ebx], esi
add dword [ebp - 0x28], ebx
add ebx, 4
add edx, 4
loop 0x402a18
add eax, 0xb84de6c8
sub eax, 0xb84c9139
mov ebx, eax
add eax, 0x8d2d6029
sub eax, 0x8d2d6024
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00415240
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x401084
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40106e
test eax, eax
jne 0x40105d
cmp word [ebp + 0x94], 4
jb 0x401084
inc esi
cmp eax, 2
jne 0x401064
push eax
pop esi
jae 0x40106b
cmp eax, 1
jne 0x401084
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x401084
test eax, eax
jne 0x40107c
push 4
jmp 0x401083
cmp eax, 1
jne 0x401084
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412e4d
add ebp, 0xa0
leave
ret
Function at 0x401a68
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00415240
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401b1a
push edi
mov edi, str.golfinfo.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401ab3
sub eax, edx
sar eax, 1
je 0x401b19
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412e5c
push 0x42b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004133bb
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401b19
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.004136ae
push dword [ebp - 0x78]
call fcn.00413742
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412e4d
add ebp, 0x198
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00415240
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401c0e
push edi
mov edi, str.golfset.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b82
sub eax, edx
sar eax, 1
je 0x401c0d
cmp dword [0x432fc0], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401bbf
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42b878
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412e5c
add esp, 0xc
jmp 0x401bc7
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412e5c
push 0x42b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004133bb
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c0d
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.004136ae
push dword [ebp - 0x78]
call fcn.00413742
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412e4d
add ebp, 0x198
leave
ret
Function at 0x401c27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00415240
add esp, 0xc
cmp dword [0x432fc0], 3
lea eax, [ebp - 0x20c]
jne 0x401c8d
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42b878
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412e5c
add esp, 0xc
pop esi
jmp 0x401c99
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x42b87c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00412e4d
leave
ret

Function at 0x401e1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x254], eax
xor eax, eax
push 0x206
mov word [ebp - 0x24c], ax
xor ebx, ebx
lea eax, [ebp - 0x24a]
push ebx
push eax
call fcn.00415240
add esp, 0xc
push 0x104
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x250]
push eax
movzx eax, word [ebp - 0x24c]
sub eax, 0x41
push eax
call fcn.0040201b
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 0x250], ebx
push 9
pop ecx
mov esi, str..PHYSICALDRIVE
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jl 0x401ef5
push 0xa
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x250]
call fcn.004144c8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push 0x14
push eax
call fcn.00412e5c
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x401ef9
xor eax, eax
jmp 0x401f05
push dword [ebp - 0x254]
call fcn.00401d57
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e4d
leave
ret
Function at 0x401f14
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x401fbd
mov ebx, 0xb69
push ebx
call fcn.00408a1a
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x401fae
mov eax, dword [ebp - 4]
push 4
add eax, 0x30
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x401f90
jg 0x401f84
cmp ecx, dword [ebp - 0x18]
jbe 0x401f90
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x89
dec ebx
jne 0x401f73
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00417050
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401fbd
push dword [ebp - 4]
call fcn.00408a0f
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fcd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x402016
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.00415240
add esp, 0xc
test edi, edi
je 0x40234a
and dword [ebp - 0x7c], esi
mov ecx, 0x42b998
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4022cf
sub eax, esi
sar eax, 1
je 0x4022f3
push 0x42b8ec
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.004133bb
add esp, 0xc
jmp 0x402327
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00412e5c
push 0x42b8ec
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004133bb
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x40234a
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00413981
push dword [ebp - 0x7c]
call fcn.00413742
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412e4d
add ebp, 0x194
leave
ret
Function at 0x402362
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x42b870
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004133bb
add esp, 0xc
test eax, eax
je 0x40238c
xor eax, eax
jmp 0x40240f
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00413a8d
push dword [ebp - 4]
call fcn.00413caf
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00413a8d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00413d6c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.004136ae
push dword [ebp - 4]
call fcn.00413742
push 0x32
lea ebx, [edi + esi]
call fcn.00402412
push 0x42b8ec
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004133bb
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x402385
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00413981
push dword [ebp - 4]
call fcn.00413742
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x402454
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push str._uinsey.bat
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00414694
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413e36
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00413ea0
add esp, 0x14
cmp eax, ebx
je 0x4024d2
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4025b6
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402502
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x402517
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402529
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00408a1a
push esi
mov edi, eax
push ebx
push edi
call fcn.00415240
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push esi
push edi
call fcn.00413ecd
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402572
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4025b5
push edi
call fcn.00408a0f
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e4d
add ebp, 0x298
leave
ret