joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4076e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407724
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407720
lea ebx, [ebx]
cmp esi, eax
jae 0x407724
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407710
cmp esi, eax
jb 0x40772a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408820
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x388]
sub esp, 0x388
push 0xffffffffffffffff
push 0x45ec68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x476cd4]
xor eax, ebp
mov dword [ebp + 0x384], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x398]
mov ebx, dword [ebp + 0x390]
mov edi, dword [ebp + 0x394]
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x408880
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088c3
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4088c3
neg esi
sbb esi, esi
and esi, 0xfffffffd
lea ecx, [ebp]
add esi, 4
mov dword [ebp - 4], 0
call fcn.0042c1e0
push 0
push esi
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00427710
test al, al
jne 0x4088ea
lea ecx, [ebp]
mov byte [ebp - 4], al
call fcn.0042bd90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x384]
xor ecx, ebp
call fcn.0043f03d
add ebp, 0x388
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov edi, 0x7ffffffe
mov esi, 0x104
lea eax, [ebp + 0x17c]
xor ebx, ebx
mov edi, edi
test esi, esi
je 0x40891e
test edi, edi
je 0x408921
movzx ecx, word [edx]
test cx, cx
je 0x408921
mov word [eax], cx
add eax, 2
add edx, 2
dec esi
dec edi
inc ebx
jmp 0x408900
sub eax, 2
lea edx, [ebp + 0x17c]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov ecx, dword [ebp - 0x14]
push 0x10000
push 7
push 0xffffffffffffffff
lea eax, [ebp + 0x17c]
push eax
push ecx
lea ecx, [ebp]
call fcn.0042d030
push 0
push 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp]
movzx esi, al
call fcn.0042bf90
cmp dword [ebp - 0x1c], 8
jb 0x408974
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043e711
add esp, 4
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0042bd90
mov eax, esi
jmp 0x4088c5
Function at 0x409ba0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x45ee30
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.004098a0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
or ebp, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x3c], ebx
jge 0x409bed
mov eax, ebp
jmp 0x409c09
push 0x464548
push ecx
call fcn.0043e893
add esp, 8
cmp eax, ebx
jne 0x409c03
mov eax, ebp
jmp 0x409c09
sub eax, dword [esp + 0x14]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408430
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.00409200
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], ebp
je 0x409cc1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x409ca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov edx, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x409cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40a350
Capabilities:
Get session user name

Disassembly:
sub esp, 0x23c
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x238], eax
push ebp
mov ebp, dword [esp + 0x244]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x258]
mov dword [esp + 0x18], ecx
cmp ebp, esi
jne 0x40a386
xor eax, eax
jmp 0x40a495
cmp edi, esi
jne 0x40a3aa
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x14], 0x208
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40a37f
lea edi, [esp + 0x3c]
mov ecx, dword [esp + 0x250]
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push esi
push esi
push 4
push ecx
push ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x40a493
push ebx
mov ebx, dword [esp + 0x258]
cmp ebx, 2
je 0x40a3ea
cmp ebx, 1
jne 0x40a3fb
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edi
push 3
push edx
call fcn.0040a2e0
xor eax, eax
push 3
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x268]
push eax
push edi
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
test eax, eax
jne 0x40a488
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x250]
push 0
push edx
push 0
push 0
push 4
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40a488
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a493
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043f03d
add esp, 0x23c
ret 0x14
Function at 0x40ad10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ada6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
lea edx, [ecx + ecx]
push esi
lea ecx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push str.Path
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ad80
sub eax, edx
sar eax, 1
je 0x40ada8
cmp word [esi + eax*2 - 2], 0x5c
je 0x40ada8
mov ecx, 0x5c
mov word [esi + eax*2], cx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40eb40
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x45f448
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
mov dword [esp + 8], 0
push 1
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x23c]
mov dword [esp + 0x230], 0
mov dword [esp + 0x14], 0x25
call fcn.0040b040
test eax, eax
jne 0x40ec21
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], cx
call fcn.0043f440
mov eax, dword [esp + 0x240]
add esp, 0xc
cmp dword [esp + 0x248], 8
jae 0x40ebe5
lea eax, [esp + 0x234]
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec00
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x238]
call fcn.00408f40
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x238]
push ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov ecx, esi
mov word [esi + 4], ax
call fcn.00408e40
cmp dword [esp + 0x248], 8
jb 0x40ec61
mov edx, dword [esp + 0x234]
push edx
call fcn.0043e711
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043f03d
add esp, 0x220
ret

Function at 0x40f1c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45f870
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x5c], ebx
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x2c]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.00408e40
mov esi, 8
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], esi
jb 0x40f24c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x40f25a
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f28c
cmp dword [esp + 0x54], esi
jb 0x40f278
mov edx, dword [esp + 0x40]
push edx
call fcn.0043e711
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x40f29a
lea eax, [esp + 0x40]
push eax
call fcn.00421850
add esp, 4
test eax, eax
setne bl
cmp dword [esp + 0x54], esi
jb 0x40f2bb
mov eax, dword [esp + 0x40]
push eax
call fcn.0043e711
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x410870
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45f870
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
xor esi, esi
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x60]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], esi
push edx
mov dword [esp + 0x5c], esi
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x2c]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.00408e40
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x4108f8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x410906
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41096c
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x41091f
lea eax, [esp + 0x40]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x410939
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp dword [esp + 0x54], esi
jb 0x410958
mov edx, dword [esp + 0x40]
push edx
call fcn.0043e711
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x54], esi
jb 0x41097f
mov eax, dword [esp + 0x40]
push eax
call fcn.0043e711
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x411900
Capabilities:
Check if file exists
Move file

Disassembly:
push 0xffffffffffffffff
push 0x45f630
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0x68]
mov ebp, 7
xor eax, eax
mov ebx, 1
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], edi
push edx
mov dword [esp + 0x64], ebx
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x34]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call fcn.00408e40
mov esi, 8
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x30], esi
jb 0x411994
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043e711
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x84]
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], edi
push eax
mov word [ecx + 4], dx
call fcn.00408e40
lea ecx, [esp + 0x34]
push ecx
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x48], 3
call fcn.00408e40
cmp dword [esp + 0x30], esi
jb 0x4119eb
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], esi
jae 0x4119f9
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411a4f
cmp dword [esp + 0x5c], esi
jb 0x411a17
mov eax, dword [esp + 0x48]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
cmp dword [esp + 0x78], esi
jb 0x411a39
mov edx, dword [esp + 0x64]
push edx
call fcn.0043e711
add esp, 4
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x411a5d
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], esi
jae 0x411a6b
lea eax, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
cmp dword [esp + 0x5c], esi
jb 0x411a8b
mov eax, dword [esp + 0x48]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
cmp dword [esp + 0x78], esi
jb 0x411aad
mov edx, dword [esp + 0x64]
push edx
call fcn.0043e711
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x413f00
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x808], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0043f440
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x413f80
mov eax, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0043f03d
add esp, 0x80c
ret
push str.360ver.dll
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413f66
lea edx, [esp + 8]
push esi
push edx
call fcn.0040b3b0
add esp, 4
test eax, eax
je 0x413fc5
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x413fe0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0043f03d
add esp, 0x80c
ret
push edi
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043f03d
add esp, 0x80c
ret

Function at 0x414020
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.004404b0
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x1010]
push 0x1000
lea eax, [esp + 8]
push 0
push eax
call fcn.0043f440
add esp, 0xc
push 0x4650e0
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00413e60
push esi
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00413e60
push 0x4650b4
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.00413e60
push esi
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00413e60
push str.vL
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00413e60
mov eax, dword [esp + 0x100c]
push eax
push 0x800
lea ecx, [esp + 0xc]
push ecx
call fcn.00413e60
push 0x465070
push 0x800
lea edx, [esp + 0xc]
push edx
call fcn.00413e60
push 0x14
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x414140
push 0xc8
push 0x464ff8
push str.http:__down.360safe.com_setup.exe
call fcn.0043fc10
add esp, 0xc
test eax, eax
jne 0x414128
call fcn.00413f00
test eax, eax
je 0x414128
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x414133
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1014], 0
je 0x414151
push 0
call fcn.00440415
mov ecx, dword [esp + 0x1004]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043f03d
add esp, 0x1004
ret
Function at 0x414170
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0040b3b0
add esp, 4
push esi
test eax, eax
jne 0x4141a1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41419d
push 1
push 0x4751d0
push esi
call fcn.00414020
add esp, 0xc
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
ret

Function at 0x415200
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x4757e0], 0
je 0x41529a
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415259
lea ecx, [esp]
push ecx
call eax
jmp 0x415263
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp]
cmp ax, 9
je 0x415282
cmp ax, 6
je 0x415282
xor eax, eax
mov dword [0x478790], eax
mov dword [0x4757e0], eax
add esp, 0x24
ret
mov eax, 1
mov dword [0x478790], eax
mov dword [0x4757e0], 0
add esp, 0x24
ret
mov eax, dword [0x478790]
add esp, 0x24
ret

Function at 0x415d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45fe98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [0x479678]
mov edx, dword [eax + 0xc]
mov ecx, 0x479678
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, edi
mov dword [esp + 0x30], 0
call fcn.00415760
test eax, eax
je 0x415d7d
add eax, 4
push eax
lea ecx, [esp + 0x10]
call fcn.00409200
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
push esi
mov ecx, edi
call fcn.00415c70
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415dad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 8
Function at 0x4170f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x34
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
push edi
push esi
call dword [0x478c0c]
add esp, 8
test eax, eax
jne 0x417150
call dword [0x4787d4]
test al, 2
je 0x41713d
mov ecx, 8
mov esi, str.luaenv::read:_not_unsigned_long_n
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0043f03d
add esp, 0x34
ret
push edi
push esi
call dword [0x478c30]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
add esp, 8
pop edi
fldcw word [esp + 8]
pop esi
fistp qword [esp + 4]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
xor ecx, esp
fldcw word [esp + 2]
call fcn.0043f03d
add esp, 0x34
ret

Function at 0x417190
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
push edi
push esi
call dword [0x478c0c]
add esp, 8
test eax, eax
jne 0x4171f2
call dword [0x4787d4]
test al, 2
je 0x4171df
mov ecx, 5
mov esi, str.luaenv::read:_not_int_n
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 8]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043f03d
add esp, 0x1c
ret
push edi
push esi
call dword [0x478c30]
add esp, 8
call fcn.00440cf0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.0043f03d
add esp, 0x1c
ret

Function at 0x417220
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x30
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
push edi
push esi
call dword [0x478c0c]
add esp, 8
test eax, eax
jne 0x41727f
call dword [0x4787d4]
test al, 2
je 0x41726c
lea eax, [esp + 0x14]
mov ecx, 8
mov esi, str.luaenv::read:_not_unsigned_int_n
lea edi, [esp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043f03d
add esp, 0x30
ret
push edi
push esi
call dword [0x478c30]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
add esp, 8
pop edi
fldcw word [esp + 8]
pop esi
fistp qword [esp + 4]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
fldcw word [esp + 2]
call fcn.0043f03d
add esp, 0x30
ret