joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040a1b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10013f79
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10040a58
call fcn.10040664
mov dword [esi + 0xc], 1
jmp 0x10040a5d
call fcn.10040664
cmp dword [esi], 0
je 0x10040aa6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10040a7e
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100093b1
jmp 0x10040a90
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.1000290d
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004562
jmp 0x10040aca
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10040aca
push dword [esi]
push dword [ebp + 8]
call fcn.100086a1
pop esi
pop ebp
ret 0xc

Function at 0x10070069
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x10070083
call fcn.10005cb4
mov esi, dword [eax + 0xc]
push dword [0x10164620]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100700a1
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10070099
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100700ce
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1007009b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1006ff97
mov esi, eax
jmp 0x100700c0

Function at 0x100bb24f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100ef8f6
call fcn.100056e5
cmp dword [eax + 0x14], 0
jne 0x100bb26c
mov ecx, esi
pop esi
jmp fcn.100bad54
pop esi
ret

Function at 0x100be40b
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1005df0e
call fcn.100056e5
cmp dword [eax + 0x14], 0
jne 0x100be428
mov ecx, esi
pop esi
jmp fcn.100bddde
pop esi
ret
Function at 0x100d0bf2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d0c0a
mov edi, dword [esi + 0xc]
jmp 0x100d0c4a
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d0c23
call fcn.10007367
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d0c38
call fcn.10007367
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d0c4a
call fcn.10007367
call fcn.10005cb4
cmp dword [eax + 0x3c], 0
je 0x100d0c5f
push edi
mov ecx, ebx
call fcn.100cfa1c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d0b0c
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d0c7d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d0c89
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f51da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015f670]
jne 0x100f51e4
repz ret
jmp fcn.100faf24
Function at 0x101067fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015f670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100fb258
and dword [ebp - 0x14], 0
cmp dword [0x10166de8], 0
mov dword [ebp - 0x18], eax
jne 0x101068ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10106955
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101417cc
push ebx
call edi
test eax, eax
je 0x10106955
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x101417bc
push ebx
mov dword [0x10166de8], eax
call edi
push eax
call esi
push 0x101417a8
push ebx
mov dword [0x10166dec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10166df0], eax
call edi
push eax
call esi
mov dword [0x10166df8], eax
test eax, eax
je 0x101068ad
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10166df4], eax
mov eax, dword [0x10166df4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10106906
cmp dword [0x10166df8], ecx
je 0x10106906
push eax
call esi
push dword [0x10166df8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10106906
test ebx, ebx
je 0x10106906
call edi
test eax, eax
je 0x101068fd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x101068fd
test byte [ebp - 8], 1
jne 0x10106906
or dword [ebp + 0x10], 0x200000
jmp 0x10106939
mov eax, dword [0x10166dec]
cmp eax, dword [ebp - 0x18]
je 0x10106939
push eax
call esi
test eax, eax
je 0x10106939
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10106939
mov eax, dword [0x10166df0]
cmp eax, dword [ebp - 0x18]
je 0x10106939
push eax
call esi
test eax, eax
je 0x10106939
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10166de8]
call esi
test eax, eax
je 0x10106955
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10106957
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f51da
leave
ret
Function at 0x4012e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x4012fe
push 0x80004005
call fcn.00401080
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40134d
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x40134b
cmp dword [ebp + 0x10], ebx
jbe 0x401348
cmp dword [ebp + 0x10], 2
jbe 0x401354
cmp dword [ebp + 0x10], 7
jne 0x401348
cmp ecx, 1
jb 0x401348
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x401348
cmp ecx, 1
jbe 0x40134d
cmp byte [edx - 2], bl
je 0x40134d
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x401346
Function at 0x401b70
Capabilities:
Create process on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
or dword [ebp - 4], 0xffffffff
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00413c80
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00413c80
add esp, 0x18
mov dword [ebp - 0x58], 0x44
cmp dword [0x4327f8], esi
je 0x401bdc
push 0x432804
push str.Country
push esi
call fcn.0040c5b9
push 0x432818
push str.PostStatusUrl
push esi
call fcn.0040c5b9
push 0x432a2c
push str.Method
push esi
call fcn.0040c5b9
add esp, 0x24
jmp 0x401beb
push esi
push str.PostStatusUrl
push esi
call fcn.0040c5b9
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
je 0x401c28
push dword [ebp - 0x14]
call fcn.0040135a
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4023fc
Capabilities:
Delete file
Download url
Get geographical location
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x3508]
mov eax, 0x3508
call fcn.00414a90
push 0xffffffffffffffff
push 0x424ce7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x3504], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x3514]
xor ebx, ebx
push 0x4266bb
mov byte [0x432918], bl
push 0x432818
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00413c80
push 0x400
mov esi, 0x432b48
push esi
push str.InstallerXmlURL
call fcn.0040d4c3
add esp, 0x18
test eax, eax
jne 0x402499
push str.http:__javadl_esd.sun.com_update_1.7.0_1.7.0_09_b05.xml
push 0x426ae4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x2800
lea eax, [ebp]
push eax
push ebx
push esi
call fcn.004018ce
add esp, 0x10
test eax, eax
je 0x4024f4
lea eax, [ebp]
push edi
push eax
call fcn.00401733
pop ecx
pop ecx
cmp dword [0x4327f8], ebx
je 0x4024f4
lea eax, [ebp - 0x10]
push eax
mov esi, 0x432804
push esi
push str.Country
push ebx
mov dword [ebp - 0x10], 0x14
call fcn.0040d070
add esp, 0x10
test eax, eax
jne 0x4024f4
push esi
push 0x432918
call fcn.0040c10c
pop ecx
pop ecx
call fcn.0040b45e
mov edi, eax
cmp edi, ebx
je 0x402627
mov esi, 0x3ff
push esi
lea eax, [ebp + 0x2c01]
push ebx
push eax
mov byte [ebp + 0x2c00], bl
call fcn.00413c80
push esi
lea eax, [ebp + 0x3001]
push ebx
push eax
mov byte [ebp + 0x3000], bl
call fcn.00413c80
push 0x103
lea eax, [ebp + 0x3401]
push ebx
push eax
mov byte [ebp + 0x3400], bl
call fcn.00413c80
lea eax, [ebp + 0x3400]
push eax
call fcn.0040beb1
push edi
mov edi, str.Java3BillDevices
push edi
push 0x432a40
lea eax, [ebp + 0x2c00]
push str._s__s__s.jpg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str.1.7.0_09
lea eax, [ebp + 0x3400]
push eax
lea eax, [ebp + 0x3000]
push str._sSunJavajre_s_s.jpg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x50
push ebx
push ebx
lea eax, [ebp + 0x3000]
push eax
lea eax, [ebp + 0x2c00]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x10]
push eax
mov edi, 0xfa8
push edi
mov dword [ebp - 0x10], ebx
call fcn.004011db
push esi
lea eax, [ebp + 0x2801]
push ebx
push eax
mov byte [ebp + 0x2800], bl
call fcn.00413c80
add esp, 0x14
push 0x400
lea eax, [ebp + 0x2800]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x2800]
push eax
lea eax, [ebp + 0x3000]
push eax
call fcn.0040c0c7
pop ecx
pop ecx
test eax, eax
jne 0x40261e
lea eax, [ebp + 0x3000]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3504]
xor ecx, ebp
call fcn.004141fb
add ebp, 0x3508
leave
ret
Function at 0x4029fd
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x402a4b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x402a5c
push 0xd
pop eax
jmp 0x402a86
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402a5f
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402f3c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401296
mov ebx, eax
cmp ebx, esi
je 0x402faf
lea ecx, [ebp - 0x74]
call fcn.0040127b
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004141fb
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402fc7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402f3c
cmp eax, esi
jne 0x402ff9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x402fb7
lea ecx, [ebp - 0x74]
call fcn.0040127b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00402926
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040127b
mov eax, esi
jmp 0x402f95
Function at 0x40a103
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00409ec1
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x40a1d3
push ebx
push pe_nt_image_headers32
push dword [esp + 0x28]
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x40a159
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x40a1b7
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40a1b7
push ebp
push edi
call fcn.004015bc
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40a1a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40a1c1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a1c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x40a1d3
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40bab8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x432d24], 0
je 0x40badb
mov eax, dword [0x432d20]
jmp 0x40bb2e
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00413c80
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x88], 2
jne 0x40bb21
cmp dword [ebp - 0x94], 6
jne 0x40bb21
mov eax, ecx
jmp 0x40bb23
xor eax, eax
mov dword [0x432d20], eax
mov dword [0x432d24], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004141fb
leave
ret

Function at 0x40bb3a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x594]
sub esp, 0x614
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x590], eax
mov eax, dword [ebp + 0x59c]
push ebx
push esi
push edi
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call fcn.00413c80
add esp, 0xc
lea esi, [edi + 1]
push esi
lea eax, [ebp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x40bc61
cmp eax, esi
ja 0x40bc61
push edi
lea eax, [ebp + 0x48d]
push ebx
push eax
mov byte [ebp + 0x48c], bl
call fcn.00413c80
push dword [ebp - 0x7c]
lea eax, [ebp + 0x388]
push eax
push 0x4280b4
push 0xffffffffffffffff
lea eax, [ebp + 0x48c]
push esi
push eax
call fcn.00416353
add esp, 0x24
test eax, eax
jg 0x40bc06
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00413c80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x48c]
push eax
push str._snprintf_failed.__ErrorCode:__d
jmp 0x40bc85
lea eax, [ebp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40bc5d
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00413c80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x48c]
push eax
push str.LoadLibrary__s__failed.__ErrorCode:__d
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push 0x400
push eax
call fcn.00416353
lea eax, [ebp - 0x78]
push eax
call fcn.0040ca21
add esp, 0x1c
mov eax, esi
jmp 0x40bca3
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00413c80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x80]
push str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push 0x400
push eax
call fcn.00416353
lea eax, [ebp - 0x78]
push eax
call fcn.0040ca21
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp + 0x590]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004141fb
add ebp, 0x594
leave
ret
Function at 0x40c5b9
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x40c60d
lea eax, [ebp - 4]
cmp ebx, edi
jne 0x40c5f5
push eax
push 0x2001f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40c5ff
push 1
push eax
call fcn.0040c561
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40c654
mov dword [ebp - 8], 1
jmp 0x40c610
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40c646
cmp ebx, edi
jne 0x40c627
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40c63f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x40c654
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40c65b
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xcc
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x64], eax
cmp dword [0x432d54], 0
mov eax, dword [ebp + 0x70]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x78]
push edi
mov dword [ebp - 0x3c], eax
mov edi, 0x432d40
jne 0x40c81b
mov esi, 0x9c
push esi
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00413c80
add esp, 0xc
push str.win32
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x40c6d3
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call ebx
cmp dword [ebp - 0x28], 2
jne 0x40c750
cmp dword [ebp - 0x34], 4
jne 0x40c6e9
push str.winnt
jmp 0x40c77b
cmp dword [ebp - 0x34], 6
jne 0x40c723
cmp dword [ebp - 0x30], 0
jne 0x40c709
cmp byte [ebp + 0x62], 1
jne 0x40c702
push str.winvista
jmp 0x40c77b
push str.winlong
jmp 0x40c77b
cmp dword [ebp - 0x30], 1
jne 0x40c784
cmp byte [ebp + 0x62], 1
jne 0x40c71c
push str.win7
jmp 0x40c77b
push str.win2008R2
jmp 0x40c77b
cmp dword [ebp - 0x34], 5
jne 0x40c77e
cmp dword [ebp - 0x30], 0
jne 0x40c736
push str.win2000
jmp 0x40c77b
cmp dword [ebp - 0x30], 1
jne 0x40c743
push str.winxp
jmp 0x40c77b
cmp dword [ebp - 0x30], 2
jne 0x40c784
push str.win2003
jmp 0x40c77b
cmp dword [ebp - 0x28], 1
jne 0x40c77e
cmp dword [ebp - 0x34], 4
jne 0x40c776
cmp dword [ebp - 0x30], 0xa
jne 0x40c769
push str.win98
jmp 0x40c77b
cmp dword [ebp - 0x30], 0x5a
jne 0x40c776
push str.winme
jmp 0x40c77b
push str.win95
push edi
call esi
cmp dword [ebp - 0x34], 0
jbe 0x40c7af
cmp dword [ebp - 0x30], 0
jbe 0x40c7af
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c7af
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp + 0x5c]
push str.Unknown
mov ebx, 0x432d2c
push ebx
mov dword [0x432d28], eax
call esi
xor eax, eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x64]
test eax, eax
je 0x40c807
cmp eax, 6
je 0x40c800
cmp eax, 9
je 0x40c7f9
push eax
push 0x428264
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c80f
push str.amd64
jmp 0x40c80c
push str.ia64
jmp 0x40c80c
push str.i586
push ebx
call esi
mov dword [0x432d54], 1
jmp 0x40c820
mov ebx, 0x432d2c
mov eax, dword [0x432d28]
mov esi, 0x426ae4
test eax, eax
je 0x40c843
push eax
push edi
push str._s_sp_d
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40c851
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x40c865
push ebx
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp + 0x64]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004141fb
add ebp, 0x68
leave
ret
Function at 0x40c996
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 4
pop eax
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40c9d8
xor eax, eax
jmp 0x40ca1e
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, str.OfferedSPCnt
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40ca05
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40ca11
cmp eax, 2
je 0x40ca11
mov dword [ebp - 8], 0xfffffffe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop edi
leave
ret