joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42250e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x470d08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42254e
cmp byte [ebx], 0xa
jne 0x42254e
or byte [eax + edi + 0x28], 4
jmp 0x422553
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422651
mov al, byte [edx]
cmp al, 0x1a
je 0x422633
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x422582
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4225a7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4225b1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x422564
jmp 0x422651
push 0
lea eax, [ebp - 0xc]
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 0x42262e
cmp dword [ebp - 0xc], 0
je 0x42262e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470d08]
test byte [eax + edi + 0x28], 0x48
je 0x422608
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4225f3
mov byte [esi], dl
jmp 0x422604
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470d08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422651
cmp byte [ebp - 1], 0xa
jne 0x422617
cmp esi, ebx
jne 0x422617
mov byte [esi], 0xa
jmp 0x422650
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042308e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422651
mov byte [esi], 0xd
jmp 0x422650
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470d08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42264d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422651
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42265a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x470d08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42269d
cmp word [esi], dx
jne 0x42269d
or byte [edi + eax + 0x28], 4
jmp 0x4226a2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4227f5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4227d5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4226e4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42271a
cmp eax, edx
jae 0x422726
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4226bc
jmp 0x4227f5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4227d1
cmp dword [ebp - 0x14], 0
je 0x4227d1
mov eax, dword [ebx*4 + 0x470d08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4227a9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422772
mov word [esi], cx
jmp 0x4227a5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x470d08]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x470d08]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x470d08]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4227f5
pop ebx
cmp word [ebp - 4], bx
jne 0x4227ba
cmp esi, dword [ebp + 0xc]
jne 0x4227ba
mov word [esi], bx
jmp 0x4227f2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042308e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4227f5
push 0xd
jmp 0x4227ee
mov ecx, dword [ebx*4 + 0x470d08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4227ec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4227f5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4269ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x426a89
push ebx
push esi
call fcn.004269b5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042563a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426a36
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426a88
push edi
push eax
call fcn.0042326d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426a56
call fcn.0041fa56
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426a87
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042563a
add esp, 0x20
test eax, eax
jne 0x426a75
push edi
call fcn.0041fa56
jmp 0x426a7d
push ebx
call fcn.0041fa56
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42d4e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d461
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42d65d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42d65d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42d60c
jg 0x42d53e
test eax, eax
je 0x42d602
push 1
push 0x1000
call fcn.0041f9f9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42d564
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42d5f9
push 0x8000
push ebx
call fcn.0041c587
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42d590
jg 0x42d58b
cmp ecx, 0x1000
jb 0x42d590
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042153d
add esp, 0x10
cmp eax, 0xffffffff
je 0x42d5d5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42d58b
jl 0x42d5bc
test ecx, ecx
jne 0x42d57d
push dword [ebp - 0xc]
push ebx
call fcn.0041c587
push esi
call fcn.0041fa56
add esp, 0xc
xor edi, edi
jmp 0x42d66e
cmp byte [edi + 0x24], 0
je 0x42d5ec
cmp dword [edi + 0x20], 5
jne 0x42d5ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42d5f7
mov edi, dword [edi + 0x18]
jmp 0x42d5f9
xor edi, edi
push esi
call fcn.0041fa56
pop ecx
jmp 0x42d66e
test ecx, ecx
jg 0x42d5ce
jl 0x42d60c
test eax, eax
jae 0x42d5ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042308e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42d62f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42d5ce
jmp 0x42d666
push ebx
call fcn.004271de
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42d5ce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42d66e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42d66b
mov edi, dword [edi + 0x18]
jmp 0x42d66e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042308e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e9ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e9ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x930174
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x93017a
pop ebp
sub ebp, 6
sub ebp, 0x530174
jmp 0x9301d8
jmp 0x9301e1
mov eax, 0x530174
add eax, ebp
add eax, 0x93
mov ecx, 0x632
mov edx, 0x54e318de
xor byte [eax], dl
inc eax
dec ecx
jne 0x9301f8
jmp 0x93020b
mov ah, 0x9e
mov dh, 0xde
into
invalid

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 0x4ccc90
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x9017e0]
cmp eax, 1
je 0x4ccd08
mov esi, 2
mov edi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x9017e0], esi
cmp eax, 2
jne 0x4cccbe
call edi
jmp 0x4cccab
cmp eax, 1
je 0x4ccd08
test eax, eax
jne 0x4ccdb4
push 0x400
push 0x9017ec
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov esi, 1
mov ecx, 1
test eax, eax
je 0x4cccfc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x9017e8], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x9017e4], ecx
xchg dword [0x9017e0], esi
mov ebx, dword [ebp + 0x10]
cmp dword [0x9017e4], 0
je 0x4ccd20
push dword [ebp + 0xc]
call ebx
add esp, 4
xor eax, eax
jmp 0x4ccd6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [0x9017e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4ccd71
mov edi, dword [ebp + 8]
push 0x9017ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi*4 + 0x901804], ebx
push 0x9017ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4], eax
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
call fcn.004a6e10
add esp, 4
test eax, eax
je 0x4ccd14
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
push eax
push dword [0x9017e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4ccd41
push esi
call fcn.004a6e40
add esp, 4
jmp 0x4ccd14
call fcn.0061842c
int3
Function at 0x5ddb3f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.005dde64
mov edi, eax
test edi, edi
je 0x5ddbca
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x5ddb7a
mov esi, edi
jmp 0x5ddbb6
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x5ddbaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5ddba2
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.005dde2f
jmp 0x5ddbb6
push 0x6aa860
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x5ddbb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.005dde64
mov edi, eax
test edi, edi
jne 0x5ddb6f
test esi, esi
jne 0x5ddbdf
mov ecx, dword [ebx]
add ecx, 8
call fcn.005ddd80
mov esi, eax
test esi, esi
je 0x5ddbdf
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x5ddbe6
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x63855b
call fcn.005b99af
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.005ddd47
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x5ddc32
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.005b9a8b
ret 4
push 0x6f0774
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.00600a9c
int3

Function at 0x629503
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062974c

Function at 0x62db3e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062db49
Function at 0x405130
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cfdd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x43b080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 8
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], 0x6e69616d
mov dword [ebp - 0x28], 0x6578652e
mov byte [ebp - 0x24], 0
push 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040b9f0
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0xf
jbe 0x4051e3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4051d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405322
push ecx
push edx
call fcn.0040f80a
add esp, 8
mov ecx, dword [0x43d36c]
mov eax, dword [0x43d370]
cmp ecx, eax
je 0x4051f9
mov eax, ecx
mov dword [0x43d370], eax
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
cmp esi, edi
je 0x405233
nop dword [eax]
nop word [eax + eax]
push dword [esi + 8]
push 0x40be30
call dword [sym.imp.USER32.dll_EnumWindows]
add esi, 0x128
cmp esi, edi
jne 0x405210
mov eax, dword [0x43d370]
mov ecx, dword [0x43d36c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4052a7
push 0x43625c
push 0x40
push 0x43d314
mov dword [0x43d178], 0x82
mov dword [0x43d17c], 0x10
mov dword [0x43d354], 0
mov dword [0x43d310], 0xa
call fcn.0040ae90
add esp, 0xc
push str.You_still_have_game_clients_open__if_hidden_press_the_F12_key_to_redisplay_them.
push 0x100
push 0x43d210
call fcn.0040ae90
add esp, 0xc
push 0x43d170
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
push 0
push 0
push 2
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x405302
mov ecx, dword [ebp - 0x34]
mov eax, 0xdd67c8a7
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x128
mov eax, esi
cmp ecx, 0x1000
jb 0x4052f8
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405322
push ecx
push esi
call fcn.0040f80a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f7fc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0041437f
int3
Function at 0x405770
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x43b080]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [esp + 0xc], esi
mov dword [esp + 0xc], esi
cmp dword [edx + 0x14], 0xf
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 1
jbe 0x4057bc
mov edx, dword [edx]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40583e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40583e
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x44]
push 0x16
push ecx
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
lea ecx, [esp + 0x44]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405816
sub ecx, edx
lea eax, [esp + 0x44]
push ecx
push eax
mov ecx, esi
call fcn.0040a270
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040f7fc
mov esp, ebp
pop ebp
ret
push str.Failed_to_resolve_hostname
lea ecx, [esp + 0x18]
call fcn.00407bd0
push 0x43959c
lea eax, [esp + 0x18]
push eax
call fcn.00410c4d
int3
Function at 0x406780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d190
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040f818
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040ee86
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00406840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0xf
jbe 0x40b7c8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b7db
test al, 0x10
jne 0x40b7db
mov al, 1
ret
xor al, al
ret

Function at 0x40b7e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [0x43b080]
xor eax, esp
mov dword [esp + 0xbc], eax
push 0x80
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00411250
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push 0x10
push str..GameGuides.exe
call fcn.0040a270
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b859
mov byte [esp + 0xf], 1
test al, 0x10
je 0x40b85e
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40b894
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b88a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9be
push ecx
push edx
call fcn.0040f80a
add esp, 8
cmp byte [esp + 0xf], 0
je 0x40b8c5
push 0xa
push 0
push 0
push str..GameGuides.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0040f7fc
mov esp, ebp
pop ebp
ret
push 0x1a
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str..DashboardGameGuides.exe
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.0040a270
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b910
mov byte [esp + 0xf], 1
test al, 0x10
je 0x40b915
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40b94b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b941
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9c3
push ecx
push edx
call fcn.0040f80a
add esp, 8
cmp byte [esp + 0xf], 0
je 0x40b97c
push 0xa
push 0
push 0
push str..DashboardGameGuides.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0040f7fc
mov esp, ebp
pop ebp
ret
push str..GameGuides.exe
push str._s_not_found_
lea eax, [esp + 0x40]
push 0x80
push eax
call fcn.0040ae90
add esp, 0x10
lea eax, [esp + 0x38]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0040f7fc
mov esp, ebp
pop ebp
ret
call fcn.0041437f
call fcn.0041437f
int3