joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d8ab
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010176a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101d940
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x104fc9c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x101d940
cmp eax, 1
je 0x101d958
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101d940
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x101d915
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x101d93c
xor eax, eax
inc eax
jmp 0x101d974
cmp esi, ebx
jae 0x101d944
xor eax, eax
jmp 0x101d974
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x104fc9c]
jmp 0x101d95a
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1029586
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x10295a7
mov eax, 0x8876086c
jmp 0x102969a
cmp dword [ebp + 0x7c], esi
je 0x1029629
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x1029609
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.010176a0
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x1029629
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1029642
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x1029688
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x1029688
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x1029688
cmp eax, esi
je 0x1029695
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x1029698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x102969a
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x102eaae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x100cb7c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x102eb05
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x102eb05
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x102eb05
xor eax, eax
inc eax
jmp 0x102eb07
xor eax, eax
leave
ret 0x10
Function at 0x102eb30
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x100cb7c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x102eb9e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x100cba4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102eb95
cmp dword [ebp - 0xc], 4
jne 0x102eb95
cmp dword [ebp - 0x10], edi
je 0x102eb95
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x104b878], edi
xor eax, eax
jmp 0x102ebdd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x104b878], edi
jge 0x102ebd8
lea eax, [ebp - 0x34]
push eax
mov dword [0x104b878], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x102ebd8
cmp word [ebp - 0x14], 5
jb 0x102ebd8
call fcn.0102eb0b
test eax, eax
je 0x102ebd8
emms
mov dword [0x104b878], 1
mov eax, dword [0x104b878]
pop edi
leave
ret

Function at 0x102ed81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x102eea2
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x102ee86
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x102edd8
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x102edb6
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x104330d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1014ab8
call fcn.010183fc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1052248], edi
jne 0x1043351
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x104333c
mov dword [0x1052248], ebx
jmp 0x1043351
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1043351
mov dword [0x1052248], 2
mov eax, dword [0x1052248]
cmp eax, ebx
jne 0x1043371
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1043433
cmp eax, 2
je 0x104337a
cmp eax, edi
jne 0x10433a2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x104338d
mov eax, dword [0x104fd7c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x10433a9
xor eax, eax
jmp 0x1043433
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.010176a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10433dc
cmp esi, edi
jne 0x10433f1
mov ecx, dword [ebp - 0x24]
call fcn.01019631
mov esi, eax
cmp esi, edi
je 0x10433a2
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1043424
cmp dword [ebp + 0x14], edi
jne 0x104340e
push edi
push edi
jmp 0x1043414
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x1043430
push esi
call fcn.0101911d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.01018437
ret
Function at 0x104343c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1014ac8
call fcn.010183fc
xor esi, esi
cmp dword [0x105224c], esi
jne 0x1043480
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x104346b
mov dword [0x105224c], edi
jmp 0x1043480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1043480
mov dword [0x105224c], 2
mov eax, dword [0x105224c]
cmp eax, 2
je 0x104355f
cmp eax, esi
je 0x104355f
cmp eax, 1
jne 0x10434c5
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10434ae
mov eax, dword [0x104fd7c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10434cc
xor eax, eax
jmp 0x1043571
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010176a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1043502
cmp edi, esi
jne 0x104351b
lea ecx, [ebx + ebx]
call fcn.01019631
mov edi, eax
cmp edi, esi
je 0x10434c5
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x104354e
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1043538
push esi
push esi
jmp 0x104353e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x104355a
push edi
call fcn.0101911d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1043571
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.01018437
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x40a377
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x10028569
call fcn.00418fad
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x30], ebx
jb 0x40a396
mov eax, dword [eax]
push 0x1002a84c
push eax
call fcn.0041a704
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x40a3ba
push 0x1002a808
mov ecx, esi
call fcn.0040927f
jmp 0x40a432
push 2
push ebx
push edi
call fcn.0041a5cc
push edi
call fcn.0041a4dd
push ebx
push ebx
push edi
mov dword [ebp - 0x34], eax
call fcn.0041a5cc
push dword [ebp - 0x34]
call fcn.00416721
push dword [ebp - 0x30]
mov edi, eax
push 1
push dword [ebp - 0x34]
push edi
call fcn.0041a32c
push dword [ebp - 0x30]
call fcn.00419e46
mov eax, dword [ebp - 0x34]
add esp, 0x34
add eax, edi
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407df7
push edi
mov dword [ebp - 4], ebx
call fcn.00418b55
pop ecx
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.004092ae
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405d1f
mov eax, esi
call fcn.00419030
ret
Function at 0x401c60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [str.SoftwareRealNetworksRealJukebox1.0Preferences]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
push str.ClearLibCorruptionOnShutdown
mov dword [ebp - 0xc], 1
call fcn.0040b3e0
mov eax, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
je 0x401cea
lea edx, [ebp - 0x110]
push 0x104
push edx
call fcn.004018e0
mov al, byte [ebp - 0x110]
add esp, 8
test al, al
je 0x401cea
lea ecx, [ebp - 8]
call fcn.00406300
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 8]
push str._scpt
push ecx
call fcn.00406f60
mov al, byte [ebp - 1]
add esp, 0xc
cmp al, 0xff
lea eax, [ebp - 8]
jne 0x401cdb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 8]
call fcn.00406500
mov esp, ebp
pop ebp
ret
Function at 0x4024c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, 0x4114a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024d1
sub eax, edx
mov dword [ebp - 4], eax
jne 0x40256f
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCR71.dll_strrchr]
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
jne 0x40252a
lea edx, [ebp - 0x108]
push 0x2f
push edx
call esi
add esp, 8
test eax, eax
jne 0x40252a
lea eax, [ebp - 0x108]
jmp 0x40252b
inc eax
push 0x104
push 0x4114a0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
pop esi
jne 0x40256f
mov eax, dword [0x40ea34]
mov ecx, dword [0x40ea38]
mov dx, word [0x40ea3c]
mov dword [0x4114a0], eax
mov al, byte [0x40ea3e]
mov dword [0x4114a4], ecx
mov word [0x4114a8], dx
mov byte [0x4114aa], al
mov eax, 0x4114a0
mov esp, ebp
pop ebp
ret

Function at 0x403060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
test ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
je 0x40315f
push edi
push str.PATH
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.00406300
test edi, edi
je 0x4030a0
push edi
lea ecx, [ebp - 0x14]
call fcn.004065f0
mov al, byte [esi + 0x2b]
add esi, 0x24
cmp al, 0xff
pop edi
je 0x403167
xor ecx, ecx
cmp al, 7
sete cl
mov eax, ecx
test eax, eax
je 0x4030e1
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push 0x40ec74
push eax
call fcn.00406d70
add esp, 0xc
push eax
mov ecx, esi
call fcn.00406540
lea ecx, [ebp - 0x1c]
call fcn.00406500
push 0x40ec74
lea ecx, [ebp - 0xc]
call fcn.00406520
push ebx
lea ecx, [ebp - 0xc]
call fcn.00406980
mov ax, word [ebp - 0xe]
cmp ah, 0xff
je 0x40318d
xor ecx, ecx
cmp ah, 7
sete cl
mov eax, ecx
test eax, eax
jne 0x40312b
push 0x40ec70
lea ecx, [ebp - 0xc]
call fcn.00406980
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
call fcn.004069e0
cmp byte [ebp - 5], 0xff
lea eax, [ebp - 0xc]
jne 0x403137
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR71.dll__putenv]
add esp, 4
test eax, eax
mov esi, 0x80004005
jne 0x40314d
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00406500
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [esi + 4]
test al, al
jne 0x4030e1
mov al, byte [esi + 5]
test al, al
jne 0x4030e1
mov al, byte [esi + 6]
test al, al
je 0x4030bc
jmp 0x4030e1
mov ecx, dword [ebp - 0x10]
test cl, cl
jne 0x403112
test ch, ch
jne 0x403112
test al, al
je 0x40312b
jmp 0x403112
Function at 0x404a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x404af0
mov eax, dword [ebp - 4]
test eax, eax
jle 0x404af0
push 0x18
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x404aa3
mov ecx, eax
call fcn.00407420
jmp 0x404aa5
xor eax, eax
test eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jne 0x404abf
mov ecx, dword [ebp + 0x14]
pop esi
pop edi
mov dword [ecx], 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [edx + 0x1c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
je 0x405343
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x405353
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405349
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4116b8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
or ebx, 0xffffffff
push eax
mov dword [ebp - 0xa6], ebx
mov dword [ebp - 0xa2], ebx
mov dword [ebp - 0x9e], 0
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0x8c]
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov word [ebp - 0xa8], dx
xor edx, edx
cmp esi, 2
sete dl
mov di, ax
mov word [ebp - 0xac], di
mov word [ebp - 0xaa], cx
mov esi, edx
test esi, esi
je 0x4053f9
mov ebx, 8
jmp 0x40541a
cmp ax, 4
jae 0x405406
mov ebx, 2
jmp 0x40541a
jne 0x405420
cmp cx, 0xa
sbb ebx, ebx
and ebx, 0xfffffc04
add ebx, 0x400
mov dword [ebp - 0xa6], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405536
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0xd0]
cmp eax, 3
ja case.default.0x405448
jmp dword [eax*4 + 0x405548]
test esi, esi
je 0x40549b
cmp di, 3
ja 0x405465
jne 0x40549b
cmp word [ebp - 0xaa], 0x32
jb 0x40549b
movzx eax, word [ebp - 0xb0]
sub eax, 4
jns 0x40547d
mov dword [ebp - 0xa2], 0xfffffffe
jmp 0x4054f8
test eax, eax
je 0x4054be
cmp eax, 1
je 0x4054b2
xor ecx, ecx
cmp eax, 2
setne cl
dec ecx
and ecx, 5
dec ecx
mov dword [ebp - 0xa2], ecx
jmp 0x4054f8
mov eax, dword [ebp - 0xb8]
sub eax, 0x182
je 0x405471
sub eax, 0x64
je 0x4054be
sub eax, 0x64
jne case.default.0x405448
mov dword [ebp - 0xa2], 2
jmp 0x4054f8
mov dword [ebp - 0xa2], 1
jmp 0x4054f8
mov dword [ebp - 0xa2], 0x40
jmp 0x4054f8
mov dword [ebp - 0xa2], 0x20
jmp 0x4054f8
mov dword [ebp - 0xa2], 8
jmp 0x4054f8
mov dword [ebp - 0xa2], 0xffffffff
call fcn.00405300
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9e], eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0xa4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x9e]
shr edx, 0x10
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret