joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a639
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412768
cmp edx, dword [eax]
je 0x40a65b
add eax, 8
inc ecx
cmp eax, 0x4127f8
jl 0x40a64c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412768]
jne 0x40a789
mov eax, dword [0x41333c]
cmp eax, 1
je 0x40a763
test eax, eax
jne 0x40a68c
cmp dword [0x410680], 1
je 0x40a763
cmp edx, 0xfc
je 0x40a789
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a6c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a706
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e19c
push edi
call fcn.0040bc60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040baf0
lea eax, [ebp - 0xa0]
push 0x40e17c
push eax
call fcn.0040baf0
push dword [esi + 0x41276c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040baf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bbd0
add esp, 0x2c
pop edi
jmp 0x40a789
lea eax, [ebp + 8]
lea esi, [esi + 0x41276c]
push 0
push eax
push dword [esi]
call fcn.00409da0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403571
Capabilities:
Terminate process

Disassembly:
jmp 0x453494
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4534a5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405808
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40368e
Capabilities:
Query environment variable

Disassembly:
jmp 0x49aba1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49abb2
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aa88
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f35
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49abda
push ebx
push esi
push edi
call fcn.00405600
add esp, 0xc
push 0
call fcn.00406127
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4056b9
Capabilities:
Parse pe header

Disassembly:
jmp 0x442632
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442671
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442671
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442671
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442671
cmp dword [ecx + 0x74], 0xe
jbe 0x442671
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4402c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036e8
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4402ff
sub eax, 1
je 0x4402fa
sub eax, 1
je 0x4402f6
xor eax, eax
leave
ret
push 3
jmp 0x440301
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48690b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48694a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48694a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48694a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48694a
cmp dword [ecx + 0x74], 0xe
jbe 0x48694a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x491d37
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405d3f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x491d79
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x491ed5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e98
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4cf960]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040320b
mov ecx, dword [esi*4 + 0x4cf960]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x491ece
cmp eax, dword [ecx + edi + 0x24]
jne 0x491ece
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491ece
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040320b
add esp, 0x14
test edx, edx
jl 0x491ece
jg 0x491e44
test eax, eax
jb 0x491ece
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x491ece
jl 0x491e5e
cmp dword [ebp - 0x1008], eax
ja 0x491ece
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x491e7c
test ebx, ebx
je 0x491eb5
cmp ecx, edi
jae 0x491eb5
mov al, byte [ecx]
cmp al, 0xd
jne 0x491e96
lea eax, [edi - 1]
cmp ecx, eax
jae 0x491ea2
cmp byte [ecx + 1], 0xa
jne 0x491ea2
inc ecx
jmp 0x491ea2
movzx eax, al
movsx eax, byte [eax + 0x4cc3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x491e7c
cmp edx, ebx
jne 0x491e7c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x491ed3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x492614
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4cf960]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492654
cmp byte [ebx], 0xa
jne 0x492654
or byte [edi + eax + 0x28], 4
jmp 0x492659
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x492758
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49273b
inc eax
cmp dl, 0xd
je 0x492685
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4926ab
cmp eax, ecx
jae 0x4926b9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49266d
jmp 0x492758
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492736
cmp dword [ebp - 0x10], 0
je 0x492736
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cf960]
test byte [eax + edi + 0x28], 0x48
je 0x492710
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4926fb
mov byte [esi], dl
jmp 0x49270c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cf960]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492758
cmp byte [ebp - 1], 0xa
jne 0x49271f
cmp esi, ebx
jne 0x49271f
mov byte [esi], 0xa
jmp 0x492757
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492758
mov byte [esi], 0xd
jmp 0x492757
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cf960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492755
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492758
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4927b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4cf960]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4927fa
cmp word [ebx], dx
jne 0x4927fa
or byte [eax + edi + 0x28], 4
jmp 0x4927ff
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x492962
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x492942
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x492840
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492876
cmp eax, edx
jae 0x492884
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49281b
jmp 0x492962
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49293d
cmp dword [ebp - 0x18], 0
je 0x49293d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cf960]
test byte [eax + edi + 0x28], 0x48
je 0x492913
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4928d7
mov word [esi], cx
jmp 0x49290e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cf960]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4cf960]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cf960]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x492962
pop eax
cmp word [ebp - 4], ax
jne 0x492923
cmp esi, ebx
jne 0x492923
mov word [esi], ax
jmp 0x49295f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x492962
push 0xd
pop eax
jmp 0x49291e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cf960]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49295c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x492962
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499157
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4991a2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049960f
test al, al
jne 0x49919c
sub edx, 2
cmp edx, edi
jne 0x499182
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4991c4
lea eax, [edi + 2]
cmp edx, eax
je 0x4991c4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498d50
add esp, 0x10
jmp 0x4992be
push esi
lea ecx, [ebp - 0x255]
call fcn.0049960f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499207
push dword [ebp - 0x25c]
jmp 0x4991b4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x499244
cmp word [ebp - 0x226], 0
je 0x499265
cmp word [ebp - 0x226], ax
jne 0x499244
cmp word [ebp - 0x224], 0
je 0x499265
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498d50
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4992b1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49921e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499299
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4992be
push 0x498738
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405461
add esp, 0x10
jmp 0x49928e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret

Function at 0x49ec20
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404241
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49ec8f
cmp esi, dword [ebp - 4]
je 0x49ec8a
cmp dword [ebp + 0xc], 0
je 0x49ec8a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49ec67
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049e648
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49ec91
xor eax, eax
inc eax
jmp 0x49ec91
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040d8f0
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x401d1a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [0x41a0ac]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040a485
push 0x41c360
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0040a9af
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x401d1a
push eax
push 1
push 0x200
push esi
call fcn.0040ac40
mov eax, dword [ebp - 0x210]
push eax
call fcn.0040acca
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a476
mov esp, ebp
pop ebp
ret

Function at 0x401d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040d8f0
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x401e26
cmp dword [0x420f3c], 3
jne 0x401da8
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [0x41a028]
push 0x41c368
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040a485
add esp, 0xc
jmp 0x401dba
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [0x41a0ac]
push str.golfset.ini
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0040a485
push 0x41c360
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040a9af
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x401e26
push eax
push 1
push 0x200
push esi
call fcn.0040ac40
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040acca
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a476
mov esp, ebp
pop ebp
ret
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4025fa
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x504d534d
jne 0x4025ea
push 0x200
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040a590
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x414]
not cl
mov byte [ebp + eax - 0x414], cl
inc eax
cmp eax, 0x200
jb 0x402620
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.0040d8f0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x104
mov dword [ebp - 0x418], 0
call dword [0x41a0ac]
push str.golfinfo.ini
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.0040a485
push 0x41c3d4
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040a9af
mov eax, dword [ebp - 0x418]
add esp, 0x18
test eax, eax
je 0x4026d0
push eax
push 1
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.0040afcf
mov eax, dword [ebp - 0x418]
push eax
call fcn.0040acca
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0040a476
mov esp, ebp
pop ebp
ret

Function at 0x4026f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41c360
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.0040a9af
add esp, 0xc
test eax, eax
je 0x402719
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push edi
push 2
push 0
push edx
call fcn.0040b0d3
mov eax, dword [ebp - 4]
push eax
call fcn.0040b2e3
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040b0d3
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0040b348
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.0040ac40
mov eax, dword [ebp - 4]
push eax
call fcn.0040acca
push 0x32
lea edi, [ebx + esi]
push 0
push edi
call fcn.0040d8f0
add esp, 0x40
call dword [0x41a024]
push eax
call fcn.0040a55d
add esp, 4
xor esi, esi
call fcn.0040a56f
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xc
jl 0x402786
mov ecx, dword [ebp + 8]
push 0x41c3d4
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040a9af
add esp, 0xc
test eax, eax
je 0x4027b6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push 1
push ecx
push ebx
call fcn.0040afcf
mov edx, dword [ebp - 4]
push edx
call fcn.0040acca
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00413be0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [0x41a1e0]
cmp eax, 4
je 0x40444c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x404498
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [0x41a1e0]
mov esi, eax
test esi, esi
je 0x404497
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040afcf
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x404455
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0040acca
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040a476
mov esp, ebp
pop ebp
ret

Function at 0x406150
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00413be0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x41c360
push eax
lea eax, [ebp - 0x1064]
xor ebx, ebx
push eax
mov dword [ebp - 0x1064], ebx
call fcn.0040a9af
mov eax, dword [ebp - 0x1064]
add esp, 0xc
cmp eax, ebx
jne 0x4061b1
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a476
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push eax
call fcn.0040b0d3
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.0040b2e3
mov edx, dword [ebp - 0x1064]
push ebx
push ebx
push edx
mov dword [ebp - 0x1068], eax
call fcn.0040b0d3
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], 0x67452301
mov dword [ebp - 0x1054], 0xefcdab89
mov dword [ebp - 0x1050], 0x98badcfe
mov dword [ebp - 0x104c], 0x10325476
mov dword [ebp - 0x1048], 0xc3d2e1f0
call fcn.0040ac40
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x406278
lea esp, [esp]
lea edx, [ebp - 0x1060]
push edx
push esi
lea ecx, [ebp - 0x1004]
call fcn.00405fc0
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
add ebx, esi
call fcn.0040ac40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x406240
push edi
lea esi, [ebp - 0x1060]
call fcn.00406060
mov edx, dword [ebp - 0x1064]
push edx
call fcn.0040acca
add esp, 8
pop esi
cmp ebx, dword [ebp - 0x1068]
jb 0x406192
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret