joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f50
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x914
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x415032
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x41500e
cmp eax, 4
je 0x41500e
cmp eax, 1
jne 0x415032
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [esi + 0x2448], ecx
mov dword [esi + 0x244c], ecx
mov cx, word [esp + 0x20]
pop edi
mov word [esi], cx
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x415040
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x415050
xor eax, eax
pop esi
pop ecx
ret
push edi
lea eax, [esi + 0x5d4d8]
push str.MetalinkFile
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x41508f
push str.MetalinkFile
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 8
mov dword [esi + 0x2688], eax
mov ecx, esi
call fcn.00419b30
test eax, eax
pop edi
jne 0x41509e
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x245c], eax
je 0x4150e5
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push 0
push esi
push 0x415480
push 0
push 0
mov dword [esi + 0x5d0a4], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x416170
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26d4]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [edx + 4], 1
je 0x4161fd
mov eax, dword [edi + 0x2474]
test eax, eax
je 0x41622b
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2478]
mov eax, dword [edi + 0x2474]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4161e6
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416235
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x416216
mov eax, dword [esi + 4]
test eax, eax
je 0x416216
mov dword [esi + 0x18], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.004177d0
test eax, eax
je 0x416235
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x416950
Capabilities:
Send data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26d4]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [ecx + 4], 1
je 0x4169e0
mov eax, dword [edi + 0x2474]
test eax, eax
je 0x416a17
mov edx, dword [esi + 0xc]
mov dword [esp + 0x10], 0
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x2478]
mov edx, dword [edi + 0x2474]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4169c8
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x3e5
sete dl
pop edi
pop esi
mov eax, edx
pop ebx
ret 4
cmp dword [esi], 0
jne 0x4169fa
mov eax, dword [esi + 4]
test eax, eax
je 0x4169fa
mov dword [esi + 0x18], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.004177d0
test eax, eax
jne 0x416a17
push ebx
mov ecx, edi
call fcn.00417270
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x416d40
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26d4]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8040]
lea edx, [esi + 0x3c]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x803c]
lea edi, [esi + 0x8058]
test eax, eax
mov dword [esi + 0x8054], edx
mov dword [edi], 0x8000
je 0x416dd0
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x416dbb
cmp eax, 0x8000
jbe 0x416dca
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x416e11
mov dword [esp + 0x14], ecx
jmp 0x416e11
mov eax, dword [ebx + 0x5d0a8]
mov ecx, dword [ebx + 0x5d0ac]
cmp eax, 0xffffffff
jne 0x416de5
cmp ecx, eax
je 0x416e13
mov edx, dword [ebx + 0x5d0b8]
sub eax, edx
mov edx, dword [ebx + 0x5d0bc]
sbb ecx, edx
ja 0x416dfe
cmp eax, 0x8000
jbe 0x416e0d
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x416e11
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 9
cmp dword [ecx + 4], 1
je 0x416e58
mov edx, dword [esi + 0x1c]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x416e8a
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x8054]
mov eax, dword [esi + 0x1c]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x416e8a
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416ea6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.00417270
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x417630
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x103c
call fcn.004acae0
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x2474]
push edi
test eax, eax
mov dword [esp + 0x10], ebx
mov ebp, 0x4f7e90
je 0x417658
mov ebp, str.POST
mov ax, word [0x50fd10]
mov esi, dword [esp + 0x1050]
mov word [esp + 0x4c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x4c]
mov dword [esp + 0x1c], 0x4f7e7c
mov dword [esp + 0x20], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x4f6614
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 0x62a54]
add esp, 0x14
test ecx, ecx
mov eax, 0x8400c300
je 0x4176c3
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4176d1
or eax, 0x803000
mov ecx, dword [esi + 0x18]
push esi
lea edx, [esp + 0x20]
push eax
push edx
push 0
lea eax, [esp + 0x5c]
push str.HTTP_1.1
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x4177b5
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea edx, [esp + 0x18]
push 4
push edx
push 2
push eax
mov dword [esp + 0x28], 0x3a98
call edi
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 4
push eax
push 0x41
push ecx
mov dword [esp + 0x24], 1
call edi
mov ebp, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0xa2d0
mov dword [esp + 0x28], 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417783
mov ecx, 0x28b4
xor eax, eax
mov edi, ebx
push ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push 0xa2cf
push ebx
push esi
call fcn.004178d0
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1c]
push esi
push 1
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov esi, eax
je 0x4177a6
push ebx
call fcn.004acab9
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x103c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x103c
ret 4
Function at 0x4182d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x50fd10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x4183a5
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4183a5
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4183b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26e4]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x4183cd
mov dword [esp + 8], edi
jmp 0x4183dc
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 4]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x418483
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26e4]
test eax, eax
je 0x418446
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x418446
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 4]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x418414
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x418820
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x8058]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x41883c
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26f0]
xor edi, edi
cmp eax, edi
je 0x41891b
mov ecx, esi
call fcn.004182d0
mov edi, dword [ebx + 0x803c]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418897
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418972
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [ebx + 0x3c]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418972
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x418972
mov ecx, dword [edi + 0x18]
add ecx, eax
mov dword [edi + 0x18], ecx
mov ebp, dword [edi + 0x1c]
mov ecx, 0
adc ebp, ecx
mov dword [edi + 0x1c], ebp
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x5d0b8]
push eax
add edi, eax
push ebx
mov dword [esi + 0x5d0b8], edi
mov edx, dword [esi + 0x5d0bc]
adc edx, ecx
mov ecx, esi
mov dword [esi + 0x5d0bc], edx
call fcn.00418980
mov ecx, esi
call fcn.004183b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edi
push edx
lea eax, [ebx + 0x3c]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418972
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x418972
mov ebp, dword [esi + 0x5d0b8]
push eax
add ebp, eax
push ebx
mov dword [esi + 0x5d0b8], ebp
mov edx, dword [esi + 0x5d0bc]
adc edx, edi
mov ecx, esi
mov dword [esi + 0x5d0bc], edx
call fcn.00418980
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x41c200
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
mov eax, 0x18a8
call fcn.004acae0
mov eax, dword [0x5e8070]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
je 0x41c406
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
push str.Count
push str.UpdateExt
call fcn.004083e0
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jbe 0x41c40d
push edi
mov ecx, esi
call fcn.0041cc80
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x86e]
mov word [esp + 0x86c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x666]
mov word [esp + 0x664], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x45e]
mov word [esp + 0x45c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x664]
push ecx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x664]
push edx
push str._sTheWorld_
lea eax, [esp + 0x464]
push 0x103
push eax
call esi
lea ecx, [esp + 0x46c]
push ecx
call fcn.00427cf0
add esp, 0x14
lea edx, [esp + 0x45c]
lea eax, [esp + 0x254]
push edx
push str._sUpdateExt.ini
push 0x103
push eax
call esi
add esp, 0x10
call fcn.00408150
push eax
lea ecx, [esp + 0x50]
push 0x103
push ecx
call esi
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.00427930
add esp, 0x14
test eax, eax
je 0x41c365
lea eax, [esp + 0x254]
push 1
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x254]
lea eax, [esp + 0x86c]
push edx
push 0x4f685c
push 7
push str._tp:
push str._s_d__s_s
push 0x823
push eax
call esi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x86c]
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x24], 0x50fd6c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x41c3f0
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UpdateExt
call fcn.00408010
add esp, 4
pop esi
pop ebx
add esp, 0x18a8
ret
mov ecx, esi
call fcn.0041c420
pop esi
pop ebx
add esp, 0x18a8
ret
Function at 0x41ca80
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0xa28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, dword [esp + 0xa3c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], bp
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
stosw word es:[edi], ax
push 0x4f6580
lea eax, [esp + 0x220]
push 0x103
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea ecx, [esp + 0x228]
push 0x5c
push ecx
call edi
add esp, 0x18
test eax, eax
je 0x41caf6
add eax, 2
lea edx, [esp + 0x218]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [esp + 0x218]
push 0x2e
push eax
call edi
xor edx, edx
add esp, 8
cmp eax, edx
je 0x41cb0e
mov word [eax], dx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62a]
mov word [esp + 0x628], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x628]
push ecx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x218]
lea eax, [esp + 0x628]
push edx
push eax
push str._sTheWorld_skin_s_
lea ecx, [esp + 0x1c]
push 0x103
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call fcn.00427cf0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004abaa0
mov cx, word [0x50fd10]
xor eax, eax
mov word [esp + 0x440], cx
mov ecx, 0x81
lea edi, [esp + 0x442]
add esp, 0x20
rep stosd dword es:[edi], eax
push str.Skin
push 0x50ff74
push 0x4f830c
lea edx, [esp + 0x42c]
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x434]
push eax
call fcn.00427cf0
mov cx, word [0x50fd10]
xor eax, eax
mov word [esp + 0x848], cx
mov ecx, 0x81
lea edi, [esp + 0x84a]
add esp, 0x18
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
stosw word es:[edi], ax
push edx
push str._sskin.ini
lea eax, [esp + 0x838]
push 0x103
push eax
call esi
lea ecx, [esp + 0x840]
push 0
push ecx
call fcn.00427930
add esp, 0x18
test eax, eax
je 0x41cc43
lea edx, [esp + 0x420]
push 1
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00428550
add esp, 0xc
mov ebp, 1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x10]
push edx
call esi
push 0
push ebx
call fcn.004283a0
add esp, 8
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret 4
Function at 0x41cd10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x668
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x672]
mov word [ebp - 0x674], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, dword [0x5eb514]
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x674]
push 0x103
push eax
push ecx
call fcn.00427940
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x46c], bx
mov edx, dword [ebp + 8]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4f834c
lea eax, [ebp - 0x674]
push edx
push eax
push 0x4f6af0
lea ecx, [ebp - 0x46c]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x46c]
mov word [ebp - 0x266], bx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x41ce39
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [ebp - 0x238]
push 0x4f8348
push ecx
call esi
add esp, 8
test eax, eax
je 0x41ce20
lea edx, [ebp - 0x238]
push 0x4f8340
push edx
call esi
add esp, 8
test eax, eax
je 0x41ce20
test byte [ebp - 0x264], 0x10
je 0x41ce20
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x238]
push eax
push ebx
call fcn.0041ba80
lea ecx, [ebp - 0x264]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41cddd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41ce70
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
mov eax, 0x18a8
call fcn.004acae0
mov eax, dword [0x5e8070]
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, ecx
je 0x41d06e
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push str.Count
push str.UnInstallExt
call fcn.004083e0
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, esi
ja 0x41cebb
pop edi
xor eax, eax
pop esi
add esp, 0x18a8
ret
mov ecx, edi
call fcn.0041cc80
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x86a]
mov word [esp + 0x868], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x662]
mov word [esp + 0x660], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x45a]
mov word [esp + 0x458], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x252]
mov word [esp + 0x250], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x458]
push ecx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x458]
push edx
push str._sTheWorld_
lea eax, [esp + 0x258]
push 0x103
push eax
call esi
lea ecx, [esp + 0x260]
push ecx
call fcn.00427cf0
add esp, 0x14
lea edx, [esp + 0x250]
lea eax, [esp + 0x48]
push edx
push 0x4f8354
push 0x103
push eax
call esi
add esp, 0x10
call fcn.00408150
push eax
lea ecx, [esp + 0x664]
push 0x103
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x48]
lea eax, [esp + 0x660]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x868]
push ecx
push 0x4f685c
push 9
push str._tp:
push str._s_d__s_s
push 0x823
push edx
call esi
add esp, 0x1c
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x868]
push ecx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x20], 0x50fd6c
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41d053
mov edx, dword [esp + 0x44]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UnInstallExt
call fcn.00408010
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x18a8
ret
mov ecx, edi
call fcn.004218c0
pop edi
mov eax, 1
pop esi
add esp, 0x18a8
ret