joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd2b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and word [ebp - 0x18], 0
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 7
call fcn.00424eef
push str.kpacket_info.dat
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103b
mov eax, dword [ebp - 0x18]
push 8
pop esi
cmp dword [ebp - 4], esi
jae 0x41fd67
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
jae 0x41fd79
lea eax, [ebp - 0x18]
push eax
push str.http:__download.duba.net_2011_lf_detect360.ini
call fcn.00487ece
mov edi, eax
test edi, edi
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
je 0x41fdad
cmp dword [ebp - 4], esi
jae 0x41fd97
lea eax, [ebp - 0x18]
push edi
push eax
push str.KInsall::Is360AvInstalled_download_fail__file:_ws__nStatus:_d
mov esi, 0x52a8fc
call fcn.0044cbdd
add esp, 0xc
jmp 0x41fdbd
cmp dword [ebp - 4], esi
jae 0x41fdb5
lea eax, [ebp - 0x18]
push eax
call fcn.0041fdcf
mov edi, eax
push 0
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41ff84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.cmd.exe
lea eax, [ebp - 4]
call fcn.004019c5
push dword [ebp + 8]
lea eax, [ebp + 8]
call fcn.004019c5
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004019c5
mov edi, 0x4fcd98
mov esi, 0x4fcd9c
push edi
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.0040521a
test eax, eax
jne 0x41ffba
push edi
push esi
lea eax, [ebp + 8]
push eax
call fcn.0040521a
test eax, eax
jne 0x41ffc9
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00497490
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], 0
mov dword [ebp + 8], eax
je 0x420034
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebx - 0x10]
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x420056
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
xor ebx, ebx
cmp dword [edi + 0x28], ebx
mov dword [ebp - 4], esi
je 0x4200a8
push dword [edi + 0x24]
push dword [edi + 0x20]
lea edi, [ebp - 8]
call fcn.00425624
pop ecx
mov eax, edi
pop ecx
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jne 0x4200e0
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360SD
lea edi, [ebp - 8]
call fcn.00425624
pop ecx
pop ecx
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
je 0x42016b
push str.uninst.exe
lea eax, [ebp - 4]
push eax
call fcn.00405529
push 0x4fa090
lea eax, [ebp - 0xc]
push str.cmd.exe__c__
push eax
lea eax, [ebp - 4]
call fcn.00420267
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.0041e85e
pop ecx
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push 0x206
lea eax, [ebp - 0x212]
push ebx
push eax
mov word [ebp - 0x214], bx
call fcn.00497490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov esi, dword [ebp - 4]
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0041ff84
lea eax, [esi - 0x10]
call fcn.0040151c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x420a57
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420a6e
test al, 0x10
jne 0x420a6e
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x420ae7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x420b63
cmp dword [ebp + 0xc], edi
je 0x420b63
push dword [ebp + 8]
call fcn.00420a57
test al, al
pop ecx
je 0x420b63
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.00497490
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push 0x100
push eax
push edi
push dword [ebp + 0xc]
push str.SPCfg
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420b5e
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x200]
call fcn.004010df
xor esi, esi
mov eax, esi
pop esi
jmp 0x420b68
mov eax, 0x80004005
pop edi
leave
ret
Function at 0x420d86
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x420da2
mov eax, 0x80004005
jmp 0x420e23
push dword [ebp + 8]
call fcn.00420a57
test al, al
pop ecx
je 0x420d98
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.00497490
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420e20
lea eax, [ebp - 0x800]
call fcn.004010df
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.00427b2f
cmp word [eax], 0x5c
je 0x420e1e
push 0x4fcd98
push esi
call fcn.0040103b
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x420e9b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x420f17
cmp dword [ebp + 0xc], edi
je 0x420f17
push dword [ebp + 8]
call fcn.00420a57
test al, al
pop ecx
je 0x420f17
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x800], di
call fcn.00497490
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push edi
push dword [ebp + 0xc]
push str.ProductInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x420f12
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x800]
call fcn.004010df
xor esi, esi
mov eax, esi
pop esi
jmp 0x420f1c
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x4210ec
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x421144
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x503970]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x503970]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x4210f8
pop edi
pop esi
ret
Function at 0x4212f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x421306
xor eax, eax
jmp 0x4213b9
push 0x28
push esi
push edi
call fcn.00497490
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040aad0
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042700e
cmp eax, esi
je 0x421345
cmp byte [eax], 0
mov ecx, eax
je 0x421345
mov al, byte [ecx]
cmp al, 0x41
jl 0x42133f
cmp al, 0x5a
jg 0x42133f
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x421331
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042700e
call fcn.004210ec
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x42136b
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.0042700e
push eax
push esi
call fcn.00497ba0
mov ecx, dword [ebp + 8]
mov al, cl
add esp, 0xc
add al, 2
test esi, esi
mov word [edi + 1], bx
mov byte [edi], al
pop ebx
je 0x4213aa
test ecx, ecx
je 0x4213aa
xor eax, eax
test ecx, ecx
jbe 0x4213aa
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x4213a1
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040a984
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4214bb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
mov eax, str.Global_
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], 7
mov dword [ebp - 8], ebx
mov word [ebp - 0x18], bx
call fcn.004010df
cmp dword [0x528788], 8
mov eax, dword [0x528774]
jae 0x4214f6
mov eax, 0x528774
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103b
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x42150c
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x421548
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x421525
xor edi, edi
jmp 0x42154b
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x421545
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x421521
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42155d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 4]
sub esp, 0x34
push ebx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
jne 0x421573
xor eax, eax
jmp 0x4215d2
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x4215cf
cmp esi, ecx
je 0x4215cf
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.004213bc
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.00421405
cmp dword [ebp - 4], 0
pop ecx
je 0x4215cf
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.00497ba0
add esp, 0xc
test esi, esi
je 0x4215cf
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x4215c5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x421626
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x312]
push edi
push eax
mov word [ebp - 0x314], di
call fcn.00497490
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x42165c
mov esi, dword [esi + 4]
jmp 0x42165f
add esi, 4
cmp dword [0x52b0c8], 8
mov eax, dword [0x52b0b4]
jae 0x421672
mov eax, 0x52b0b4
push esi
push eax
push 0x5039c8
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042bec8
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x314]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4216b7
mov eax, 0xe00c0012
jmp 0x421732
push ebx
mov esi, 0xfe
push esi
lea eax, [ebp - 0x10a]
push edi
push eax
mov dword [ebp - 8], edi
mov word [ebp - 0x10c], di
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.Name
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x421721
cmp dword [ebp - 8], 1
jne 0x421721
mov esi, dword [ebp + 8]
mov eax, str..Pipe_
call fcn.004010df
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0040103b
jmp 0x421726
mov ebx, 0xe00c001f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x421a94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x421ac6
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x421ad2
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x421a9d
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x421acd
Function at 0x421ad9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x421b0b
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x421b17
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x421ae2
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x421b12
Function at 0x422fae
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, eax
add esi, 4
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esi
je 0x422fd0
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], ebx
push 0x20
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00497490
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
call dword [section..data]
xor edi, edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
je 0x42301d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp - 4]
inc eax
push ecx
mov dword [ebp - 4], eax
call fcn.00439377
test eax, eax
pop ecx
jge 0x423022
mov dword [ebp + 8], ebx
jmp 0x423065
mov ebx, dword [ebp - 4]
cmp ebx, 0x400
jg 0x423043
push ebx
call fcn.004392d2
test al, al
pop ecx
je 0x423043
mov eax, ebx
call fcn.004aa020
mov eax, esp
jmp 0x42304f
push ebx
lea esi, [ebp - 8]
call fcn.0043929a
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, eax
push ebx
push dword [ebp + 8]
call fcn.00439344
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x423085
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp - 4]
inc eax
push ecx
mov dword [ebp - 4], eax
call fcn.00439377
test eax, eax
pop ecx
jge 0x423089
xor eax, eax
jmp 0x4230c9
mov ebx, dword [ebp - 4]
cmp ebx, 0x400
jg 0x4230aa
push ebx
call fcn.004392d2
test al, al
pop ecx
je 0x4230aa
mov eax, ebx
call fcn.004aa020
mov eax, esp
jmp 0x4230b6
push ebx
lea esi, [ebp - 8]
call fcn.0043929a
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, eax
push ebx
push dword [ebp + 0xc]
call fcn.00439344
mov esi, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4230f8
cmp eax, ebx
je 0x4230f8
push esi
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
jmp 0x4230f0
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.00497b0f
pop ecx
cmp edi, ebx
jne 0x4230e5
mov eax, esi
jmp 0x423114
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x42310d
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.00497b0f
pop ecx
cmp edi, ebx
jne 0x423102
or eax, 0xffffffff
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x423242
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x423254
mov al, 1
jmp 0x4232c6
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x423264
xor al, al
jmp 0x4232c6
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x4232c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4232ba
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4232bd
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4232c0
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

Function at 0x4232cb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x4232f2
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x423399
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x423310
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x423398
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x423358
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42338a
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x42338d
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x423384
mov bl, 1
jmp 0x42338d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x42339e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4233c2
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42348a
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x4233e4
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x423489
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.00497490
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x423447
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42347b
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x42347e
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x423475
mov bl, 1
jmp 0x42347e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4

Function at 0x4237ff
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.004019c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423834
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42381f
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x42381f
lea eax, [ebp - 4]
call fcn.00423643
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x42386b
xor esi, esi
jmp 0x423822
push eax
call fcn.004237ff
test eax, eax
pop ecx
je 0x423867
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42381f
call edi
cmp eax, ebx
jne 0x423867
jmp 0x42381f
Function at 0x423889
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0xc]
call fcn.004019c5
push 0x40
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00497490
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5289f4]
xor esi, esi
mov edi, 0x5289f4
inc esi
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.__s___s
push eax
call fcn.0041e84b
mov eax, dword [ebp + 0x14]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xa
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x423951
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x52a8fc
call fcn.0044cbdd
add esp, 0x18
jmp 0x4239cc
push str.kxescore.exe
push dword [ebp - 0xc]
call fcn.00498ba9
test eax, eax
pop ecx
pop ecx
jne 0x4239a7
mov eax, dword [0x5289f4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.kxescore
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b57
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], ebx
call fcn.0044286e
mov edi, eax
call fcn.004428ab
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040151c
cmp dword [ebp + 0x10], ebx
je 0x4239c9
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x4239c9
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x2c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x4239df
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x28], ebx
je 0x4239ec
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret