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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413313
test al, 0x10
je 0x413313
mov bl, 1
jmp 0x413315
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x41334b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413341
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413352
push edx
push ecx
call fcn.0044661e
add esp, 8
mov al, bl
pop ebx
pop ebp
ret 0x18
call fcn.00451250
int3
Function at 0x4154a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], eax
push esi
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x41552c
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x415525
push dword [ebp - 0x130]
lea eax, [ebp - 0x108]
push eax
call fcn.00456418
add esp, 8
test eax, eax
jne 0x415514
mov eax, dword [ebp - 0x124]
mov dword [ebx + esi*4], eax
inc esi
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4154f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8

Function at 0x415550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4155bb
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4155bb
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00456418
add esp, 8
test eax, eax
je 0x4155cf
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x415596
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
xor ecx, ebp
pop edi
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret 4

Function at 0x415940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x41598f
cmp dword [ebp - 0x94], 5
jb 0x41598f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret
Function at 0x4190d0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
lea eax, [ebp - 0x1c]
mov ebx, ecx
push eax
push dword [0x516d90]
call fcn.00456a47
push 5
lea eax, [ebp - 0xc]
push eax
push dword [0x516d94]
call fcn.00456a47
push 5
lea eax, [ebp - 0x14]
push eax
push dword [0x516d98]
call fcn.00456a47
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0xc]
add esp, 0x24
lea ecx, [ebx + 0xdd3c]
cmp dword [ebx + 0x454], 0
lea eax, [ebx + 0x4ad0]
lea edi, [ebx + 0x42d0]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x1c]
push edx
push 0x54e9dc
push 0x5267c8
push 0x50be38
push 0x50be60
jne 0x419194
lea edi, [ebx + 0x1cc4]
push edi
push str.WINCSECB
push 0x50a538
push ecx
push 0x50ba38
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s__s_s__s__TS__s__UUID__s__DKM:_s._s._s
push eax
call esi
push edi
push str.WINCSECB
lea eax, [ebx + 0x42d0]
push str._s__s
push eax
call esi
add esp, 0x48
jmp 0x4191bc
push str.WINCSECB
push 0x50a538
push ecx
push 0x50ba38
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s_s__s__TS__s__UUID__s__DKM:_s._s._s
push eax
call esi
push str.WINCSECB
push 0x46e8f8
push edi
call esi
add esp, 0x40
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x521898
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0xdd50], eax
lea eax, [ebx + 0x4ad0]
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004465ed
mov esp, ebp
pop ebp
ret
Function at 0x41aaa0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41ab0b
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41ab0b
lea eax, [ebp - 0x108]
push str.ITS_SB_App_Switch.exe
push eax
call fcn.00456418
add esp, 8
test eax, eax
je 0x41ab1c
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41aae2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x41ab0b
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret

Function at 0x41abc0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov edi, ecx
push 0x470c30
push 5
push eax
call fcn.0040a5e0
add esp, 0x10
cmp dword [edi + 0xe788], 0
je 0x41ac44
add edi, 0xe78c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 2
push 4
push 0
push 2
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x41ac3a
push 0
lea eax, [ebp - 0x218]
push eax
push 0x64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push edi
jmp 0x41ace4
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41acf2
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0044c498
push str.ITSExitCode.log
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0044c4f2
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 2
push 4
push 0
push 2
push 0xc0000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x41acd9
push 0
lea eax, [ebp - 0x218]
push eax
push 0x64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [0x50a534]
call fcn.00442a00
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret 4
Function at 0x41ad10
Capabilities:
Create process on windows
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.cmd__c_mklink__J__]
mov eax, dword [0x472950]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov ax, word [0x472954]
movups xmmword [ebp - 0x444], xmm0
push 0x418
movups xmm0, xmmword [0x472940]
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push 0
push eax
mov dword [ebp - 0x448], esi
movups xmmword [ebp - 0x434], xmm0
call fcn.00449240
push 0x40
lea eax, [ebp - 0x498]
mov dword [ebp - 0x49c], 0x44
push 0
push eax
call fcn.00449240
add esp, 0x18
xorps xmm0, xmm0
cmp word [ebx], 0
movups xmmword [ebp - 0x458], xmm0
je 0x41aec4
cmp word [esi], 0
je 0x41aec4
mov edx, esi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41adb5
push edi
lea edi, [ebp - 0x444]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41add0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x444]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41adf3
mov eax, dword [0x472958]
mov esi, ebx
mov dword [ecx], eax
mov eax, dword [0x47295c]
mov dword [ecx + 4], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41ae10
lea edi, [ebp - 0x444]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41ae26
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x444]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41ae50
mov eax, dword [0x46f998]
push dword [ebp - 0x448]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x41aec4
push 0xffffffffffffffff
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x458]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x454]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8
Function at 0x41aef0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00449240
add esp, 0xc
mov dword [ebp - 0xd4], 0xc8
cmp word [0x551858], 0
jne 0x41b04f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xd0]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREWOW6432NodeMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41af80
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x472a14
push dword [ebp - 0xd0]
call edi
test eax, eax
je 0x41afc5
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41b03a
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x472a14
push dword [ebp - 0xd0]
call edi
test eax, eax
jne 0x41b03a
push 0
push 0x2a
push 0x551858
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x551858
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41afe0
mov ecx, 0xe
lea edx, [ebp - 0xcc]
mov esi, str.MicrosoftEdgeApplication_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41b002
mov edi, 0x551858
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b020
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x551858
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x551858
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret
Function at 0x42bc60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46be2d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.0044c63f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x42bd03
push esi
push str.JavaScript:GetNetworkName________s_
push 1
push dword [0x50a534]
call fcn.004429d0
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bcf0
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x42bd1f
push str.JavaScript:GetNetworkName________
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0xc
push 0
push 0x46ea58
lea ecx, [ebp - 0x28]
call fcn.0040a4a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [edi], eax
call fcn.0044c624
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x42bd7a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42bd70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bd99
push edx
push ecx
call fcn.0044661e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8
call fcn.00451250
int3
Function at 0x42bda0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46be2d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x200
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0x200
call fcn.0044c63f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x42be43
push esi
push str.JavaScript:GetNetworkUser________s_
push 1
push dword [0x50a534]
call fcn.004429d0
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42be30
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x42be5f
push str.JavaScript:GetNetworkUser________
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0xc
push 0
push 0x46ea58
lea ecx, [ebp - 0x28]
call fcn.0040a4a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [edi], eax
call fcn.0044c624
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x42beba
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42beb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bed9
push edx
push ecx
call fcn.0044661e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8
call fcn.00451250
int3

Function at 0x42d050
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, 0x51cdc8
call fcn.00415940
test eax, eax
je 0x42d0ae
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
push ecx
push str.JavaScript:GetSystemMemory_______u
push 1
push dword [0x50a534]
call fcn.004429d0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd ecx, eax, 0x14
mov dword [esi], ecx
jmp 0x42d0e0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
push eax
push str.JavaScript:GetSystemMemory_______u
push 1
push dword [0x50a534]
call fcn.004429d0
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
mov dword [esi], eax
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8
Function at 0x42dec0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x51cdc8
push esi
push dword [eax]
call fcn.00412780
cmp dword [0x516d9c], 0
mov esi, eax
je 0x42df10
push 0x54e43c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x54e43c
mov ecx, 0x51cdc8
call fcn.00413210
push esi
push 0x54e43c
jmp 0x42df7d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42df8b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044c498
push str.ITSTestComplete.log
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044c4f2
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
mov ecx, 0x51cdc8
push eax
call fcn.00413210
push esi
lea eax, [ebp - 0x108]
push eax
push dword [0x50a534]
call fcn.00442a00
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8
Function at 0x4409e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x440a11
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x440a00
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x441200
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
push esi
movsx esi, byte [edx]
test esi, esi
je 0x441226
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x441213
pop esi
pop ebp
ret

Function at 0x4412b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x441307
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x441307
movsx edx, byte [edi]
mov eax, 0x1505
push esi
mov esi, edi
test edx, edx
je 0x4412e5
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x4412d2
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.004411b0
add esp, 8
pop esi
test eax, eax
je 0x441307
pop edi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x441310
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4413c5
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4413c5
movsx edx, byte [edi]
mov esi, edi
mov eax, 0x1505
test edx, edx
je 0x441353
nop word [eax + eax]
mov ecx, eax
lea esi, [esi + 1]
shl eax, 5
add eax, edx
movsx edx, byte [esi]
add eax, ecx
test edx, edx
jne 0x441340
xor edx, edx
div dword [ebx]
mov eax, dword [ebx + 4]
push edi
lea eax, [eax + edx*8]
push eax
call fcn.004411b0
add esp, 8
test eax, eax
je 0x4413c5
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x441391
cmp dword [ebp + 0x14], edx
jne 0x4413c5
mov ecx, dword [eax + 4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441380
sub ecx, edx
pop edi
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret
mov esi, dword [eax + 4]
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4413a0
mov eax, dword [ebp + 0x14]
sub ecx, edi
cmp ecx, eax
jae 0x4413c5
push esi
push eax
push edx
call fcn.0044c498
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4030b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40f014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403128
xor eax, eax
push ebp
push 0x403121
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403164
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403128
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40f014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40f014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4039f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410044], 0
je 0x403a55
cmp word [0x410218], 0xd7b2
jne 0x403a1d
cmp dword [0x410220], 0
jbe 0x403a1d
mov eax, 0x410214
call dword [0x410230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f060
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403a7c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x40f020], 0
jne 0x403a71
push 0
push 0x40f058
push 0x40f060
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret