joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4246c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x512bd4
mov ecx, edi
call fcn.0040de3b
mov eax, dword [0x512bd4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004010cd
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.00413401
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.00421c33
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x42472a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x512bd4
mov ecx, edi
call fcn.0040de3b
mov eax, dword [0x512bd4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x105
push edi
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004010cd
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, edi
call fcn.00413401
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push str._skdeskdata
call fcn.00421c33
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x424d01
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea eax, [ebp - 4]
call fcn.0042241f
push dword [ebp - 4]
lea edi, [ebp - 0x34]
call fcn.0043d9b3
push 0x4f0a10
mov eax, edi
call fcn.0043ddca
test eax, eax
je 0x424d68
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp eax, 0x12
jne 0x424d68
lea ebx, [esi + 0x10]
lea eax, [ebp - 4]
mov edi, ebx
call fcn.004234ea
call fcn.00424c1d
test eax, eax
mov eax, str.__action:2
jne 0x424d5f
mov eax, str.__action:3
push eax
push ebx
call fcn.00401000
jmp 0x424d89
push str.usepacp
lea eax, [ebp - 0x34]
call fcn.0043dd8f
lea ebx, [esi + 0x10]
test al, al
mov edi, ebx
lea eax, [ebp - 4]
jne 0x424d84
lea eax, [esi + 0xc]
call fcn.004234ea
push dword [ebx]
lea edi, [ebp - 0x1c]
call fcn.0043d9b3
push str.action
mov eax, edi
call fcn.0043dd8f
test al, al
jne 0x424dac
push dword [esi + 0x14]
call fcn.00424ca3
pop ecx
push str.from
lea eax, [ebp - 0x1c]
call fcn.0043dd8f
test al, al
jne 0x424dc8
push str.__from:7
push ebx
call fcn.00401000
push dword [ebx]
lea edi, [ebp - 0x4c]
call fcn.0043d9b3
push str.action
mov eax, edi
call fcn.0043ddca
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, edi
mov dword [0x513f28], eax
call fcn.0043da08
lea ecx, [ebp - 0x1c]
call fcn.0043da08
lea ecx, [ebp - 0x34]
call fcn.0043da08
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42536d
test al, 0x10
jne 0x42536d
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4253e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x425462
cmp dword [ebp + 0xc], edi
je 0x425462
push dword [ebp + 8]
call fcn.00425356
test al, al
pop ecx
je 0x425462
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.00489500
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 0x42545d
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x200]
call fcn.0042b759
xor esi, esi
mov eax, esi
pop esi
jmp 0x425467
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x425685
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x4256a1
mov eax, 0x80004005
jmp 0x425722
push dword [ebp + 8]
call fcn.00425356
test al, al
pop ecx
je 0x425697
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.00489500
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 0x42571f
lea eax, [ebp - 0x800]
call fcn.0042b759
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.0042ad47
cmp word [eax], 0x5c
je 0x42571d
push 0x4e96bc
push esi
call fcn.0042ad29
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x42579a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
je 0x42581c
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x42581c
push dword [ebp + 8]
call fcn.00425356
test al, al
pop ecx
je 0x42581c
and word [ebp - 0x800], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov ebx, 0x80004005
call fcn.00489500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
push esi
push str.ProductInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x425817
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x800]
call fcn.0042b759
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x425821
mov eax, 0x80004005
pop esi
leave
ret

Function at 0x4259fa
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x425a52
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 + 0x4f08f8]
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 + 0x4f08f8]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x425a06
pop edi
pop esi
ret
Function at 0x425bff
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 0x425c14
xor eax, eax
jmp 0x425cc7
push 0x28
push esi
push edi
call fcn.00489500
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00413857
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042a1cd
cmp eax, esi
je 0x425c53
cmp byte [eax], 0
mov ecx, eax
je 0x425c53
mov al, byte [ecx]
cmp al, 0x41
jl 0x425c4d
cmp al, 0x5a
jg 0x425c4d
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x425c3f
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042a1cd
call fcn.004259fa
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x425c79
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.0042a1cd
push eax
push esi
call fcn.00489850
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 0x425cb8
test ecx, ecx
je 0x425cb8
xor eax, eax
test ecx, ecx
jbe 0x425cb8
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x425caf
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040dd88
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x425dc9
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.0042b759
cmp dword [0x512970], 8
mov eax, dword [0x51295c]
jae 0x425e04
mov eax, 0x51295c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ad29
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x425e1a
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x425e56
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x425e33
xor edi, edi
jmp 0x425e59
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x425e53
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x425e2f
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.00407df0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425e6b
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 0x425e81
xor eax, eax
jmp 0x425ee0
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x425edd
cmp esi, ecx
je 0x425edd
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.00425cca
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.00425d13
cmp dword [ebp - 4], 0
pop ecx
je 0x425edd
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.00489850
add esp, 0xc
test esi, esi
je 0x425edd
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x425ed3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x425f34
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.00489500
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x425f6a
mov esi, dword [esi + 4]
jmp 0x425f6d
add esi, 4
cmp dword [0x515140], 8
mov eax, dword [0x51512c]
jae 0x425f80
mov eax, 0x51512c
push esi
push eax
push 0x4f41e4
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042e201
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 0x425fc5
mov eax, 0xe00c0012
jmp 0x426040
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.00489500
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 0x42602f
cmp dword [ebp - 8], 1
jne 0x42602f
mov esi, dword [ebp + 8]
mov eax, str..Pipe_
call fcn.0042b759
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0042ad29
jmp 0x426034
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 0x4263a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x4263d4
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 0x4263e0
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x4263ab
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x4263db
Function at 0x4263e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x426419
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 0x426425
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x4263f0
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x426420
Function at 0x4278bc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, eax
add edi, 4
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], edi
je 0x4278de
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00489500
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [section..data]
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov ebx, SysReAllocString
je 0x42793d
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0049a0d0
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jne 0x42793d
cmp eax, 0xffffffff
jbe 0x427942
mov dword [ebp + 8], esi
jmp 0x427981
cmp ecx, 0x400
jg 0x427961
push ecx
call fcn.00433ff8
test al, al
pop ecx
je 0x427961
mov eax, dword [ebp - 0x18]
call fcn.004991f0
mov eax, esp
jmp 0x42796c
push dword [ebp - 0x18]
lea esi, [ebp - 4]
call fcn.00433f9e
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043406a
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x4279a7
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0049a0d0
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x4279a7
cmp eax, 0xffffffff
jbe 0x4279ab
xor eax, eax
jmp 0x4279e2
cmp edi, 0x400
jg 0x4279c9
push edi
call fcn.00433ff8
test al, al
pop ecx
je 0x4279c9
mov eax, edi
call fcn.004991f0
mov eax, esp
jmp 0x4279d2
push edi
lea esi, [ebp - 4]
call fcn.00433f9e
push dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.0043406a
xor esi, esi
cmp dword [ebp + 8], esi
je 0x427a1a
cmp eax, esi
je 0x427a1a
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x427a16
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.004896b0
cmp edi, esi
pop ecx
jne 0x427a03
mov eax, ebx
jmp 0x427a3d
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 4], esi
je 0x427a3a
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.004896b0
cmp edi, esi
pop ecx
jne 0x427a27
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427b6b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x427b7d
mov al, 1
jmp 0x427bef
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x427b8d
xor al, al
jmp 0x427bef
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 0x427be9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x427be3
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x427be6
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00489500
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 0x427be9
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 0x427bf4
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 0x427c1b
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x427cc2
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x427c39
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x427cc1
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 0x427c81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x427cb3
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x427cb6
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 0x427cad
mov bl, 1
jmp 0x427cb6
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 0x427cc7
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 0x427ceb
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x427db3
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x427d0d
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x427db2
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.00489500
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 0x427d70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x427da4
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x427da7
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 0x427d9e
mov bl, 1
jmp 0x427da7
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 0x427fa3
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.0042241f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427fd8
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
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 0x427fc3
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x427fc3
lea eax, [ebp - 4]
call fcn.00427f61
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x42800f
xor esi, esi
jmp 0x427fc6
push eax
call fcn.00427fa3
test eax, eax
pop ecx
je 0x42800b
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x427fc3
call edi
cmp eax, ebx
jne 0x42800b
jmp 0x427fc3
Function at 0x42802d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x428044
xor eax, eax
jmp 0x428143
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00489500
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov eax, dword [0x512bd4]
inc esi
add esp, 0xc
mov ecx, 0x512bd4
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x42808d
mov eax, 0x4f11d4
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.__s___s
call fcn.00421c33
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edi, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0xa
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x4280f3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x514ad4
call fcn.00443ae2
add esp, 0x18
jmp 0x428118
cmp dword [ebp + 0x10], ebx
je 0x428115
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x428115
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x42812b
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x428138
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret