joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467382
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x4673e8
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x4673e3
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x4673cf
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x46744a
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x467458
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x486e28
call edi
pop ecx
test eax, eax
pop ecx
je 0x467446
lea eax, [ebp - 0x104]
push eax
push 0x486e24
call edi
pop ecx
test eax, eax
pop ecx
je 0x467446
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x4673f4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x467e80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4d7bd0]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x467efa
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4d7bc4]
pop edi
test eax, eax
jne 0x467eba
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x4d7bd0]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x4d7bd0]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x468620
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x468766
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x486f54]
mov dx, word [0x486f58]
mov dword [esp + 0x18], eax
mov al, byte [0x486f5a]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x46873e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.004687a0
cmp eax, 1
jne 0x46875a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x468747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004687a0
jmp 0x46875a
cmp dword [esp + 0x14], 0xc
je 0x468713
jmp 0x468753
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x46875a
mov ecx, ebx
call fcn.004687f0
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x468890
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x4d7c24], ecx
mov ecx, esi
call fcn.00468bd0
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x4688e0
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x468f40
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x468f76
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x468f9d
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x469010
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x469046
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x469070
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
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
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401460
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x81e]
push ecx
mov word [ebp - 0x820], ax
call fcn.00411290
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x820]
push 0x400
push eax
call fcn.00408249
lea eax, [ebp - 0x820]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4014a5
sub eax, edx
xor ecx, ecx
sar eax, 1
mov word [ebp + eax*2 - 0x81e], cx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x820]
mov eax, 0x614
push ecx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edx
mov word [ebp - 0x10], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4014f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004166d0
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x81e]
push ecx
mov word [ebp - 0x820], ax
call fcn.00411290
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x101e]
push eax
mov word [ebp - 0x1020], dx
call fcn.00411290
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x820]
push 0x400
push edx
call fcn.00408249
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1020]
push 0x400
push ecx
call fcn.00408249
lea eax, [ebp - 0x1020]
add esp, 0x30
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401570
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x101e], dx
lea eax, [ebp - 0x820]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401592
sub eax, edx
xor ecx, ecx
sar eax, 1
lea edx, [ebp - 0x820]
mov word [ebp + eax*2 - 0x81e], cx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1020]
mov ecx, 0x614
push edx
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov esp, ebp
pop ebp
ret
Function at 0x401f60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.00411290
add esp, 0xc
push 0x104
lea edx, [ebp - 0x208]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x401fd8
mov edx, dword [0x4666b8]
push eax
mov eax, dword [0x466530]
push str.Launcher
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401fe0
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80e]
push ecx
mov word [ebp - 0x810], ax
call fcn.00411290
add esp, 0xc
lea edx, [ebp - 0x810]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x402059
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shr eax, 0x14
mul dword [ebp - 4]
push 0
push ecx
push edx
push eax
call fcn.004151d0
test edx, edx
ja 0x402079
jb 0x402059
cmp eax, 0xa
jae 0x402079
mov edx, dword [0x4666bc]
mov eax, dword [0x466530]
push 0
push str.Launcher
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4544f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ebx, 8
cmp dword [ebp + 0x1c], ebx
jae 0x4020b2
lea eax, [ebp + 8]
push edi
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4020f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
shr eax, 0x14
mul dword [ebp - 0x14]
push edi
push ecx
push edx
push eax
call fcn.004151d0
cmp edx, edi
ja 0x402175
jb 0x4020f0
cmp eax, 0x7000
jae 0x402127
mov edx, dword [0x4666bc]
mov eax, dword [0x466530]
push edi
push str.Launcher
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x402121
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408104
add esp, 4
xor edx, edx
xor al, al
jmp 0x402191
cmp edx, edi
ja 0x402175
jb 0x402134
cmp eax, 0x8c00
jae 0x402175
mov eax, dword [0x4666c0]
mov ecx, dword [0x466530]
push 4
push str.Launcher
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x402175
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x40216b
mov edx, dword [ebp + 8]
push edx
call fcn.00408104
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
xor al, al
jmp 0x402195
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x40218d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408104
add esp, 4
xor edx, edx
mov al, 1
mov word [ebp + 8], dx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x18], edi
pop edi
mov dword [ebp + 0x1c], 7
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x402312
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402312
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x402200
mov ecx, str.BlackDesertLauncher.exe
lea eax, [ebp - 0x208]
jmp 0x402210
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402236
test dx, dx
je 0x402232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402236
add eax, 4
add ecx, 4
test dx, dx
jne 0x402210
xor eax, eax
jmp 0x40223b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40224a
test esi, esi
jne 0x40231b
lea esi, [eax + 1]
mov ecx, str.BlackDesertPatcher32.pae
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40227b
test dx, dx
je 0x402277
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40227b
add eax, 4
add ecx, 4
test dx, dx
jne 0x402255
xor eax, eax
jmp 0x402280
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40233e
mov ecx, str.BlackDesert32.exe
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4022b9
test dx, dx
je 0x4022b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4022b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x402293
xor eax, eax
jmp 0x4022be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402362
mov ecx, str.BlackDesert64.exe
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4022f7
test dx, dx
je 0x4022f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4022f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4022d1
xor eax, eax
jmp 0x4022fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402362
lea ecx, [ebp - 0x22c]
push ecx
push edi
call ebx
test eax, eax
jne 0x402200
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4666c4]
mov eax, dword [0x466530]
push 0
push str.warning
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4666c8]
mov edx, dword [0x466530]
push 0
push str.warning
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x46656c]
mov ecx, dword [0x466530]
push 0
push str.warning
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4067f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45470b
push eax
mov dword fs:[0], esp
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x30]
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], al
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push edi
mov dword [0x466728], ebx
mov byte [esi], al
mov dword [ebp - 4], eax
lea edi, [eax + 0x28]
mov eax, str.http:__dn.blackdesert.com.tw_UploadData_
call fcn.004073a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4075e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45490b
push eax
mov dword fs:[0], esp
mov eax, dword [0x466728]
sub esp, 8
push esi
test eax, eax
jne 0x407633
push 0x50
call fcn.004085ef
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x407625
push eax
call fcn.004067f0
jmp 0x407627
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x466728], eax
push str.patcher_version_tmp
push eax
mov eax, str.patcher_version
call fcn.00406870
test al, al
jne 0x407662
push 0
push str.Launcher
push str.Failed_to_download_patcher_version_information.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call fcn.0040919b
push 0x40
push 0x460638
push str.patcher_version_tmp
call fcn.004082ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4076b1
lea eax, [edi + 4]
push eax
push edi
push str._d_d
push esi
call fcn.004092e7
push esi
call fcn.00408a3e
add esp, 0x14
push str.patcher_version_tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push str.Launcher
push str.Failed_to_read_patcher_version_information.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push str.patcher_version
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40777a
push 0x40
push 0x460c88
push str.patcher_version
call fcn.004082ac
add esp, 0xc
mov esi, eax
push 0
test esi, esi
je 0x407729
push 0
push str._d_n_d
push esi
call fcn.00409307
push esi
call fcn.00408a3e
add esp, 0x14
jmp 0x40773b
push str.Launcher
push str.failed_to_restore_patcher_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x40
push 0x460c88
push str.patcher_files_version
call fcn.004082ac
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407759
xor al, al
pop esi
ret
push 0x460c6e
push esi
call fcn.00409307
push esi
call fcn.00408a3e
add esp, 0xc
push 0
push str.locales
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
pop esi
ret
Function at 0x407c20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c30
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, 0x104
jb 0x407c51
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test ebx, ebx
je 0x407cbf
mov eax, edi
lea ecx, [ebp - 0x20c]
sub eax, ecx
mov dword [ebp - 4], eax
jmp 0x407c70
lea edi, [eax + esi*2]
cmp word [ebp + edi - 0x20c], 0x5c
lea edi, [ebp + edi - 0x20c]
jne 0x407caf
xor edx, edx
push edx
lea eax, [ebp - 0x20c]
push eax
mov word [ebp + esi*2 - 0x20c], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407cac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x407ce6
mov eax, dword [ebp - 4]
mov cx, word [edi]
mov word [ebp + esi*2 - 0x20c], cx
inc esi
cmp esi, ebx
jb 0x407c70
xor edx, edx
push edx
lea eax, [ebp - 0x20c]
push eax
mov word [ebp + ebx*2 - 0x20c], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x407cef
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412bd5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x464460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409fc5
and dword [ebp - 0x14], 0
cmp dword [0x465fa8], 0
mov dword [ebp - 0x18], eax
jne 0x412c88
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412d30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456064
push ebx
call edi
test eax, eax
je 0x412d30
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x465fa8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x465fac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x465fb0], eax
call edi
push eax
call esi
mov dword [0x465fb8], eax
test eax, eax
je 0x412c88
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x465fb4], eax
mov eax, dword [0x465fb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412ce1
cmp dword [0x465fb8], ecx
je 0x412ce1
push eax
call esi
push dword [0x465fb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412ce1
test ebx, ebx
je 0x412ce1
call edi
test eax, eax
je 0x412cd8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412cd8
test byte [ebp - 8], 1
jne 0x412ce1
or dword [ebp + 0x10], 0x200000
jmp 0x412d14
mov eax, dword [0x465fac]
cmp eax, dword [ebp - 0x18]
je 0x412d14
push eax
call esi
test eax, eax
je 0x412d14
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412d14
mov eax, dword [0x465fb0]
cmp eax, dword [ebp - 0x18]
je 0x412d14
push eax
call esi
test eax, eax
je 0x412d14
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x465fa8]
call esi
test eax, eax
je 0x412d30
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412d32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412edd
leave
ret

Function at 0x412edd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464460]
jne 0x412ee7
repz ret
jmp fcn.00417a2f

Function at 0x419e60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x464460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419eb0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x419eaa
shr eax, 8
cmp al, 2
jne 0x419eaa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412edd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00412edd
mov esp, ebp
pop ebp
ret