joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfd0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cdc9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
call ebx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004501d3
add esp, 4
lea edx, [ebp - 0x10]
mov esi, eax
push edx
push esi
call ebx
test eax, eax
jne 0x40c0a7
test esi, esi
je 0x40c0b4
push 0x47af60
push edi
xor ebx, ebx
call fcn.00404f80
mov eax, dword [esi + 0x190]
test eax, eax
je 0x40c0b4
dec eax
cmp ebx, eax
jae 0x40c084
movzx eax, byte [esi + ebx + 0x194]
push 0x2d
push eax
push str._02X_c
call fcn.0040c670
add esp, 0xc
jmp 0x40c09a
movzx ecx, byte [esi + ebx + 0x194]
push ecx
push str._02X
call fcn.0040c670
add esp, 8
mov eax, dword [esi + 0x190]
inc ebx
cmp ebx, eax
jb 0x40c065
jmp 0x40c0b4
push str.Get_Net_Adapter_Information._r_n
call fcn.004529ab
add esp, 4
push esi
call fcn.00450267
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x150]
push eax
mov esi, 0xe
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.ntdll.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je case.default.0x40cc76
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cc1a
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x12c]
push edx
call eax
and dword [ebp - 0x128], 0xffff
lea ebx, [esi - 0xd]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.default.0x40cc76
mov eax, dword [ebp - 0x12c]
sub eax, 5
je 0x40cd47
dec eax
je 0x40cc67
sub eax, 4
jne case.default.0x40cc76
call fcn.0040cb40
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja case.default.0x40cc76
jmp dword [eax*4 + 0x40cda8]
xor eax, eax
cmp byte [ebp - 6], 1
pop edi
setne al
lea esi, [eax + 3]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40ccc5
call fcn.0040cb40
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 5
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40cd06
call fcn.0040cb40
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov esi, 7
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40cd06
call fcn.0040cb40
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0xa
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x40cd93
dec eax
je 0x40cd7b
dec eax
jne case.default.0x40cc76
xor ecx, ecx
cmp word [ebp - 0x150], 9
pop edi
setne cl
lea esi, [ecx + 1]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004501c4
mov esp, ebp
pop ebp
ret
Function at 0x40d270
Capabilities:
Access peb ldr_data
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x485370]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x47b34c]
mov edi, ecx
movzx edx, word [edi + 0x28]
mov ecx, dword [0x47b350]
mov dword [esp + 0x30], eax
mov eax, dword [section..data]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, 0x41
cmp si, word [edi + 0x28]
je 0x40d339
lea eax, [esp + 0x30]
push eax
mov word [esp + 0x34], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40d339
movzx ecx, si
push str.ORMBackup
push ecx
push str._c:_s
lea edi, [esp + 0x20]
call fcn.00404aa0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call ebx
test eax, eax
jne 0x40d415
mov edi, dword [esp + 0x1c]
inc esi
cmp si, 0x5a
jb 0x40d2f1
mov esi, 0x41
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x18], esi
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 0x28]
push edx
call fcn.00452b7e
add esp, 4
cmp eax, dword [esp + 0x18]
je 0x40d3bf
lea eax, [esp + 0x30]
push eax
mov word [esp + 0x34], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40d3bf
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0x28]
cmp ecx, edi
jb 0x40d3bf
mov edx, dword [esp + 0x24]
ja 0x40d3a2
cmp edx, ebx
jbe 0x40d3bf
mov eax, edx
and eax, 0xc0000000
test ecx, ecx
jne 0x40d3b4
cmp eax, 0xc0000000
jbe 0x40d3bf
movzx eax, si
mov dword [esp + 0x20], eax
mov ebx, edx
mov edi, ecx
inc dword [esp + 0x18]
inc esi
cmp si, 0x5a
jb 0x40d350
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, word [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d43d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, si
jmp 0x40d3f7
Function at 0x40f550
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x485370]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push 0x40
xor esi, esi
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00453660
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
fild qword [esp + 8]
and ecx, 0x80000000
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
fild qword [esp + 8]
fchs
faddp st(1)
fld qword [0x47bb38]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x47bb30]
fnstsw ax
test ah, 0x41
lea eax, [esi + 1]
je 0x40f5d7
mov eax, esi
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
Function at 0x40f860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c748
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea esi, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040f3c0
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push str._s_sysupdate.exe
lea edi, [ebp - 0x14]
call fcn.00404aa0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
call fcn.004507d8
add esp, 4
cmp eax, ebx
je 0x40f8f9
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea esi, [ebp - 0x18]
call fcn.0040f390
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, edi
call fcn.0040ab30
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x40f975
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f961
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x18]
call fcn.0040f3c0
mov eax, dword [eax]
push 5
push eax
push ebx
push edi
push str.OPEN
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9d2
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410c90
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410ca0
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419ceb
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410cd2
sub eax, edx
sar eax, 1
push edi
add eax, 2
push eax
push esi
call fcn.0045152a
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00453660
add esp, 0x18
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push ecx
push ecx
push 0x10
push 1
push ecx
push ecx
push esi
push ecx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
mov edi, eax
call fcn.004514d7
add esp, 4
test edi, edi
jne 0x410d4d
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411040
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404b40
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4110d6
lea ecx, [ebp - 0x14]
push ecx
lea edi, [ebp + 0xc]
call fcn.00411b20
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x10]
call fcn.00407570
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4110e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4110e0
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419ceb
mov esi, eax
mov eax, edi
add esp, 4
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x411112
sub eax, ecx
sar eax, 1
push edi
add eax, 2
push eax
push esi
call fcn.0045152a
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00453660
add esp, 0x18
xor eax, eax
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x10
mov ecx, 1
push ecx
push 0
push 0
push esi
push 0
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.004514d7
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c858
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
push 0x47b8a8
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00404aa0
mov esi, dword [ebp - 0x10]
add esp, 8
push 1
push 0
push esi
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4113aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411480
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x485370]
xor eax, esp
mov dword [esp + 0x44], eax
push 0x40
lea eax, [esp + 4]
push 0
push eax
call fcn.00453660
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
xor ecx, esp
call fcn.004501c4
mov esp, ebp
pop ebp
ret

Function at 0x411660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x101
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4116b8
mov eax, 4
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.InstallDate
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4116b8
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4119b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
push edi
mov eax, 0x104
mov edx, 2
xor edi, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419ceb
mov esi, eax
xor ecx, ecx
mov eax, 0x104
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419ceb
add esp, 8
push edi
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x411a65
mov eax, dword [ebp - 4]
test eax, eax
je 0x411a65
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x411a65
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x411a40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411a40
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
push esi
add eax, 2
push eax
push edx
call fcn.0045152a
add esp, 0xc
mov edi, 1
push esi
call fcn.004514d7
push ebx
call fcn.004514d7
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x411eec
xor eax, eax
jmp 0x412071
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x411f15
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x411f15
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x412071
cmp dword [edi + 0x54], 0
je 0x41206e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x411f3d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x411f63
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00452ce6
add esp, 8
cmp eax, 0xffffffff
je 0x41206e
mov eax, ebx
jmp 0x412071
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.0040b900
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x411f80
mov edx, eax
cmp ebx, 0x10
jae 0x411f8c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x412066
cmp eax, 1
jg 0x412020
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x411fcc
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x411ff5
cmp ebx, 0x10
jae 0x411fdb
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00450f08
add esp, 0x10
cmp esi, eax
jne 0x412066
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x412059
test esi, esi
jne 0x411f80
cmp dword [ebp - 0x1c], 0x20
jae 0x412066
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004026e0
jmp 0x411f75
cmp eax, 3
jne 0x412066
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00452ce6
add esp, 8
cmp eax, 0xffffffff
je 0x41204a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
mov eax, esi
jmp 0x412071
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00403ef0
mov eax, esi
jmp 0x412071
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
mov eax, dword [ebp + 8]
jmp 0x412071
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret 4
Function at 0x412990
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c2cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00419cf6
push 4
mov dword [ebp - 4], 0
call fcn.004507d8
mov edi, eax
add esp, 4
test edi, edi
je 0x412a0c
call fcn.0041998a
mov dword [edi], eax
call fcn.00419749
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041967e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x412a02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004196a6
jmp 0x412a0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4132f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413340
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret