joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c6c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40c6e0
xor eax, eax
jmp 0x40c876
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40c6f1
xor eax, eax
jmp 0x40c876
mov edx, dword [ebp + 8]
push edx
call fcn.0042b51b
add esp, 4
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0x104
jl 0x40c716
xor eax, eax
jmp 0x40c876
push 0x410
push 0
lea eax, [ebp - 0x888]
push eax
call fcn.0042b460
add esp, 0xc
push 0x45c4b0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x888]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x890], eax
cmp dword [ebp - 0x890], 0xffffffff
je 0x40c786
mov ecx, dword [ebp - 0x890]
and ecx, 1
je 0x40c786
mov edx, dword [ebp - 0x890]
and edx, 0xfffffffe
mov dword [ebp - 0x890], edx
mov eax, dword [ebp - 0x890]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x470]
call fcn.0040c910
lea edx, [ebp - 0x888]
push edx
lea ecx, [ebp - 0x470]
call fcn.0040d400
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
je 0x40c844
lea ecx, [ebp - 0x470]
call fcn.0040d340
test eax, eax
je 0x40c7d8
lea ecx, [ebp - 0x470]
call fcn.0040d5a0
mov dword [ebp - 0x88c], eax
jmp 0x40c7a9
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x470]
call fcn.0040c970
lea ecx, [ebp - 0x470]
call fcn.0040d3b0
test eax, eax
je 0x40c80f
lea ecx, [ebp - 0x894]
call fcn.0040c890
push eax
call fcn.0040c6c0
add esp, 4
jmp 0x40c823
lea ecx, [ebp - 0x894]
call fcn.0040c890
push eax
call fcn.0040c640
add esp, 4
lea ecx, [ebp - 0x470]
call fcn.0040d5a0
mov dword [ebp - 0x88c], eax
lea ecx, [ebp - 0x894]
call fcn.0040c8a0
jmp 0x40c7a9
lea ecx, [ebp - 0x470]
call fcn.0040d600
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c090
add esp, 4
mov dword [ebp - 0x898], 1
lea ecx, [ebp - 0x470]
call fcn.0040c950
mov eax, dword [ebp - 0x898]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret

Function at 0x40d780
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x45c4c0]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x45c4c4]
mov dword [ebp - 0xc], ecx
mov dx, word [ebp + 8]
mov word [ebp - 0x10], dx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
je 0x40d7c2
xor eax, eax
xor edx, edx
jmp 0x40d7f4
push 8
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042b460
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40d7ee
xor eax, eax
xor edx, edx
jmp 0x40d7f4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x40daa0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x13c]
call fcn.0040e2e0
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esp
lea edx, [ebp + 8]
push edx
call fcn.0040ca30
lea ecx, [ebp - 0x13c]
call fcn.0040ddc0
test eax, eax
jne 0x40db0f
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x13c]
call fcn.0040dd50
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x14c]
jmp 0x40dc75
mov dword [ebp - 0x118], 0x81
xor eax, eax
mov word [ebp - 0x110], ax
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x10e]
push ecx
call fcn.0042b460
add esp, 0xc
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.0040e0e0
add esp, 8
lea ecx, [ebp - 0x120]
call fcn.0040d320
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s.tf
lea edx, [ebp - 0x120]
push edx
call fcn.0040f4d0
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
lea ecx, [ebp - 0x120]
call fcn.0040c890
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x40dc3a
lea eax, [ebp - 0x110]
push eax
call fcn.0042b51b
add esp, 4
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
push 0
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x144]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dc0e
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x140]
jne 0x40dc0c
mov dword [ebp - 0x11c], 1
jmp 0x40dc19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x120]
call fcn.0040c890
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40dc45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x150], edx
lea ecx, [ebp - 0x120]
call fcn.0040c8a0
lea ecx, [ebp - 0x13c]
call fcn.0040dd50
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret

Function at 0x40dcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0x400
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.0042b460
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
mov ecx, esp
lea eax, [ebp - 0x808]
push eax
call fcn.0040ca80
call fcn.0040dc90
add esp, 4
test eax, eax
jne 0x40dd3d
xor eax, eax
jmp 0x40dd42
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x40dd50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040e360
jmp 0x40dd75
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
call fcn.0040e400
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.0040e390
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040f0a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40ddad
lea ecx, [ebp - 8]
call fcn.0040e440
mov ecx, eax
call fcn.0040c890
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40dd67
mov ecx, dword [ebp - 0x1c]
call fcn.0040e340
mov esp, ebp
pop ebp
ret

Function at 0x40ddc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040f440
push 0x45c550
lea ecx, [ebp + 8]
call fcn.0040f3a0
lea ecx, [ebp + 8]
call fcn.0040cb50
cmp eax, 3
jl 0x40de89
push 0
lea ecx, [ebp + 8]
call fcn.0040f380
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
cmp eax, 0x61
jl 0x40de11
movzx ecx, word [ebp - 4]
cmp ecx, 0x7a
jle 0x40de23
movzx edx, word [ebp - 4]
cmp edx, 0x41
jl 0x40de89
movzx eax, word [ebp - 4]
cmp eax, 0x5a
jg 0x40de89
push 1
lea ecx, [ebp + 8]
call fcn.0040f380
movzx ecx, ax
cmp ecx, 0x3a
je 0x40de4c
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x14]
jmp 0x40df66
push 2
lea ecx, [ebp + 8]
call fcn.0040f380
movzx edx, ax
cmp edx, 0x5c
je 0x40de89
push 2
lea ecx, [ebp + 8]
call fcn.0040f380
movzx eax, ax
cmp eax, 0x2f2f
je 0x40de89
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x18]
jmp 0x40df66
mov dword [ebp - 8], 0
jmp 0x40de9b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
lea ecx, [ebp + 8]
call fcn.0040cb50
cmp dword [ebp - 8], eax
jge 0x40df54
mov edx, dword [ebp - 8]
push edx
lea ecx, [ebp + 8]
call fcn.0040cb70
movzx eax, ax
cmp eax, 0x5c
jne 0x40df4f
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.0040f3d0
lea ecx, [ebp - 0xc]
call fcn.0040c890
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df47
push 0
lea ecx, [ebp - 0xc]
call fcn.0040c890
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40df3b
cmp dword [ebp - 0x10], 0x50
je 0x40df3b
cmp dword [ebp - 0x10], 0xb7
je 0x40df3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xc]
call fcn.0040c8a0
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x1c]
jmp 0x40df66
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.0040e3c0
lea ecx, [ebp - 0xc]
call fcn.0040c8a0
jmp 0x40de92
mov dword [ebp - 0x20], 1
lea ecx, [ebp + 8]
call fcn.0040c8a0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8
Function at 0x40e1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x40e1f2
cmp dword [ebp + 0xc], 0x104
jge 0x40e1f9
xor eax, eax
jmp 0x40e2c7
call fcn.0040dcd0
test eax, eax
je 0x40e262
mov dword [ebp - 0x80c], 0x400
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.0042b460
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x400
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042bafa
add esp, 0x10
mov eax, 1
jmp 0x40e2c7
push 0x208
push 0
lea eax, [ebp - 0xa18]
push eax
call fcn.0042b460
add esp, 0xc
push 1
push 0x1a
lea ecx, [ebp - 0xa18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ecx
mov ecx, esp
lea edx, [ebp - 0xa18]
push edx
call fcn.0040ca80
call fcn.0040dc90
add esp, 4
push 0x104
lea eax, [ebp - 0xa18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042bafa
add esp, 0x10
mov eax, 1
jmp 0x40e2c7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x410870
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0042b460
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x214], 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
push str.Setup_Path
push 0x45c6f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4108f6
push str.ComputerZ_CN.exe
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x4108f8
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret

Function at 0x411580
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
mov eax, dword [ebp - 0x1a0]
mov dword [eax], 0
mov ecx, 0x202
mov word [ebp - 0x19c], cx
lea edx, [ebp - 0x198]
push edx
movzx eax, word [ebp - 0x19c]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x4146b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00414000
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00417150
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.004149a0
lea ecx, [ebp - 0x438]
call fcn.00417590
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00414450
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41472e
call fcn.00414080
mov dword [ebp - 0x444], eax
jmp 0x414883
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x41475f
call fcn.00414080
mov dword [ebp - 0x444], eax
jmp 0x414883
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x41478f
call fcn.00414080
mov dword [ebp - 0x444], eax
jmp 0x414883
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x4147df
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.004175b0
lea ecx, [ebp - 0x2c]
call fcn.00417170
mov eax, dword [ebp - 0x44c]
jmp 0x4148b8
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.004175e0
lea ecx, [ebp - 0x438]
call fcn.004175d0
test eax, eax
jne 0x41480c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x414883
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004175d0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00414000
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x41484e
call fcn.00414080
mov dword [ebp - 0x444], eax
jmp 0x414883
lea ecx, [ebp - 0x438]
call fcn.004175d0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.004175d0
push eax
lea ecx, [ebp - 0x18]
call fcn.004149d0
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x414893
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.004175b0
lea ecx, [ebp - 0x2c]
call fcn.00417170
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00415fc0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004161a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41626b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00415ff0
mov eax, dword [ebp - 0x224]
jmp 0x4162fc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4162d1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00416200
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4162c8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00415ff0
mov eax, dword [ebp - 0x228]
jmp 0x4162fc
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x416272
lea ecx, [ebp - 0x14]
call fcn.004160e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00416080
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00415ff0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 4
Function at 0x416860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x416869
xor ecx, ecx
jne 0x416869
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41688a
mov eax, 0xd
jmp 0x4168e5
xor eax, eax
jne 0x416871
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x41689b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x417f10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0042b460
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040e1d0
add esp, 8
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040cb90
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040c890
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417fa1
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040c890
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.ludashisetup.exe
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040f3a0
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040c890
push eax
call fcn.0040c640
add esp, 4
cmp dword [ebp - 0x214], 0
je 0x417feb
mov eax, dword [ebp - 0x214]
add eax, 0x24
mov dword [ebp - 0x218], eax
jmp 0x417ff5
mov dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0x218]
push ecx
push 0
mov ecx, dword [ebp - 0x214]
add ecx, 0x98
call fcn.0040c890
push eax
push str.http:__dl.360safe.com_ludashi_ludashisetup.exe
mov ecx, dword [ebp - 0x214]
add ecx, 0x30
call fcn.00429120
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0x98]
push ecx
push str.start_download_file__s__ret___d
call fcn.00424c40
add esp, 0xc
push 0
push str.down_start
call fcn.00411b40
mov ecx, eax
call fcn.0042a2b0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x4180e0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Download_end__success___d__errorcode___d__error___s
call fcn.00424c40
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x41811d
push 0
push str.down_success
call fcn.00411b40
mov ecx, eax
call fcn.0042a2b0
jmp 0x418130
push 0
push str.down_fail
call fcn.00411b40
mov ecx, eax
call fcn.0042a2b0
cmp dword [ebp + 8], 0
jne 0x41815f
cmp dword [ebp + 0xc], 0xfffffff1
jne 0x418149
push str.Download_file_FAILD__check_MD5_error
call fcn.00424c40
add esp, 4
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x14]
sub ecx, 0x20
call fcn.00418430
jmp 0x41826a
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call fcn.0040c890
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x74]
push edx
push str.download_file__s_exist____d
call fcn.00424c40
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4181a8
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x14]
sub ecx, 0x20
call fcn.00418430
jmp 0x41826a
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call fcn.0040c890
push eax
call fcn.0041a200
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push str.check_360_sign__d
call fcn.00424c40
add esp, 8
call fcn.00411af0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x418259
lea ecx, [ebp - 0xc]
call fcn.0040d320
mov ecx, dword [ebp - 8]
call fcn.0041e8a0
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0041e800
mov edx, dword [eax]
push edx
push str.__pid__s___s
lea eax, [ebp - 0xc]
push eax
call fcn.0040f4d0
add esp, 0x10
push 1
push 0
lea ecx, [ebp - 0xc]
call fcn.0040c890
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x74
call fcn.0040c890
push eax
push 0x45d0ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jle 0x418251
push 0
push str.down_exec
call fcn.00411b40
mov ecx, eax
call fcn.0042a2b0
lea ecx, [ebp - 0xc]
call fcn.0040c8a0
push 0
push 0
push 0x10
mov ecx, dword [ebp - 0x14]
sub ecx, 0x20
call fcn.00418430
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 8
push 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042b460
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x418988
xor eax, eax
jmp 0x4189d1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4189b4
xor eax, eax
jmp 0x4189d1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418a50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x418a8c
xor eax, eax
jmp 0x418ac0
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00418ad0
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4